Fix card hiding

This commit is contained in:
2025-10-08 11:42:56 +02:00
parent 522364f601
commit 2cac7ea1f1
2 changed files with 39 additions and 31 deletions

View File

@@ -17,40 +17,15 @@ article {
} }
.card-open-symbol { .card-open-symbol {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5rem; font-size: 1.5rem;
width: 2rem;
transition: rotate 0.5s; transition: rotate 0.5s;
cursor: pointer; cursor: pointer;
} }
&:has(.card-check:checked) {
>main {
opacity: 0%;
max-height: 0;
transition: opacity 0.2s, max-height 0.2s ease 0.2s;
}
.card-open-symbol {
rotate: -90deg;
}
}
&:has(header) {
main {
img {
border-radius: 0 0 var(--border-radius) var(--border-radius);
}
}
}
&:has(footer) {
main {
img {
border-radius: var(--border-radius) var(--border-radius) 0 0;
}
}
}
header { header {
line-height: 2rem; line-height: 2rem;
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
@@ -116,4 +91,37 @@ article {
} }
} }
} }
&:has(.card-check:checked) {
header {
border: none;
}
>main {
opacity: 0%;
max-height: 0;
transition: opacity 0.2s, max-height 0.2s ease 0.2s, padding 0.2s ease 0.2s;
padding: 0;
}
.card-open-symbol {
rotate: -90deg;
}
}
&:has(header) {
main {
img {
border-radius: 0 0 var(--border-radius) var(--border-radius);
}
}
}
&:has(footer) {
main {
img {
border-radius: var(--border-radius) var(--border-radius) 0 0;
}
}
}
} }

View File

@@ -1,7 +1,7 @@
export default { export default {
'server': { 'server': {
'host': '0.0.0.0', // 'host': '0.0.0.0',
'port': 5173, 'port': 8080,
}, },
}; };