Skip to content

Commit f09fe03

Browse files
committed
docs: user experience improvements
* switch helper classes to use start and end * removed sponsor image eager loading * reduced vertical height of multiple components * added cover to figure images
1 parent 7e49da3 commit f09fe03

File tree

79 files changed

+155
-159
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+155
-159
lines changed

packages/docs/src/components/Backmatter.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
<template>
2-
<section
3-
id="ready-for-more"
4-
class="mt-12"
5-
>
2+
<section id="ready-for-more">
63
<app-heading
74
:content="t('ready')"
85
level="2"
6+
class="mb-2"
97
/>
108

119
<!-- https://vue-i18n.intlify.dev/guide/advanced/component.html#scope-resolving -->
@@ -26,7 +24,7 @@
2624

2725
<app-divider class="mt-7 mb-5" />
2826

29-
<up-next class="mb-4" />
27+
<up-next class="mb-5" />
3028

3129
<vuetify class="mb-6" />
3230

packages/docs/src/components/about/TeamMember.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<v-img v-if="member.avatar" :src="member.avatar" />
66
</v-avatar>
77

8-
<div class="pl-6 font-weight-medium">
8+
<div class="ps-6 font-weight-medium">
99
<div class="text-h5 mb-1 font-weight-bold d-flex align-center">
1010
<span
11-
class="mr-3"
11+
class="me-3"
1212
v-text="member.name"
1313
/>
1414

@@ -22,7 +22,7 @@
2222
<a
2323
v-if="link.href"
2424
:href="link.href"
25-
class="d-inline-flex text-decoration-none mr-1"
25+
class="d-inline-flex text-decoration-none me-1"
2626
rel="noopener"
2727
target="_blank"
2828
v-bind="activatorProps"

packages/docs/src/components/app/Divider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-divider class="my-6" />
2+
<v-divider class="my-5" />
33
</template>
44

55
<script setup>

packages/docs/src/components/app/Figure.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
<template>
2-
<figure
3-
:class="[
4-
caption ? 'mb-6' : 'mb-10'
5-
]"
6-
>
2+
<figure class="mb-6">
73
<v-img
8-
class="rounded"
4+
class="rounded bg-surface"
5+
cover
96
v-bind="$attrs"
107
/>
118

packages/docs/src/components/app/Heading.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
import { computed } from 'vue'
2525
2626
const HEADING_CLASSES = {
27-
1: 'text-h3 text-sm-h3 mb-4',
28-
2: 'text-h4 text-sm-h4 mb-4 mt-4',
29-
3: 'text-h5 mb-2',
30-
4: 'text-h6 mb-2',
31-
5: 'text-subtitle-1 font-weight-medium mb-2',
27+
1: 'text-h3 text-sm-h3',
28+
2: 'text-h4 text-sm-h4',
29+
3: 'text-h5',
30+
4: 'text-h6',
31+
5: 'text-subtitle-1 font-weight-medium',
3232
}
3333
3434
const props = defineProps({
@@ -38,7 +38,7 @@
3838
})
3939
4040
const component = computed(() => `h${props.level}`)
41-
const classes = computed(() => ['v-heading', HEADING_CLASSES[props.level]])
41+
const classes = computed(() => ['v-heading', 'mb-2', HEADING_CLASSES[props.level]])
4242
</script>
4343

4444
<style lang="sass">

packages/docs/src/components/app/Link.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
5454
return {
5555
icon: icon.value,
56-
class: `m${isSamePage.value ? 'r' : 'l'}-1`,
56+
class: `m${isSamePage.value ? 'e' : 's'}-1`,
5757
color: 'primary',
5858
size: '.875rem',
5959
}

packages/docs/src/components/app/Markup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<template #activator="{ props: activatorProps }">
3030
<v-btn
3131
:icon="clicked ? 'mdi-check' : 'mdi-clipboard-text'"
32-
class="mr-1 text-disabled me-2 mt-2 app-markup-btn"
32+
class="me-1 text-disabled me-2 mt-2 app-markup-btn"
3333
density="compact"
3434
style="position: absolute; right: 0; top: 0;"
3535
v-bind="activatorProps"

packages/docs/src/components/app/Toc.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#prepend
1515
>
1616
<app-headline
17-
class="mt-4 mb-2 ml-4"
17+
class="mt-4 mb-2 ms-4"
1818
path="contents"
1919
/>
2020
</template>
2121

22-
<ul class="ml-5">
22+
<ul class="ms-5">
2323
<router-link
2424
v-for="{ to, level, text } in toc"
2525
v-slot="{ href }"
@@ -29,13 +29,13 @@
2929
>
3030
<li
3131
:class="[
32-
'pl-3 text-body-2 py-1 font-weight-regular',
32+
'ps-3 text-body-2 py-1 font-weight-regular',
3333
{
3434
'text-primary router-link-active': route.hash === to,
3535
'text-medium-emphasis': route.hash !== to,
36-
'pl-6': level === 3,
37-
'pl-9': level === 4,
38-
'pl-12': level === 5,
36+
'ps-6': level === 3,
37+
'ps-9': level === 4,
38+
'ps-12': level === 5,
3939
}
4040
]"
4141
>

packages/docs/src/components/app/bar/EnterpriseLink.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<app-btn
33
:to="rpath('/introduction/enterprise-support/')"
4-
class="ml-1"
4+
class="ms-1"
55
color="medium-emphasis"
66
variant="text"
77
@click="gtagClick('app-bar', 'enterprise', name)"

packages/docs/src/components/app/bar/NotificationsMenu.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
</template>
2929

3030
<v-toolbar
31-
class="pl-4 pr-5"
31+
class="ps-4 pe-5"
3232
color="surface"
3333
density="compact"
3434
>
3535
<v-btn
3636
:disabled="showArchived ? unread.length < 1 : read.length < 1"
37-
class="px-2 ml-n1"
37+
class="px-2 ms-n1"
3838
size="small"
3939
variant="text"
4040
@click="showArchived = !showArchived"
@@ -96,7 +96,7 @@
9696
<v-btn
9797
:ripple="false"
9898
:icon="marked.icon"
99-
class="ml-3"
99+
class="ms-3"
100100
color="medium-emphasis"
101101
variant="text"
102102
@click.stop.prevent="toggle(notification)"

0 commit comments

Comments
 (0)