popup.css 1.8 KB

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