James Peret's blog. Built with Jekyll and the Mikey theme.

_grid.scss 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // Grid system
  3. // --------------------------------------------------
  4. //
  5. // Credit: Bootstrap 3
  6. // Container widths
  7. //
  8. // Set the container width, and override it for fixed navbars in media queries.
  9. .container {
  10. @include container-fixed();
  11. @media (min-width: $screen-sm-min) {
  12. width: $container-sm;
  13. }
  14. @media (min-width: $screen-md-min) {
  15. width: $container-md;
  16. }
  17. @media (min-width: $screen-lg-min) {
  18. width: $container-lg;
  19. }
  20. }
  21. // Fluid container
  22. //
  23. // Utilizes the mixin meant for fixed width containers, but without any defined
  24. // width for fluid, full width layouts.
  25. .container-fluid {
  26. @include container-fixed();
  27. }
  28. // Row
  29. //
  30. // Rows contain and clear the floats of your columns.
  31. .row {
  32. @include make-row();
  33. }
  34. // Columns
  35. //
  36. // Common styles for small and large grid columns
  37. @include make-grid-columns();
  38. // Extra small grid
  39. //
  40. // Columns, offsets, pushes, and pulls for extra small devices like
  41. // smartphones.
  42. @include make-grid(xs);
  43. // Small grid
  44. //
  45. // Columns, offsets, pushes, and pulls for the small device range, from phones
  46. // to tablets.
  47. @media (min-width: $screen-sm-min) {
  48. @include make-grid(sm);
  49. }
  50. // Medium grid
  51. //
  52. // Columns, offsets, pushes, and pulls for the desktop device range.
  53. @media (min-width: $screen-md-min) {
  54. @include make-grid(md);
  55. }
  56. // Large grid
  57. //
  58. // Columns, offsets, pushes, and pulls for the large desktop device range.
  59. @media (min-width: $screen-lg-min) {
  60. @include make-grid(lg);
  61. }