Skip to content

Commit

Permalink
CodeBlock now adapts to different screen sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
LyonSyonII committed Nov 16, 2023
1 parent d8887c0 commit 28eca14
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/CodeBlock.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,23 @@
margin: 0rem;
font-size: 0.9rem;
grid-template-columns: 80% 32px 32px;
grid-template-columns: 80% auto auto;
}
@media only screen and (min-width: 768px) {
.wrapper {
font-size: 1rem;
grid-template-columns: 90% auto auto;
}
button {
margin-left: 0.5rem;
}
}
button {
background-color: rgba(0, 0, 0, 0);
color: var(--sl-color-white);
cursor: pointer;
border: 0px;
margin-left: 0.5rem;
margin-left: 0rem;
padding-bottom: 0px;
height: fit-content;
transition: color 0.25s ease;
Expand Down

0 comments on commit 28eca14

Please sign in to comment.