Files
proxy-switcher/popup.css
2025-08-12 22:49:47 +08:00

159 lines
2.9 KiB
CSS

:root {
--bg: #ffffff;
--card: #f8fafc;
--text: #0f172a;
--muted: #64748b;
--line: #e2e8f0;
--accent: #6366f1;
--accent-2: #3b82f6;
--focus: rgba(99, 102, 241, 0.35);
--shadow: 0 6px 20px rgba(2, 6, 23, 0.06), 0 1px 3px rgba(2, 6, 23, 0.06);
--radius: 12px;
--radius-sm: 10px;
--ring: 0 0 0 3px var(--focus);
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
background: var(--bg);
color: var(--text);
}
body {
font: 13px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.popup {
width: 340px;
max-width: 380px;
min-width: 320px;
padding: 14px 14px 12px;
}
.header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.title {
display: flex;
align-items: center;
gap: 8px;
}
.title h1 {
font-size: 14px;
margin: 0;
font-weight: 600;
}
.logo {
width: 18px;
height: 18px;
border-radius: 6px;
background: linear-gradient(135deg, var(--accent), var(--accent-2));
box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}
/* 移除未使用的标签页样式 */
.main {
display: grid;
gap: 12px;
}
.row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.field {
display: grid;
gap: 6px;
}
.field-label {
font-size: 12px;
color: var(--muted);
}
.hint {
color: var(--muted);
font-size: 12px;
}
select,
input[type="text"],
input[type="number"] {
padding: 6px 8px;
font-size: 12px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.text-btn {
border: 0;
background: transparent;
color: var(--accent);
font-weight: 600;
cursor: pointer;
padding: 6px 8px;
border-radius: 8px;
}
.text-btn:hover {
background: rgba(99, 102, 241, 0.1);
}
.text-btn:focus-visible {
outline: none;
box-shadow: var(--ring);
}
/* 自定义下拉包装 */
.select {
position: relative;
display: inline-flex;
align-items: center;
background: #fff;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
padding: 0;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.select:focus-within {
border-color: var(--accent);
box-shadow: var(--ring);
}
.select select {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border: 0;
outline: none;
padding: 6px 26px 6px 8px;
background: transparent;
font-size: 12px;
}
.select .chevron {
position: absolute;
right: 8px;
color: var(--muted);
pointer-events: none;
transition: transform 0.2s ease, color 0.2s ease;
}
.select.open .chevron {
color: var(--accent);
transform: translateY(1px) rotate(180deg);
}
/* 移除未使用的 Quick Save 样式 */
/* 移除未使用的按钮/状态样式 */
/* 移除未使用的 Toast 样式 */
/* 移除未使用的动画 */