mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 22:46:22 +00:00
20 lines
No EOL
576 B
SCSS
20 lines
No EOL
576 B
SCSS
.code-title {
|
|
color: var(--primary) ;
|
|
font-family: var(--font-mono);
|
|
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);
|
|
} |