You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
524 B
31 lines
524 B
// Codes
|
|
code {
|
|
@include label-base();
|
|
@include label-variant($code-color, $black);
|
|
font-size: 85%;
|
|
}
|
|
|
|
pre {
|
|
border-radius: $border-radius;
|
|
color: $white;
|
|
position: relative;
|
|
background-color: $black;
|
|
|
|
&::before {
|
|
color: $gray-color;
|
|
content: attr(data-lang);
|
|
font-size: $font-size-sm;
|
|
position: absolute;
|
|
right: $layout-spacing;
|
|
top: $unit-h;
|
|
}
|
|
|
|
code {
|
|
color: inherit;
|
|
display: block;
|
|
line-height: 1.5;
|
|
overflow-x: auto;
|
|
padding: 1rem;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|