maintenance-von-moh/maintenance-admin-style.css
2025-04-26 00:58:26 +02:00

166 lines
3.2 KiB
CSS

/* ============ Maintenance Mode - Admin CSS ============ */
/* ============ Global Wrapper ============ */
.maintenance-wrap {
max-width: 100%;
padding: 24px;
}
/* ============ Section Card ============ */
.maintenance-card {
background: #fff;
border: 1px solid #ddd;
padding: 24px;
margin-bottom: 24px;
border-radius: 24px;
}
/* ============ Field Block ============ */
.maintenance-field {
margin-bottom: 16px;
}
.maintenance-field label {
display: block;
font-weight: bold;
margin-bottom: 6px;
}
/* ============ Save Button ============ */
button.button-primary {
background: #0073aa;
border: none;
color: #fff;
font-weight: 600;
padding: 8px 24px;
font-size: 14px;
border-radius: 8px;
box-shadow: none;
}
button.button-primary:hover {
background: #005e8a;
}
/* ============ Tabs ============ */
.acf-tabs {
display: flex;
gap: 6px;
margin-bottom: 20px;
}
.acf-tab {
background: #e9e9e9;
padding: 8px 16px;
border-radius: 8px 8px 0 0;
text-decoration: none;
color: #333;
font-weight: 600;
border: none;
box-shadow: none;
}
.acf-tab-active {
background: #fff;
border: 1px solid #ccc;
border-bottom: none;
padding: 9px 16px;
box-shadow: none;
}
.acf-tab:focus {
outline: none !important;
box-shadow: none !important;
}
/* ============ Toggle Switch ============ */
.switch {
position: relative;
display: inline-block;
width: 46px;
height: 24px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 24px;
}
.slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
border-radius: 50%;
}
input:checked + .slider {
background-color: #0073aa;
}
input:checked + .slider:before {
transform: translateX(22px);
}
/* ============ Admin Bar Maintenance Label ============ */
#wp-admin-bar-maintenance_mode_status .ab-item.maintenance-on {
background: #46b450;
color: #fff;
font-weight: bold;
border-radius: 4px;
}
#wp-admin-bar-maintenance_mode_status .ab-item.maintenance-off {
background: transparent;
color: #bbb;
font-weight: bold;
border-radius: 4px;
}
/* ============ Flex Row Between for Header Label + Toggle ============ */
.flex-row-between {
display: flex;
justify-content: start;
align-items: center;
}
.flex-row-between label {
margin-right: 1rem;
}
/* ============ Form Select2 Custom ============ */
.select2-container--default .select2-selection--multiple {
border-radius: 6px;
border-color: #ddd;
min-height: 38px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background: #f3f3f3;
border: none;
color: #333;
font-size: 13px;
border-radius: 4px;
margin-top: 4px;
}
.select2-container--default .select2-selection--multiple:focus,
.select2-container--default .select2-selection--single:focus {
outline: none;
box-shadow: none;
border-color: #0073aa;
}
/* ============ Remove Focus Ring on Mouse Hold ============ */
.acf-tab:focus-visible,
.acf-tab:focus {
outline: none !important;
box-shadow: none !important;
}