popup.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. z-index: 69;
  41. position: fixed;
  42. margin: 0;
  43. bottom: 1.15rem;
  44. right: 1.15rem;
  45. background: var(--secondary);
  46. border-radius: .25rem;
  47. padding: .25rem .5rem;
  48. }
  49. #advancedToggle {
  50. position: fixed;
  51. background: none;
  52. box-shadow: none;
  53. color: var(--lightGrey);
  54. top: 26px; right: 26px;
  55. padding: 2px;
  56. z-index: 69;
  57. height: 2rem;
  58. width: 2rem;
  59. }
  60. #advancedToggle:hover {
  61. color: var(--white);
  62. transform: rotate(-90deg);
  63. }
  64. #advancedToggle:active {
  65. transform: scale(1.5);
  66. }
  67. #advancedSettings {
  68. opacity: 0;
  69. pointer-events: none;
  70. transition-duration: .15s;
  71. transition-timing-function: ease-in-out;
  72. transform: scale(1.1);
  73. position: fixed;
  74. background: var(--background);
  75. top: 10px; right: 14px;
  76. width: calc(100% - 65px);
  77. height: calc(100% - 58px);
  78. border: 2px solid var(--secondary);
  79. border-radius: 0.5rem;
  80. padding: 1rem;
  81. }
  82. #advancedLegend {
  83. color: var(--tertiary) !important;
  84. /* margin: auto; */ /* Center the label */
  85. /* padding: .25rem .5rem; */
  86. /* border-radius: .25rem; */
  87. /* border: .25rem solid var(--secondary); */
  88. }
  89. /* Switches */
  90. .switch {
  91. position: relative;
  92. display: inline-block;
  93. width: 30px;
  94. height: 17px;
  95. margin-bottom: 1rem;
  96. }
  97. .switch:last-of-type {
  98. margin-bottom: 0;
  99. }
  100. .switch input {
  101. display: none;
  102. }
  103. .slider {
  104. position: absolute;
  105. cursor: pointer;
  106. top: 0;
  107. left: 0;
  108. right: 0;
  109. bottom: 0;
  110. background: var(--secondary);
  111. transition: 0.4s;
  112. border-radius: 34px;
  113. }
  114. .slider:before {
  115. position: absolute;
  116. content: "";
  117. height: 13px;
  118. width: 13px;
  119. left: 2px;
  120. bottom: 2px;
  121. background: var(--lightGrey);
  122. transition: 0.4s;
  123. border-radius: 50%;
  124. }
  125. input:checked + .slider {
  126. background: var(--accent);
  127. }
  128. input:checked + .slider:before {
  129. transform: translateX(13px);
  130. background: var(--primary);
  131. }
  132. .switchLabel {
  133. margin-left: 0.5rem;
  134. width: 250px !important;
  135. transform: translateX(35px);
  136. display: inline-block;
  137. }
  138. #server-status {
  139. height: 72px;
  140. width: 90px;
  141. /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
  142. brightness(96%) contrast(108%); */
  143. }