popup.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /* Variables */
  2. :root {
  3. --primary: #CC2929;
  4. --accent: #581111;
  5. --background: #111;
  6. --secondary: #272727;
  7. --lightGrey: #999;
  8. --white: #fff;
  9. }
  10. /* Window Styling */
  11. html,body {
  12. background-color: var(--background);
  13. color: var(--white);
  14. min-width: 300px;
  15. padding: 0.5em;
  16. font-family: Arial, Helvetica, sans-serif;
  17. font-size: 14px;
  18. }
  19. h1 {
  20. font-size: 26px;
  21. }
  22. button {
  23. color: var(--white);
  24. background: var(--secondary);
  25. cursor: pointer;
  26. padding: 5px 16px;
  27. border: none;
  28. border-radius: 4px;
  29. font-weight: 500;
  30. box-shadow: 0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%);
  31. }
  32. #advancedToggle {
  33. margin-top: 1em;
  34. margin-bottom: 2em;
  35. }
  36. #advancedSettings {
  37. display: none;
  38. border: 2px solid var(--secondary);
  39. border-radius: 4px;
  40. padding: 0.5em;
  41. }
  42. /* Switches */
  43. .switch {
  44. position: relative;
  45. display: inline-block;
  46. width: 30px;
  47. height: 17px;
  48. margin-bottom: 0.5em;
  49. }
  50. .switch input {
  51. display: none;
  52. }
  53. .slider {
  54. position: absolute;
  55. cursor: pointer;
  56. top: 0;
  57. left: 0;
  58. right: 0;
  59. bottom: 0;
  60. background: var(--secondary);
  61. transition: .4s;
  62. border-radius: 34px;
  63. }
  64. .slider:before {
  65. position: absolute;
  66. content: '';
  67. height: 13px;
  68. width: 13px;
  69. left: 2px;
  70. bottom: 2px;
  71. background: var(--lightGrey);
  72. transition: .4s;
  73. border-radius: 50%;
  74. }
  75. input:checked+.slider {
  76. background: var(--accent);
  77. }
  78. input:checked+.slider:before {
  79. transform: translateX(13px);
  80. background: var(--primary);
  81. }
  82. .switchLabel {
  83. width: 250px !important;
  84. transform: translateX(35px);
  85. display: inline-block;
  86. }