_grid.scss 3.4 KB

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