style.css 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. @font-face {
  2. font-family: "Roboto Mono";
  3. src: url("../fonts/roboto-mono-medium.ttf");
  4. }
  5. :root {
  6. --font: "Roboto Mono";
  7. --background: #0f0e17;
  8. --foreground: #fffffe;
  9. --pink: #e53170;
  10. --red: #f25f4c;
  11. --orange: #ff8906;
  12. --branch: 1px solid #a7a9be;
  13. }
  14. html {
  15. font-size: 18px;
  16. }
  17. body {
  18. background: var(--background);
  19. }
  20. .container {
  21. position: absolute;
  22. top: 50%;
  23. left: 45%;
  24. transform: translate(-50%, -50%);
  25. }
  26. .prompt {
  27. font-family: var(--font);
  28. color: var(--foreground);
  29. }
  30. .prompt~.prompt {
  31. padding: 1.5rem 0 0.3125rem;
  32. }
  33. span {
  34. color: var(--pink);
  35. }
  36. h1 {
  37. display: inline;
  38. font-family: var(--font);
  39. font-size: 1rem;
  40. font-weight: normal;
  41. color: var(--red);
  42. }
  43. .tree > ul {
  44. margin: 0;
  45. padding-left: 1rem;
  46. }
  47. ul {
  48. list-style: none;
  49. padding-left: 2.5rem;
  50. }
  51. li {
  52. position: relative;
  53. }
  54. li::before, li::after {
  55. content: "";
  56. position: absolute;
  57. left: -0.75rem;
  58. }
  59. li::before {
  60. border-top: var(--branch);
  61. top: 0.75rem;
  62. width: 0.5rem;
  63. }
  64. li::after {
  65. border-left: var(--branch);
  66. height: 100%;
  67. top: 0.25rem;
  68. }
  69. li:last-child::after {
  70. height: 0.5rem;
  71. }
  72. a {
  73. font-family: var(--font);
  74. font-size: 1rem;
  75. color: var(--foreground);
  76. text-decoration: none;
  77. outline: none;
  78. }
  79. a:hover {
  80. color: var(--background);
  81. background: var(--orange);
  82. }
  83. form h1 {
  84. padding-left: 0.125rem;
  85. }
  86. input {
  87. font-family: var(--font);
  88. font-size: 1rem;
  89. color: var(--foreground);
  90. background-color: var(--background);
  91. border: none;
  92. }