Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it advised to use SUSY's at-breakpoint() for theming tablet/desktop styles, or should breakpoint() be used for any non-layout theming?
Comments
Comment #1
PI_Ron CreditAttribution: PI_Ron commentedWhat's confused me was at-breakpoint() / SUSY is using the
$base-font-size;
variable. But breakpoint() is using the browser's default font size of 16px. So unless I set$base-font-size: 16px;
my layout (SUSY) breakpointsat-breakpoint()
will break in different spots to my theme (breakpoint sass) breakpoints if they're passed the same em value.In the example below the following would break at different points:
Susy Config
Layout
Style/Theme
Is this correct and is there a way to pass breakpoint() a default font-size?
Comment #2
fubhy CreditAttribution: fubhy commentedI skip at-breakpoint() from susy entirely and just use breakpoint(). Why? Because it has no-query fallback support.
@see #2064087: Susy vs Singularity grid systems: comparison and gauge of preference for more information on that.