Add utilities documentation

This commit is contained in:
Jeremy Thomas
2021-09-19 23:36:15 +01:00
parent e145c9d680
commit f6c0cfc813
19 changed files with 1227 additions and 444 deletions

View File

@@ -37,6 +37,20 @@
z-index: 1;
}
.bd-snippet-inline {
display: inline-block;
margin-bottom: -0.25em;
vertical-align: bottom;
.highlight pre {
padding: 0.5em 0.75em 0.625em;
}
.button.bd-copy {
display: none;
}
}
.bd-snippet {
@extend %block;
--snippet-spacing: #{$block-spacing};
@@ -159,7 +173,7 @@
&::before {
background: linear-gradient(0deg, var(--hl-background), transparent);
bottom: 0;
content: '';
content: "";
display: block;
left: 0;
position: absolute;

View File

@@ -0,0 +1,9 @@
.bd-color {
border-radius: 2px;
box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
display: inline-block;
float: left;
height: 24px;
margin-right: 8px;
width: 24px;
}

View File

@@ -30,14 +30,14 @@
pre {
overflow: visible;
padding: 0;
padding: 0.25em 0.5em 0.375em;
white-space: pre-wrap;
white-space: break-spaces;
}
}
.bd-copy {
font-size: 0.5em !important;
font-size: 0.75em !important;
right: 0;
top: 0;
}