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,8 +75,8 @@ watch(checked, (newIsDark) => {
</script>
<template>
<label title="toggle dark mode">
<VPSwitch
title="toggle dark mode"
class="VPSwitchAppearance"
:aria-checked="checked"
@click="toggle"
@ -84,7 +84,6 @@ watch(checked, (newIsDark) => {
<VPIconSun class="sun" />
<VPIconMoon class="moon" />
</VPSwitch>
</label>
</template>
<style scoped>

Loading…
Cancel
Save