Skip to content

Commit

Permalink
Merge pull request #46 from Blind3y3Design/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Blind3y3Design authored Sep 14, 2023
2 parents e60cbbd + 217b411 commit a950937
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/_includes/partials/menu.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

</div>

<div class="theme-menu">
<div class="theme-menu" inert>
<div class="theme-menu__inner">
<button class="theme-menu__button" data-theme-id="light">Light</button>
<button class="theme-menu__button" data-theme-id="dark">Dark</button>
Expand Down
27 changes: 20 additions & 7 deletions src/sass/partials/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,26 @@ p {
}
}

code:not([class]) {
background-color: var(--secondary-background);
border-radius: 2px;
font-size: .75rem;
font-weight: bold;
padding: 2px 4px;
vertical-align: middle;
img,
picture,
svg {
max-width: 100%;
display: block;
}


code{
font-size: 1rem;

&:not([class]) {
font-size: 1em;
font-weight: 700;
vertical-align: baseline;
}

&[class*="language-"] {
font-size: 1rem;
}
}

picture {
Expand Down
3 changes: 3 additions & 0 deletions src/sass/partials/_blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
.post-preview__link:focus-visible & {
text-decoration: underline;
text-decoration-skip-ink: auto;
text-decoration-thickness: 2px;
text-underline-offset: .2ex;
}
}

Expand Down Expand Up @@ -117,6 +119,7 @@

&.blog-post__header-image--contained {
max-width: 80ch;
padding-inline: var(--space-4x);
}

img {
Expand Down
1 change: 1 addition & 0 deletions src/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ document.querySelector('.mobile-menu-trigger').addEventListener("click", toggleM
function toggleThemeMenu() {
const themeMenu = document.querySelector('.theme-menu');
themeMenu.classList.toggle('theme-menu--open');
themeMenu.toggleAttribute('inert');
}

document.querySelector('.theme-menu-trigger').addEventListener("click", toggleThemeMenu);
Expand Down

0 comments on commit a950937

Please sign in to comment.