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.

156 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.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. div.summary {
  99. text-align: left;
  100. margin: auto;
  101. p {
  102. margin: 0;
  103. text-indent: -2ch;
  104. margin-left: 2ch;
  105. }
  106. }
  107. }
  108. div.modal.nolabel {
  109. input, textarea {
  110. margin-bottom: 0.5em;
  111. }
  112. }
  113. div.overlay-options {
  114. width: 60ch;
  115. max-width: 95%;
  116. margin: auto;
  117. text-align: right;
  118. div {
  119. opacity: 0.75;
  120. user-select: none;
  121. cursor: pointer;
  122. }
  123. div:hover {
  124. opacity: 1;
  125. }
  126. }
  127. }
  128. div.overlay.notification-overlay {
  129. padding-top: 20%;
  130. div.modal {
  131. text-align: center;
  132. }
  133. }