|
27 | 27 |
|
28 | 28 | #bg-selector {
|
29 | 29 | outline: none;
|
30 |
| - font-size: 14px; |
| 30 | + font-size: 12px; |
31 | 31 | color: #fff;
|
32 |
| - text-shadow: 2px 2px 4px rgba(50, 50, 100, 0.5); |
33 |
| - padding: 6px 20px 6px 10px; |
34 |
| - border: none; |
35 |
| - border-radius: 6px; |
36 |
| - background: transparent; |
| 32 | + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); |
| 33 | + padding: 4px 16px 4px 8px; |
| 34 | + border: 1px solid rgba(255, 255, 255, 0.2); |
| 35 | + border-radius: 4px; |
| 36 | + background: rgba(0, 0, 0, 0.1); |
37 | 37 | appearance: none;
|
| 38 | + min-width: 80px; |
| 39 | + cursor: pointer; |
| 40 | + transition: all 0.2s ease; |
| 41 | + opacity: 0.7; |
| 42 | + } |
| 43 | + |
| 44 | + #bg-selector:hover { |
| 45 | + background: rgba(0, 0, 0, 0.2); |
| 46 | + border-color: rgba(255, 255, 255, 0.3); |
| 47 | + opacity: 1; |
38 | 48 | }
|
39 |
| - .selector-container::after { |
| 49 | + .select-wrapper { |
| 50 | + position: relative; |
| 51 | + } |
| 52 | + |
| 53 | + .select-wrapper::after { |
40 | 54 | content: "▽";
|
41 | 55 | color: #fff;
|
42 |
| - text-shadow: 2px 2px 4px rgba(50, 50, 100, 0.5); |
| 56 | + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); |
43 | 57 | position: absolute;
|
44 |
| - right: 8px; |
| 58 | + right: 6px; |
45 | 59 | top: 50%;
|
46 | 60 | transform: translateY(-50%);
|
47 | 61 | pointer-events: none;
|
| 62 | + font-size: 10px; |
| 63 | + opacity: 0.7; |
48 | 64 | }
|
49 | 65 |
|
50 |
| - .selector-container { |
| 66 | + #bottom-ui-container { |
51 | 67 | position: fixed;
|
52 |
| - top: 16px; |
53 |
| - right: 16px; |
| 68 | + bottom: 35px; |
| 69 | + left: 30px; |
| 70 | + display: flex; |
| 71 | + flex-direction: column; |
| 72 | + align-items: flex-start; |
| 73 | + gap: 12px; |
| 74 | + visibility: hidden; |
| 75 | + opacity: 0; |
| 76 | + transition: all 0.3s ease-in-out; |
| 77 | + transform: translateY(10px); |
| 78 | + } |
| 79 | + |
| 80 | + #bottom-ui-container.visible { |
| 81 | + visibility: visible; |
| 82 | + opacity: 1; |
| 83 | + transform: translateY(0); |
| 84 | + } |
| 85 | + |
| 86 | + .selector-container { |
| 87 | + position: relative; |
| 88 | + display: flex; |
| 89 | + align-items: center; |
| 90 | + gap: 8px; |
54 | 91 | }
|
55 | 92 |
|
56 | 93 | #bg-description {
|
57 |
| - position: fixed; |
58 |
| - bottom: 16px; |
59 |
| - left: 26px; |
60 | 94 | display: flex;
|
61 | 95 | align-items: flex-start;
|
62 |
| - gap: 6px; |
| 96 | + gap: 4px; |
63 | 97 | cursor: pointer;
|
64 | 98 | text-decoration: none;
|
65 | 99 | font-size: 14px;
|
|
69 | 103 | 0 0 12px rgba(0, 0, 0, 0.5),
|
70 | 104 | 1px 1px 2px rgba(0, 0, 0, 0.6);
|
71 | 105 | line-height: 1.4;
|
72 |
| - max-width: 400px; |
| 106 | + max-width: 600px; |
73 | 107 | }
|
74 | 108 |
|
75 | 109 | .bg-content {
|
76 | 110 | flex: 1;
|
| 111 | + display: flex; |
| 112 | + flex-direction: column; |
| 113 | + gap: 4px; |
| 114 | + min-width: 0; |
| 115 | + } |
| 116 | + |
| 117 | + .content-row { |
| 118 | + display: flex; |
| 119 | + align-items: center; |
| 120 | + gap: 6px; |
| 121 | + min-width: 0; |
| 122 | + } |
| 123 | + |
| 124 | + .title-part { |
| 125 | + flex: 1; |
| 126 | + white-space: nowrap; |
| 127 | + overflow: hidden; |
| 128 | + text-overflow: ellipsis; |
| 129 | + margin-right: 8px; |
| 130 | + } |
| 131 | + |
| 132 | + .date-part { |
| 133 | + flex-shrink: 0; |
| 134 | + white-space: nowrap; |
77 | 135 | }
|
78 | 136 |
|
79 | 137 | .refresh-btn {
|
80 | 138 | display: none;
|
81 | 139 | width: 24px;
|
82 | 140 | height: 24px;
|
83 | 141 | border: none;
|
84 |
| - background: none; |
| 142 | + background: rgba(255, 255, 255, 0.1); |
| 143 | + border-radius: 50%; |
85 | 144 | cursor: pointer;
|
86 | 145 | color: #fff;
|
87 | 146 | font-size: 16px;
|
88 |
| - text-shadow: |
89 |
| - 0 0 6px rgba(0, 0, 0, 0.7), |
90 |
| - 0 0 12px rgba(0, 0, 0, 0.5), |
91 |
| - 1px 1px 2px rgba(0, 0, 0, 0.6); |
92 |
| - transition: transform 0.2s ease; |
| 147 | + text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); |
| 148 | + transition: all 0.3s ease; |
93 | 149 | flex-shrink: 0;
|
94 |
| - margin-top: 0px; |
95 |
| - opacity: 0.8; |
| 150 | + opacity: 0.6; |
| 151 | + padding: 0; |
| 152 | + margin: 0; |
| 153 | + backdrop-filter: blur(10px); |
| 154 | + border: 1px solid rgba(255, 255, 255, 0.1); |
| 155 | + align-items: center; |
| 156 | + justify-content: center; |
96 | 157 | }
|
97 | 158 |
|
98 | 159 | .refresh-btn:hover {
|
99 | 160 | transform: rotate(180deg);
|
100 | 161 | opacity: 1;
|
| 162 | + background: rgba(255, 255, 255, 0.2); |
| 163 | + border-color: rgba(255, 255, 255, 0.2); |
| 164 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); |
101 | 165 | }
|
102 | 166 |
|
103 | 167 | .refresh-btn.show {
|
104 |
| - display: flex; |
| 168 | + display: flex !important; |
105 | 169 | align-items: center;
|
106 | 170 | justify-content: center;
|
107 | 171 | }
|
108 | 172 |
|
109 |
| - .selector-container { |
110 |
| - visibility: hidden; |
111 |
| - opacity: 0; |
112 |
| - transition: all 0.3s ease-in-out; |
113 |
| - transform: translateY(-10px); |
114 |
| - } |
115 |
| - |
116 |
| - .selector-container.visible { |
117 |
| - visibility: visible; |
118 |
| - opacity: 1; |
119 |
| - transform: translateY(0); |
120 |
| - } |
121 | 173 |
|
122 |
| - #bg-description { |
123 |
| - visibility: visible; |
124 |
| - opacity: 1; |
125 |
| - transition: all 0.3s ease-in-out; |
126 |
| - transform: translateY(0); |
127 |
| - } |
128 | 174 |
|
129 | 175 | @media (prefers-color-scheme: light) {
|
130 | 176 | body.blank #bg-description,
|
|
134 | 180 | text-shadow: none;
|
135 | 181 | }
|
136 | 182 |
|
| 183 | + body.blank #bg-selector { |
| 184 | + background: rgba(255, 255, 255, 0.1); |
| 185 | + border-color: rgba(0, 0, 0, 0.2); |
| 186 | + color: #333; |
| 187 | + } |
| 188 | + |
| 189 | + body.blank #bg-selector:hover { |
| 190 | + border-color: rgba(0, 0, 0, 0.3); |
| 191 | + } |
| 192 | + |
| 193 | + body.blank .select-wrapper::after { |
| 194 | + color: #333; |
| 195 | + } |
| 196 | + |
137 | 197 | body.blank .refresh-btn {
|
138 | 198 | color: #333;
|
139 | 199 | text-shadow: none;
|
| 200 | + background: rgba(0, 0, 0, 0.05); |
| 201 | + border-color: rgba(0, 0, 0, 0.1); |
| 202 | + } |
| 203 | + |
| 204 | + body.blank .refresh-btn:hover { |
| 205 | + background: rgba(0, 0, 0, 0.1); |
| 206 | + border-color: rgba(0, 0, 0, 0.15); |
140 | 207 | }
|
141 | 208 | }
|
142 | 209 | </style>
|
143 | 210 | </head>
|
144 | 211 | <body>
|
145 |
| - <div class="selector-container"> |
146 |
| - <select id="bg-selector"> |
147 |
| - <option value="bing">黑白艺术</option> |
148 |
| - <option value="blank">空白页面</option> |
149 |
| - <option value="random">潮流周刊</option> |
150 |
| - </select> |
| 212 | + <div id="bottom-ui-container"> |
| 213 | + <div class="selector-container"> |
| 214 | + <div class="select-wrapper"> |
| 215 | + <select id="bg-selector"> |
| 216 | + <option value="bing">必应壁纸</option> |
| 217 | + <option value="pexels">黑白艺术</option> |
| 218 | + <option value="random">潮流周刊</option> |
| 219 | + <option value="blank">空白页面</option> |
| 220 | + </select> |
| 221 | + </div> |
| 222 | + <button class="refresh-btn" id="refresh-btn" title="刷新内容">⟲</button> |
| 223 | + </div> |
| 224 | + <a id="bg-description"> |
| 225 | + <div class="bg-content"></div> |
| 226 | + </a> |
151 | 227 | </div>
|
152 |
| - <a id="bg-description"> |
153 |
| - <div class="bg-content"></div> |
154 |
| - <button class="refresh-btn" id="refresh-btn" title="刷新内容">⟲</button> |
155 |
| - </a> |
156 | 228 | <script src="newtab.js"></script>
|
157 | 229 | </body>
|
158 | 230 | </html>
|
0 commit comments