grid.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. //@import '../theme/variables.scss';
  2. @import './variables.scss';
  3. @import './mixin.scss';
  4. $module: #{$prefix};
  5. .#{$module}-row {
  6. @include make-row();
  7. display: block;
  8. box-sizing: border-box;
  9. }
  10. .#{$module}-row-flex {
  11. display: flex;
  12. flex-flow: row wrap;
  13. &::before,
  14. &::after {
  15. display: flex;
  16. }
  17. }
  18. .#{$module}-col-0 {
  19. display: none;
  20. }
  21. // x轴原点
  22. .#{$module}-row-flex-start {
  23. justify-content: flex-start;
  24. }
  25. // x轴居中
  26. .#{$module}-row-flex-center {
  27. justify-content: center;
  28. }
  29. // x轴反方向
  30. .#{$module}-row-flex-end {
  31. justify-content: flex-end;
  32. }
  33. // x轴平分
  34. .#{$module}-row-flex-space-between {
  35. justify-content: space-between;
  36. }
  37. // x轴有间隔地平分
  38. .#{$module}-row-flex-space-around {
  39. justify-content: space-around;
  40. }
  41. // 顶部对齐
  42. .#{$module}-row-flex-top {
  43. align-items: flex-start;
  44. }
  45. // 居中对齐
  46. .#{$module}-row-flex-middle {
  47. align-items: center;
  48. }
  49. // 底部对齐
  50. .#{$module}-row-flex-bottom {
  51. align-items: flex-end;
  52. }
  53. .#{$module}-col {
  54. position: relative;
  55. }
  56. @include make-grid-columns();
  57. @include make-grid();
  58. // Extra small grid
  59. //
  60. // Columns, offsets, pushes, and pulls for extra small devices like
  61. // smartphones.
  62. @include make-grid(-xs);
  63. // // Small grid
  64. // //
  65. // // Columns, offsets, pushes, and pulls for the small device range, from phones
  66. // // to tablets.
  67. @media (min-width: $width-grid_screen-sm-min) {
  68. @include make-grid(-sm);
  69. }
  70. // // Medium grid
  71. // //
  72. // // Columns, offsets, pushes, and pulls for the desktop device range.
  73. @media (min-width: $width-grid_screen-md-min) {
  74. @include make-grid(-md);
  75. }
  76. // // Large grid
  77. // //
  78. // // Columns, offsets, pushes, and pulls for the large desktop device range.
  79. @media (min-width: $width-grid_screen-lg-min) {
  80. @include make-grid(-lg);
  81. }
  82. // // Extra Large grid
  83. // //
  84. // // Columns, offsets, pushes, and pulls for the full hd device range.
  85. @media (min-width: $width-grid_screen-xl-min) {
  86. @include make-grid(-xl);
  87. }
  88. // // Extra Extra Large grid
  89. // //
  90. // // Columns, offsets, pushes, and pulls for the full hd device range.
  91. @media (min-width: $width-grid_screen-xxl-min) {
  92. @include make-grid(-xxl);
  93. }
  94. @import "./rtl.scss";