+ add training page (add admonition shortcode)

+ Finish translation
+ clean unused asset
This commit is contained in:
2025-01-23 16:48:37 +01:00
parent f91aba8329
commit fc87d59dbb
33 changed files with 468 additions and 93 deletions

View File

@@ -0,0 +1,70 @@
.admonition {
position: relative;
margin: 1rem 0;
padding: 0 0.75rem;
background-color: map-get($admonition-background-color-map, "note");
border-left: 0.25rem solid map-get($admonition-color-map, "note");
overflow: auto;
.admonition-title {
font-weight: bold;
margin: 0 -0.75rem;
padding: 0.25rem 1.8rem;
border-bottom: 1px solid map-get($admonition-background-color-map, "note");
background-color: opacify(
map-get($admonition-background-color-map, "note"),
0.15
);
}
&.open .admonition-title {
background-color: map-get($admonition-background-color-map, "note");
}
.admonition-content {
padding: 0.5rem 0;
}
span.icon > svg {
font-size: 0.85rem;
color: map-get($admonition-color-map, "note");
position: absolute;
top: 0.6rem;
left: 0.4rem;
}
span.details-icon > svg {
position: absolute;
top: 0.6rem;
right: 0.3rem;
}
@each $type, $color in $admonition-color-map {
&.#{$type} {
border-left-color: $color;
span.icon > svg {
color: $color;
}
}
}
@each $type, $color in $admonition-background-color-map {
&.#{$type} {
background-color: $color;
.admonition-title {
border-bottom-color: $color;
background-color: opacify($color, 0.15);
}
&.open .admonition-title {
background-color: $color;
}
}
}
&:last-child {
margin-bottom: 0.75rem;
}
}