portails/assets/scss/components/_code.scss

44 lines
565 B
SCSS
Raw Normal View History

2020-04-15 15:48:16 +02:00
pre,
code,
kbd,
samp {
font-family: $font-family-monospace;
font-size: $font-size-sm;
border-radius: $border-radius;
}
pre {
2020-11-04 08:26:58 +01:00
background: $beige;
color: $black;
2020-04-15 15:48:16 +02:00
line-height: $line-height-lg;
margin: 2rem 0;
overflow: auto;
padding: 1.25rem 1.5rem;
tab-size: 4;
}
code {
background: $beige;
color: $black;
padding: 0.25rem 0.5rem;
}
pre code {
background: none;
font-size: inherit;
padding: 0;
}
2020-11-04 08:26:58 +01:00
@include media-breakpoint-down(xs) {
pre {
margin: 2rem -1.5rem;
}
pre,
code,
kbd,
samp {
border-radius: 0;
}
}