Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
191 lines (181 loc) · 10.9 KB
/
Copy pathstyles.css
File metadata and controls
191 lines (181 loc) · 10.9 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
:root {
--page: #f6f7fa;
--surface: #fff;
--ink: #1d2941;
--muted: #536278;
--line: #e0e5ec;
--accent: #3459d9;
--accent-soft: #edf1ff;
font: 14px/1.5 "Segoe UI", Arial, sans-serif;
color: var(--ink);
background: var(--page);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 10px; top: -100px; z-index: 2; background: white; padding: 8px 12px; }
.skip-link:focus { top: 10px; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
position: sticky;
top: 0;
height: 100vh;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 28px;
padding: 32px 20px 24px;
background: #fcfbf7;
border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.6px; text-decoration: none; }
.main-nav { display: grid; gap: 5px; }
.nav-button { border: 0; border-radius: 7px; background: transparent; color: var(--muted); padding: 12px; text-align: left; font-weight: 600; }
.nav-button:hover { background: #f0f1f3; }
.nav-button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.library-card { border-top: 1px solid var(--line); padding: 20px 12px 0; }
.library-card h2 { font-size: 13px; }
.library-card p { margin-top: 4px; color: var(--muted); font-size: 12px; }
#help-button { margin-top: auto; align-self: flex-start; }
.main-shell { min-width: 0; width: 100%; max-width: 1600px; margin-inline: auto; padding: 36px clamp(20px, 3vw, 52px); }
.page-header, .panel-header, .preview-footer, .match-heading, .match-pages {
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.page-header { margin-bottom: 26px; }
h1 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
#view-subtitle { color: var(--muted); margin-top: 6px; }
.top-actions, .dialog-actions, .toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr); gap: 22px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.panel-header, .panel-body, .panel-footer, .duplicate-review { padding: 18px 22px; }
.panel-header, .toolbar, .duplicate-review { border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3, .panel-title { font-size: 16px; line-height: 1.4; letter-spacing: -.02em; }
.panel-subtitle { margin-top: 3px; }
.panel-footer, .export-options { border-top: 1px solid var(--line); }
.toolbar { padding: 13px 22px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 5px; color: #435579; background: #eff2f8; font-size: 12px; font-weight: 600; }
.button, .icon-button {
display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent;
border-radius: 7px; background: white; padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.primary { color: white; background: var(--accent); }
.primary:hover:enabled { background: #2546b9; }
.secondary { color: #475772; border-color: #d4dae4; }
.ghost, .icon-button { color: var(--muted); background: transparent; }
.secondary:hover:enabled, .ghost:hover:enabled, .icon-button:hover:enabled { color: var(--accent); background: var(--accent-soft); }
.danger { border-color: #e3bfc3; color: #a42d39; }
.small { padding: 6px 10px; font-size: 12px; }
.full-width { width: 100%; }
.icon-button { width: 27px; height: 27px; padding: 0; font-size: 16px; }
.search-input, .select { min-width: 0; width: 100%; padding: 9px 11px; border: 1px solid #cfd7e4; border-radius: 7px; background: white; font-size: 13px; }
.search-input { flex: 1 1 150px; background: #fafbfd; }
.field, .field-label, .field-hint { display: block; }
.field { margin-bottom: 16px; }
.field-label { margin-bottom: 5px; font-weight: 600; font-size: 13px; }
.field-hint, .footer-note, .panel-subtitle { font-size: 12px; color: var(--muted); }
.field-hint { margin-top: 6px; }
.export-options > .field-hint { margin-top: 0; }
.check-field { display: flex; align-items: baseline; gap: 8px; margin: 12px 0; }
input[type="checkbox"] { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.tree, .selection-list { padding: 10px; overflow: auto; }
.library-tree { min-height: 320px; max-height: max(380px, calc(100vh - 325px)); }
.incoming-tree, .selection-list { max-height: 410px; }
.tree-row {
display: flex; align-items: center; gap: 8px; min-height: 40px; border-radius: 6px;
padding: 5px 8px 5px calc(5px + var(--depth, 0) * 18px);
}
.tree-row:hover { background: #f6f7fc; }
.tree-row.is-selected { background: #f0f3ff; }
.tree-toggle, .tree-toggle-spacer { flex: 0 0 18px; width: 18px; }
.tree-toggle { padding: 0; background: transparent; border: 0; color: var(--muted); font-size: 16px; }
.tree-icon, .empty-icon, .upload-icon { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; }
.tree-icon { width: 20px; height: 20px; color: #aa7a2c; }
.site-icon { border-radius: 5px; background: #e6ebf5; color: #4f6180; font-size: 11px; font-weight: 600; }
.tree-content { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1; }
.tree-title, .tree-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-title { font-size: 13px; }
.tree-url, .tree-meta { color: var(--muted); font-size: 11px; }
.tree-meta, .row-actions { flex-shrink: 0; }
.row-actions { display: inline-flex; margin-left: auto; }
.selection-list .tree-row { padding-left: calc(4px + var(--depth, 0) * 12px); gap: 5px; }
.selection-list .tree-url, .selection-list .tree-toggle-spacer { display: none; }
.empty-state { padding: 36px 18px; color: var(--muted); text-align: center; }
.empty-state p + .button { margin-top: 12px; }
.empty-icon, .upload-icon { width: 38px; height: 38px; margin-bottom: 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.drop-zone { display: grid; justify-items: center; gap: 4px; width: calc(100% - 40px); margin: 20px; padding: 36px 16px; color: var(--muted); border: 1px dashed #afbcd6; background: #fafbff; border-radius: 10px; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone strong { color: var(--ink); font-size: 16px; }
.upload-icon { font-size: 21px; }
.file-banner, .notice { border: 1px solid var(--line); padding: 14px 18px; border-radius: 10px; }
.file-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface); }
.file-banner > div { flex: 1; min-width: 140px; }
.file-banner + .field-hint { margin: 8px 0 18px; }
.notice.warning { margin-bottom: 16px; background: #fff8e9; border-color: #e9d8ad; color: #75541b; overflow-wrap: anywhere; }
.placement-list, .history-list { padding: 0 22px; }
.placement-item { padding: 14px 0; }
.placement-item + .placement-item, .history-item + .history-item, .preview-row + .preview-row { border-top: 1px solid var(--line); }
.placement-title, .preview-row, .history-item { display: flex; gap: 10px; align-items: center; }
.placement-title { margin-bottom: 6px; }
.placement-title strong, .file-banner strong, .preview-row > div, .history-details, .match-card { min-width: 0; overflow-wrap: anywhere; }
.preview-panel { margin-top: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(135px,100%), 1fr)); gap: 8px; padding: 16px 22px; }
.stat-card, .match-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.stat-value { display: block; font-size: 22px; font-weight: 600; }
.stat-label, .match-result, .match-folder, .muted { color: var(--muted); }
.stat-label, .match-result, .match-url, .match-folder { font-size: 12px; }
.preview-list { max-height: 330px; overflow: auto; padding: 0 22px; }
.preview-row { padding: 9px 0; font-size: 13px; }
.match-card, .match-controls, .match-pages { margin-top: 12px; }
.match-compare, .match-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 12px 20px; }
.match-controls .field { margin: 0; min-width: 0; }
.match-url, .match-folder { display: block; }
.match-result { margin-top: 8px; }
.history-item { padding: 18px 0; align-items: flex-start; }
.history-details { flex: 1; }
.history-details p { margin: 4px 0; font-size: 13px; }
.error-text { color: #a42d39; }
dialog, .busy-card { color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 12px 48px #20305026; }
dialog { max-width: min(520px, 92vw); }
dialog h2 { margin-bottom: 10px; font-size: 21px; }
dialog ol { padding-left: 22px; }
dialog li + li { margin-top: 8px; }
dialog::backdrop { background: #1d294155; }
.dialog-actions { justify-content: flex-end; margin-top: 20px; }
#toast { display: none; position: fixed; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); max-width: min(540px,90vw); padding: 12px 18px; border-radius: 8px; background: #263653; color: white; overflow-wrap: anywhere; }
#toast.visible { display: block; }
#toast.error { background: #842f39; }
.busy-overlay { position: fixed; z-index: 2; inset: 0; display: grid; place-items: center; background: #f5f6f9bf; }
.busy-card { text-align: center; }
.spinner { display: inline-block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) {
.app-shell { grid-template-columns: 200px minmax(0, 1fr); }
.sidebar { padding-inline: 14px; }
.brand { font-size: 17px; }
.split-layout { gap: 14px; }
.tree-url { display: none; }
}
@media (max-width: 930px) {
.split-layout { grid-template-columns: minmax(0, 1fr); }
.library-tree { max-height: 390px; min-height: 200px; }
}
@media (max-width: 780px) {
.app-shell { display: block; }
.sidebar { position: static; height: auto; display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--line); }
.brand img { width: 30px; height: 30px; }
.main-nav { grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
.nav-button { flex: 1; text-align: center; padding: 8px; }
.library-card { display: none; }
#help-button { grid-row: 1; grid-column: 2; margin: 0; padding: 6px 10px; }
.main-shell { padding: 20px 14px; }
.page-header { margin-bottom: 16px; }
.panel-header, .panel-body, .panel-footer, .duplicate-review, .toolbar { padding-inline: 15px; }
.history-item { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
.spinner { animation: none; }
}