fix(a11y): mobile and theme switcher (#2354)

pull/2359/head
Joaquín Sánchez 2 years ago committed by GitHub
parent 97065cefc2
commit d6c0985002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,6 +175,12 @@ const classes = computed(() => ({
}
}
@media (max-width: 768px) {
.content-body {
column-gap: 0.5rem;
}
}
.menu + .translations::before,
.menu + .appearance::before,
.menu + .social-links::before,

@ -61,7 +61,7 @@ defineProps<{
align-items: center;
margin: 0;
padding: 0;
width: 32px;
width: 48px;
height: 55px;
background: transparent;
transition: border-color 0.25s;

@ -75,16 +75,15 @@ watch(checked, (newIsDark) => {
</script>
<template>
<label title="toggle dark mode">
<VPSwitch
class="VPSwitchAppearance"
:aria-checked="checked"
@click="toggle"
>
<VPIconSun class="sun" />
<VPIconMoon class="moon" />
</VPSwitch>
</label>
<VPSwitch
title="toggle dark mode"
class="VPSwitchAppearance"
:aria-checked="checked"
@click="toggle"
>
<VPIconSun class="sun" />
<VPIconMoon class="moon" />
</VPSwitch>
</template>
<style scoped>

Loading…
Cancel
Save