Refactor CSS styles across multiple components for improved consistency and maintainability
- Removed redundant styles and consolidated common styles in styles.scss - Updated layout and spacing variables for better responsiveness - Simplified component-specific styles in apartment, lease, tenant, and dashboard components - Enhanced readability and organization of CSS by utilizing CSS layers - Ensured consistent use of design tokens for colors, spacing, and borders
This commit is contained in:
1 parent
713ab3b2d9
commit
561c6619a1
12 files changed
+523
-795
No files matched your search
@@ -1,83 +1,9 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading > div > p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.back-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--text-muted);
|
||||
margin: 0 0 20px -16px;
|
||||
}
|
||||
.apartment-form {
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
.form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
gap: 2px;
|
||||
}
|
||||
.form-grid mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
.alert-error {
|
||||
margin-bottom: 18px;
|
||||
padding: 13px 15px;
|
||||
border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
|
||||
border-radius: 12px;
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
font-size: 0.87rem;
|
||||
}
|
||||
.form-actions {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: 8px;
|
||||
margin-top: 6px;
|
||||
}
|
||||
.form-actions button {
|
||||
width: 100%;
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 28px;
|
||||
}
|
||||
.apartment-form {
|
||||
padding: 30px;
|
||||
}
|
||||
.form-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
column-gap: 18px;
|
||||
}
|
||||
.full-field {
|
||||
grid-column: span 2;
|
||||
}
|
||||
.form-actions {
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.form-actions button {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1180px) {
|
||||
.form-page {
|
||||
max-width: 900px;
|
||||
|
||||
@@ -1,204 +1,123 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.content-region>mat-progress-bar {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.refresh-error {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
|
||||
.page-heading>div>p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.page-heading .primary-action {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.empty-state,
|
||||
.apartment-card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
padding: 46px 22px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.empty-illustration {
|
||||
display: grid;
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
place-items: center;
|
||||
margin: 0 auto 22px;
|
||||
border-radius: 16px;
|
||||
background: var(--surface-accent);
|
||||
color: var(--accent);
|
||||
display: grid;
|
||||
width: 68px;
|
||||
height: 68px;
|
||||
place-items: center;
|
||||
margin: 0 auto 22px;
|
||||
border-radius: 16px;
|
||||
background: var(--surface-accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.empty-illustration fa-icon {
|
||||
display: flex;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: flex;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.empty-illustration fa-icon svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.empty-state h2 {
|
||||
margin-bottom: 8px;
|
||||
font-size: 1.45rem;
|
||||
}
|
||||
|
||||
.empty-state>p:not(.eyebrow) {
|
||||
max-width: 440px;
|
||||
margin: 0 auto 22px;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.empty-state .mat-mdc-outlined-button {
|
||||
--mdc-outlined-button-label-text-color: var(--accent);
|
||||
--mdc-outlined-button-outline-color: var(--border-strong);
|
||||
border-radius: 12px;
|
||||
.empty-state > p:not(.eyebrow) {
|
||||
max-width: 440px;
|
||||
margin: 0 auto 22px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.apartments-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.apartment-card {
|
||||
padding: 20px;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.apartment-card-topline {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
margin-bottom: 22px;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 14px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
|
||||
.property-label {
|
||||
margin: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.property-value {
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
font-size: 1rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.apt-info h2 {
|
||||
margin-bottom: 9px;
|
||||
font-size: 1.35rem;
|
||||
letter-spacing: -0.035em;
|
||||
margin-bottom: 9px;
|
||||
font-size: 1.35rem;
|
||||
letter-spacing: -0.035em;
|
||||
}
|
||||
|
||||
.apt-address {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.5;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.apt-address fa-icon {
|
||||
display: flex;
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
flex: 0 0 17px;
|
||||
margin-top: 2px;
|
||||
display: flex;
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
flex: 0 0 17px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.apt-address fa-icon svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.apt-desc {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.55;
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.88rem;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.apt-actions {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
justify-content: flex-end;
|
||||
margin-top: 20px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
justify-content: flex-end;
|
||||
margin-top: 20px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.apt-actions .mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--accent);
|
||||
--mdc-text-button-label-text-color: var(--accent);
|
||||
}
|
||||
|
||||
.apt-actions .danger-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--danger);
|
||||
}
|
||||
|
||||
.apt-actions mat-spinner {
|
||||
display: inline-block;
|
||||
margin-right: 6px;
|
||||
vertical-align: middle;
|
||||
--mdc-text-button-label-text-color: var(--danger);
|
||||
}
|
||||
|
||||
.card-error {
|
||||
margin: 14px 0 0;
|
||||
color: var(--danger);
|
||||
font-size: 0.84rem;
|
||||
margin: 14px 0 0;
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 28px;
|
||||
}
|
||||
|
||||
.page-heading .primary-action {
|
||||
width: auto;
|
||||
flex: 0 0 auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.apartments-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
.apartments-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1180px) {
|
||||
.apartments-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.apartments-grid {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,6 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-section {
|
||||
animation: page-in 180ms ease-out;
|
||||
}
|
||||
@keyframes page-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading > div > p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.status-pill,
|
||||
.role-chip {
|
||||
display: inline-flex;
|
||||
@@ -56,13 +28,6 @@
|
||||
grid-template-columns: 1fr;
|
||||
gap: 16px;
|
||||
}
|
||||
.feature-card {
|
||||
padding: 22px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
.feature-card h2 {
|
||||
margin-bottom: 9px;
|
||||
font-size: 1.35rem;
|
||||
@@ -175,12 +140,6 @@
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 28px;
|
||||
}
|
||||
.dashboard-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
@@ -1,26 +1,10 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.form-grid {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
.form-grid mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
.add-guarantor.mat-mdc-outlined-button {
|
||||
--mdc-outlined-button-label-text-color: var(--accent);
|
||||
--mdc-outlined-button-outline-color: var(--border-strong);
|
||||
width: 100%;
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.form-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.full-field {
|
||||
grid-column: span 2;
|
||||
}
|
||||
.add-guarantor.mat-mdc-outlined-button {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
}
|
||||
.lease-card {
|
||||
min-width: 0;
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.lease-topline {
|
||||
display: flex;
|
||||
@@ -68,24 +64,8 @@
|
||||
font-size: 0.66rem;
|
||||
}
|
||||
.card-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
margin-top: 14px;
|
||||
}
|
||||
.card-actions .mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--accent);
|
||||
}
|
||||
.card-actions .danger-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--danger);
|
||||
}
|
||||
.card-actions mat-spinner {
|
||||
display: inline-block;
|
||||
margin-right: 6px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.card-error {
|
||||
margin: 12px 0 0;
|
||||
color: var(--danger);
|
||||
font-size: 0.84rem;
|
||||
}
|
||||
@@ -1,33 +1,11 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading p:last-child,
|
||||
.section-heading p {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.back-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--text-muted);
|
||||
margin: 0 0 20px -16px;
|
||||
}
|
||||
.lease-form,
|
||||
.guarantor-section {
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.guarantor-section {
|
||||
margin-top: 18px;
|
||||
}
|
||||
@@ -61,13 +39,6 @@
|
||||
margin: 0;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.form-grid {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
.form-grid mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
.guarantor-chip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -81,41 +52,13 @@
|
||||
.guarantor-chip .mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--danger);
|
||||
}
|
||||
.alert-error {
|
||||
margin-bottom: 18px;
|
||||
padding: 13px 15px;
|
||||
border-radius: 12px;
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
.form-actions {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: 8px;
|
||||
margin-top: 28px;
|
||||
}
|
||||
.form-actions button {
|
||||
width: 100%;
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.form-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.three-columns {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
.lease-form,
|
||||
.guarantor-section {
|
||||
padding: 30px;
|
||||
}
|
||||
.form-actions {
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.form-actions button {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1180px) {
|
||||
.form-page {
|
||||
|
||||
@@ -1,60 +1,11 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.page-heading .primary-action {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.empty-state {
|
||||
padding: 46px 22px;
|
||||
text-align: center;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.empty-state > p:not(.eyebrow) {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.lease-grid {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
.content-region > mat-progress-bar,
|
||||
.refresh-error {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.skeleton-card {
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 28px;
|
||||
}
|
||||
.page-heading .primary-action {
|
||||
width: auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
.lease-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
|
||||
@@ -1,40 +1,8 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-section {
|
||||
animation: page-in 180ms ease-out;
|
||||
}
|
||||
@keyframes page-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading > div > p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.settings-card {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
.settings-card h2 {
|
||||
margin-bottom: 9px;
|
||||
@@ -131,14 +99,6 @@
|
||||
--mdc-outlined-button-outline-color: var(--border-strong);
|
||||
border-radius: 12px;
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 28px;
|
||||
}
|
||||
}
|
||||
@media (min-width: 960px) {
|
||||
.settings-card {
|
||||
display: grid;
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
}
|
||||
.tenant-card {
|
||||
min-width: 0;
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.tenant-identity {
|
||||
display: flex;
|
||||
@@ -146,8 +142,7 @@
|
||||
color: var(--text-muted);
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
.attachment-row mat-spinner,
|
||||
.card-actions mat-spinner {
|
||||
.attachment-row mat-spinner {
|
||||
display: inline-block;
|
||||
margin-right: 6px;
|
||||
vertical-align: middle;
|
||||
@@ -158,13 +153,5 @@
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
.card-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 12px;
|
||||
}
|
||||
.card-actions .mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--accent);
|
||||
}
|
||||
.card-actions .danger-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--danger);
|
||||
}
|
||||
@@ -1,73 +1,6 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.back-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--text-muted);
|
||||
margin: 0 0 20px -16px;
|
||||
}
|
||||
.entity-form {
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.alert-error {
|
||||
margin-bottom: 18px;
|
||||
padding: 13px 15px;
|
||||
border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
|
||||
border-radius: 12px;
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
.form-grid {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
.form-grid mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
.form-actions {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: 8px;
|
||||
}
|
||||
.form-actions button {
|
||||
width: 100%;
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.form-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
.full-field {
|
||||
grid-column: span 2;
|
||||
}
|
||||
.entity-form {
|
||||
padding: 30px;
|
||||
}
|
||||
.form-actions {
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.form-actions button {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
@media (min-width: 1180px) {
|
||||
.form-page {
|
||||
max-width: 900px;
|
||||
|
||||
@@ -1,60 +1,11 @@
|
||||
:host {
|
||||
display: block;
|
||||
}
|
||||
.page-heading {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.page-heading h1 {
|
||||
margin-bottom: 8px;
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
.page-heading p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted);
|
||||
line-height: 1.6;
|
||||
}
|
||||
.page-heading .primary-action {
|
||||
width: 100%;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.empty-state {
|
||||
padding: 46px 22px;
|
||||
text-align: center;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
.empty-state > p:not(.eyebrow) {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.tenant-grid {
|
||||
display: grid;
|
||||
gap: 16px;
|
||||
}
|
||||
.content-region > mat-progress-bar,
|
||||
.refresh-error {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.skeleton-card {
|
||||
padding: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 22px;
|
||||
background: var(--surface);
|
||||
}
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 28px;
|
||||
}
|
||||
.page-heading .primary-action {
|
||||
width: auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
.tenant-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 18px;
|
||||
|
||||
+456
-221
@@ -1,227 +1,476 @@
|
||||
@use '@angular/material' as mat;
|
||||
|
||||
@layer reset, base, layout, utilities, blocks, exceptions;
|
||||
|
||||
@include mat.core();
|
||||
|
||||
html {
|
||||
@include mat.theme(
|
||||
(
|
||||
color: (
|
||||
primary: mat.$cyan-palette,
|
||||
tertiary: mat.$azure-palette,
|
||||
theme-type: color-scheme,
|
||||
),
|
||||
typography: (
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
sans-serif,
|
||||
),
|
||||
density: 0,
|
||||
)
|
||||
);
|
||||
@layer base {
|
||||
html {
|
||||
@include mat.theme(
|
||||
(
|
||||
color: (
|
||||
primary: mat.$cyan-palette,
|
||||
tertiary: mat.$azure-palette,
|
||||
theme-type: color-scheme,
|
||||
),
|
||||
typography: (
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
sans-serif,
|
||||
),
|
||||
density: 0,
|
||||
)
|
||||
);
|
||||
|
||||
color-scheme: light;
|
||||
--canvas: #f4f6f2;
|
||||
--surface: #ffffff;
|
||||
--surface-raised: #ffffff;
|
||||
--surface-soft: #e9efeb;
|
||||
--surface-accent: #dcefeb;
|
||||
--text: #17211e;
|
||||
--text-muted: #687670;
|
||||
--text-subtle: #8c9994;
|
||||
--accent: #0f766e;
|
||||
--accent-strong: #0a5f59;
|
||||
--accent-contrast: #ffffff;
|
||||
--border: #dce5df;
|
||||
--border-strong: #c7d3cd;
|
||||
--danger: #b42318;
|
||||
--danger-soft: #fee9e7;
|
||||
--shadow: 0 24px 60px rgba(28, 49, 42, 0.09);
|
||||
color-scheme: light;
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
--space-3: 0.75rem;
|
||||
--space-4: 1rem;
|
||||
--space-5: 1.25rem;
|
||||
--space-6: 1.5rem;
|
||||
--space-7: 1.75rem;
|
||||
--space-8: 2rem;
|
||||
--space-10: 2.5rem;
|
||||
--radius-sm: 0.75rem;
|
||||
--radius-md: 0.8125rem;
|
||||
--radius-lg: 1rem;
|
||||
--radius-xl: 1.375rem;
|
||||
--canvas: #f4f6f2;
|
||||
--surface: #ffffff;
|
||||
--surface-raised: #ffffff;
|
||||
--surface-soft: #e9efeb;
|
||||
--surface-accent: #dcefeb;
|
||||
--text: #17211e;
|
||||
--text-muted: #687670;
|
||||
--text-subtle: #8c9994;
|
||||
--accent: #0f766e;
|
||||
--accent-strong: #0a5f59;
|
||||
--accent-contrast: #ffffff;
|
||||
--border: #dce5df;
|
||||
--border-strong: #c7d3cd;
|
||||
--danger: #b42318;
|
||||
--danger-soft: #fee9e7;
|
||||
--shadow: 0 24px 60px rgba(28, 49, 42, 0.09);
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
--canvas: #101513;
|
||||
--surface: #171d1b;
|
||||
--surface-raised: #1b2320;
|
||||
--surface-soft: #202a26;
|
||||
--surface-accent: #173a36;
|
||||
--text: #f0f5f2;
|
||||
--text-muted: #a7b5af;
|
||||
--text-subtle: #7f8e88;
|
||||
--accent: #63c7bc;
|
||||
--accent-strong: #86d7cf;
|
||||
--accent-contrast: #08201d;
|
||||
--border: #2c3733;
|
||||
--border-strong: #3a4944;
|
||||
--danger: #ffb4ab;
|
||||
--danger-soft: #4a2421;
|
||||
--shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--canvas, #f4f6f2);
|
||||
color: var(--text, #17211e);
|
||||
font-family:
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
'Segoe UI',
|
||||
sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
transition:
|
||||
background-color 180ms ease,
|
||||
color 180ms ease;
|
||||
}
|
||||
|
||||
fa-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
--canvas: #101513;
|
||||
--surface: #171d1b;
|
||||
--surface-raised: #1b2320;
|
||||
--surface-soft: #202a26;
|
||||
--surface-accent: #173a36;
|
||||
--text: #f0f5f2;
|
||||
--text-muted: #a7b5af;
|
||||
--text-subtle: #7f8e88;
|
||||
--accent: #63c7bc;
|
||||
--accent-strong: #86d7cf;
|
||||
--accent-contrast: #08201d;
|
||||
--border: #2c3733;
|
||||
--border-strong: #3a4944;
|
||||
--danger: #ffb4ab;
|
||||
--danger-soft: #4a2421;
|
||||
--shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
||||
@layer reset {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
min-width: 320px;
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
@layer layout {
|
||||
.page-section {
|
||||
animation: page-in 180ms ease-out;
|
||||
}
|
||||
|
||||
.page-heading {
|
||||
margin-bottom: 1.875rem;
|
||||
}
|
||||
|
||||
.page-heading h1 {
|
||||
margin-bottom: var(--space-2, 0.5rem);
|
||||
font-size: clamp(2rem, 7vw, 3.2rem);
|
||||
font-weight: 750;
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.02;
|
||||
}
|
||||
|
||||
.page-heading > div > p:last-child {
|
||||
margin-bottom: 0;
|
||||
color: var(--text-muted, #687670);
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.page-heading .primary-action {
|
||||
width: 100%;
|
||||
margin-top: var(--space-5, 1.25rem);
|
||||
}
|
||||
|
||||
.content-region > mat-progress-bar,
|
||||
.refresh-error {
|
||||
margin-bottom: var(--space-4, 1rem);
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.form-grid mat-form-field {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
gap: var(--space-2, 0.5rem);
|
||||
}
|
||||
|
||||
.form-actions button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
.page-heading {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-7, 1.75rem);
|
||||
}
|
||||
|
||||
.page-heading .primary-action {
|
||||
width: auto;
|
||||
flex: 0 0 auto;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.form-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 1.125rem;
|
||||
}
|
||||
|
||||
.full-field {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.form-actions {
|
||||
flex-direction: row;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.form-actions button {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
min-width: 320px;
|
||||
min-height: 100%;
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
@layer utilities {
|
||||
.brand-mark {
|
||||
display: grid;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
flex: 0 0 42px;
|
||||
place-items: center;
|
||||
border-radius: 14px;
|
||||
background: var(--accent, #0f766e);
|
||||
color: var(--accent-contrast, #ffffff);
|
||||
}
|
||||
|
||||
.primary-action.mat-mdc-unelevated-button {
|
||||
--mdc-filled-button-container-color: var(--accent, #0f766e);
|
||||
--mdc-filled-button-label-text-color: var(--accent-contrast, #ffffff);
|
||||
min-height: 44px;
|
||||
border-radius: var(--radius-md, 0.8125rem);
|
||||
padding-inline: var(--space-5, 1.25rem);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.eyebrow,
|
||||
.context-label,
|
||||
.story-kicker,
|
||||
.property-label {
|
||||
margin-bottom: var(--space-2, 0.5rem);
|
||||
color: var(--accent, #0f766e);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.11em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--canvas);
|
||||
color: var(--text);
|
||||
font-family:
|
||||
Inter,
|
||||
ui-sans-serif,
|
||||
system-ui,
|
||||
-apple-system,
|
||||
BlinkMacSystemFont,
|
||||
'Segoe UI',
|
||||
sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
transition:
|
||||
background-color 180ms ease,
|
||||
color 180ms ease;
|
||||
@layer blocks {
|
||||
.busy-fieldset {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.primary-action mat-spinner {
|
||||
display: inline-block;
|
||||
margin-right: var(--space-2, 0.5rem);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.back-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--text-muted, #687670);
|
||||
margin: 0 0 var(--space-5, 1.25rem) -1rem;
|
||||
}
|
||||
|
||||
.apartment-form,
|
||||
.lease-form,
|
||||
.guarantor-section,
|
||||
.entity-form,
|
||||
.empty-state,
|
||||
.apartment-card,
|
||||
.lease-card,
|
||||
.tenant-card,
|
||||
.feature-card,
|
||||
.settings-card,
|
||||
.skeleton-card {
|
||||
border: 1px solid var(--border, #dce5df);
|
||||
border-radius: var(--radius-xl, 1.375rem);
|
||||
background: var(--surface, #ffffff);
|
||||
}
|
||||
|
||||
.apartment-form,
|
||||
.apartment-card,
|
||||
.feature-card,
|
||||
.settings-card {
|
||||
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
.apartment-form,
|
||||
.lease-form,
|
||||
.guarantor-section,
|
||||
.entity-form,
|
||||
.apartment-card,
|
||||
.lease-card,
|
||||
.tenant-card,
|
||||
.skeleton-card {
|
||||
padding: var(--space-5, 1.25rem);
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
padding: 1.375rem;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
padding: 2.875rem 1.375rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.empty-state h2 {
|
||||
margin-bottom: var(--space-2, 0.5rem);
|
||||
font-size: 1.45rem;
|
||||
}
|
||||
|
||||
.empty-state > p:not(.eyebrow) {
|
||||
color: var(--text-muted, #687670);
|
||||
}
|
||||
|
||||
.empty-state .mat-mdc-outlined-button,
|
||||
.api-actions .mat-mdc-outlined-button,
|
||||
.add-guarantor.mat-mdc-outlined-button {
|
||||
--mdc-outlined-button-label-text-color: var(--accent, #0f766e);
|
||||
--mdc-outlined-button-outline-color: var(--border-strong, #c7d3cd);
|
||||
border-radius: var(--radius-sm, 0.75rem);
|
||||
}
|
||||
|
||||
.skeleton-card {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 0.875rem;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.alert-error,
|
||||
.load-error,
|
||||
.refresh-error {
|
||||
border: 1px solid color-mix(in srgb, var(--danger, #b42318) 28%, transparent);
|
||||
border-radius: var(--radius-lg, 1rem);
|
||||
background: var(--danger-soft, #fee9e7);
|
||||
color: var(--danger, #b42318);
|
||||
}
|
||||
|
||||
.alert-error {
|
||||
margin-bottom: 1.125rem;
|
||||
padding: 0.8125rem 0.9375rem;
|
||||
font-size: 0.87rem;
|
||||
}
|
||||
|
||||
.load-error,
|
||||
.refresh-error {
|
||||
padding: var(--space-5, 1.25rem);
|
||||
}
|
||||
|
||||
.load-error {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.load-error h2,
|
||||
.load-error p,
|
||||
.refresh-error p {
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
|
||||
.card-actions .mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--accent, #0f766e);
|
||||
}
|
||||
|
||||
.card-actions .danger-action.mat-mdc-button {
|
||||
--mdc-text-button-label-text-color: var(--danger, #b42318);
|
||||
}
|
||||
|
||||
.card-actions mat-spinner,
|
||||
.apt-actions mat-spinner {
|
||||
display: inline-block;
|
||||
margin-right: 0.375rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.card-error {
|
||||
color: var(--danger, #b42318);
|
||||
font-size: 0.84rem;
|
||||
}
|
||||
|
||||
.skeleton-line {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--surface-soft, #e9efeb) 25%,
|
||||
var(--border, #dce5df) 50%,
|
||||
var(--surface-soft, #e9efeb) 75%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.skeleton-line-short {
|
||||
width: 34%;
|
||||
}
|
||||
|
||||
.skeleton-line-medium {
|
||||
width: 68%;
|
||||
}
|
||||
|
||||
.skeleton-line-title {
|
||||
width: 55%;
|
||||
height: 24px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
.apartment-form,
|
||||
.lease-form,
|
||||
.guarantor-section,
|
||||
.entity-form {
|
||||
padding: 1.875rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea {
|
||||
font: inherit;
|
||||
@layer exceptions {
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
|
||||
.skeleton-line {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
fa-icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
p {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
display: grid;
|
||||
width: 42px;
|
||||
height: 42px;
|
||||
flex: 0 0 42px;
|
||||
place-items: center;
|
||||
border-radius: 14px;
|
||||
background: var(--accent);
|
||||
color: var(--accent-contrast);
|
||||
}
|
||||
|
||||
.primary-action.mat-mdc-unelevated-button {
|
||||
--mdc-filled-button-container-color: var(--accent);
|
||||
--mdc-filled-button-label-text-color: var(--accent-contrast);
|
||||
min-height: 44px;
|
||||
border-radius: 13px;
|
||||
padding-inline: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.eyebrow,
|
||||
.context-label,
|
||||
.story-kicker,
|
||||
.property-label {
|
||||
margin-bottom: 8px;
|
||||
color: var(--accent);
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.11em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.skeleton-card {
|
||||
display: grid;
|
||||
align-content: start;
|
||||
gap: 14px;
|
||||
min-height: 220px;
|
||||
}
|
||||
|
||||
.visually-hidden {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.busy-fieldset {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.primary-action mat-spinner {
|
||||
display: inline-block;
|
||||
margin-right: 8px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.load-error,
|
||||
.refresh-error {
|
||||
padding: 20px;
|
||||
border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
|
||||
border-radius: 16px;
|
||||
background: var(--danger-soft);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.load-error {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.load-error h2,
|
||||
.load-error p,
|
||||
.refresh-error p {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.skeleton-line {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 14px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
90deg,
|
||||
var(--surface-soft) 25%,
|
||||
var(--border) 50%,
|
||||
var(--surface-soft) 75%
|
||||
);
|
||||
background-size: 200% 100%;
|
||||
animation: skeleton-shimmer 1.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.skeleton-line-short {
|
||||
width: 34%;
|
||||
}
|
||||
|
||||
.skeleton-line-medium {
|
||||
width: 68%;
|
||||
}
|
||||
|
||||
.skeleton-line-title {
|
||||
width: 55%;
|
||||
height: 24px;
|
||||
margin-top: 30px;
|
||||
@keyframes page-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes skeleton-shimmer {
|
||||
@@ -229,17 +478,3 @@ p {
|
||||
background-position-x: -200%;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
animation-duration: 0.01ms !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
|
||||
.skeleton-line {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user