Skip to content

Commit

Permalink
[Build] Fixes and stuff
Browse files Browse the repository at this point in the history
Fix mobile nav not having home button
Fix theme selector being broken on mobile
Fix brightness on image links again
  • Loading branch information
ThatGravyBoat committed Aug 22, 2024
1 parent e8e7d4c commit e450144
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions assets/styles/components.scss
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,10 @@ svg.inline-svg {
background-color: aliceblue !important;
}

.markdown-body a:focus-visible,.markdown-body a:hover img:only-child {
.markdown-body a:focus-visible,.markdown-body a:hover:has(img:only-child) {
filter: none !important;
}

.markdown-body a:active img:only-child {
.markdown-body a:active:has(img:only-child) {
filter: none !important;
}
20 changes: 9 additions & 11 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,21 @@
</div>
<div class="mobile-navbar" :class="{ expanded: mobileBrowseOpen || mobileUserOpen }">
<button
class="tab button-animation"
class="tab button-animation no-active"
:class="{ 'router-link-exact-active': mobileBrowseOpen }"
title="Search"
@click="toggleBrowseMenu()"
>
<LinkIcon/>
Links
</button>
<button class="tab button-animation" title="Toggle Mobile Menu"
<nuxt-link class="tab" href="/projects">
<span>
<BeeHiveOutline/>
Home
</span>
</nuxt-link>
<button class="tab button-animation no-active" title="Toggle Mobile Menu"
@click="toggleMobileMenu()">
<template v-if="!mobileUserOpen">
<HamburgerIcon/>
Expand Down Expand Up @@ -549,6 +555,7 @@ function toggleBrowseMenu() {
text-align: center;
font-size: var(--font-size-sm);
height: 100%;
aspect-ratio: 1/1;
&.browse {
svg {
Expand Down Expand Up @@ -588,15 +595,6 @@ function toggleBrowseMenu() {
}
color: var(--color-brand);
&::before {
content: '';
inset: 0.25rem;
position: absolute;
background-color: var(--color-brand-highlight);
z-index: -1;
border-radius: 1rem;
}
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions pages/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ onMounted(() => {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--gap-lg);
@media screen and (max-width: 800px) {
grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 400px) {
grid-template-columns: repeat(1, 1fr);
}
}
.theme-option {
width: 100%;
Expand Down

0 comments on commit e450144

Please sign in to comment.