popup.css 1.8 KB

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