popup.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. /* Variables */
  2. :root {
  3. --primary: #cc2929;
  4. --accent: #581111;
  5. --background: #111;
  6. --secondary: #272727;
  7. --tertiary: #424242;
  8. --lightGrey: #999;
  9. --white: #fff;
  10. }
  11. /* Window Styling */
  12. html,
  13. body {
  14. background-color: var(--background);
  15. color: var(--white);
  16. min-width: 310px;
  17. min-height: 350px;
  18. padding: 0.5em;
  19. font-family: "Roboto", Arial, Helvetica, sans-serif;
  20. font-size: 14px;
  21. }
  22. h1 {
  23. font-size: 26px;
  24. }
  25. button {
  26. color: var(--white);
  27. background: var(--secondary);
  28. cursor: pointer;
  29. padding: 5px 16px;
  30. border: none;
  31. border-radius: 4px;
  32. font-weight: 500;
  33. /* box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%),
  34. 0 1px 10px 0 rgb(0 0 0 / 12%); */
  35. transition: 0.4s;
  36. }
  37. button:hover {
  38. background: #444;
  39. }
  40. #ext-version {
  41. padding: 0.25rem 0.5rem;
  42. }
  43. #ext-update {
  44. cursor: pointer;
  45. color: var(--white);
  46. text-decoration: none;
  47. background: var(--primary);
  48. border-radius: 0.25rem;
  49. }
  50. #ext-update:hover {
  51. text-decoration: underline;
  52. }
  53. #ext {
  54. padding: 0.25rem 0;
  55. z-index: 69;
  56. position: fixed;
  57. background: var(--secondary);
  58. margin: 0;
  59. bottom: 1.15rem;
  60. right: 1.15rem;
  61. border-radius: 0.25rem;
  62. }
  63. .switch:before {
  64. content: attr(data-hover);
  65. visibility: hidden;
  66. width: 250px;
  67. background-color: var(--secondary);
  68. border-radius: 0.5rem;
  69. padding: 0.5rem;
  70. position: absolute;
  71. z-index: 1;
  72. left: 0;
  73. top: 160%;
  74. }
  75. .switch:hover:before {
  76. visibility: visible;
  77. }
  78. #advancedToggle {
  79. position: fixed;
  80. background: none;
  81. box-shadow: none;
  82. color: var(--lightGrey);
  83. top: 26px;
  84. right: 26px;
  85. padding: 2px;
  86. z-index: 69;
  87. height: 2rem;
  88. width: 2rem;
  89. }
  90. #advancedToggle:hover {
  91. color: var(--white);
  92. transform: rotate(-90deg);
  93. }
  94. #advancedToggle:active {
  95. transform: scale(1.5);
  96. }
  97. #advancedSettings {
  98. opacity: 0;
  99. pointer-events: none;
  100. transition-duration: 0.15s;
  101. transition-timing-function: ease-in-out;
  102. transform: scale(1.1);
  103. position: fixed;
  104. background: var(--background);
  105. top: 10px;
  106. right: 14px;
  107. width: calc(100% - 65px);
  108. height: calc(100% - 58px);
  109. border: 2px solid var(--secondary);
  110. border-radius: 0.5rem;
  111. padding: 1rem;
  112. }
  113. #advancedLegend {
  114. color: var(--tertiary) !important;
  115. /* margin: auto; */ /* Center the label */
  116. /* padding: .25rem .5rem; */
  117. /* border-radius: .25rem; */
  118. /* border: .25rem solid var(--secondary); */
  119. }
  120. /* Switches */
  121. .switch {
  122. position: relative;
  123. display: inline-block;
  124. width: 30px;
  125. height: 17px;
  126. margin-bottom: 1rem;
  127. }
  128. .switch:last-of-type {
  129. margin-bottom: 0;
  130. }
  131. .switch input {
  132. display: none;
  133. }
  134. .slider {
  135. position: absolute;
  136. cursor: pointer;
  137. top: 0;
  138. left: 0;
  139. right: 0;
  140. bottom: 0;
  141. background: var(--secondary);
  142. transition: 0.4s;
  143. border-radius: 34px;
  144. }
  145. .slider:before {
  146. position: absolute;
  147. content: "";
  148. height: 13px;
  149. width: 13px;
  150. left: 2px;
  151. bottom: 2px;
  152. background: var(--lightGrey);
  153. transition: 0.4s;
  154. border-radius: 50%;
  155. }
  156. input:checked + .slider {
  157. background: var(--accent);
  158. }
  159. input:checked + .slider:before {
  160. transform: translateX(13px);
  161. background: var(--primary);
  162. }
  163. .switchLabel {
  164. margin-left: 0.5rem;
  165. width: 250px !important;
  166. transform: translateX(35px);
  167. display: inline-block;
  168. }
  169. #server-status {
  170. height: 72px;
  171. width: 90px;
  172. /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
  173. brightness(96%) contrast(108%); */
  174. }
  175. .container {
  176. display: flex;
  177. flex-direction: column;
  178. align-items: center;
  179. }