popup.css 1.7 KB

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