popup.css 4.8 KB

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