popup.css 2.6 KB

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