|
14 | 14 | itemprop="sameAs" |
15 | 15 | :content="social.link" |
16 | 16 | > |
17 | | - <div class="flex flex-wrap w-full"> |
| 17 | + <div class="flex flex-wrap w-full md:justify-between md:flex-no-wrap"> |
18 | 18 | <div |
19 | | - class="flex items-center justify-end w-1/5 h-16 md:pl-0 md:w-1/12 lg:w-3/12" |
| 19 | + class="flex items-center justify-end" |
20 | 20 | :class="{'header-logo--bg': bgSidebar, 'container-layout-pl lg:w-2/7': hasSidebar }" |
21 | 21 | > |
22 | 22 | <div class="w-full"> |
23 | 23 | <Logo /> |
24 | 24 | </div> |
25 | 25 | </div> |
26 | 26 | <div |
27 | | - class="flex items-center flex-grow-0 w-3/5 h-16 md:pl-4 lg:pl-0 md:pr-0 md:w-auto md:flex-grow" |
28 | | - :class="{ 'w-4/5': !hasSidebar }" |
| 27 | + class="flex items-center flex-1" |
| 28 | + :class="{ 'justify-between': hasSidebar, 'justify-end': !hasSidebar }" |
29 | 29 | > |
30 | 30 | <div |
31 | | - class="w-full" |
32 | | - :class="{ 'md:ml-8': hasSidebar }" |
| 31 | + class="flex items-center w-full md:mr-8 md:w-auto" |
| 32 | + :class="{ |
| 33 | + 'justify-end': !hasSidebar, |
| 34 | + 'md:w-full md:max-w-lg lg:max-w-3xl': hasSidebar, |
| 35 | + }" |
33 | 36 | > |
34 | | - <AlgoliaSearch |
35 | | - v-if="isAlgoliaSearch" |
36 | | - :options="$themeConfig.algolia" |
37 | | - /> |
| 37 | + <div |
| 38 | + class="w-full" |
| 39 | + :class="{ 'md:ml-8': hasSidebar }" |
| 40 | + > |
| 41 | + <AlgoliaSearch |
| 42 | + v-if="isAlgoliaSearch" |
| 43 | + :options="$themeConfig.algolia" |
| 44 | + /> |
| 45 | + </div> |
38 | 46 | </div> |
39 | | - </div> |
40 | | - <div |
41 | | - v-if="hasSidebar" |
42 | | - class="flex items-center justify-end w-1/5 md:hidden" |
43 | | - > |
44 | | - <button |
45 | | - type="button" |
46 | | - class="flex px-4 py-3 mr-1 md:hidden" |
47 | | - aria-controls="s-sidebar-wrapper" |
48 | | - :aria-label="menuButtonAriaLabel" |
49 | | - :aria-expanded="isSidebarOpen.toString()" |
50 | | - @click="$emit('toggle-sidebar')" |
| 47 | + <div |
| 48 | + v-if="hasSidebar" |
| 49 | + class="flex items-center justify-end md:hidden" |
51 | 50 | > |
52 | | - <vp-icon |
53 | | - :name="isSidebarOpen ? 'close' : 'menu'" |
54 | | - size="23" |
55 | | - /> |
56 | | - </button> |
| 51 | + <button |
| 52 | + type="button" |
| 53 | + class="flex px-4 py-3 mr-1 md:hidden" |
| 54 | + aria-controls="s-sidebar-wrapper" |
| 55 | + :aria-label="menuButtonAriaLabel" |
| 56 | + :aria-expanded="isSidebarOpen.toString()" |
| 57 | + @click="$emit('toggle-sidebar')" |
| 58 | + > |
| 59 | + <vp-icon |
| 60 | + :name="isSidebarOpen ? 'close' : 'menu'" |
| 61 | + size="23" |
| 62 | + /> |
| 63 | + </button> |
| 64 | + </div> |
57 | 65 | </div> |
58 | 66 | <div |
59 | | - class="flex items-center h-16 header-nav md:justify-end md:flex-grow" |
| 67 | + class="flex items-center h-16 header-nav" |
60 | 68 | :class="{ 'container-layout-pr': hasSidebar }" |
61 | 69 | > |
62 | 70 | <TheNavigation /> |
@@ -121,10 +129,6 @@ export default { |
121 | 129 | height: 65px; |
122 | 130 | } |
123 | 131 |
|
124 | | - @media (max-width: theme('screens.lg')) { |
125 | | - @apply pl-1 pr-3; |
126 | | - } |
127 | | -
|
128 | 132 | &-logo--bg { |
129 | 133 | @media (min-width: theme('screens.lg')) { |
130 | 134 | @apply bg-page-gradient-left; |
|
0 commit comments