Files
techblog-wp-theme/css/admin.css
T
Your Name 6d4368fbd1 Initial commit: TechBlog Pro WordPress theme
Features:
- Modern UI with dark mode support
- Code highlighting with copy button
- Auto table of contents
- Reading time & views counter
- Responsive design
- Admin settings page
- AJAX search
2026-08-18 16:05:14 +08:00

195 lines
3.5 KiB
CSS

/* TechBlog Pro Admin Styles */
.techblog-admin-wrapper {
display: grid;
grid-template-columns: 200px 1fr;
gap: 20px;
margin-top: 20px;
}
.nav-tab-wrapper {
display: flex;
flex-direction: column;
background: #fff;
border: 1px solid #ccd0d4;
border-radius: 4px;
overflow: hidden;
height: fit-content;
}
.nav-tab-wrapper .nav-tab {
display: block;
padding: 12px 16px;
border: none;
border-bottom: 1px solid #ccd0d4;
border-radius: 0;
margin: 0;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
color: #2271b1;
}
.nav-tab-wrapper .nav-tab:last-child {
border-bottom: none;
}
.nav-tab-wrapper .nav-tab:hover {
background: #f0f0f1;
color: #135e96;
}
.nav-tab-wrapper .nav-tab.nav-tab-active {
background: #2563eb;
color: #fff;
border-color: #2563eb;
}
.tab-content {
display: none;
background: #fff;
padding: 20px;
border: 1px solid #ccd0d4;
border-radius: 4px;
}
.tab-content.active {
display: block;
}
.tab-content .form-table th {
width: 150px;
padding: 15px 10px;
}
.tab-content .form-table td {
padding: 15px 10px;
}
.tab-content .form-table input[type="text"],
.tab-content .form-table input[type="url"],
.tab-content .form-table input[type="email"],
.tab-content .form-table textarea,
.tab-content .form-table select {
min-width: 300px;
}
.tab-content .form-table input[type="color"] {
width: 60px;
height: 36px;
padding: 2px;
cursor: pointer;
}
.tab-content .form-table fieldset label {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
cursor: pointer;
}
.tab-content .form-table fieldset input[type="checkbox"] {
width: 18px;
height: 18px;
}
/* About Card */
.techblog-about-card {
max-width: 600px;
}
.techblog-about-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.techblog-about-header h2 {
margin: 0;
font-size: 24px;
}
.techblog-about-header .version {
background: #2563eb;
color: #fff;
padding: 4px 12px;
border-radius: 100px;
font-size: 12px;
font-weight: 600;
}
.techblog-about-card h3 {
margin-top: 24px;
margin-bottom: 12px;
font-size: 16px;
}
.techblog-about-card ul {
padding-left: 20px;
}
.techblog-about-card li {
margin-bottom: 8px;
line-height: 1.6;
}
.techblog-about-card a {
color: #2563eb;
text-decoration: none;
}
.techblog-about-card a:hover {
text-decoration: underline;
}
/* Submit Button */
.submit {
margin-top: 20px;
}
.submit .button-primary {
background: #2563eb;
border-color: #2563eb;
padding: 0 20px;
height: 40px;
font-size: 14px;
border-radius: 4px;
}
.submit .button-primary:hover {
background: #1d4ed8;
border-color: #1d4ed8;
}
/* Responsive */
@media (max-width: 782px) {
.techblog-admin-wrapper {
grid-template-columns: 1fr;
}
.nav-tab-wrapper {
flex-direction: row;
flex-wrap: wrap;
}
.nav-tab-wrapper .nav-tab {
border-bottom: none;
border-right: 1px solid #ccd0d4;
}
.nav-tab-wrapper .nav-tab:last-child {
border-right: none;
}
.tab-content .form-table input[type="text"],
.tab-content .form-table input[type="url"],
.tab-content .form-table input[type="email"],
.tab-content .form-table textarea,
.tab-content .form-table select {
min-width: 100%;
}
}