style2.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. body {
  2. font-family: 'Montserrat', sans-serif;
  3. }
  4. .cube__side,
  5. .no-js .cube {
  6. border: 10px solid;
  7. outline: 1px solid;
  8. background-color: currentColor;
  9. background-blend-mode: soft-light;
  10. }
  11. .cube:not(.cube--inactive):nth-child(1) .cube__side,
  12. .no-js .cube:not(.cube--inactive):nth-child(1) {
  13. background-image: url(../img/1.png);
  14. color: #f44336;
  15. }
  16. .cube:not(.cube--inactive):nth-child(2) .cube__side,
  17. .no-js .cube:not(.cube--inactive):nth-child(2) {
  18. background-image: url(../img/2.png);
  19. color: #e91e63;
  20. }
  21. .cube:not(.cube--inactive):nth-child(3) .cube__side,
  22. .no-js .cube:not(.cube--inactive):nth-child(3) {
  23. background-image: url(../img/3.png);
  24. color: #9c27b0;
  25. }
  26. .cube:not(.cube--inactive):nth-child(4) .cube__side,
  27. .no-js .cube:not(.cube--inactive):nth-child(4) {
  28. background-image: url(../img/4.png);
  29. color: #673ab7;
  30. }
  31. .cube:not(.cube--inactive):nth-child(5) .cube__side,
  32. .no-js .cube:not(.cube--inactive):nth-child(5) {
  33. background-image: url(../img/5.png);
  34. color: #3f51b5;
  35. }
  36. .cube:not(.cube--inactive):nth-child(6) .cube__side,
  37. .no-js .cube:not(.cube--inactive):nth-child(6) {
  38. background-image: url(../img/6.png);
  39. color: #2196f3;
  40. }
  41. .cube:not(.cube--inactive):nth-child(7) .cube__side,
  42. .no-js .cube:not(.cube--inactive):nth-child(7) {
  43. background-image: url(../img/7.png);
  44. color: #03a9f4;
  45. }
  46. .cube:not(.cube--inactive):nth-child(8) .cube__side,
  47. .no-js .cube:not(.cube--inactive):nth-child(8) {
  48. background-image: url(../img/8.png);
  49. color: #00bcd4;
  50. }
  51. .cube:not(.cube--inactive):nth-child(9) .cube__side,
  52. .no-js .cube:not(.cube--inactive):nth-child(9) {
  53. background-image: url(../img/9.png);
  54. color: #009688;
  55. }
  56. .cube:not(.cube--inactive):nth-child(10) .cube__side,
  57. .no-js .cube:not(.cube--inactive):nth-child(10) {
  58. background-image: url(../img/10.png);
  59. color: #4caf50;
  60. }
  61. .cube:not(.cube--inactive):nth-child(11) .cube__side,
  62. .no-js .cube:not(.cube--inactive):nth-child(11) {
  63. background-image: url(../img/11.png);
  64. color: #8bc34a;
  65. }
  66. .cube:not(.cube--inactive):nth-child(12) .cube__side,
  67. .no-js .cube:not(.cube--inactive):nth-child(12) {
  68. background-image: url(../img/12.png);
  69. color: #cddc39;
  70. }
  71. .cube:not(.cube--inactive):nth-child(13) .cube__side,
  72. .no-js .cube:not(.cube--inactive):nth-child(13) {
  73. background-image: url(../img/13.png);
  74. color: #ffeb3b;
  75. }
  76. .cube:not(.cube--inactive):nth-child(14) .cube__side,
  77. .no-js .cube:not(.cube--inactive):nth-child(14) {
  78. background-image: url(../img/14.png);
  79. color: #ffc107;
  80. }
  81. .cube:not(.cube--inactive):nth-child(15) .cube__side,
  82. .no-js .cube:not(.cube--inactive):nth-child(15) {
  83. background-image: url(../img/15.png);
  84. color: #ff9800;
  85. }
  86. .cube:not(.cube--inactive):nth-child(16) .cube__side,
  87. .no-js .cube:not(.cube--inactive):nth-child(16) {
  88. background-image: url(../img/16.png);
  89. color: #ff5722;
  90. }
  91. .cube:not(.cube--inactive):nth-child(17) .cube__side,
  92. .no-js .cube:not(.cube--inactive):nth-child(17) {
  93. background-image: url(../img/17.png);
  94. color: #795548;
  95. }
  96. .cube:not(.cube--inactive):nth-child(18) .cube__side,
  97. .no-js .cube:not(.cube--inactive):nth-child(18) {
  98. background-image: url(../img/18.png);
  99. color: #564545;
  100. }
  101. .cube:not(.cube--inactive):nth-child(19) .cube__side,
  102. .no-js .cube:not(.cube--inactive):nth-child(19) {
  103. background-image: url(../img/19.png);
  104. color: #607d8b;
  105. }
  106. .cube:not(.cube--inactive):nth-child(20) .cube__side,
  107. .no-js .cube:not(.cube--inactive):nth-child(20) {
  108. background-image: url(../img/20.png);
  109. color: #405d6b;
  110. }
  111. .cube:not(.cube--inactive):nth-child(21) .cube__side,
  112. .no-js .cube:not(.cube--inactive):nth-child(21) {
  113. background-image: url(../img/21.png);
  114. color: #9e9e9e;
  115. }
  116. .cube:not(.cube--inactive):nth-child(22) .cube__side,
  117. .no-js .cube:not(.cube--inactive):nth-child(22) {
  118. background-image: url(../img/22.png);
  119. color: #70737d;
  120. }
  121. .cube--inactive .cube__side,
  122. .no-js .cube--inactive {
  123. background: #2e2e37;
  124. }
  125. /* With JS we insert a number span into the cube */
  126. .cube__number,
  127. .no-js .cube::after {
  128. bottom: auto;
  129. top: 0.15em;
  130. left: 0.25em;
  131. right: auto;
  132. line-height: 1;
  133. font-size: 2em;
  134. color: #fff;
  135. text-align: center;
  136. font-weight: bold;
  137. text-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  138. }
  139. @media screen and (max-width: 50.75em) {
  140. .cube__number,
  141. .no-js .cube::after {
  142. font-size: 1em;
  143. }
  144. }
  145. .js .content__block {
  146. width: 100%;
  147. text-align: center;
  148. left: 0;
  149. padding: 2em;
  150. }
  151. .js .content__description {
  152. padding: 0;
  153. max-width: 30em;
  154. margin: 2em auto 0.5em;
  155. }
  156. .js .content__meta {
  157. padding: 0;
  158. }
  159. .content__number {
  160. color: #fff;
  161. font-weight: bold;
  162. line-height: 0.5;
  163. letter-spacing: -0.175em;
  164. text-indent: -0.175em;
  165. font-size: 40vw;
  166. left: 50%;
  167. top: 50%;
  168. -webkit-transform: translate3d(-50%, -50%, 0);
  169. transform: translate3d(-50%, -50%, 0);
  170. font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  171. }