_grid.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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-33:last-child,
  26. & .grid-dis-col-66:last-child,
  27. & .grid-dis-col-1:nth-child(4n),
  28. & .grid-dis-col-2:nth-child(2n) {
  29. margin: 0;
  30. }
  31. }
  32. &-col {
  33. $gutterSize: 10px;
  34. &-1 {
  35. width: calc(25% - #{$gutterSize});
  36. max-width: 230px;
  37. margin: 0 $gutterSize 0 0;
  38. &:last-child {
  39. width: 25%;
  40. }
  41. @media screen and (max-width: 1000px) {
  42. width: calc(50% - #{$gutterSize});
  43. max-width: 230px;
  44. &:last-child {
  45. margin-right: 0;
  46. }
  47. }
  48. }
  49. &-2 {
  50. width: calc(50% - #{$gutterSize});
  51. max-width: 470px;
  52. margin: 0 $gutterSize 0 0;
  53. &:last-child {
  54. width: 50%;
  55. }
  56. @media screen and (max-width: 1000px) {
  57. width: 100%;
  58. margin-right: 0;
  59. max-width: none;
  60. }
  61. }
  62. &-3 {
  63. width: calc(75% - #{$gutterSize});
  64. max-width: 710px;
  65. margin: 0 $gutterSize 0 0;
  66. &:last-child {
  67. width: 75%;
  68. }
  69. @media screen and (max-width: 1220px) {
  70. width: 80%;
  71. max-width: calc(100% - 240px);
  72. }
  73. @media screen and (max-width: 1000px) {
  74. width: 100%;
  75. max-width: none;
  76. margin: 0;
  77. }
  78. }
  79. &-4 {
  80. width: 100%;
  81. // max-width: 710px;
  82. margin: 0 $gutterSize 0 0;
  83. @media screen and (max-width: 1000px) {
  84. width: 100%;
  85. max-width: none;
  86. &:last-child {
  87. margin-right: 0;
  88. }
  89. }
  90. }
  91. &-33 {
  92. width: calc(33% - #{$gutterSize});
  93. margin: 0 $gutterSize 0 0;
  94. &:last-child {
  95. width: 33%;
  96. }
  97. @media screen and (max-width: 1000px) {
  98. width: 100%;
  99. max-width: none;
  100. &:last-child {
  101. margin-right: 0;
  102. }
  103. }
  104. }
  105. &-66 {
  106. width: calc(66% - #{$gutterSize});
  107. margin: 0 $gutterSize 0 0;
  108. &:last-child {
  109. width: 66%;
  110. }
  111. @media screen and (max-width: 1000px) {
  112. width: 100%;
  113. max-width: none;
  114. &:last-child {
  115. margin-right: 0;
  116. }
  117. }
  118. }
  119. }
  120. }
  121. &-disrb {
  122. &-row {
  123. display: -webkit-flex;
  124. display: -ms-flex;
  125. display: flex;
  126. flex-direction: row;
  127. flex-wrap: wrap;
  128. margin-bottom: 20px;
  129. @media screen and (max-width: 1220px) {
  130. margin-right: 10px;
  131. display: -webkit-flex;
  132. display: -ms-flex;
  133. display: flex;
  134. flex-direction: row;
  135. justify-content: space-around;
  136. }
  137. & img {
  138. display: block;
  139. }
  140. &:last-child,
  141. & div:last-child,
  142. & .grid-disrb-col-1:nth-child(3n),
  143. & .grid-disrb-col-2:nth-child(2n) {
  144. margin: 0;
  145. }
  146. }
  147. &-col {
  148. $gutterSize: 10px;
  149. &-1 {
  150. width: calc(33.333333% - #{$gutterSize});
  151. max-width: 230px;
  152. margin: 0 #{$gutterSize} 0 0;
  153. }
  154. &-2 {
  155. width: calc(66.66666% - #{$gutterSize});
  156. max-width: 470px;
  157. margin: 0 #{$gutterSize} 0 0;
  158. }
  159. &-3 {
  160. width: 100%;
  161. max-width: 710px;
  162. margin: 0 #{$gutterSize} 0 0;
  163. @media screen and (max-width: 1220px) {
  164. width: 100%;
  165. max-width: 100%;
  166. margin: 0;
  167. }
  168. }
  169. }
  170. }
  171. }