You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
576 B
SCSS
20 lines
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);
|
|
} |