popup.css 1.9 KB

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