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.

110 lines
1.7 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.3333ch;
  36. }
  37. textarea {
  38. display: block;
  39. width: 100%;
  40. height: 8em;
  41. padding: 0 0.5ch;
  42. border: none;
  43. font-family: inherit;
  44. background: none;
  45. outline: none;
  46. opacity: 0.5;
  47. resize: none;
  48. overflow-y: scroll;
  49. }
  50. textarea.tall {
  51. height: 24em;
  52. }
  53. input:focus, textarea:focus {
  54. opacity: 1;
  55. }
  56. button {
  57. border: 1px solid;
  58. background-color: rgba(0, 0, 0, 0.75);
  59. margin: 2em auto;
  60. display: block;
  61. padding: 0.5em 4ch;
  62. opacity: 0.75;
  63. }
  64. button:hover {
  65. opacity: 1;
  66. cursor: pointer;
  67. }
  68. }
  69. div.modal.nolabel {
  70. input, textarea {
  71. margin-bottom: 0.5em;
  72. }
  73. }
  74. div.overlay-options {
  75. width: 60ch;
  76. max-width: 95%;
  77. margin: auto;
  78. text-align: right;
  79. div {
  80. opacity: 0.75;
  81. user-select: none;
  82. cursor: pointer;
  83. }
  84. div:hover {
  85. opacity: 1;
  86. }
  87. }
  88. }
  89. div.overlay.notification-overlay {
  90. padding-top: 20%;
  91. div.modal {
  92. text-align: center;
  93. }
  94. }