style1.css 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .cube__side,
  2. .no-js .cube {
  3. border: 0.75vw solid #fff;
  4. outline: 1px solid #fff;
  5. background: #f0f0f0 url(../img/mandala.png) no-repeat center center;
  6. }
  7. .cube:not(.cube--inactive):nth-child(2n) .cube__side,
  8. .no-js .cube:not(.cube--inactive):nth-child(2n) {
  9. background-image: url(../img/mandala2.png);
  10. }
  11. .cube:not(.cube--inactive):nth-child(3n) .cube__side,
  12. .no-js .cube:not(.cube--inactive):nth-child(3n) {
  13. background-image: url(../img/mandala3.png);
  14. }
  15. .cube--inactive .cube__side,
  16. .no-js .cube--inactive {
  17. background: #e1e0e0;
  18. }
  19. /* With JS we insert a number span into the cube */
  20. .cube__number,
  21. .no-js .cube::after {
  22. font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  23. font-weight: 700;
  24. line-height: 2.5;
  25. width: 2em;
  26. height: 2em;
  27. padding: 0 0 0 0.25em;
  28. text-align: center;
  29. letter-spacing: -0.05em;
  30. color: #fff;
  31. border-radius: 100% 0 0 0;
  32. background: #f8af8d;
  33. }
  34. .cube:nth-child(2n):not(.cube--inactive) .cube__number,
  35. .no-js .cube:nth-child(2n):not(.cube--inactive)::after {
  36. background: #f8d18d;
  37. }
  38. .cube:nth-child(3n):not(.cube--inactive) .cube__number,
  39. .no-js .cube:nth-child(3n):not(.cube--inactive)::after {
  40. background: #8df88d;
  41. }
  42. .cube--inactive .cube__number,
  43. .no-js .cube--inactive::after {
  44. background: #aaa;
  45. }
  46. .js .content__block {
  47. text-align: right;
  48. }
  49. .content__number {
  50. font-family: 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  51. font-size: 40vw;
  52. font-weight: bold;
  53. line-height: 0.5;
  54. right: 0;
  55. bottom: 30vh;
  56. text-indent: -0.175em;
  57. letter-spacing: -0.175em;
  58. color: #fff;
  59. }