popup.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: 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. }
  35. #advancedToggle {
  36. margin-top: 1em;
  37. margin-bottom: 2em;
  38. }
  39. #advancedSettings {
  40. display: none;
  41. border: 2px solid var(--secondary);
  42. border-radius: 0.5rem;
  43. padding: 1rem;
  44. }
  45. #advancedLegend {
  46. color: var(--tertiary) !important;
  47. /* margin: auto; */ /* Center the label */
  48. /* padding: .25rem .5rem; */
  49. /* border-radius: .25rem; */
  50. /* border: .25rem solid var(--secondary); */
  51. }
  52. /* Switches */
  53. .switch {
  54. position: relative;
  55. display: inline-block;
  56. width: 30px;
  57. height: 17px;
  58. margin-bottom: 1rem;
  59. }
  60. .switch:last-of-type {
  61. margin-bottom: 0;
  62. }
  63. .switch input {
  64. display: none;
  65. }
  66. .slider {
  67. position: absolute;
  68. cursor: pointer;
  69. top: 0;
  70. left: 0;
  71. right: 0;
  72. bottom: 0;
  73. background: var(--secondary);
  74. transition: 0.4s;
  75. border-radius: 34px;
  76. }
  77. .slider:before {
  78. position: absolute;
  79. content: "";
  80. height: 13px;
  81. width: 13px;
  82. left: 2px;
  83. bottom: 2px;
  84. background: var(--lightGrey);
  85. transition: 0.4s;
  86. border-radius: 50%;
  87. }
  88. input:checked + .slider {
  89. background: var(--accent);
  90. }
  91. input:checked + .slider:before {
  92. transform: translateX(13px);
  93. background: var(--primary);
  94. }
  95. .switchLabel {
  96. margin-left: 0.5rem;
  97. width: 250px !important;
  98. transform: translateX(35px);
  99. display: inline-block;
  100. }