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.

160 lines
2.4 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.95);
  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. border-left: 0.25px dotted;
  43. }
  44. input.big {
  45. font-size: 1.5em;
  46. padding: 0 0.3336ch;
  47. }
  48. select {
  49. display: block;
  50. width: 100%;
  51. padding: 0 0ch;
  52. border: none;
  53. font-family: inherit;
  54. background: none;
  55. outline: none;
  56. opacity: 0.5;
  57. option {
  58. background-color: black;
  59. }
  60. }
  61. select.big {
  62. font-size: 1.5em;
  63. margin: 0;
  64. }
  65. select:focus {
  66. opacity: 1;
  67. }
  68. textarea {
  69. display: block;
  70. width: 100%;
  71. height: 8em;
  72. padding: 0 0.5ch;
  73. border: none;
  74. font-family: inherit;
  75. background: none;
  76. outline: none;
  77. opacity: 0.5;
  78. resize: none;
  79. overflow-y: scroll;
  80. border-left: 0.25px dotted;
  81. }
  82. textarea.tall {
  83. height: 24em;
  84. }
  85. input:focus, textarea:focus {
  86. opacity: 1;
  87. }
  88. button {
  89. border: 1px solid;
  90. background-color: rgba(0, 0, 0, 0.75);
  91. margin: 2em auto;
  92. display: block;
  93. padding: 0.5em 4ch;
  94. opacity: 0.75;
  95. }
  96. button:hover {
  97. opacity: 1;
  98. cursor: pointer;
  99. }
  100. div.summary {
  101. text-align: left;
  102. margin: auto;
  103. p {
  104. margin: 0;
  105. text-indent: -2ch;
  106. margin-left: 2ch;
  107. }
  108. }
  109. }
  110. div.modal.nolabel {
  111. input, textarea {
  112. margin-bottom: 0.5em;
  113. }
  114. }
  115. div.overlay-options {
  116. width: 60ch;
  117. max-width: 95%;
  118. margin: auto;
  119. text-align: right;
  120. div {
  121. opacity: 0.75;
  122. user-select: none;
  123. cursor: pointer;
  124. }
  125. div:hover {
  126. opacity: 1;
  127. }
  128. }
  129. }
  130. div.overlay.notification-overlay {
  131. padding-top: 20%;
  132. div.modal {
  133. text-align: center;
  134. }
  135. }