popup.css 2.0 KB

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