-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
176 lines (171 loc) · 3.9 KB
/
style.css
File metadata and controls
176 lines (171 loc) · 3.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
* { box-sizing: border-box; }
body {
font-family: -apple-system, "Segoe UI", "Microsoft JhengHei", sans-serif;
margin: 0;
background: #f4f6f8;
color: #222;
}
header {
padding: 16px 24px;
background: #1f2937;
color: #fff;
}
header h1 { margin: 0 0 4px; font-size: 20px; }
header .hint { margin: 0; font-size: 13px; opacity: 0.8; }
header code { background: rgba(255,255,255,.15); padding: 2px 6px; border-radius: 4px; }
.top-bar {
background: #fff;
padding: 14px 18px;
margin: 16px 16px 0;
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,.08);
display: flex;
flex-wrap: wrap;
gap: 16px 24px;
align-items: center;
}
#add-form {
display: grid;
grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr);
grid-template-rows: auto auto;
gap: 8px;
flex: 1 1 480px;
}
#add-form input {
padding: 7px 10px;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 14px;
min-width: 0;
}
#add-form .btn-group {
grid-column: 1 / -1;
display: flex;
gap: 8px;
}
#add-form button {
flex: 1;
padding: 7px 12px;
border: none;
border-radius: 4px;
color: #fff;
cursor: pointer;
font-size: 13px;
font-weight: 500;
}
#add-form button[data-method="jquery"] { background: #2563eb; }
#add-form button[data-method="fetch"] { background: #059669; }
#add-form button[data-method="axios"] { background: #7c3aed; }
#add-form button[data-method="ky"] { background: #0891b2; }
#add-form button[data-method="ofetch"] { background: #ea580c; }
.sync-bar {
display: flex;
justify-content: center;
margin: 12px 16px 0;
}
.auto-sync {
display: flex;
align-items: center;
gap: 6px;
font-size: 13px;
color: #374151;
cursor: pointer;
user-select: none;
}
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
padding: 16px;
}
.col {
background: #fff;
border-radius: 8px;
padding: 14px;
box-shadow: 0 1px 3px rgba(0,0,0,.08);
display: flex;
flex-direction: column;
min-height: 500px;
}
.col-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #e5e7eb;
padding-bottom: 6px;
margin-bottom: 10px;
}
.col-header h2 { margin: 0; font-size: 16px; }
.col-header .reload {
background: transparent;
border: 1px solid #d1d5db;
border-radius: 4px;
padding: 4px 8px;
cursor: pointer;
font-size: 14px;
}
.col-header .reload:hover { background: #f3f4f6; }
[data-col="jquery"] h2 { color: #2563eb; }
[data-col="fetch"] h2 { color: #059669; }
[data-col="axios"] h2 { color: #7c3aed; }
[data-col="ky"] h2 { color: #0891b2; }
[data-col="ofetch"] h2 { color: #ea580c; }
.add-form { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.add-form input {
flex: 1 1 100px;
padding: 6px 8px;
border: 1px solid #d1d5db;
border-radius: 4px;
font-size: 13px;
}
.add-form button {
padding: 6px 10px;
border: none;
border-radius: 4px;
background: #374151;
color: #fff;
cursor: pointer;
font-size: 13px;
}
.add-form button:hover { background: #111827; }
.book-list {
list-style: none;
padding: 0;
margin: 0 0 8px;
flex: 1;
overflow-y: auto;
}
.book-list li {
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 6px;
padding: 8px 10px;
margin-bottom: 6px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 6px;
}
.book-list .info { flex: 1; min-width: 0; }
.book-list .title { font-weight: 600; font-size: 14px; }
.book-list .author { font-size: 12px; color: #6b7280; }
.book-list .actions { display: flex; gap: 4px; }
.book-list .actions button {
border: none;
background: transparent;
cursor: pointer;
font-size: 14px;
padding: 2px 4px;
}
.book-list .actions button:hover { background: #e5e7eb; border-radius: 4px; }
.log {
background: #111827;
color: #d1fae5;
font-size: 11px;
padding: 8px;
border-radius: 4px;
margin: 0;
max-height: 80px;
overflow-y: auto;
white-space: pre-wrap;
}