style.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. /* See humans.html for full thanks */
  2. body {
  3. max-width: 800px ;
  4. margin: auto ;
  5. }
  6. h1 {
  7. text-align: left ;
  8. }
  9. /* LIGHT MODE */
  10. :root {
  11. --color: #0f0f0f;
  12. --link-color: #3b0000;
  13. --bg-image: url(bg_light.png);
  14. --bg-color: hsl(204, 44%, 65%);
  15. background-size: auto;
  16. background-repeat: auto;
  17. background-position: center;
  18. background-attachment: fixed;
  19. }
  20. /* unvisited link */
  21. a:link {
  22. color: #975777;
  23. }
  24. /* visited link */
  25. a:visited {
  26. color: #13131f;
  27. }
  28. /* mouse over link */
  29. a:hover {
  30. color: #1313df;
  31. }
  32. /* selected link */
  33. a:active {
  34. color: #37374b;
  35. }
  36. /* DARK MODE */
  37. @media (prefers-color-scheme: dark) {
  38. :root {
  39. --color: #ffffff;
  40. --link-color: #20bdec;
  41. --bg-image: url(bg.png);
  42. --bg-color: hsl(30, 36%, 4%);
  43. }
  44. /* unvisited link */
  45. a:link {
  46. color: #ffa8de;
  47. }
  48. /* visited link */
  49. a:visited {
  50. color: #ffc5a8;
  51. }
  52. /* mouse over link */
  53. a:hover {
  54. color: #7fbfff;
  55. }
  56. /* selected link */
  57. a:active {
  58. color: #ffffff;
  59. }
  60. }
  61. body {
  62. max-width: 800px ;
  63. margin: auto ;
  64. color: var(--color);
  65. background-image: var(--bg-image);
  66. background-color: var(--bg-color);
  67. background-size: auto;
  68. background-repeat: auto;
  69. background-position: center;
  70. background-attachment: fixed;
  71. }
  72. /* unvisited link */
  73. a:link {
  74. color: var(--link-color);
  75. }
  76. /* While this part was cool, I decided to get rid of it due to accessibility reasons, but what it did was remove the underlines for links
  77. a:link { text-decoration: none; }
  78. a:visited { text-decoration: none; }
  79. a:hover { text-decoration: underline; }
  80. a:active { text-decoration: underline; } */
  81. /* What font to use */
  82. h1, h2, h3, a, li, th, br, ubuntu, p, blockquote, center {
  83. font-family: Ubuntu, "Noto Sans", "Liberation Sans", Helvetica, Arial, sans-serif;
  84. }
  85. pre, tt, xmp, ubuntu-mono {
  86. font-family: monospace, "Ubuntu Monospace", Courier;
  87. }
  88. a {
  89. text-decoration: underline;
  90. }
  91. a:hover {
  92. text-decoration: none;
  93. }
  94. /* Thank you to Job of joppiesaus.neocities.org for not only writing the following CSS, but also allowing me to use it */
  95. /* Job has been a friend of mine for a few years now, and it would really make me happy if you checked out their website */
  96. figure {
  97. display: block;
  98. margin: 0 auto;
  99. max-width: 95vw;
  100. border: 1px solid #999;
  101. background: #000;
  102. background: rgba(0, 0, 0, 0.5);
  103. width: min-content;
  104. border-radius: 2px;
  105. }
  106. figure {
  107. float: right;
  108. max-width: 33vw;
  109. margin: 3px;
  110. margin-left: 5px;
  111. margin-right: 0;
  112. }
  113. /* The Following code has been written by Randy and has given his consent for me to use it */
  114. /* I am unsure if the following code *can* even be copyrighted due to how generic it is */
  115. blockquote {
  116. border-left: 0.1em solid #cc66ff;
  117. padding-left: 0.3em;
  118. }
  119. /* The following was written by devils.gay - thank you */
  120. uppercase,yell {
  121. text-transform: uppercase;
  122. }
  123. /* The following has been taken from the below URL */
  124. /* https://learn2dev.com/articles/css-shorts/spoilers */
  125. .spoiler-text {
  126. background: black;
  127. color: transparent;
  128. cursor: help;
  129. user-select: none;
  130. transition: background 0.3s ease 0.2s, color 0.2s ease 0.25s;
  131. }
  132. .spoiler-text:hover,
  133. .spoiler-text:focus {
  134. background: #e8e8e8;
  135. color: inherit;
  136. }
  137. /* Following taken from /accessibility/#autoplay part of the website */
  138. .flashing {
  139. -webkit-filter: blur(5px); /* For Safari 6.0 - 9.0 */
  140. filter: blur(5px);
  141. }
  142. .flashing:hover {
  143. -webkit-filter: none;
  144. filter: none;
  145. }
  146. /* Following taken from /accessibility/#autoplay part of the website */
  147. .flashing {
  148. -webkit-filter: blur(5px); /* For Safari 6.0 - 9.0 */
  149. filter: blur(5px);
  150. }
  151. .flashing:hover {
  152. -webkit-filter: none;
  153. filter: none;
  154. }
  155. .tag {
  156. padding: 10px;
  157. border: 5px solid gray;
  158. margin: 0;
  159. background-color: #4D4A7C;
  160. }