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

625 lines
12 KiB
CSS

.wp-allstars-wrap {
max-width: none;
margin: 0;
padding-right: 20px;
}
.wp-allstars-header {
background: #fff;
border-bottom: 1px solid #c3c4c7;
box-shadow: 0 1px 0 rgba(0,0,0,.04);
margin: 0 -20px 0 -20px;
padding: 20px;
display: flex;
align-items: center;
justify-content: space-between;
width: auto;
position: relative;
}
.wp-allstars-header h1 {
font-size: 23px;
font-weight: 400;
margin: 0;
padding: 0;
line-height: 1.3;
color: #1d2327;
}
.wp-allstars-header-actions {
display: flex;
align-items: center;
gap: 10px;
}
.wp-allstars-version {
color: #646970;
font-size: 13px;
font-weight: 400;
}
/* Navigation Tabs */
.nav-tab-wrapper,
.wrap h2.nav-tab-wrapper {
border-bottom: 1px solid #c3c4c7;
margin: 0 -20px;
padding: 0 20px;
background: #fff;
position: sticky;
top: 32px;
z-index: 100;
}
.nav-tab {
margin: 0;
padding: 12px 20px;
font-size: 14px;
line-height: 2;
font-weight: 400;
background: transparent;
color: #50575e;
text-decoration: none;
white-space: nowrap;
border: none;
border-bottom: 2px solid transparent;
display: inline-block;
transition: all 0.2s ease;
}
.nav-tab:hover,
.nav-tab:focus {
color: #2271b1;
background: transparent;
border-color: #2271b1;
}
.nav-tab-active,
.nav-tab-active:focus,
.nav-tab-active:focus:active,
.nav-tab-active:hover {
border-bottom: 2px solid #2271b1;
background: transparent;
color: #2271b1;
font-weight: 600;
}
/* Toggle Switches */
.wp-toggle-switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
margin-right: 12px;
cursor: pointer;
}
.wp-toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.wp-toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .3s;
border-radius: 20px;
}
.wp-toggle-slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
left: 2px;
bottom: 2px;
background-color: white;
transition: .3s;
border-radius: 50%;
}
input:checked + .wp-toggle-slider {
background-color: #2271b1;
}
input:checked + .wp-toggle-slider:before {
transform: translateX(20px);
}
/* Settings Container */
.wpa-settings-container {
padding: 0;
max-width: none;
margin: 0;
}
.wpa-settings-content {
margin-top: 25px;
padding: 0 20px;
}
/* Toggle Sections */
.wp-allstars-toggle {
background: #fff;
border: 1px solid #ddd;
border-radius: 8px;
margin-bottom: 15px;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
transition: all 0.2s ease;
}
.wp-allstars-toggle:hover {
border-color: #2271b1;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.wp-allstars-toggle-header {
padding: 24px;
cursor: pointer;
user-select: none;
}
.wp-allstars-toggle-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
}
.wp-allstars-toggle label {
display: flex;
align-items: center;
gap: 10px;
margin: 0;
font-size: 16px;
font-weight: 600;
color: #1d2327;
line-height: 1.4;
cursor: default;
}
.wp-allstars-expand-settings {
display: none;
}
.wp-allstars-toggle-settings {
border-top: 1px solid #ddd;
padding: 24px;
background: #f9f9f9;
display: none;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
}
.wp-allstars-toggle .description {
margin: 8px 0 0;
color: #50575e;
font-size: 14px;
line-height: 1.6;
}
.wp-allstars-setting-row {
margin-bottom: 24px;
}
.wp-allstars-setting-row:last-child {
margin-bottom: 0;
}
.wp-allstars-setting-row label {
display: block;
margin-bottom: 8px;
font-size: 14px;
font-weight: 600;
color: #1d2327;
}
.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 #8c8f94;
border-radius: 4px;
box-shadow: 0 0 0 transparent;
transition: border-color .15s ease-in-out;
}
.wp-allstars-setting-row input[type="text"]:focus,
.wp-allstars-setting-row input[type="number"]:focus,
.wp-allstars-setting-row textarea:focus {
border-color: #2271b1;
box-shadow: 0 0 0 1px #2271b1;
outline: 2px solid transparent;
}
/* Add chevron icon using pseudo-element */
.wp-allstars-toggle-header::after {
content: "";
display: block;
width: 20px;
height: 20px;
background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z" fill="%232271b1"/></svg>') no-repeat center;
transition: transform 0.2s ease;
background-size: 20px;
}
.wp-allstars-toggle-header[aria-expanded="true"]::after {
transform: rotate(180deg);
}
/* Clear floats after tabs */
.nav-tab-wrapper::after {
content: "";
display: table;
clear: both;
}
/* Loading Overlay */
.wp-allstars-loading-overlay {
position: fixed;
top: 32px;
left: 160px;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.9);
z-index: 100000;
display: flex;
align-items: center;
justify-content: center;
}
/* Plugin Filters */
.wpa-plugin-filters {
margin: 0;
padding: 20px;
background: #fff;
border: 1px solid #c3c4c7;
border-radius: 4px;
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.wpa-plugin-filters .button {
margin: 0;
padding: 6px 14px;
height: auto;
line-height: 1.4;
font-size: 13px;
font-weight: 500;
border: 1px solid #c3c4c7;
border-radius: 4px;
background: #f0f0f1;
color: #50575e;
transition: all 0.2s ease;
box-shadow: none;
min-width: 100px;
text-align: center;
}
.wpa-plugin-filters .button:hover {
background: #fff;
border-color: #2271b1;
color: #2271b1;
}
.wpa-plugin-filters .button.button-primary {
background: #2271b1;
border-color: #2271b1;
color: #fff;
}
.wpa-plugin-filters .button.button-primary:hover {
background: #135e96;
border-color: #135e96;
}
/* Plugin List Container */
.wp-list-table-container {
margin-top: 20px;
padding: 0 20px;
position: relative;
min-height: 400px;
}
/* Plugin Cards */
.plugin-card {
float: left;
margin: 0 8px 16px;
padding: 0;
width: calc(50% - 16px);
border: 1px solid #ddd;
box-shadow: 0 1px 1px rgba(0,0,0,.04);
background-color: #fff;
box-sizing: border-box;
position: relative;
display: flex;
flex-direction: column;
}
.plugin-card:nth-child(2n+1) {
clear: both;
margin-left: 0;
}
.plugin-card:nth-child(2n) {
margin-right: 0;
}
.plugin-card-top {
position: relative;
padding: 20px 20px 10px;
min-height: 135px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.plugin-card .name,
.plugin-card .desc {
margin-left: 148px;
margin-right: 120px;
}
.plugin-card .name h3 {
margin: 0 0 12px;
font-size: 18px;
line-height: 1.3;
}
.plugin-card .desc {
margin-top: 0;
margin-bottom: 12px;
font-size: 13px;
line-height: 1.5;
color: #50575e;
flex-grow: 1;
}
.plugin-card .plugin-card-bottom {
clear: both;
padding: 12px 20px;
background-color: #f6f7f7;
border-top: 1px solid #ddd;
overflow: hidden;
}
.plugin-card .plugin-icon {
position: absolute;
top: 20px;
left: 20px;
width: 128px;
height: 128px;
margin: 0 20px 20px 0;
}
.plugin-action-buttons {
clear: right;
float: right;
margin-left: 2em;
margin-bottom: 1em;
text-align: right;
}
.plugin-action-buttons div {
margin-top: 10px;
}
.plugin-card .column-rating,
.plugin-card .column-downloaded,
.plugin-card .column-updated {
display: none;
}
.plugin-card .action-links {
position: absolute;
top: 20px;
right: 20px;
width: 120px;
}
.plugin-card .action-links .button {
display: block;
text-align: center;
margin-bottom: 5px;
}
.plugin-card .action-links .button.button-primary {
background: #2271b1;
border-color: #2271b1;
color: #fff;
}
.plugin-card .action-links .button.button-primary:hover {
background: #135e96;
border-color: #135e96;
}
.plugin-card .name a,
.plugin-card .action-links a {
text-decoration: none;
}
.plugin-card .desc,
.plugin-card .author {
margin: 0 0 12px;
color: #646970;
}
.plugin-card .author {
color: #646970;
font-size: 13px;
margin-left: 148px;
}
/* Theme Container */
#wpa-theme-list {
margin-top: 20px;
padding: 0 20px;
position: relative;
min-height: 400px;
}
.theme-browser .theme {
float: none;
margin: 0 auto;
width: 100%;
max-width: none;
}
.theme-browser .theme .theme-screenshot {
display: block;
overflow: hidden;
position: relative;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.theme-browser .theme .theme-screenshot img {
height: auto;
width: 100%;
transform: translateZ(0);
position: absolute;
left: 0;
top: 0;
object-fit: cover;
transition: opacity .2s ease-in-out;
}
.theme-browser .theme .theme-name {
font-size: 15px;
font-weight: 600;
margin: 0;
padding: 15px;
box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
background: #fff;
}
.theme-browser .theme .theme-actions {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 0;
padding: 10px 15px;
box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
-webkit-user-select: none;
user-select: none;
display: flex;
gap: 8px;
}
/* Responsive Adjustments */
@media screen and (max-width: 1200px) {
.plugin-card .name,
.plugin-card .desc {
margin-right: 0;
}
.plugin-card .action-links {
position: static;
margin-left: 148px;
width: auto;
margin-top: 1em;
}
.plugin-card .action-links .button {
display: inline-block;
margin: 0 5px 5px 0;
}
}
@media screen and (max-width: 782px) {
.plugin-card {
margin-left: 0;
margin-right: 0;
width: 100%;
clear: both;
}
.plugin-card .name,
.plugin-card .desc {
margin-left: 0;
margin-top: 140px;
}
.plugin-card .action-links {
margin-left: 0;
}
.plugin-card .plugin-icon {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
margin: 0;
}
.wpa-plugin-filters {
padding: 15px;
}
.wpa-plugin-filters .button {
width: calc(50% - 4px);
min-width: 0;
}
}
@media screen and (max-width: 480px) {
.wpa-plugin-filters .button {
width: 100%;
}
.plugin-card .action-links .button {
display: block;
margin: 0 0 5px 0;
width: 100%;
text-align: center;
}
}
/* Settings Notification */
.wp-status {
position: relative !important;
display: inline-flex;
align-items: center;
margin-left: 15px;
transform: none;
top: auto;
right: auto;
background: #00a32a;
color: white;
padding: 4px 12px;
border-radius: 12px;
font-size: 13px;
font-weight: 500;
z-index: 100;
}
.wp-status.error {
background: #d63638;
}
.wpa-loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.8);
z-index: 10;
display: flex;
align-items: center;
justify-content: center;
}