refactor: remove legacy resource styles for improved maintainability
This commit is contained in:
parent
3d20707b82
commit
2d76ec5f9d
1 changed files with 3 additions and 233 deletions
236
dist/css/styles.css
vendored
236
dist/css/styles.css
vendored
|
|
@ -1719,102 +1719,7 @@ tr:focus-within {
|
|||
margin: var(--space-xs) 0
|
||||
}
|
||||
|
||||
.resources-categories {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
||||
gap: var(--space-4xl)
|
||||
}
|
||||
|
||||
.resource-category {
|
||||
background: var(--bg-elevated);
|
||||
border-radius: var(--radius-2xl);
|
||||
padding: var(--space-4xl);
|
||||
border: 1px solid var(--border-primary);
|
||||
box-shadow: var(--shadow-sm)
|
||||
}
|
||||
|
||||
.resource-category h3 {
|
||||
margin: 0 0 var(--space-2xl);
|
||||
font-size: var(--text-2xl);
|
||||
font-weight: var(--font-bold);
|
||||
color: var(--primary);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-md)
|
||||
}
|
||||
|
||||
.resource-category-icon {
|
||||
width: 28px;
|
||||
height: 28px
|
||||
}
|
||||
|
||||
.resource-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
gap: var(--space-lg)
|
||||
}
|
||||
|
||||
.resource-item {
|
||||
display: block;
|
||||
padding: var(--space-xl);
|
||||
background: var(--bg-secondary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-lg);
|
||||
text-decoration: none;
|
||||
transition: border-color var(--transition-fast), background-color var(--transition-fast)
|
||||
}
|
||||
|
||||
.resource-item:hover {
|
||||
border-color: var(--primary);
|
||||
background: var(--bg-primary)
|
||||
}
|
||||
|
||||
.resource-item strong {
|
||||
display: block;
|
||||
color: var(--text-primary);
|
||||
font-weight: var(--font-semibold);
|
||||
margin-bottom: var(--space-sm);
|
||||
font-size: var(--text-base)
|
||||
}
|
||||
|
||||
.resource-item span {
|
||||
color: var(--text-secondary);
|
||||
font-size: var(--text-sm);
|
||||
line-height: 1.5
|
||||
}
|
||||
|
||||
.resource-item .meta-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-xs);
|
||||
margin-top: var(--space-sm)
|
||||
}
|
||||
|
||||
.resource-item .meta-tags .tag {
|
||||
padding: 2px 8px;
|
||||
border-radius: var(--radius-full);
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border-primary);
|
||||
color: var(--text-tertiary);
|
||||
font-size: 11px
|
||||
}
|
||||
|
||||
.resource-item.external {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.resource-item.external::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
right: 10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
mask: url('#icon-document') no-repeat center / contain;
|
||||
background: currentColor;
|
||||
opacity: .35
|
||||
}
|
||||
/* Legacy support - removed old .resource-category, .resource-list, .resource-item styles (replaced by .resource-card) */
|
||||
|
||||
/* ===== TABLE BASE STYLES ===== */
|
||||
.data-table-container {
|
||||
|
|
@ -1875,94 +1780,7 @@ th {
|
|||
align-items: center
|
||||
}
|
||||
|
||||
.enhanced-resources .resource-category.elevated {
|
||||
position: relative;
|
||||
border: 1px solid var(--border-primary);
|
||||
box-shadow: var(--shadow-md)
|
||||
}
|
||||
|
||||
.resource-list.cards-3 {
|
||||
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
||||
display: grid
|
||||
}
|
||||
|
||||
.resource-item.accent-hover {
|
||||
position: relative;
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
.resource-item.accent-hover::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(139, 92, 246, .08));
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition-fast)
|
||||
}
|
||||
|
||||
.resource-item.accent-hover:hover::after {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.resource-item.static {
|
||||
cursor: default;
|
||||
background: var(--bg-secondary)
|
||||
}
|
||||
|
||||
.footer-content.improved {
|
||||
position: relative
|
||||
}
|
||||
|
||||
.newsletter-form {
|
||||
display: flex;
|
||||
gap: var(--space-sm);
|
||||
margin-top: var(--space-2xl);
|
||||
flex-wrap: wrap
|
||||
}
|
||||
|
||||
.newsletter-form input {
|
||||
flex: 1;
|
||||
min-width: 220px;
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border: 1px solid var(--border-primary);
|
||||
background: var(--bg-primary);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--text-sm);
|
||||
color: var(--text-primary)
|
||||
}
|
||||
|
||||
.newsletter-form input:focus-visible {
|
||||
outline: 2px solid transparent;
|
||||
box-shadow: 0 0 0 3px rgb(99 102 241 / .25);
|
||||
border-color: var(--primary)
|
||||
}
|
||||
|
||||
.newsletter-form button {
|
||||
padding: var(--space-sm) var(--space-lg);
|
||||
border: 1px solid var(--border-primary);
|
||||
background: var(--primary);
|
||||
color: #fff;
|
||||
font-size: var(--text-sm);
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
transition: background-color var(--transition-fast)
|
||||
}
|
||||
|
||||
.newsletter-form button:hover {
|
||||
background: var(--primary-hover)
|
||||
}
|
||||
|
||||
.newsletter-form button:disabled {
|
||||
opacity: .6;
|
||||
cursor: not-allowed
|
||||
}
|
||||
|
||||
.social-links {
|
||||
margin-top: var(--space-xl);
|
||||
display: flex;
|
||||
gap: var(--space-md);
|
||||
flex-wrap: wrap
|
||||
}
|
||||
/* Legacy support - removed duplicate enhanced resource styles and newsletter form */
|
||||
|
||||
.social-btn,
|
||||
.github-link {
|
||||
|
|
@ -2557,55 +2375,7 @@ th {
|
|||
}
|
||||
|
||||
/* Legacy support - keep old classes for backward compatibility */
|
||||
.referral-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
||||
gap: var(--space-lg);
|
||||
justify-items: center
|
||||
}
|
||||
|
||||
.referral-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-xl);
|
||||
background: var(--bg-primary);
|
||||
border: 1px solid var(--border-primary);
|
||||
border-radius: var(--radius-lg);
|
||||
text-decoration: none;
|
||||
width: 100%;
|
||||
max-width: 200px;
|
||||
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
||||
min-height: 100px;
|
||||
position: relative;
|
||||
overflow: hidden
|
||||
}
|
||||
|
||||
.referral-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(135deg, rgba(99, 102, 241, .03) 0%, rgba(139, 92, 246, .02) 100%);
|
||||
opacity: 0;
|
||||
transition: opacity var(--transition-fast);
|
||||
z-index: -1
|
||||
}
|
||||
|
||||
.referral-card:hover {
|
||||
border-color: var(--primary)
|
||||
}
|
||||
|
||||
.referral-card:hover::before {
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
.referral-card .service-name {
|
||||
font-weight: var(--font-semibold);
|
||||
color: var(--text-primary);
|
||||
font-size: var(--text-base)
|
||||
}
|
||||
/* Legacy support - removed duplicate old .referral-card and .referral-grid styles */
|
||||
|
||||
.referral-badge,
|
||||
.speed-test-label {
|
||||
|
|
|
|||
Loading…
Reference in a new issue