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.

145 lines
2.2 KiB

  1. div.overlay {
  2. position: fixed;
  3. left: 0;
  4. right: 0;
  5. top: 0;
  6. bottom: 0;
  7. padding-top: 1em;
  8. z-index: 999;
  9. background-color: rgba(0, 0, 0, 0.90);
  10. overflow-y: scroll;
  11. h1 {
  12. text-align: center;
  13. }
  14. h2 {
  15. opacity: 0.5;
  16. margin: 0;
  17. margin-top: 1em;
  18. border-bottom: 0.5px solid;
  19. padding-bottom: 0.125em;
  20. text-align: center;
  21. }
  22. div.modal {
  23. width: 60ch;
  24. max-width: 95%;
  25. margin: auto;
  26. label {
  27. display: block;
  28. margin-top: 1em;
  29. margin-left: 0.5ch;
  30. font-size: 0.75em;
  31. opacity: 0.5;
  32. }
  33. input {
  34. display: block;
  35. width: 100%;
  36. padding: 0 0.5ch;
  37. border: none;
  38. font-family: inherit;
  39. background: none;
  40. outline: none;
  41. opacity: 0.5;
  42. }
  43. input.big {
  44. font-size: 1.5em;
  45. padding: 0 0.3336ch;
  46. }
  47. select {
  48. display: block;
  49. width: 100%;
  50. padding: 0 0ch;
  51. border: none;
  52. font-family: inherit;
  53. background: none;
  54. outline: none;
  55. opacity: 0.5;
  56. option {
  57. background-color: black;
  58. }
  59. }
  60. select.big {
  61. font-size: 1.5em;
  62. margin: 0;
  63. }
  64. select:focus {
  65. opacity: 1;
  66. }
  67. textarea {
  68. display: block;
  69. width: 100%;
  70. height: 8em;
  71. padding: 0 0.5ch;
  72. border: none;
  73. font-family: inherit;
  74. background: none;
  75. outline: none;
  76. opacity: 0.5;
  77. resize: none;
  78. overflow-y: scroll;
  79. }
  80. textarea.tall {
  81. height: 24em;
  82. }
  83. input:focus, textarea:focus {
  84. opacity: 1;
  85. }
  86. button {
  87. border: 1px solid;
  88. background-color: rgba(0, 0, 0, 0.75);
  89. margin: 2em auto;
  90. display: block;
  91. padding: 0.5em 4ch;
  92. opacity: 0.75;
  93. }
  94. button:hover {
  95. opacity: 1;
  96. cursor: pointer;
  97. }
  98. }
  99. div.modal.nolabel {
  100. input, textarea {
  101. margin-bottom: 0.5em;
  102. }
  103. }
  104. div.overlay-options {
  105. width: 60ch;
  106. max-width: 95%;
  107. margin: auto;
  108. text-align: right;
  109. div {
  110. opacity: 0.75;
  111. user-select: none;
  112. cursor: pointer;
  113. }
  114. div:hover {
  115. opacity: 1;
  116. }
  117. }
  118. }
  119. div.overlay.notification-overlay {
  120. padding-top: 20%;
  121. div.modal {
  122. text-align: center;
  123. }
  124. }