grid.css 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. @charset "utf-8";
  2. .auto{margin: auto;}
  3. .wrap,.wrap-full{position:relative;clear:both;}
  4. .wrap:after,.wrap-full:after{clear:both;display:table;content:"";line-height:0;}
  5. /**--布局--**/
  6. .row {display:flex;flex-wrap:wrap;}
  7. /* 水平位置 */
  8. .row.x-start {justify-content:flex-start;}.row.x-center {justify-content:center;}.row.x-end {justify-content:flex-end;}
  9. /* 垂直位置 */
  10. .row.y-start {align-items:flex-start;}.row.y-center {align-items:center;}.row.y-end {align-items:flex-end;}
  11. /* 使块元素两端对齐,块元素之间的间隔都相 */
  12. .row.between {justify-content:space-between;}
  13. /* 元素两侧的间隔都相 */
  14. .row.around {justify-content:space-around;}
  15. /*布局 20 格子*/
  16. .row>.col{flex:auto;}
  17. .row>.col-5 {flex-basis:5%;width:5%;}
  18. .row>.col-10 {flex-basis:10%;width:10%;}
  19. .row>.col-15 {flex-basis:15%;width:15%;}
  20. .row>.col-20 {flex-basis:20%;width:20%;}
  21. .row>.col-25 {flex-basis:25%;width:25%;}
  22. .row>.col-30 {flex-basis:30%;width:30%;}
  23. .row>.col-33 {flex-basis:33.33339%;width:33.33339%;}
  24. .row>.col-35 {flex-basis:35%;width:35%;}
  25. .row>.col-40 {flex-basis:40%;width:40%;}
  26. .row>.col-45 {flex-basis:45%;width:45%;}
  27. .row>.col-50 {flex-basis:50%;width:50%;}
  28. .row>.col-55 {flex-basis:55%;width:55%;}
  29. .row>.col-60 {flex-basis:60%;width:60%;}
  30. .row>.col-65 {flex-basis:65%;width:65%;}
  31. .row>.col-66 {flex-basis:66.6669%;width:66.66669%;}
  32. .row>.col-70 {flex-basis:70%;width:70%;}
  33. .row>.col-75 {flex-basis:75%;width:75%;}
  34. .row>.col-80 {flex-basis:80%;width:80%;}
  35. .row>.col-85 {flex-basis:85%;width:85%;}
  36. .row>.col-90 {flex-basis:90%;width:90%;}
  37. .row>.col-95 {flex-basis:95%;width:95%;}
  38. .row>.col-100 {flex-basis:100%;width:100%;}
  39. /*间距*/
  40. .row>[class^="col"].plr,.row>[class*="col"].plr {padding-right:.75rem;padding-left:.75rem;}
  41. @media screen and (min-width:764px){
  42. .row>.col-s5 {flex-basis:5%;width:5%;}
  43. .row>.col-s10 {flex-basis:10%;width:10%;}
  44. .row>.col-s15 {flex-basis:15%;width:15%;}
  45. .row>.col-s20 {flex-basis:20%;width:20%;}
  46. .row>.col-s25 {flex-basis:25%;width:25%;}
  47. .row>.col-s30 {flex-basis:30%;width:30%;}
  48. .row>.col-s33 {flex-basis:33.33339%;width:33.33339%;}
  49. .row>.col-s35 {flex-basis:35%;width:35%;}
  50. .row>.col-s40 {flex-basis:40%;width:40%;}
  51. .row>.col-s45 {flex-basis:45%;width:45%;}
  52. .row>.col-s50 {flex-basis:50%;width:50%;}
  53. .row>.col-s55 {flex-basis:55%;width:55%;}
  54. .row>.col-s60 {flex-basis:60%;width:60%;}
  55. .row>.col-s65 {flex-basis:65%;width:65%;}
  56. .row>.col-s66 {flex-basis:66.6669%;width:66.66669%;}
  57. .row>.col-s70 {flex-basis:70%;width:70%;}
  58. .row>.col-s75 {flex-basis:75%;width:75%;}
  59. .row>.col-s80 {flex-basis:80%;width:80%;}
  60. .row>.col-s85 {flex-basis:85%;width:85%;}
  61. .row>.col-s90 {flex-basis:90%;width:90%;}
  62. .row>.col-s95 {flex-basis:95%;width:95%;}
  63. .row>.col-s100 {flex-basis:100%;width:100%;}
  64. .show-s{display:block !important;}.hide-s{display:none !important;}
  65. .wrapper,.wrap,.wrap-full{width: 100%;}
  66. }
  67. @media (min-width:1024px){
  68. .wrap{width:1024px;}
  69. .wrapper{min-width:1024px;max-width:100%}
  70. }
  71. @media (min-width:1240px){
  72. .wrap{width:1240px;}
  73. .wrapper{min-width:1240px;max-width:100%;}
  74. }
  75. @media screen and (max-width:762px){
  76. .row>.col-m5 {flex-basis:5%;width:5%;}
  77. .row>.col-m10 {flex-basis:10%;width:10%;}
  78. .row>.col-m15 {flex-basis:15%;width:15%;}
  79. .row>.col-m20 {flex-basis:20%;width:20%;}
  80. .row>.col-m25 {flex-basis:25%;width:25%;}
  81. .row>.col-m30 {flex-basis:30%;width:30%;}
  82. .row>.col-m33 {flex-basis:33.33339%;width:33.33339%;}
  83. .row>.col-m35 {flex-basis:35%;width:35%;}
  84. .row>.col-m40 {flex-basis:40%;width:40%;}
  85. .row>.col-m45 {flex-basis:45%;width:45%;}
  86. .row>.col-m50 {flex-basis:50%;width:50%;}
  87. .row>.col-m55 {flex-basis:55%;width:55%;}
  88. .row>.col-m60 {flex-basis:60%;width:60%;}
  89. .row>.col-m65 {flex-basis:65%;width:65%;}
  90. .row>.col-m66 {flex-basis:66.6669%;width:66.66669%;}
  91. .row>.col-m70 {flex-basis:70%;width:70%;}
  92. .row>.col-m75 {flex-basis:75%;width:75%;}
  93. .row>.col-m80 {flex-basis:80%;width:80%;}
  94. .row>.col-m85 {flex-basis:85%;width:85%;}
  95. .row>.col-m90 {flex-basis:90%;width:90%;}
  96. .row>.col-m95 {flex-basis:95%;width:95%;}
  97. .row>.col-m100 {flex-basis:100%;width:100%;}
  98. .show-m{display:block !important;}.hide-m{display:none !important;}
  99. .wrapper,.wrap,.wrap-full{width: 100%;}
  100. }