| 1 |
@use '../common/theme'; |
| 2 |
|
| 3 |
.import-upload-card { |
| 4 |
h2 { |
| 5 |
margin: 0 0 1em; |
| 6 |
} |
| 7 |
|
| 8 |
p.description { |
| 9 |
margin-block-end: 1em; |
| 10 |
} |
| 11 |
|
| 12 |
footer { |
| 13 |
text-align: center; |
| 14 |
|
| 15 |
.button { |
| 16 |
min-inline-size: 200px; |
| 17 |
} |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
.upload-drop-zone { |
| 22 |
border: 2px dashed var(--cs-color-border); |
| 23 |
border-radius: var(--cs-card-radius); |
| 24 |
padding: 40px 20px; |
| 25 |
text-align: center; |
| 26 |
cursor: pointer; |
| 27 |
background-color: var(--cs-color-surface-subtle); |
| 28 |
transition: all 0.3s ease; |
| 29 |
opacity: 1; |
| 30 |
display: block; |
| 31 |
|
| 32 |
@media (prefers-reduced-motion: reduce) { |
| 33 |
transition-duration: 0.01s; |
| 34 |
} |
| 35 |
|
| 36 |
&.drag-over { |
| 37 |
border-color: #0073aa; |
| 38 |
background-color: var(--cs-color-surface-info); |
| 39 |
} |
| 40 |
|
| 41 |
&.disabled { |
| 42 |
cursor: not-allowed; |
| 43 |
background-color: var(--cs-color-surface-subtle); |
| 44 |
opacity: 0.6; |
| 45 |
} |
| 46 |
|
| 47 |
&:focus-visible { |
| 48 |
outline: 2px solid var(--cs-color-accent); |
| 49 |
outline-offset: 2px; |
| 50 |
} |
| 51 |
|
| 52 |
.drop-zone-icon { |
| 53 |
font-size: 48px; |
| 54 |
margin-block-end: 20px; |
| 55 |
color: var(--cs-color-text-muted); |
| 56 |
} |
| 57 |
|
| 58 |
p:first-of-type { |
| 59 |
margin: 0 0 8px; |
| 60 |
font-size: 16px; |
| 61 |
font-weight: 500; |
| 62 |
} |
| 63 |
|
| 64 |
p:last-of-type { |
| 65 |
margin: 0; |
| 66 |
color: var(--cs-color-text-muted); |
| 67 |
font-size: 14px; |
| 68 |
} |
| 69 |
} |
| 70 |
|
| 71 |
.upload-drop-zone-wrapper { |
| 72 |
position: relative; |
| 73 |
margin-block-end: 20px; |
| 74 |
|
| 75 |
&:focus-within .upload-drop-zone:not(.disabled) { |
| 76 |
box-shadow: 0 0 0 2px var(--cs-color-surface), 0 0 0 4px var(--cs-color-accent); |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
.upload-drop-zone-file-input { |
| 81 |
position: absolute; |
| 82 |
inline-size: 1px; |
| 83 |
block-size: 1px; |
| 84 |
padding: 0; |
| 85 |
margin: -1px; |
| 86 |
overflow: hidden; |
| 87 |
clip: rect(0, 0, 0, 0); |
| 88 |
border: 0; |
| 89 |
clip-path: inset(50%); |
| 90 |
white-space: nowrap; |
| 91 |
} |
| 92 |
|
| 93 |
.import-result-display-card { |
| 94 |
> div { |
| 95 |
display: flex; |
| 96 |
align-items: flex-start; |
| 97 |
gap: 12px; |
| 98 |
} |
| 99 |
} |
| 100 |
|
| 101 |
.selected-files { |
| 102 |
margin-block-end: 20px; |
| 103 |
|
| 104 |
h3 { |
| 105 |
margin: 0 0 12px; |
| 106 |
font-size: 14px; |
| 107 |
font-weight: 600; |
| 108 |
} |
| 109 |
} |
| 110 |
|
| 111 |
.selected-files-list { |
| 112 |
display: flex; |
| 113 |
flex-direction: column; |
| 114 |
gap: 8px; |
| 115 |
|
| 116 |
> div { |
| 117 |
display: flex; |
| 118 |
align-items: center; |
| 119 |
justify-content: space-between; |
| 120 |
padding: 8px 12px; |
| 121 |
border: 1px solid var(--cs-color-border-subtle); |
| 122 |
border-radius: 5px; |
| 123 |
background-color: #f9f9f9; |
| 124 |
} |
| 125 |
|
| 126 |
button { |
| 127 |
background: none; |
| 128 |
border: none; |
| 129 |
color: var(--cs-color-error); |
| 130 |
cursor: pointer; |
| 131 |
font-size: 16px; |
| 132 |
padding: 0 4px; |
| 133 |
|
| 134 |
&:focus-visible { |
| 135 |
outline: 2px solid var(--cs-color-accent); |
| 136 |
outline-offset: 2px; |
| 137 |
border-radius: 5px; |
| 138 |
} |
| 139 |
} |
| 140 |
|
| 141 |
.selected-file-details { |
| 142 |
display: flex; |
| 143 |
align-items: center; |
| 144 |
gap: 8px; |
| 145 |
|
| 146 |
strong { |
| 147 |
font-weight: 500; |
| 148 |
} |
| 149 |
|
| 150 |
.file-icon { |
| 151 |
font-size: 16px; |
| 152 |
} |
| 153 |
|
| 154 |
.file-size { |
| 155 |
font-size: 12px; |
| 156 |
color: var(--cs-color-text-muted); |
| 157 |
} |
| 158 |
} |
| 159 |
} |
| 160 |
|
| 161 |
.duplicate-action-selector-card { |
| 162 |
h2 { |
| 163 |
margin: 0 0 1em; |
| 164 |
} |
| 165 |
|
| 166 |
p.description { |
| 167 |
margin-block-end: 1em; |
| 168 |
} |
| 169 |
|
| 170 |
fieldset { |
| 171 |
> div { |
| 172 |
display: flex; |
| 173 |
flex-direction: column; |
| 174 |
gap: 8px; |
| 175 |
} |
| 176 |
|
| 177 |
label { |
| 178 |
display: flex; |
| 179 |
align-items: flex-start; |
| 180 |
gap: 8px; |
| 181 |
cursor: pointer; |
| 182 |
} |
| 183 |
|
| 184 |
input { |
| 185 |
margin-block-start: 2px; |
| 186 |
} |
| 187 |
} |
| 188 |
} |
| 189 |
|
| 190 |
.import-result { |
| 191 |
display: flex; |
| 192 |
align-items: flex-start; |
| 193 |
gap: 12px; |
| 194 |
|
| 195 |
> div:last-child { |
| 196 |
flex: 1; |
| 197 |
} |
| 198 |
|
| 199 |
h2 { |
| 200 |
margin: 0 0 8px; |
| 201 |
font-size: 16px; |
| 202 |
font-weight: 600 |
| 203 |
} |
| 204 |
|
| 205 |
p.import-result-message { |
| 206 |
margin: 0 0 8px; |
| 207 |
color: var(--cs-color-text-muted); |
| 208 |
} |
| 209 |
|
| 210 |
p.import-result-link { |
| 211 |
margin: 0; |
| 212 |
color: var(--cs-color-text-muted); |
| 213 |
|
| 214 |
a { |
| 215 |
color: var(--cs-color-accent); |
| 216 |
text-decoration: none; |
| 217 |
} |
| 218 |
} |
| 219 |
|
| 220 |
.import-result-warnings { |
| 221 |
margin-block-start: 12px; |
| 222 |
|
| 223 |
h3 { |
| 224 |
margin: 0 0 8px; |
| 225 |
font-size: 14px; |
| 226 |
color: var(--cs-color-error); |
| 227 |
} |
| 228 |
|
| 229 |
ul { |
| 230 |
margin: 0; |
| 231 |
padding-inline-start: 20px; |
| 232 |
} |
| 233 |
|
| 234 |
li { |
| 235 |
color: var(--cs-color-text-muted); |
| 236 |
font-size: 14px; |
| 237 |
} |
| 238 |
} |
| 239 |
} |
| 240 |
|
| 241 |
.import-result-icon { |
| 242 |
border-radius: 50%; |
| 243 |
inline-size: 24px; |
| 244 |
block-size: 24px; |
| 245 |
display: flex; |
| 246 |
align-items: center; |
| 247 |
justify-content: center; |
| 248 |
flex-shrink: 0; |
| 249 |
margin-block-start: 2px; |
| 250 |
|
| 251 |
.import-result-success & { |
| 252 |
background-color: var(--cs-color-success); |
| 253 |
} |
| 254 |
|
| 255 |
.import-result-failure & { |
| 256 |
background-color: var(--cs-color-error); |
| 257 |
} |
| 258 |
|
| 259 |
span { |
| 260 |
color: #fff; |
| 261 |
font-size: 14px; |
| 262 |
font-weight: bold; |
| 263 |
} |
| 264 |
} |
| 265 |
|
| 266 |
.import-select-card { |
| 267 |
.return-link { |
| 268 |
display: flex; |
| 269 |
align-items: center; |
| 270 |
justify-content: space-between; |
| 271 |
margin-block-end: 20px; |
| 272 |
} |
| 273 |
|
| 274 |
.tablenav.top { |
| 275 |
display: flex; |
| 276 |
justify-content: space-between; |
| 277 |
align-items: center; |
| 278 |
margin-block-end: 10px; |
| 279 |
|
| 280 |
h2 { |
| 281 |
margin: 0; |
| 282 |
} |
| 283 |
|
| 284 |
p { |
| 285 |
margin: 0.5em 0 1em; |
| 286 |
color: var(--cs-color-text-muted); |
| 287 |
} |
| 288 |
} |
| 289 |
|
| 290 |
.table-actions .button { |
| 291 |
margin-inline-end: 10px; |
| 292 |
} |
| 293 |
|
| 294 |
.wp-list-table { |
| 295 |
table-layout: fixed; |
| 296 |
} |
| 297 |
|
| 298 |
th.check-column { |
| 299 |
inline-size: 40px; |
| 300 |
} |
| 301 |
|
| 302 |
th.column-name { |
| 303 |
inline-size: 200px; |
| 304 |
} |
| 305 |
|
| 306 |
td.column-name div { |
| 307 |
font-size: 12px; |
| 308 |
color: var(--cs-color-text-muted); |
| 309 |
margin-block-start: 2px; |
| 310 |
} |
| 311 |
|
| 312 |
.column-type { |
| 313 |
inline-size: 90px; |
| 314 |
text-align: center; |
| 315 |
|
| 316 |
span { |
| 317 |
background-color: #1d97c6; |
| 318 |
color: #fff; |
| 319 |
padding: 3px 6px; |
| 320 |
font-size: 10px; |
| 321 |
text-transform: uppercase; |
| 322 |
border-radius: 5px; |
| 323 |
|
| 324 |
@at-root .import-select-card .html-snippet .column-type span { |
| 325 |
background-color: #cd4510; |
| 326 |
} |
| 327 |
|
| 328 |
@at-root .import-select-card .js-snippet .column-type span { |
| 329 |
background-color: #f7d67a; |
| 330 |
} |
| 331 |
|
| 332 |
@at-root .import-select-card .css-snippet .column-type span { |
| 333 |
background-color: #9b59b6; |
| 334 |
} |
| 335 |
} |
| 336 |
} |
| 337 |
|
| 338 |
th.column-desc { |
| 339 |
inline-size: auto; |
| 340 |
} |
| 341 |
|
| 342 |
th.column-tags { |
| 343 |
inline-size: 120px; |
| 344 |
} |
| 345 |
} |
| 346 |
|