mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-26 13:26:22 +00:00
20 lines
569 B
SCSS
20 lines
569 B
SCSS
|
.code-title {
|
||
|
color: var(--primary) ;
|
||
|
font-family: monospace;
|
||
|
width: max-content;
|
||
|
overflow-x: auto;
|
||
|
display: inline-block;
|
||
|
vertical-align: middle;
|
||
|
font-weight: normal;
|
||
|
line-height: 1em;
|
||
|
position: relative;
|
||
|
padding: 0.5em 0.6em 0.6em; // + 1.2 em
|
||
|
max-width: calc(100% - 1.2em); // (-1.2 em) fits article width exactly
|
||
|
margin-bottom: -0.2em;
|
||
|
z-index: -1;
|
||
|
border-top-left-radius: 0.3em;
|
||
|
border-top-right-radius: 0.3em;
|
||
|
font-size: 0.9em;
|
||
|
background-color: var(--lightgray);
|
||
|
filter: hue-rotate(-30deg) contrast(1.0) opacity(0.8);
|
||
|
}
|