Support list in portfolio cards
Some checks failed
ci/woodpecker/push/publish Pipeline failed

This commit is contained in:
Mylloon 2024-01-26 16:58:16 +01:00
parent 048ed0c7e1
commit c380da6380
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -20,7 +20,7 @@ main {
}
/* List */
main ul {
main ul:not(ul ul) {
padding: 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
@ -34,7 +34,7 @@ main ul {
}
/* Card */
main li {
main li:not(ul ul > li) {
display: flex;
border-radius: 8px;
@ -50,12 +50,12 @@ main li {
margin-inline: 5px;
}
main li:hover {
main li:hover:not(ul ul > li) {
background: color-mix(in srgb, var(--background) 40%, var(--extreme));
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.3);
}
main li[role="button"]:hover {
main li[role="button"]:hover:not(ul ul > li) {
cursor: pointer;
}
@ -91,10 +91,17 @@ span {
/* Element text */
div p,
div a {
div a,
ul ul li {
font-size: var(--font-size-card);
}
/* Element list */
ul ul {
list-style: initial;
padding: 1em;
}
/* Element language */
p[data-lang] {
margin: 0;