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.

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