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.
34 lines
638 B
34 lines
638 B
// Codes
|
|
code {
|
|
@include label-base();
|
|
@include label-variant($code-color, lighten($code-color, 33%));
|
|
font-size: 85%;
|
|
background: lighten($body-bg, 10%);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.code {
|
|
border-radius: $border-radius;
|
|
color: $body-font-color;
|
|
position: relative;
|
|
|
|
&::before {
|
|
color: $gray-color;
|
|
content: attr(data-lang);
|
|
font-size: $font-size-sm;
|
|
position: absolute;
|
|
right: $layout-spacing;
|
|
top: $unit-h;
|
|
}
|
|
|
|
code {
|
|
background: $bg-color;
|
|
color: inherit;
|
|
display: block;
|
|
line-height: 1.5;
|
|
overflow-x: auto;
|
|
padding: 1rem;
|
|
width: 100%;
|
|
}
|
|
}
|