Carets for folding headers
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 53s
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 53s
This commit is contained in:
@@ -363,4 +363,41 @@ span.artifact {
|
||||
|
||||
.green {
|
||||
color: var(--color-green);
|
||||
}
|
||||
|
||||
/* Seccions col·lapsables (h1/h2/h3) a la vista prèvia d'una nota */
|
||||
.fold-handle {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding-left: 0.95em;
|
||||
}
|
||||
|
||||
.fold-handle::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0.1em;
|
||||
top: 0.55em;
|
||||
width: 0.3em;
|
||||
height: 0.3em;
|
||||
box-sizing: border-box;
|
||||
border-right: 1px solid currentColor;
|
||||
border-bottom: 1px solid currentColor;
|
||||
opacity: 0;
|
||||
transition: transform 0.15s ease, opacity 0.15s ease;
|
||||
transform: rotate(45deg);
|
||||
transform-origin: center;
|
||||
}
|
||||
|
||||
.fold-handle:hover::before {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.fold.is-collapsed > .fold-handle::before {
|
||||
opacity: 0.7;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
.fold.is-collapsed > .fold-body {
|
||||
display: none;
|
||||
}
|
||||
Reference in New Issue
Block a user