popup.css 3.3 KB

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