Fix tab navigation and settings dropdown styling
- Improve navigation tab styles to match WordPress core\n- Fix settings dropdown visibility and transitions\n- Enhance expand/collapse button styling\n- Add proper spacing and layout for settings
This commit is contained in:
@ -38,39 +38,42 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Navigation Tabs */
|
/* Navigation Tabs */
|
||||||
.wp-allstars-nav {
|
.nav-tab-wrapper {
|
||||||
margin-bottom: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-nav .nav-tab-wrapper {
|
|
||||||
border-bottom: 1px solid #c3c4c7;
|
|
||||||
padding-top: 0;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding-top: 9px;
|
||||||
|
padding-bottom: 0;
|
||||||
|
line-height: inherit;
|
||||||
|
border-bottom: 1px solid #c3c4c7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-nav .nav-tab {
|
.nav-tab {
|
||||||
font-size: 14px;
|
float: left;
|
||||||
padding: 10px 15px;
|
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 4px;
|
|
||||||
border: 1px solid #c3c4c7;
|
border: 1px solid #c3c4c7;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
background: #f0f0f1;
|
margin-left: 0.5em;
|
||||||
|
padding: 5px 10px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.71428571;
|
||||||
|
font-weight: 600;
|
||||||
|
background: #dcdcde;
|
||||||
color: #50575e;
|
color: #50575e;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-nav .nav-tab:hover {
|
.nav-tab:hover,
|
||||||
background: #fff;
|
.nav-tab:focus {
|
||||||
|
background-color: #fff;
|
||||||
color: #1d2327;
|
color: #1d2327;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-nav .nav-tab-active {
|
.nav-tab-active,
|
||||||
background: #fff;
|
.nav-tab-active:focus,
|
||||||
color: #1d2327;
|
.nav-tab-active:focus:active,
|
||||||
border-bottom: 1px solid #fff;
|
.nav-tab-active:hover {
|
||||||
margin-bottom: -1px;
|
border-bottom: 1px solid #f0f0f1;
|
||||||
|
background: #f0f0f1;
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Toggle Switches */
|
/* Toggle Switches */
|
||||||
@ -171,55 +174,26 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Settings Dropdown */
|
||||||
.wp-allstars-toggle-settings {
|
.wp-allstars-toggle-settings {
|
||||||
|
display: none;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
padding-top: 15px;
|
padding: 15px;
|
||||||
border-top: 1px solid #ddd;
|
background: #f9f9f9;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-allstars-toggle-settings.is-open {
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-setting-row {
|
.wp-allstars-setting-row {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expand/Collapse Button */
|
.wp-allstars-setting-row:last-child {
|
||||||
.wp-allstars-expand-settings {
|
margin-bottom: 0;
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
padding: 4px;
|
|
||||||
cursor: pointer;
|
|
||||||
color: #787c82;
|
|
||||||
transition: color .15s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-expand-settings:hover {
|
|
||||||
color: #1d2327;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-expand-settings .dashicons {
|
|
||||||
width: 20px;
|
|
||||||
height: 20px;
|
|
||||||
font-size: 20px;
|
|
||||||
transition: transform .15s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-expand-settings[aria-expanded="true"] .dashicons {
|
|
||||||
transform: rotate(180deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Form Elements */
|
|
||||||
.wp-allstars-setting-row input[type="text"],
|
|
||||||
.wp-allstars-setting-row input[type="number"],
|
|
||||||
.wp-allstars-setting-row textarea {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 400px;
|
|
||||||
padding: 8px;
|
|
||||||
border: 1px solid #ddd;
|
|
||||||
border-radius: 4px;
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wp-allstars-setting-row textarea {
|
|
||||||
min-height: 100px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wp-allstars-setting-row label {
|
.wp-allstars-setting-row label {
|
||||||
@ -228,6 +202,48 @@ input:checked + .wp-toggle-slider:before {
|
|||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wp-allstars-setting-row input[type="text"],
|
||||||
|
.wp-allstars-setting-row input[type="number"],
|
||||||
|
.wp-allstars-setting-row select {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 400px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-allstars-expand-settings {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
background: #f0f0f1;
|
||||||
|
border: 1px solid #c3c4c7;
|
||||||
|
border-radius: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-allstars-expand-settings:hover {
|
||||||
|
background: #fff;
|
||||||
|
border-color: #8c8f94;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-allstars-expand-settings .dashicons {
|
||||||
|
font-size: 16px;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wp-allstars-expand-settings[aria-expanded="true"] .dashicons {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Clear floats after tabs */
|
||||||
|
.nav-tab-wrapper::after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
|
|
||||||
/* Loading Overlay */
|
/* Loading Overlay */
|
||||||
.wp-allstars-loading-overlay {
|
.wp-allstars-loading-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
Reference in New Issue
Block a user