popup.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /* Variables */
  2. :root {
  3. --primary: #cc2929;
  4. --accent: #581111;
  5. --background: #111;
  6. --secondary: #272727;
  7. --tertiary: #333333;
  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. margin-top: 1em;
  41. margin-bottom: 2em;
  42. }
  43. #advancedSettings {
  44. display: none;
  45. border: 2px solid var(--secondary);
  46. border-radius: 0.5rem;
  47. padding: 1rem;
  48. }
  49. #advancedLegend {
  50. color: var(--tertiary) !important;
  51. /* margin: auto; */ /* Center the label */
  52. /* padding: .25rem .5rem; */
  53. /* border-radius: .25rem; */
  54. /* border: .25rem solid var(--secondary); */
  55. }
  56. /* Switches */
  57. .switch {
  58. position: relative;
  59. display: inline-block;
  60. width: 30px;
  61. height: 17px;
  62. margin-bottom: 1rem;
  63. }
  64. .switch:last-of-type {
  65. margin-bottom: 0;
  66. }
  67. .switch input {
  68. display: none;
  69. }
  70. .slider {
  71. position: absolute;
  72. cursor: pointer;
  73. top: 0;
  74. left: 0;
  75. right: 0;
  76. bottom: 0;
  77. background: var(--secondary);
  78. transition: 0.4s;
  79. border-radius: 34px;
  80. }
  81. .slider:before {
  82. position: absolute;
  83. content: "";
  84. height: 13px;
  85. width: 13px;
  86. left: 2px;
  87. bottom: 2px;
  88. background: var(--lightGrey);
  89. transition: 0.4s;
  90. border-radius: 50%;
  91. }
  92. input:checked + .slider {
  93. background: var(--accent);
  94. }
  95. input:checked + .slider:before {
  96. transform: translateX(13px);
  97. background: var(--primary);
  98. }
  99. .switchLabel {
  100. margin-left: 0.5rem;
  101. width: 250px !important;
  102. transform: translateX(35px);
  103. display: inline-block;
  104. }
  105. #server-status {
  106. height: 72px;
  107. width: 90px;
  108. /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
  109. brightness(96%) contrast(108%); */
  110. }