logo

drewdevault.com

[mirror] blog and personal website of Drew DeVault git clone https://hacktivis.me/git/mirror/drewdevault.com.git

time.css (2853B)


  1. :root {
  2. --stone-color: #81676c;
  3. --homo-color: #e44d2e;
  4. --art-color: #0087BD;
  5. --agri-color: #71BC78;
  6. --civi-color: #7851A9;
  7. --industry-color: #708090;
  8. }
  9. body {
  10. width: 1001px;
  11. margin: 0 auto;
  12. font-family: sans-serif;
  13. padding: 1rem 0 2rem 0;
  14. }
  15. @media(min-width: 1000px) {
  16. .small-screens {
  17. display: none;
  18. }
  19. }
  20. h1 small {
  21. float: right;
  22. font-size: 1rem;
  23. }
  24. .key .ten, .key .thousand {
  25. display: block;
  26. margin-left: -1px;
  27. }
  28. .key .ten:after {
  29. display: block;
  30. width: 12px;
  31. height: 5px;
  32. content: ' ';
  33. background-size: 10px 10px;
  34. background-image:
  35. linear-gradient(to right, #333 2px, transparent 1px),
  36. linear-gradient(to bottom, #333 2px, transparent 1px);
  37. }
  38. .key .thousand:after {
  39. margin-bottom: 5px;
  40. display: block;
  41. width: 1002px;
  42. height: 5px;
  43. content: ' ';
  44. background-size: 10px 10px;
  45. background-image:
  46. linear-gradient(to right, #333 2px, transparent 1px),
  47. linear-gradient(to bottom, #333 2px, transparent 1px);
  48. }
  49. .era {
  50. background-size: 10px 10px;
  51. width: 100%;
  52. }
  53. .era > span {
  54. text-shadow: black 1px 0 10px;
  55. font-weight: bold;
  56. color: white;
  57. margin: 1rem 0 0 1rem;
  58. }
  59. .transition {
  60. position: relative;
  61. width: 100%;
  62. height: 10px;
  63. }
  64. .transition > span {
  65. position: absolute;
  66. background-size: 10px 10px;
  67. display: block;
  68. height: 100%;
  69. }
  70. .stone {
  71. background-image:
  72. linear-gradient(to right, #333 1px, transparent 1px),
  73. linear-gradient(to bottom, #333 1px, var(--stone-color) 1px);
  74. }
  75. .era.stone {
  76. height: 31000px;
  77. }
  78. .homo-sapiens {
  79. background-image:
  80. linear-gradient(to right, #333 1px, transparent 1px),
  81. linear-gradient(to bottom, #333 1px, var(--homo-color) 1px);
  82. }
  83. .era.homo-sapiens {
  84. height: 1300px;
  85. }
  86. .art {
  87. background-image:
  88. linear-gradient(to right, #333 1px, transparent 1px),
  89. linear-gradient(to bottom, #333 1px, var(--art-color) 1px);
  90. }
  91. .era.art {
  92. height: 600px;
  93. }
  94. .transition .art {
  95. width: 500px;
  96. }
  97. .transition .agriculture {
  98. left: 500px;
  99. width: 501px;
  100. }
  101. .agriculture {
  102. background-image:
  103. linear-gradient(to right, #333 1px, transparent 1px),
  104. linear-gradient(to bottom, #333 1px, var(--agri-color) 1px);
  105. }
  106. .era.agriculture {
  107. height: 50px;
  108. }
  109. .civilization {
  110. background-image:
  111. linear-gradient(to right, #333 1px, transparent 1px),
  112. linear-gradient(to bottom, #333 1px, var(--civi-color) 1px);
  113. }
  114. .era.civilization {
  115. height: 20px;
  116. }
  117. .transition.modern {
  118. height: 11px;
  119. }
  120. .transition.modern > span > span {
  121. position: absolute;
  122. top: 10px;
  123. border-left: 1px solid black;
  124. padding-left: 0.25rem;
  125. }
  126. .transition .civilization {
  127. width: 740px;
  128. }
  129. .transition .industry {
  130. left: 740px;
  131. width: 180px;
  132. }
  133. .industry, .ww2 {
  134. background-image:
  135. linear-gradient(to right, #333 1px, transparent 1px),
  136. linear-gradient(to bottom, #333 1px, var(--industry-color) 1px);
  137. }
  138. .transition .ww2 {
  139. left: 920px;
  140. width: 81px;
  141. overflow: visible;
  142. white-space: nowrap;
  143. }