Skip to content

Commit 9d66e99

Browse files
committed
Update the top bar & menus UI.
1 parent c99f80b commit 9d66e99

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

src/documentation/top-bar.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ w-toolbar.top-bar.pa0(:class="{ scrolled: offsetTop > 104 }")
3131
w-icon.mr2(lg) material-icons school
3232
span Doc
3333

34-
w-list.mt0.pa0.sh2.white--bg.bdrs1(nav :items="docs" item-route-key="href")
34+
w-list.mt0.pa0.sh2.white--bg.bdrs1(
35+
nav
36+
:items="docs"
37+
item-route-key="href"
38+
item-class="pa0")
3539
template(#item="{ item }")
3640
w-divider.grow(v-if="item.class === 'w-divider'" color="grey-light1")
37-
a.grow(v-else-if="item.href" :href="item.href" v-scroll-to="`${item.href}`")
41+
.w-flex.grow.px6.py2(v-else-if="item.href" :href="item.href" v-scroll-to="`${item.href}`")
3842
w-icon.mr2(v-if="item.icon") {{ item.icon }}
3943
span(:class="{ 'ml6': !item.icon }") {{ item.label }}
40-
span(v-else :class="item.class || null")
44+
span.px6.py2(v-else :class="item.class || null")
4145
w-icon.mr2(v-if="item.icon") {{ item.icon }}
4246
span(v-html="item.label")
4347

@@ -60,9 +64,14 @@ w-toolbar.top-bar.pa0(:class="{ scrolled: offsetTop > 104 }")
6064
height="100%")
6165
w-icon.mr2(lg) material-icons apps
6266
span Examples
63-
w-list.mt0.pa0.sh2.white--bg.bdrs1(nav :items="examples" item-route-key="href" style="max-height: 90vh;overflow: auto;white-space: nowrap")
67+
w-list.mt0.pa0.sh2.white--bg.bdrs1(
68+
nav
69+
:items="examples"
70+
item-route-key="href"
71+
item-class="pa0"
72+
style="max-height: 90vh;overflow: auto;white-space: nowrap")
6473
template(#item="{ item }")
65-
a.grow.px5(:href="item.href" v-scroll-to="`${item.href}`")
74+
span.d-flex.grow.px6.py2(:href="item.href" v-scroll-to="`${item.href}`")
6675
| {{ item.label }}
6776
w-tag.w-tag--sm.ml2.px0(v-if="item.new" color="primary" outline) NEW
6877
w-tag.w-tag--sm.ml2.px0(v-if="item.updated" color="secondary" outline) updated

0 commit comments

Comments
 (0)