popup.css 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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: 300px;
  17. padding: 0.5em;
  18. font-family: "Roboto", Arial, Helvetica, sans-serif;
  19. font-size: 14px;
  20. }
  21. h1 {
  22. font-size: 26px;
  23. }
  24. button {
  25. color: var(--white);
  26. background: var(--secondary);
  27. cursor: pointer;
  28. padding: 5px 16px;
  29. border: none;
  30. border-radius: 4px;
  31. font-weight: 500;
  32. /* box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%),
  33. 0 1px 10px 0 rgb(0 0 0 / 12%); */
  34. transition: 0.4s;
  35. }
  36. button:hover {
  37. background: #444;
  38. }
  39. #ext-version {
  40. padding: 0.25rem 0.5rem;
  41. }
  42. #ext-update {
  43. cursor: pointer;
  44. color: var(--white);
  45. text-decoration: none;
  46. background: var(--primary);
  47. border-radius: 0.25rem;
  48. }
  49. #ext-update:hover {
  50. text-decoration: underline;
  51. }
  52. #ext {
  53. padding: 0.25rem 0;
  54. z-index: 69;
  55. position: fixed;
  56. background: var(--secondary);
  57. margin: 0;
  58. bottom: 1.15rem;
  59. right: 1.15rem;
  60. border-radius: 0.25rem;
  61. }
  62. .switch:before {
  63. content: attr(data-hover);
  64. visibility: hidden;
  65. opacity: 0;
  66. transition: visibility 0.1s linear, opacity 0.1s linear;
  67. width: 250px;
  68. background-color: var(--secondary);
  69. border-radius: 0.5rem;
  70. padding: 0.5rem;
  71. position: absolute;
  72. z-index: 1;
  73. left: 0;
  74. top: 160%;
  75. }
  76. .switch:hover:before {
  77. visibility: visible;
  78. opacity: 1;
  79. }
  80. .fade-in {
  81. opacity: 1;
  82. animation-name: fadeInOpacity;
  83. animation-iteration-count: 1;
  84. animation-timing-function: ease-in;
  85. animation-duration: 2s;
  86. }
  87. @keyframes fadeInOpacity {
  88. 0% {
  89. opacity: 0;
  90. }
  91. 100% {
  92. opacity: 1;
  93. }
  94. }
  95. #advancedToggle {
  96. position: fixed;
  97. background: none;
  98. box-shadow: none;
  99. color: var(--lightGrey);
  100. top: 26px;
  101. right: 26px;
  102. padding: 2px;
  103. z-index: 69;
  104. height: 2rem;
  105. width: 2rem;
  106. }
  107. #advancedToggle:hover {
  108. color: var(--white);
  109. transform: rotate(-90deg);
  110. }
  111. #advancedToggle:active {
  112. transform: scale(1.5);
  113. }
  114. #advancedSettings {
  115. opacity: 0;
  116. pointer-events: none;
  117. transition-duration: 0.15s;
  118. transition-timing-function: ease-in-out;
  119. transform: scale(1.1);
  120. position: fixed;
  121. background: var(--background);
  122. top: 10px;
  123. right: 14px;
  124. width: calc(100% - 65px);
  125. height: calc(100% - 58px);
  126. border: 2px solid var(--secondary);
  127. border-radius: 0.5rem;
  128. padding: 1rem;
  129. overflow-y: auto;
  130. overflow-x: hidden;
  131. }
  132. ::-webkit-scrollbar {
  133. width: 1rem;
  134. }
  135. ::-webkit-scrollbar-track {
  136. background: #111; /* color of the tracking area */
  137. }
  138. ::-webkit-scrollbar-thumb {
  139. background-color: #333; /* color of the scroll thumb */
  140. border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
  141. border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
  142. border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
  143. border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
  144. }
  145. ::-webkit-scrollbar-thumb:hover {
  146. background-color: #f22; /* color of the scroll thumb */
  147. border-radius: 1rem 0 0 1rem; /* roundness of the scroll thumb */
  148. border-bottom: 0.25rem solid #111; /* creates padding around scroll thumb */
  149. border-left: 0.25rem solid #111; /* creates padding around scroll thumb */
  150. border-top: 0.25rem solid #111; /* creates padding around scroll thumb */
  151. }
  152. #advancedLegend {
  153. color: var(--tertiary) !important;
  154. /* margin: auto; */ /* Center the label */
  155. /* padding: .25rem .5rem; */
  156. /* border-radius: .25rem; */
  157. /* border: .25rem solid var(--secondary); */
  158. }
  159. /* Switches */
  160. .switch {
  161. position: relative;
  162. display: inline-block;
  163. width: 30px;
  164. height: 17px;
  165. margin-bottom: 1rem;
  166. }
  167. .switch:last-of-type {
  168. margin-bottom: 0;
  169. }
  170. .switch input {
  171. display: none;
  172. }
  173. .slider {
  174. position: absolute;
  175. cursor: pointer;
  176. top: 0;
  177. left: 0;
  178. right: 0;
  179. bottom: 0;
  180. background: var(--secondary);
  181. transition: 0.4s;
  182. border-radius: 34px;
  183. }
  184. .slider:before {
  185. position: absolute;
  186. content: "";
  187. height: 13px;
  188. width: 13px;
  189. left: 2px;
  190. bottom: 2px;
  191. background: var(--lightGrey);
  192. transition: 0.4s;
  193. border-radius: 50%;
  194. }
  195. input:checked + .slider {
  196. background: var(--accent);
  197. }
  198. input:checked + .slider:before {
  199. transform: translateX(13px);
  200. background: var(--primary);
  201. }
  202. .switchLabel {
  203. margin-left: 0.5rem;
  204. width: 250px !important;
  205. transform: translateX(35px);
  206. display: inline-block;
  207. }
  208. #server-status {
  209. height: 72px;
  210. width: 90px;
  211. /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
  212. brightness(96%) contrast(108%); */
  213. }
  214. .container {
  215. display: flex;
  216. flex-direction: column;
  217. align-items: center;
  218. }