mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 14:23:39 -04:00
Added new admonition classes and finished details
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
// Title
|
||||
.admonition-title {
|
||||
margin: -1.2rem -1.2rem 0;
|
||||
padding: 0.8rem 1.2rem;
|
||||
padding: 0.8rem 1.2rem 0.8rem 4rem;
|
||||
border-bottom: 0.1rem solid transparentize($clr-blue-a200, 0.9);
|
||||
background-color: transparentize($clr-blue-a200, 0.9);
|
||||
font-weight: 700;
|
||||
@@ -65,19 +65,21 @@
|
||||
&::before {
|
||||
@extend %md-icon;
|
||||
|
||||
margin-right: 0.8rem;
|
||||
position: absolute;
|
||||
left: 1.2rem;
|
||||
color: $clr-blue-a200;
|
||||
font-size: 2rem;
|
||||
content: "edit";
|
||||
vertical-align: -0.25em;
|
||||
}
|
||||
}
|
||||
|
||||
// Build representational classes
|
||||
@each $names, $appearance in (
|
||||
summary tldr: $clr-light-blue-a400 "subject",
|
||||
info todo: $clr-cyan-a700 "info",
|
||||
tip hint important : $clr-teal-a700 "whatshot",
|
||||
success check done: $clr-green-a700 "done",
|
||||
question help faq: $clr-light-green-a700 "help",
|
||||
warning caution attention: $clr-orange-a400 "warning",
|
||||
failure fail missing: $clr-red-a200 "clear",
|
||||
danger error: $clr-red-a400 "flash_on",
|
||||
|
||||
@@ -37,12 +37,21 @@
|
||||
// Re-add bottom spacing if block is open
|
||||
&[open] {
|
||||
padding-bottom: 1.2rem;
|
||||
|
||||
> summary::after {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
// Remove bottom border if block is closed
|
||||
&:not([open]) summary {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
// TODO specificity problem
|
||||
summary {
|
||||
padding-right: 4rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Title
|
||||
@@ -56,5 +65,17 @@
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
// Icon
|
||||
&::after {
|
||||
@extend %md-icon;
|
||||
|
||||
position: absolute;
|
||||
top: 0.8rem;
|
||||
right: 1.2rem;
|
||||
color: $md-color-black--lighter;
|
||||
font-size: 2rem;
|
||||
content: "keyboard_arrow_down";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user