Skip to content
Snippets Groups Projects
Commit e5a5ee10 authored by Emmanuel Salomon's avatar Emmanuel Salomon :fist:
Browse files

feat: :art: feat: arrange hamburger menu responsive

parent eb254970
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<AppDarkModeToggle class="hidden xl:inline-flex ml-3" /> <AppDarkModeToggle class="hidden xl:inline-flex ml-3" />
<LayoutHeaderMenuAvatar /> <LayoutHeaderMenuAvatar class="hidden sm:block" />
</div> </div>
</nav> </nav>
</div> </div>
......
...@@ -4,12 +4,31 @@ ...@@ -4,12 +4,31 @@
class="group inline-flex items-center focus:outline-none py-3" class="group inline-flex items-center focus:outline-none py-3"
> >
<div <div
class="w-9 mr-4 fill-current group-hover:text-purple-800 transition-colors" class="
w-6
sm:w-9
mr-4
fill-current
group-hover:text-purple-800
transition-colors
"
v-html="$options.rawLogo" v-html="$options.rawLogo"
/> />
<span <span
class="bg-clip-text bg-gradient-to-r font-semibold from-purple-800 group-hover:text-transparent text-2xl to-blue-700 tracking-tight transition-colors whitespace-nowrap" class="
bg-clip-text bg-gradient-to-r
font-semibold
from-purple-800
group-hover:text-transparent
text-lg
sm:text-xl
lg:text-2xl
to-blue-700
tracking-tight
transition-colors
whitespace-nowrap
"
:class="!props.showTitle && 'hidden lg:block'" :class="!props.showTitle && 'hidden lg:block'"
> >
{{ $options.config.site_title }} {{ $options.config.site_title }}
......
...@@ -12,7 +12,7 @@ export default { ...@@ -12,7 +12,7 @@ export default {
<template> <template>
<div> <div>
<div <div
class="hamburger flex flex-col space-between space-y-1.5" class="hamburger flex flex-col space-between space-y-1.5 p-6 -mx-6"
:class="isOpen ? 'is-open' : ''" :class="isOpen ? 'is-open' : ''"
@click="isOpen = !isOpen" @click="isOpen = !isOpen"
> >
...@@ -34,11 +34,11 @@ export default { ...@@ -34,11 +34,11 @@ export default {
<style lang="postcss" scoped> <style lang="postcss" scoped>
.hamburger-item { .hamburger-item {
@apply block w-8 h-1 bg-gray-800 dark:bg-gray-300 transition; @apply block w-6 h-0.5 bg-gray-800 dark:bg-gray-300 transition;
} }
.is-open.hamburger > span:nth-child(1) { .is-open.hamburger > span:nth-child(1) {
transform: translate(0, 0.625rem) rotate(-45deg); transform: translate(0, 0.5rem) rotate(45deg);
} }
.is-open.hamburger > span:nth-child(2) { .is-open.hamburger > span:nth-child(2) {
...@@ -46,7 +46,7 @@ export default { ...@@ -46,7 +46,7 @@ export default {
} }
.is-open.hamburger > span:nth-child(3) { .is-open.hamburger > span:nth-child(3) {
transform: translate(0, -0.625rem) rotate(45deg); transform: translate(0, -0.5rem) rotate(-45deg);
} }
.hamburger-menu { .hamburger-menu {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment