popup.css 2.8 KB

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