|
1 | | -/* Styles ONLY for popup.html */ |
| 1 | +:root { |
| 2 | + --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, |
| 3 | + Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; |
| 4 | + --bg-color: #f7f7f8; |
| 5 | + --text-color: #2c2c2e; |
| 6 | + --subtle-text-color: #6a6a6e; |
| 7 | + --primary-color: #007aff; |
| 8 | + --primary-hover-color: #005ec4; |
| 9 | + --container-bg-color: #ffffff; |
| 10 | + --border-color: #e5e5e6; |
| 11 | +} |
| 12 | + |
| 13 | +body.dark-mode { |
| 14 | + --bg-color: #1c1c1e; |
| 15 | + --text-color: #f2f2f7; |
| 16 | + --subtle-text-color: #98989d; |
| 17 | + --primary-color: #0a84ff; |
| 18 | + --primary-hover-color: #389dff; |
| 19 | + --container-bg-color: #2c2c2e; |
| 20 | + --border-color: #3a3a3c; |
| 21 | +} |
| 22 | + |
2 | 23 | body { |
3 | | - font-family: sans-serif; |
4 | | - width: 280px; /* A specific width for the popup window */ |
5 | | - padding: 15px; |
6 | | - background-color: #f7f7f7; |
| 24 | + font-family: var(--font-sans); |
| 25 | + background-color: var(--bg-color); |
| 26 | + color: var(--text-color); |
| 27 | + width: 300px; |
| 28 | + padding: 16px; |
| 29 | + margin: 0; |
| 30 | + transition: background-color 0.2s ease, color 0.2s ease; |
7 | 31 | } |
8 | 32 |
|
9 | 33 | .container { |
10 | 34 | text-align: center; |
11 | 35 | } |
12 | 36 |
|
13 | 37 | h1 { |
14 | | - font-size: 1.3em; /* Restored font size for better look */ |
15 | | - margin-top: 0; |
16 | | - margin-bottom: 10px; |
17 | | - color: #333; |
| 38 | + font-size: 1.4em; |
| 39 | + margin: 0 0 8px 0; |
| 40 | + font-weight: 600; |
18 | 41 | } |
19 | 42 |
|
20 | 43 | p { |
21 | | - font-size: 0.9em; /* Restored font size */ |
22 | | - color: #555; |
23 | | - margin-top: 0; |
| 44 | + font-size: 0.9em; |
| 45 | + color: var(--subtle-text-color); |
| 46 | + margin: 0 0 20px 0; |
24 | 47 | } |
25 | 48 |
|
26 | | -select, |
27 | | -button { |
| 49 | +.select-wrapper { |
| 50 | + position: relative; |
| 51 | +} |
| 52 | + |
| 53 | +select { |
28 | 54 | width: 100%; |
29 | | - padding: 10px; |
30 | | - margin-top: 15px; |
31 | | - box-sizing: border-box; |
32 | | - border-radius: 5px; |
| 55 | + padding: 12px 16px; |
33 | 56 | font-size: 1em; |
| 57 | + background-color: var(--container-bg-color); |
| 58 | + color: var(--text-color); |
| 59 | + border: 1px solid var(--border-color); |
| 60 | + border-radius: 8px; |
| 61 | + -webkit-appearance: none; |
| 62 | + -moz-appearance: none; |
| 63 | + appearance: none; |
| 64 | + cursor: pointer; |
34 | 65 | } |
35 | 66 |
|
36 | | -select { |
37 | | - border: 1px solid #ccc; |
| 67 | +.select-wrapper::after { |
| 68 | + content: "▼"; |
| 69 | + font-size: 0.8em; |
| 70 | + position: absolute; |
| 71 | + top: 50%; |
| 72 | + right: 16px; |
| 73 | + transform: translateY(-50%); |
| 74 | + pointer-events: none; |
| 75 | + color: var(--subtle-text-color); |
38 | 76 | } |
39 | 77 |
|
40 | 78 | button { |
41 | | - background-color: #007bff; |
| 79 | + width: 100%; |
| 80 | + padding: 12px; |
| 81 | + margin-top: 16px; |
| 82 | + background-color: var(--primary-color); |
42 | 83 | color: white; |
43 | 84 | border: none; |
| 85 | + border-radius: 8px; |
44 | 86 | cursor: pointer; |
45 | | - font-weight: bold; |
| 87 | + font-weight: 600; |
| 88 | + font-size: 1em; |
| 89 | + transition: background-color 0.2s ease; |
46 | 90 | } |
47 | 91 |
|
48 | 92 | button:hover { |
49 | | - background-color: #0056b3; |
| 93 | + background-color: var(--primary-hover-color); |
| 94 | +} |
| 95 | + |
| 96 | +.theme-switcher { |
| 97 | + display: flex; |
| 98 | + justify-content: space-between; |
| 99 | + align-items: center; |
| 100 | + margin-top: 24px; |
| 101 | + padding-top: 16px; |
| 102 | + border-top: 1px solid var(--border-color); |
| 103 | +} |
| 104 | + |
| 105 | +.theme-label { |
| 106 | + font-size: 0.9em; |
| 107 | + color: var(--subtle-text-color); |
| 108 | +} |
| 109 | + |
| 110 | +.toggle-switch { |
| 111 | + position: relative; |
| 112 | + display: inline-block; |
| 113 | + width: 50px; |
| 114 | + height: 28px; |
| 115 | +} |
| 116 | + |
| 117 | +.toggle-switch input { |
| 118 | + opacity: 0; |
| 119 | + width: 0; |
| 120 | + height: 0; |
| 121 | +} |
| 122 | + |
| 123 | +.slider { |
| 124 | + position: absolute; |
| 125 | + cursor: pointer; |
| 126 | + top: 0; |
| 127 | + left: 0; |
| 128 | + right: 0; |
| 129 | + bottom: 0; |
| 130 | + background-color: #ccc; |
| 131 | + border-radius: 28px; |
| 132 | + transition: 0.4s; |
| 133 | +} |
| 134 | + |
| 135 | +.slider:before { |
| 136 | + position: absolute; |
| 137 | + content: ""; |
| 138 | + height: 20px; |
| 139 | + width: 20px; |
| 140 | + left: 4px; |
| 141 | + bottom: 4px; |
| 142 | + background-color: white; |
| 143 | + border-radius: 50%; |
| 144 | + transition: 0.4s; |
| 145 | +} |
| 146 | + |
| 147 | +input:checked + .slider { |
| 148 | + background-color: var(--primary-color); |
| 149 | +} |
| 150 | + |
| 151 | +input:checked + .slider:before { |
| 152 | + transform: translateX(22px); |
50 | 153 | } |
0 commit comments