popup.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. 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. button:hover {
  33. background: #444;
  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: 4px;
  43. padding: 0.5em;
  44. margin-right: 1em; /* FIREFOX ONLY */
  45. }
  46. /* Switches */
  47. .switch {
  48. position: relative;
  49. display: inline-block;
  50. width: 30px;
  51. height: 17px;
  52. margin-bottom: 0.5em;
  53. }
  54. .switch input {
  55. display: none;
  56. }
  57. .slider {
  58. position: absolute;
  59. cursor: pointer;
  60. top: 0;
  61. left: 0;
  62. right: 0;
  63. bottom: 0;
  64. background: var(--secondary);
  65. transition: .4s;
  66. border-radius: 34px;
  67. }
  68. .slider:before {
  69. position: absolute;
  70. content: '';
  71. height: 13px;
  72. width: 13px;
  73. left: 2px;
  74. bottom: 2px;
  75. background: var(--lightGrey);
  76. transition: .4s;
  77. border-radius: 50%;
  78. }
  79. input:checked+.slider {
  80. background: var(--accent);
  81. }
  82. input:checked+.slider:before {
  83. transform: translateX(13px);
  84. background: var(--primary);
  85. }
  86. .switchLabel {
  87. width: 250px !important;
  88. transform: translateX(35px);
  89. display: inline-block;
  90. }