refactored and changed px for relative units

This commit is contained in:
Marta Borgia Leiva 2026-02-11 11:23:24 +01:00
parent effcab5947
commit 171400f9ca

View file

@ -1,5 +1,5 @@
.content { .content {
padding: 40px; padding: 2.5rem;
width: clamp(70vw, 85vw, 90vw); width: clamp(70vw, 85vw, 90vw);
max-width: 80%; max-width: 80%;
margin: 0 auto; margin: 0 auto;
@ -8,15 +8,9 @@
gap: 0.6rem; gap: 0.6rem;
} }
@media (max-width: 600px) {
.content{
max-width: 95%;
}
}
.title h2 { .title h2 {
margin: 0 0 6px 0; margin: 0 0 0.375rem 0;
font-size: 26px; font-size: 1.625rem;
color: #1f2933; color: #1f2933;
} }
@ -35,8 +29,8 @@
height: fit-content; height: fit-content;
background: #ffffff; background: #ffffff;
padding: 1rem; padding: 1rem;
border-radius: 12px; border-radius: 0.75rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
} }
.project-card h2 { .project-card h2 {
@ -44,25 +38,13 @@
padding-top: 0.5rem; padding-top: 0.5rem;
} }
.tasks-header,
.collaborators-header {
padding-top: .5rem;
padding-bottom: 1.5rem;
}
.tasks-header h4,
.collaborators-header h4 {
margin: 0;
}
.danger-zone { .danger-zone {
margin-top: 20px; border: 0.0625rem solid #fee2e2;
border: 1px solid #fee2e2;
background: #fff5f5; background: #fff5f5;
} }
.danger-header h3 { .danger-header h3 {
margin: 0 0 6px 0; margin: 0 0 0.375rem 0;
color: #b91c1c; color: #b91c1c;
} }
@ -74,37 +56,37 @@
.danger-actions { .danger-actions {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12px; gap: 0.75rem;
margin-top: 16px; margin-top: 1rem;
} }
.danger-item { .danger-item {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 16px; gap: 1rem;
padding: 16px; padding: 1rem;
border-radius: 10px; border-radius: 0.625rem;
background: #ffffff; background: #ffffff;
border: 1px solid #fecaca; border: 0.0625rem solid #fecaca;
} }
.danger-item h4 { .danger-item h4 {
margin: 0 0 4px 0; margin: 0 0 0.25rem 0;
color: #7f1d1d; color: #7f1d1d;
font-size: 16px; font-size: 1rem;
} }
.danger-item p { .danger-item p {
margin: 0; margin: 0;
color: #991b1b; color: #991b1b;
font-size: 13px; font-size: 0.8125rem;
} }
.btn-danger, .btn-danger,
.btn-danger-outline { .btn-danger-outline {
padding: 8px 14px; padding: 0.5rem 0.875rem;
border-radius: 8px; border-radius: 0.5rem;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
transition: transition:
@ -125,7 +107,7 @@
} }
.btn-danger-outline { .btn-danger-outline {
border: 1px solid #fca5a5; border: 0.0625rem solid #fca5a5;
background-color: #ffffff; background-color: #ffffff;
color: #b91c1c; color: #b91c1c;
} }
@ -140,29 +122,30 @@
color: #4b5563; color: #4b5563;
} }
.tasks-header { .tasks-header,
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.collaborators-header { .collaborators-header {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 16px; gap: 1rem;
padding-top: 0.5rem;
padding-bottom: 1.5rem;
}
.tasks-header h4,
.collaborators-header h4 {
margin: 0;
} }
.collaborators-count { .collaborators-count {
font-size: 14px; font-size: 0.875rem;
color: #6b7280; color: #6b7280;
} }
.collaborators-grid { .collaborators-grid {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; gap: 1rem;
} }
.collaborators-grid--single { .collaborators-grid--single {
@ -171,47 +154,44 @@
.btn-add-task { .btn-add-task {
width: 100%; width: 100%;
padding: 8px 14px; padding: 0.5rem 0.875rem;
border-radius: 8px; border-radius: 0.5rem;
border: none; border: none;
background-color: #10b981; background-color: #10b981;
color: #ffffff; color: #ffffff;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
margin-top: 16px; margin-top: 1rem;
} }
.btn-add-collaborator { .btn-add-collaborator {
width: 100%; width: 100%;
padding: 8px 14px; padding: 0.5rem 0.875rem;
border-radius: 8px; border-radius: 0.5rem;
border: none; border: none;
background-color: #10b981; background-color: #10b981;
color: #ffffff; color: #ffffff;
font-weight: 600; font-weight: 600;
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
margin-top: 16px; margin-top: 1rem;
}
.btn-add-task:hover {
background-color: #059669;
} }
.btn-add-task:hover,
.btn-add-collaborator:hover { .btn-add-collaborator:hover {
background-color: #059669; background-color: #059669;
} }
.tasks-count { .tasks-count {
font-size: 14px; font-size: 0.875rem;
color: #6b7280; color: #6b7280;
} }
.tasks-list { .tasks-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12px; gap: 0.75rem;
flex: 1; flex: 1;
} }
@ -220,7 +200,7 @@
height: max-content; height: max-content;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 16px; gap: 1rem;
align-items: stretch; align-items: stretch;
} }
@ -239,16 +219,6 @@
flex: 1; flex: 1;
} }
@media (max-width: 960px) {
.content {
width: 90vw;
}
.cards-row {
flex-direction: column;
}
}
.loading p, .loading p,
.error-state p, .error-state p,
.empty-state p { .empty-state p {
@ -259,3 +229,19 @@
.error-state p { .error-state p {
color: #b91c1c; color: #b91c1c;
} }
@media (max-width: 60rem) {
.content {
width: 90vw;
}
.cards-row {
flex-direction: column;
}
}
@media (max-width: 37.5rem) {
.content {
max-width: 95%;
}
}