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 + .translations::before,
.menu + .appearance::before, .menu + .appearance::before,
.menu + .social-links::before, .menu + .social-links::before,

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

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

Loading…
Cancel
Save