popup.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. width: 250px;
  66. background-color: var(--secondary);
  67. border-radius: 0.5rem;
  68. padding: 0.5rem;
  69. position: absolute;
  70. z-index: 1;
  71. left: 0;
  72. top: 160%;
  73. }
  74. .switch:hover:before {
  75. visibility: visible;
  76. }
  77. #advancedToggle {
  78. position: fixed;
  79. background: none;
  80. box-shadow: none;
  81. color: var(--lightGrey);
  82. top: 26px;
  83. right: 26px;
  84. padding: 2px;
  85. z-index: 69;
  86. height: 2rem;
  87. width: 2rem;
  88. }
  89. #advancedToggle:hover {
  90. color: var(--white);
  91. transform: rotate(-90deg);
  92. }
  93. #advancedToggle:active {
  94. transform: scale(1.5);
  95. }
  96. #advancedSettings {
  97. opacity: 0;
  98. pointer-events: none;
  99. transition-duration: 0.15s;
  100. transition-timing-function: ease-in-out;
  101. transform: scale(1.1);
  102. position: fixed;
  103. background: var(--background);
  104. top: 10px;
  105. right: 14px;
  106. width: calc(100% - 65px);
  107. height: calc(100% - 58px);
  108. border: 2px solid var(--secondary);
  109. border-radius: 0.5rem;
  110. padding: 1rem;
  111. }
  112. #advancedLegend {
  113. color: var(--tertiary) !important;
  114. /* margin: auto; */ /* Center the label */
  115. /* padding: .25rem .5rem; */
  116. /* border-radius: .25rem; */
  117. /* border: .25rem solid var(--secondary); */
  118. }
  119. /* Switches */
  120. .switch {
  121. position: relative;
  122. display: inline-block;
  123. width: 30px;
  124. height: 17px;
  125. margin-bottom: 1rem;
  126. }
  127. .switch:last-of-type {
  128. margin-bottom: 0;
  129. }
  130. .switch input {
  131. display: none;
  132. }
  133. .slider {
  134. position: absolute;
  135. cursor: pointer;
  136. top: 0;
  137. left: 0;
  138. right: 0;
  139. bottom: 0;
  140. background: var(--secondary);
  141. transition: 0.4s;
  142. border-radius: 34px;
  143. }
  144. .slider:before {
  145. position: absolute;
  146. content: "";
  147. height: 13px;
  148. width: 13px;
  149. left: 2px;
  150. bottom: 2px;
  151. background: var(--lightGrey);
  152. transition: 0.4s;
  153. border-radius: 50%;
  154. }
  155. input:checked + .slider {
  156. background: var(--accent);
  157. }
  158. input:checked + .slider:before {
  159. transform: translateX(13px);
  160. background: var(--primary);
  161. }
  162. .switchLabel {
  163. margin-left: 0.5rem;
  164. width: 250px !important;
  165. transform: translateX(35px);
  166. display: inline-block;
  167. }
  168. #server-status {
  169. height: 72px;
  170. width: 90px;
  171. /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
  172. brightness(96%) contrast(108%); */
  173. }