167 lines
3.3 KiB
CSS
167 lines
3.3 KiB
CSS
.aksrt-widget-form {
|
|
--aksrt-field-border: #dcdcde;
|
|
--aksrt-field-accent: #2271b1;
|
|
display: grid;
|
|
gap: 14px;
|
|
padding: 4px 0 10px;
|
|
}
|
|
|
|
.aksrt-widget-field {
|
|
min-width: 0;
|
|
}
|
|
|
|
.aksrt-widget-field[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.aksrt-widget-field__label {
|
|
display: block;
|
|
margin-bottom: 6px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.aksrt-widget-field .description {
|
|
margin: -2px 0 7px;
|
|
}
|
|
|
|
.aksrt-widget-switch {
|
|
display: inline-flex;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.aksrt-widget-switch input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.aksrt-widget-switch span {
|
|
position: relative;
|
|
width: 38px;
|
|
height: 22px;
|
|
border-radius: 999px;
|
|
background: #8c8f94;
|
|
transition: background .18s ease;
|
|
}
|
|
|
|
.aksrt-widget-switch span::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
transition: transform .18s ease;
|
|
}
|
|
|
|
.aksrt-widget-switch input:checked + span { background: var(--aksrt-field-accent); }
|
|
.aksrt-widget-switch input:checked + span::after { transform: translateX(16px); }
|
|
.aksrt-widget-switch input:focus-visible + span { outline: 2px solid #72aee6; outline-offset: 2px; }
|
|
|
|
.aksrt-widget-choices {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.aksrt-widget-choices label input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
}
|
|
|
|
.aksrt-widget-choices label span {
|
|
display: block;
|
|
padding: 5px 9px;
|
|
border: 1px solid var(--aksrt-field-border);
|
|
border-radius: 5px;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.aksrt-widget-choices label input:checked + span {
|
|
border-color: var(--aksrt-field-accent);
|
|
color: var(--aksrt-field-accent);
|
|
box-shadow: 0 0 0 1px var(--aksrt-field-accent);
|
|
}
|
|
|
|
.aksrt-widget-number,
|
|
.aksrt-widget-icon,
|
|
.aksrt-widget-link,
|
|
.aksrt-widget-background {
|
|
display: grid;
|
|
gap: 7px;
|
|
}
|
|
|
|
.aksrt-widget-number {
|
|
grid-template-columns: minmax(0, 1fr) 50px;
|
|
align-items: center;
|
|
}
|
|
|
|
.aksrt-widget-upload {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
.aksrt-widget-upload img {
|
|
width: 100%;
|
|
max-height: 150px;
|
|
border-radius: 6px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.aksrt-widget-upload .widefat { flex: 1 1 100%; }
|
|
|
|
.aksrt-widget-spacing {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 6px;
|
|
}
|
|
|
|
.aksrt-widget-spacing label span {
|
|
display: block;
|
|
margin-bottom: 3px;
|
|
color: #646970;
|
|
text-align: center;
|
|
}
|
|
|
|
.aksrt-widget-repeater__row,
|
|
.aksrt-widget-nested {
|
|
margin-bottom: 9px;
|
|
border: 1px solid var(--aksrt-field-border);
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
}
|
|
|
|
.aksrt-widget-repeater__bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 8px 10px;
|
|
border-bottom: 1px solid var(--aksrt-field-border);
|
|
background: #f6f7f7;
|
|
}
|
|
|
|
.aksrt-widget-repeater__bar .dashicons { cursor: move; }
|
|
.aksrt-widget-repeater__bar strong { flex: 1; }
|
|
.aksrt-widget-repeater__fields,
|
|
.aksrt-widget-nested__body { display: grid; gap: 12px; padding: 10px; }
|
|
.aksrt-widget-nested > summary { padding: 9px 10px; font-weight: 600; cursor: pointer; }
|
|
|
|
.aksrt-widget-form-lazy {
|
|
padding: 14px;
|
|
border: 1px dashed #c3c4c7;
|
|
border-radius: 6px;
|
|
text-align: center;
|
|
}
|
|
|
|
.aksrt-widget-form-lazy__status { margin-top: 0; color: #646970; }
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.aksrt-widget-switch span,
|
|
.aksrt-widget-switch span::after { transition: none; }
|
|
}
|
|
|