166 lines
3.0 KiB
CSS
166 lines
3.0 KiB
CSS
.wpa-superstar-wrap {
|
|
max-width: 1100px;
|
|
margin: 25px 40px 0 20px;
|
|
}
|
|
|
|
.wpa-superstar-header {
|
|
background: #fff;
|
|
border: 1px solid #ccd0d4;
|
|
border-radius: 3px;
|
|
box-shadow: 0 1px 1px rgba(0,0,0,0.04);
|
|
margin-bottom: 20px;
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.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;
|
|
} |