grid.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. //
  2. // Grid system
  3. // --------------------------------------------------
  4. // Container widths
  5. //
  6. // Set the container width, and override it for fixed navbars in media queries.
  7. .container {
  8. .container-fixed();
  9. @media (min-width: @screen-sm-min) {
  10. width: @container-sm;
  11. }
  12. @media (min-width: @screen-md-min) {
  13. width: @container-md;
  14. }
  15. @media (min-width: @screen-lg-min) {
  16. width: @container-lg;
  17. }
  18. }
  19. // Fluid container
  20. //
  21. // Utilizes the mixin meant for fixed width containers, but without any defined
  22. // width for fluid, full width layouts.
  23. .container-fluid {
  24. .container-fixed();
  25. }
  26. // Row
  27. //
  28. // Rows contain and clear the floats of your columns.
  29. .row {
  30. .make-row();
  31. }
  32. // Columns
  33. //
  34. // Common styles for small and large grid columns
  35. .make-grid-columns();
  36. // Extra small grid
  37. //
  38. // Columns, offsets, pushes, and pulls for extra small devices like
  39. // smartphones.
  40. .make-grid(xs);
  41. // Small grid
  42. //
  43. // Columns, offsets, pushes, and pulls for the small device range, from phones
  44. // to tablets.
  45. @media (min-width: @screen-sm-min) {
  46. .make-grid(sm);
  47. }
  48. // Medium grid
  49. //
  50. // Columns, offsets, pushes, and pulls for the desktop device range.
  51. @media (min-width: @screen-md-min) {
  52. .make-grid(md);
  53. }
  54. // Large grid
  55. //
  56. // Columns, offsets, pushes, and pulls for the large desktop device range.
  57. @media (min-width: @screen-lg-min) {
  58. .make-grid(lg);
  59. }
  60. .website-redesign {
  61. // whitelist for the pages to use the new grid
  62. // TODO: remove this whitelist once all pages are using the new grid
  63. .plans-new-design,
  64. .plans-page {
  65. // Container widths
  66. //
  67. // Set the container width, and override it for fixed navbars in media queries.
  68. .container {
  69. .container-fixed(@grid-gutter-width-new);
  70. @media (min-width: @screen-sm-min) {
  71. width: @container-sm;
  72. }
  73. @media (min-width: @screen-md-min) {
  74. width: @container-md;
  75. }
  76. @media (min-width: @screen-lg-min) {
  77. width: @container-lg;
  78. }
  79. @media (min-width: @screen-xl-min) {
  80. width: @container-xl;
  81. }
  82. }
  83. // Row
  84. //
  85. // Rows contain and clear the floats of your columns.
  86. .row {
  87. .make-row(@grid-gutter-width-new);
  88. }
  89. // Columns
  90. //
  91. // Common styles for small and large grid columns
  92. .make-grid-columns(@grid-gutter-width-new);
  93. }
  94. }