Files
wpa-superstar-plugin/admin/css/wpa-superstar-admin.css

172 lines
3.1 KiB
CSS

.wpa-superstar-wrap {
max-width: none;
margin: 0;
padding-right: 20px;
}
.wpa-superstar-header {
background: #fff;
border-bottom: 1px solid #c3c4c7;
box-shadow: 0 1px 0 rgba(0,0,0,.04);
margin: 0 -20px 20px -20px;
padding: 20px;
display: flex;
align-items: center;
justify-content: space-between;
width: auto;
}
.wpa-superstar-header h1 {
font-size: 23px;
font-weight: 400;
margin: 0;
padding: 0;
line-height: 1.3;
color: #1d2327;
}
.wpa-superstar-header-actions {
display: flex;
align-items: center;
gap: 10px;
}
.wpa-superstar-version {
color: #646970;
font-size: 13px;
font-weight: 400;
}
.wpa-settings-container {
padding: 0 20px;
max-width: 1100px;
}
.nav-tab-wrapper {
margin: 0;
padding-top: 0;
border-bottom: 1px solid #c3c4c7;
line-height: inherit;
}
.nav-tab {
margin-left: 0;
margin-right: 4px;
padding: 8px 12px;
font-size: 14px;
line-height: 1.71428571;
font-weight: 600;
background: #f0f0f1;
border: 1px solid #c3c4c7;
border-bottom: none;
color: #50575e;
}
.nav-tab:hover,
.nav-tab:focus {
background: #fff;
color: #1d2327;
}
.nav-tab-active,
.nav-tab-active:focus,
.nav-tab-active:focus:active,
.nav-tab-active:hover {
background: #fff;
border-bottom: 1px solid #fff;
color: #1d2327;
}
.wpa-settings-content {
margin-top: 20px;
}
/* ACF-style toggle switches */
.wpa-superstar-toggle {
margin: 15px 0;
padding: 15px;
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 3px;
box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.wpa-superstar-toggle label {
display: flex;
align-items: center;
font-size: 14px;
line-height: 1.4;
font-weight: 600;
color: #1d2327;
cursor: pointer;
}
.wpa-superstar-toggle .description {
margin: 5px 0 0 44px;
color: #646970;
font-size: 13px;
}
/* Toggle Switch Container */
.wpa-toggle-switch {
position: relative;
display: inline-block;
width: 36px;
height: 20px;
margin-right: 8px;
}
/* Hide default checkbox */
.wpa-toggle-switch input {
opacity: 0;
width: 0;
height: 0;
margin: 0;
}
/* The slider */
.wpa-toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #c3c4c7;
transition: .3s;
border-radius: 20px;
border: 2px solid #c3c4c7;
}
/* Slider knob */
.wpa-toggle-slider:before {
position: absolute;
content: "";
height: 12px;
width: 12px;
left: 2px;
bottom: 2px;
background-color: white;
transition: .3s;
border-radius: 50%;
}
/* Active/checked state */
.wpa-toggle-switch input:checked + .wpa-toggle-slider {
background-color: #2271b1;
border-color: #2271b1;
}
.wpa-toggle-switch input:checked + .wpa-toggle-slider:before {
transform: translateX(16px);
}
/* Focus state */
.wpa-toggle-switch input:focus + .wpa-toggle-slider {
box-shadow: 0 0 0 1px #fff, 0 0 0 3px #2271b1;
}
/* Hover state */
.wpa-toggle-switch:hover .wpa-toggle-slider {
border-color: #2271b1;
}