_grid.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. .grid {
  2. &-dis {
  3. &-row {
  4. display: -webkit-flex;
  5. display: -ms-flex;
  6. display: flex;
  7. flex-direction: row;
  8. flex-wrap: wrap;
  9. margin-bottom: 40px;
  10. @media screen and (max-width: 1220px) {
  11. justify-content: space-around;
  12. }
  13. @media screen and (max-width: 1000px) {
  14. max-width: 470px;
  15. margin: auto;
  16. }
  17. & img {
  18. display: block;
  19. }
  20. &:last-child,
  21. & .grid-dis-col-1:last-child,
  22. & .grid-dis-col-2:last-child,
  23. & .grid-dis-col-3:last-child,
  24. & .grid-dis-col-4:last-child,
  25. & .grid-dis-col-1:nth-child(4n),
  26. & .grid-dis-col-2:nth-child(2n) {
  27. margin: 0;
  28. }
  29. }
  30. &-col {
  31. &-1 {
  32. width: 25%;
  33. max-width: 230px;
  34. margin: 0 10px 0 0;
  35. @media screen and (max-width: 1000px) {
  36. width: 50%;
  37. max-width: 230px;
  38. &:last-child {
  39. margin-right: 0;
  40. }
  41. }
  42. }
  43. &-2 {
  44. width: 50%;
  45. max-width: 470px;
  46. margin: 0 10px 0 0;
  47. @media screen and (max-width: 1000px) {
  48. width: 100%;
  49. margin-right: 0;
  50. max-width: none;
  51. }
  52. }
  53. &-3 {
  54. width: 75%;
  55. max-width: 710px;
  56. margin: 0 10px 0 0;
  57. @media screen and (max-width: 1220px) {
  58. width: 80%;
  59. max-width: calc(100% - 240px);
  60. }
  61. @media screen and (max-width: 1000px) {
  62. width: 100%;
  63. max-width: none;
  64. margin: 0;
  65. }
  66. }
  67. &-4 {
  68. width: 100%;
  69. // max-width: 710px;
  70. margin: 0 10px 0 0;
  71. @media screen and (max-width: 1000px) {
  72. width: 100%;
  73. max-width: none;
  74. &:last-child {
  75. margin-right: 0;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. &-disrb {
  82. &-row {
  83. display: -webkit-flex;
  84. display: -ms-flex;
  85. display: flex;
  86. flex-direction: row;
  87. flex-wrap: wrap;
  88. margin-bottom: 20px;
  89. @media screen and (max-width: 1220px) {
  90. margin-right: 10px;
  91. display: -webkit-flex;
  92. display: -ms-flex;
  93. display: flex;
  94. flex-direction: row;
  95. justify-content: space-around;
  96. }
  97. & img {
  98. display: block;
  99. }
  100. &:last-child,
  101. & div:last-child {
  102. margin: 0;
  103. }
  104. }
  105. &-col {
  106. &-1 {
  107. width: 33.333333%;
  108. max-width: 230px;
  109. margin: 0 10px 0 0;
  110. }
  111. &-2 {
  112. width: 66.66666%;
  113. max-width: 470px;
  114. margin: 0 10px 0 0;
  115. }
  116. &-3 {
  117. width: 100%;
  118. max-width: 710px;
  119. margin: 0 10px 0 0;
  120. @media screen and (max-width: 1220px) {
  121. width: 100%;
  122. max-width: 100%;
  123. margin: 0;
  124. }
  125. }
  126. }
  127. }
  128. }