- Removed redundant CSS rules and consolidated styles across dashboard, forms, imports, projects, and scenarios. - Introduced new color variables in theme-default.css for better maintainability and consistency. - Updated existing styles to utilize new color variables, enhancing the overall design. - Improved responsiveness and layout of various components, including tables and cards. - Ensured consistent styling for buttons, links, and headers across the application.
184 lines
3.1 KiB
CSS
184 lines
3.1 KiB
CSS
.projects-grid {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.project-card {
|
|
background: var(--color-surface-overlay);
|
|
border: 1px solid var(--color-border);
|
|
box-shadow: var(--shadow);
|
|
border-radius: var(--radius);
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.project-card:hover,
|
|
.project-card:focus-within {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 22px 45px var(--color-panel-shadow-deep);
|
|
}
|
|
|
|
.project-card__header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.project-card__title {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.project-card__title a {
|
|
color: var(--brand);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.project-card__title a:hover,
|
|
.project-card__title a:focus {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.project-card__type {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.project-card__description {
|
|
margin: 0;
|
|
color: var(--color-text-subtle);
|
|
min-height: 3rem;
|
|
}
|
|
|
|
.project-card__meta {
|
|
display: grid;
|
|
gap: 1rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
}
|
|
|
|
.project-card__meta div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.project-card__meta dt {
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
color: var(--color-text-muted);
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.project-card__meta dd {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.project-card__footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.project-card__links {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.project-card__links .btn--link {
|
|
padding: 3px 4px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.project-metrics {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.project-form {
|
|
background: var(--color-surface-overlay);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
box-shadow: var(--shadow);
|
|
padding: 1.75rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.card {
|
|
background: var(--color-surface-overlay);
|
|
border: 1px solid var(--color-border);
|
|
box-shadow: var(--shadow);
|
|
border-radius: var(--radius);
|
|
padding: 1.5rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.project-column {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.project-actions-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.project-scenarios-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.project-scenarios-card__header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.project-scenarios-card__header h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.card-header h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.project-layout {
|
|
display: grid;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
@media (min-width: 960px) {
|
|
.project-layout {
|
|
grid-template-columns: 1.1fr 1.9fr;
|
|
align-items: start;
|
|
}
|
|
}
|