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