Repository navigation
Expand file tree
/
Copy pathrulebuilder.css
More file actions
132 lines (118 loc) · 3.75 KB
/
Copy pathrulebuilder.css
File metadata and controls
132 lines (118 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
:root {
--bg: #ffffff;
--bg-subtle: #f5f5f7;
--bg-hover: #ececef;
--text: #1c1c1e;
--text-muted: #6b6b70;
--border: #e5e5e7;
--accent: #5b5bd6;
--accent-text: #ffffff;
--danger: #d6455b;
--radius: 10px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #1e1e20;
--bg-subtle: #2a2a2d;
--bg-hover: #333338;
--text: #f2f2f3;
--text-muted: #9a9a9e;
--border: #38383b;
--accent: #7b7bf0;
--accent-text: #0c0c0d;
}
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
background: var(--bg);
color: var(--text);
font-size: 13px;
}
.page { padding: 18px 20px 20px; }
.rb-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.logo { width: 34px; height: 34px; flex-shrink: 0; }
h1 { font-size: 15px; margin: 0; }
.rb-domain { font-size: 12px; font-weight: 600; color: var(--accent); margin: 2px 0 0; }
.rb-hint { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; margin: 10px 0 16px; }
.btn {
border: none;
border-radius: 8px;
padding: 7px 14px;
font-size: 12.5px;
font-weight: 500;
cursor: pointer;
font-family: inherit;
display: inline-flex;
align-items: center;
gap: 6px;
transition: background 0.12s ease, color 0.12s ease, filter 0.12s ease;
}
.btn.primary { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--bg-subtle); color: var(--text-muted); }
.btn.secondary:hover { background: var(--bg-hover); color: var(--text); }
.rb-detect-row, .rb-test-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
flex-wrap: wrap;
}
.rb-status { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.rb-status.ok { color: #2e9a52; }
.rb-status.warn { color: #c98a1f; }
.rb-status.error { color: var(--danger); }
.candidates { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; max-height: 160px; overflow-y: auto; }
.candidate-card {
display: block;
width: 100%;
text-align: left;
border: 1px solid var(--border);
background: var(--bg-subtle);
color: var(--text);
border-radius: 8px;
padding: 8px 10px;
cursor: pointer;
font-family: inherit;
transition: border-color 0.12s ease, background 0.12s ease;
}
.candidate-card:hover { background: var(--bg-hover); }
.candidate-card.selected { border-color: var(--accent); background: var(--bg-hover); }
.candidate-label { font-size: 12.5px; font-weight: 500; }
.candidate-preview {
font-size: 11.5px;
color: var(--text-muted);
font-family: ui-monospace, "SF Mono", Menlo, monospace;
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.rb-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px 14px;
margin-bottom: 14px;
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.field-label .req { font-weight: 400; font-size: 9px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; margin-left: 4px; }
.field input, .field select {
width: 100%;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text);
border-radius: 7px;
padding: 7px 9px;
font-size: 12.5px;
font-family: inherit;
transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field select { cursor: pointer; }
.form-error { font-size: 12px; color: var(--danger); margin-bottom: 12px; }
.form-error.hidden { display: none; }
.rb-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rb-actions-buttons { display: flex; gap: 8px; }