popup.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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: .25rem .5rem;
  41. }
  42. #ext-update {
  43. cursor: pointer;
  44. color: var(--white);
  45. text-decoration: none;
  46. background: var(--primary);
  47. border-radius: .25rem;
  48. }
  49. #ext-update:hover {
  50. text-decoration: underline;
  51. }
  52. #ext {
  53. padding: .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: .25rem;
  61. }
  62. .switch::before {
  63. content: attr(data-hover);
  64. visibility: hidden;
  65. opacity: 0;
  66. width: 250px;
  67. background-color: var(--secondary);
  68. border-radius: .5rem;
  69. padding: .25rem .5rem;
  70. transition: opacity .2 ease-in-out;
  71. position: absolute;
  72. z-index: 1;
  73. left: 0;
  74. top: 160%;
  75. }
  76. .switch:hover::before {
  77. opacity: 1;
  78. visibility: visible;
  79. }
  80. #advancedToggle {
  81. position: fixed;
  82. background: none;
  83. box-shadow: none;
  84. color: var(--lightGrey);
  85. top: 26px; right: 26px;
  86. padding: 2px;
  87. z-index: 69;
  88. height: 2rem;
  89. width: 2rem;
  90. }
  91. #advancedToggle:hover {
  92. color: var(--white);
  93. transform: rotate(-90deg);
  94. }
  95. #advancedToggle:active {
  96. transform: scale(1.5);
  97. }
  98. #advancedSettings {
  99. opacity: 0;
  100. pointer-events: none;
  101. transition-duration: .15s;
  102. transition-timing-function: ease-in-out;
  103. transform: scale(1.1);
  104. position: fixed;
  105. background: var(--background);
  106. top: 10px; 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. }