Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions src/assets/scss/pages/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,26 @@
samp {
display: inline-block;
align-items: center;
background-color: var(--clr-black);
background-color: hsl(var(--_hs) 10%);
color: var(--clr-white);
padding: 0.2em 0.4em;
border-radius: 0.3em;
}

pre {
@include mix.breakpoint-down("small") {
&::after {
content: "";
position: absolute;
right: 0;
top: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, hsl(var(--_hs) 6%));
width: 2em;
}
}
}

a {
--_normal-color: var(--clr-accent-light);
--_hover-color: var(--clr-white);
Expand Down Expand Up @@ -236,7 +250,7 @@

pre {
border: 0.1rem solid var(--_background);
background-color: hsl(0, 3%, 12%);
background-color: hsl(var(--_hs) 10%);
border-radius: 0.5rem;
padding: 1rem;
white-space: pre;
Expand Down Expand Up @@ -319,12 +333,16 @@
code {
color: var(--clr-white);
box-shadow: none;
background-color: transparent;
width: 100%;

.hljs-comment,
.hljs-meta {
color: hsl(230, 100%, 89%, 0.9)
}

@include mix.breakpoint-down('small') {
overflow-x: auto;
}
}
}

Expand Down