popup.css 4.9 KB

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