Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $copy-grids: 2;
- $copy-grids: add-grid(4 at $breakpoint-xs-min, $copy-grids);
- $copy-grids: add-grid(6 at $breakpoint-l-min, $copy-grids);
- $copy-gutters: $gutter-width;
- $front-grids: 1;
- $front-grids: add-grid(2 at $breakpoint-2up-min, $front-grids);
- $front-grids: add-grid(3 at $breakpoint-3up-min, $front-grids);
- $front-grids: add-grid(4 at $breakpoint-4up-min, $front-grids);
- $front-gutters: breakpoint-to-base-em($front-gutter-width);
- ...
- // Mixins for the main content body copy.
- @mixin copy-layout {
- @include layout($copy-grids, $copy-gutters) {
- // All the things!
- @content;
- }
- }
- @mixin copy-grid-span($span, $location) {
- @include copy-layout {
- @include grid-span($span, $location);
- }
- }
- // Mixins for the front page.
- @mixin front-layout {
- @include layout($front-grids, $front-gutters) {
- $gutter-styles: 'split' 'fixed';
- // All the things!
- @content;
- }
- }
- @mixin front-grid-span($span, $location) {
- @include front-layout {
- @include grid-span($span, $location);
- }
- }
- ...
- #block-bean-front-page-message {
- margin-bottom: $front-gutters;
- @include breakpoint-1up() {
- width: 100%;
- padding: 0 $front-gutters/2;
- }
- @include breakpoint-2up-to-4up() {
- @include front-grid-span(1, 2);
- }
- @include breakpoint-4up(true) {
- @include front-grid-span(3, 2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement