style3.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. body {
  2. background: #cc0019;
  3. color: #fceeb8;
  4. font-family: 'BioRhyme', serif;
  5. }
  6. a {
  7. color: #fff;
  8. }
  9. a:hover,
  10. a:focus {
  11. color: #fceeb8;
  12. }
  13. .codrops-header {
  14. background: none;
  15. }
  16. .codrops-header__tagline,
  17. .codrops-demos,
  18. .content__description,
  19. .content__meta {
  20. font-family: 'Roboto Condensed', sans-serif;
  21. }
  22. .codrops-demos a.current-demo {
  23. color: #fceeb8;
  24. }
  25. .calendar {
  26. -webkit-perspective: 2500px;
  27. perspective: 2500px;
  28. }
  29. .cube__side,
  30. .no-js .cube {
  31. border: 3px solid #fff;
  32. outline: 1px solid #fff;
  33. background: #f0f0f0 url(../img/c1.png) no-repeat center center;
  34. }
  35. .cube:not(.cube--inactive):nth-child(2n) .cube__side,
  36. .no-js .cube:not(.cube--inactive):nth-child(2n) {
  37. background-image: url(../img/c2.png);
  38. }
  39. .cube:not(.cube--inactive):nth-child(3n) .cube__side,
  40. .no-js .cube:not(.cube--inactive):nth-child(3n) {
  41. background-image: url(../img/c3.png);
  42. }
  43. .cube:not(.cube--inactive):nth-child(4n) .cube__side,
  44. .no-js .cube:not(.cube--inactive):nth-child(4n) {
  45. background-image: url(../img/c4.png);
  46. }
  47. .cube:not(.cube--inactive):nth-child(5n) .cube__side,
  48. .no-js .cube:not(.cube--inactive):nth-child(5n) {
  49. background-image: url(../img/c5.png);
  50. }
  51. .cube--inactive .cube__side,
  52. .no-js .cube--inactive {
  53. background: #e6e6e6;
  54. }
  55. /* With JS we insert a number span into the cube */
  56. .cube__number,
  57. .no-js .cube::after {
  58. font-weight: 700;
  59. color: #cc0019;
  60. background: #fff;
  61. width: 100%;
  62. text-align: center;
  63. top: 50%;
  64. height: 1.5em;
  65. line-height: 1.5;
  66. bottom: auto;
  67. margin: -0.75em 0 0;
  68. }
  69. .cube--inactive .cube__number,
  70. .no-js .cube--inactive::after {
  71. color: #cac9c9;
  72. }
  73. .js .content__block {
  74. width: 100%;
  75. padding: 0 5vw 0 20vw;
  76. }
  77. .js .content__description {
  78. padding: 0 0 0 4vw;
  79. }
  80. .content__number {
  81. color: #000;
  82. font-weight: bold;
  83. line-height: 0.5;
  84. letter-spacing: -0.175em;
  85. font-size: 30vw;
  86. left: -5vw;
  87. bottom: 8vh;
  88. }
  89. .content__title {
  90. font-size: 6vw;
  91. }
  92. .title {
  93. color: #fceeb8;
  94. right: auto;
  95. left: 3vw;
  96. }
  97. @media screen and (max-width: 50.75em) {
  98. .js .content__block {
  99. padding: 4em 2em 0;
  100. -webkit-justify-content: flex-start;
  101. -ms-flex-pack: start;
  102. justify-content: flex-start;
  103. }
  104. .content__number {
  105. bottom: 30vh;
  106. }
  107. }