Advertisement
Guest User

Untitled

a guest
Oct 1st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. $copy-grids: 2;
  2. $copy-grids: add-grid(4 at $breakpoint-xs-min, $copy-grids);
  3. $copy-grids: add-grid(6 at $breakpoint-l-min, $copy-grids);
  4. $copy-gutters: $gutter-width;
  5.  
  6. $front-grids: 1;
  7. $front-grids: add-grid(2 at $breakpoint-2up-min, $front-grids);
  8. $front-grids: add-grid(3 at $breakpoint-3up-min, $front-grids);
  9. $front-grids: add-grid(4 at $breakpoint-4up-min, $front-grids);
  10. $front-gutters: breakpoint-to-base-em($front-gutter-width);
  11.  
  12. ...
  13.  
  14. // Mixins for the main content body copy.
  15. @mixin copy-layout {
  16. @include layout($copy-grids, $copy-gutters) {
  17. // All the things!
  18. @content;
  19. }
  20. }
  21. @mixin copy-grid-span($span, $location) {
  22. @include copy-layout {
  23. @include grid-span($span, $location);
  24. }
  25. }
  26.  
  27. // Mixins for the front page.
  28. @mixin front-layout {
  29. @include layout($front-grids, $front-gutters) {
  30. $gutter-styles: 'split' 'fixed';
  31. // All the things!
  32. @content;
  33. }
  34. }
  35. @mixin front-grid-span($span, $location) {
  36. @include front-layout {
  37. @include grid-span($span, $location);
  38. }
  39. }
  40.  
  41. ...
  42.  
  43. #block-bean-front-page-message {
  44. margin-bottom: $front-gutters;
  45. @include breakpoint-1up() {
  46. width: 100%;
  47. padding: 0 $front-gutters/2;
  48. }
  49. @include breakpoint-2up-to-4up() {
  50. @include front-grid-span(1, 2);
  51. }
  52. @include breakpoint-4up(true) {
  53. @include front-grid-span(3, 2);
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement