forked from BlafKing/sd-civitai-browser-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style_html.css
244 lines (208 loc) · 4.16 KB
/
style_html.css
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
body {
background-color: #0b0f19;
}
.model-block {
box-shadow: 0px 0px 1px 3px #3339ff30;
border-radius: 10px;
padding: 1px 20px 10px;
margin-bottom: 20px;
}
.model-block code {
white-space: pre-wrap;
}
.model-block dl {
overflow-wrap: anywhere;
}
.civnsfw img {
filter: unset;
}
.sampleimgs .model-block img,
.sampleimgs .model-block video {
padding-top: 1em;
max-width: 20em;
cursor: zoom-in;
transition: max-width 0.1s;
}
/* Text adjustments */
h1, h2, h3, h4, h5, dd, dt, p, a, label {
font-family: 'Source Sans Pro', 'ui-sans-serif', 'system-ui', sans-serif;
}
h3 {
font-size: 16px;
}
h2 {
margin: 16px 0px 8px;
font-size: 22px;
}
ul {
padding-left: 18px;
}
p {
color: #F3F4F6;
margin: 0px 0px 6px;
font-size: 14px;
}
dt {
font-size: medium;
color: #80a6c8 !important;
font-size: 16px;
}
dd {
padding: 0px 0px 5px 10px;
margin-inline-start: 0px;
font-size: 14px;
color: #F3F4F6;
}
a {
color: #F3F4F6;
font-weight: bold;
text-decoration: unset;
}
a:hover {
color: #60A5FA;
}
.civitai_txt2img {
display: none;
}
/* Preview Image zoom */
.zoom-radio {
display: none !important;
}
/* Style for when the image is clicked (radio button checked) */
.zoom-radio:checked + label > img,
.zoom-radio:checked + label > video {
max-width: 95vw;
max-height: 95vh;
padding-top: 0px;
cursor: zoom-out;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1000; /* Higher than the overlay */
pointer-events: none; /* Allow clicks to penetrate through to the overlay for resetting */
}
/* Overlay for resetting zoomed state */
.zoom-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, .5);
z-index: 999; /* Below the zoomed image */
cursor: zoom-out;
}
.zoom-radio:checked + label + .zoom-overlay {
display: block;
pointer-events: all; /* Capture click events when displayed */
}
.zoom-img-container {
min-width: 20em;
}
.model-uploader {
border-bottom: 1px solid;
padding-bottom: 10px;
color: white;
}
.model-description {
border-top: 1px solid;
padding-bottom: 10px;
margin-bottom: 10px;
color: white;
}
/*Avatar CSS mostly copied from CivitAI, but 48px instead of 32px*/
.avatar {
user-select: none;
overflow: hidden;
width: 48px;
height: 48px;
min-width: 48px;
border-radius: 48px;
text-decoration: none;
border: 0;
padding: 0;
background-color: rgba(0,0,0,0.31);
display: inline-block!important;
margin-left: 5px!important;
vertical-align: middle;
}
.avatar img {
object-fit: cover;
width: 100%;
height: 100%;
display: block;
overflow-clip-margin: content-box;
overflow: clip;
border-style: none;
}
/*CSS accordion for toggling extra metadata*/
/*-----------------------------------------*/
.accordionCheckbox {
position: absolute;
opacity: 0;
z-index: -1;
}
.tabs {
border-radius: 10px;
overflow: hidden;
}
.tab {
width: 100%;
color: white;
overflow: hidden;
margin-left: -15px;
}
.tab-label {
display: flex;
padding: 1em;
font-weight: bold;
cursor: pointer;
font-size: large;
}
.civitai-tags-container {
display: flex;
flex-wrap: wrap;
gap: 5px;
}
.civitai-tag,
.civitai-meta-btn {
background-color: #111827;
border-radius: 8px;
padding: 4px 6px;
border: 1px solid #374151;
}
.civitai-meta-btn:hover {
cursor: pointer;
background-color: #1F2937;
}
/* Icon */
.tab-label::before {
content: "❯";
width: 1em;
height: 1em;
text-align: center;
transition: all 0.3s;
}
.accordionCheckbox:checked + .tab-label::before {
transform: rotate(90deg);
}
.tab-content {
max-height: 0;
padding: 0 1em;
transition: all 0.3s;
}
.tab-close {
display: flex;
justify-content: flex-end;
padding: 1em;
font-size: 0.75em;
cursor: pointer;
}
.accordionCheckbox:checked ~ .tab-content {
max-height: 100vh;
padding: 1em;
}
/*-----------------------------------------*/
/*End CSS accordion for toggling extra metadata*/