The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
1.9 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. body {
  2. margin: 0;
  3. padding: 0;
  4. font-family: "Noto Sans", "Helvetica", sans-serif;
  5. background-color: black;
  6. color: white;
  7. main {
  8. margin-left: 30ch; // See side-menu
  9. width: calc(100% - 32ch);
  10. margin-right: 0;
  11. }
  12. @media screen and (min-width: 700px) {
  13. main.with-right {
  14. width: calc(100% - 60ch)
  15. }
  16. }
  17. a {
  18. text-decoration: none;
  19. }
  20. }
  21. @media screen and (max-width: 700px) {
  22. body {
  23. main {
  24. margin-left: 0.25ch;
  25. width: 100%;
  26. }
  27. }
  28. }
  29. /*
  30. * Less glaring chrome/ium scrollbars.
  31. */
  32. ::-webkit-scrollbar {
  33. width: 2px;
  34. /* for vertical scrollbars */
  35. height: 2px;
  36. /* for horizontal scrollbars */
  37. }
  38. ::-webkit-scrollbar-button {
  39. background-color: #555;
  40. color: 000;
  41. display: none;
  42. }
  43. ::-webkit-scrollbar-track {
  44. background-color: #222;
  45. }
  46. ::-webkit-scrollbar-thumb {
  47. background-color: #555;
  48. color: #000;
  49. }
  50. /*
  51. * Tooltip magic.
  52. */
  53. .tooltip {
  54. position: relative;
  55. border-bottom: 0.5px dotted; /* If you want dots under the hoverable text */
  56. span {
  57. cursor: default;
  58. }
  59. > .tooltip-content {
  60. visibility: hidden;
  61. width: 400px;
  62. text-align: left;
  63. padding: 0.25em 1ch;
  64. position: absolute;
  65. z-index: 11000;
  66. pointer-events: none;
  67. top: 0;
  68. left: 105%;
  69. border: 1px solid;
  70. > h1 {
  71. font-size: 1.5em;
  72. margin: 0;
  73. text-align: center;
  74. border: none;
  75. }
  76. > h2 {
  77. font-size: 1em;
  78. margin: 0;
  79. margin-bottom: 0.15em;
  80. margin-top: -0.25em;
  81. font-weight: 200;
  82. opacity: 0.5;
  83. text-align: center;
  84. border: none;
  85. }
  86. p:last-of-type {
  87. padding-bottom: 0;
  88. }
  89. }
  90. }
  91. .no-tooltip {
  92. position: relative;
  93. }
  94. .tooltip:hover {
  95. > .tooltip-content {
  96. visibility: visible;
  97. }
  98. }
  99. @media screen and (max-width: 1200px) {
  100. .tooltip {
  101. > .tooltip-content {
  102. visibility: hidden !important;
  103. }
  104. }
  105. }