Skip to content
This repository was archived by the owner on Jan 9, 2022. It is now read-only.

Commit 5adbd8b

Browse files
committed
feat(docs): improve styling
1 parent 1be5f8d commit 5adbd8b

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

docs/src/.vitepress/theme/custom.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,14 @@
33
:root {
44
--c-brand: #{$primary};
55
--c-brand-light: #{lighten($primary, 5%)};
6+
--mdc-typography-button-text-transform: capitalize
7+
}
8+
9+
.mdc-tab {
10+
font-weight: 500;
11+
height: 40px;
12+
13+
&--active {
14+
background: rgba($primary, 0.2);
15+
}
616
}

docs/src/components/Components/Example/ExampleToolbar.vue

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
<template>
22
<div class="example-toolbar">
3-
<UiButton
4-
class="example-toolbar__code-button"
5-
outlined
6-
:raised="false"
7-
@click="onToggleCode"
8-
>
9-
<Icon :icon-path="codeIcon" />
10-
</UiButton>
3+
<span>
4+
Live Example
5+
</span>
6+
7+
<div>
8+
<UiButton
9+
class="example-toolbar__code-button"
10+
outlined
11+
:raised="false"
12+
@click="onToggleCode"
13+
>
14+
<Icon :icon-path="codeIcon" />
15+
</UiButton>
16+
</div>
1117
</div>
1218
</template>
1319

@@ -40,7 +46,8 @@ export default defineComponent({
4046
<style lang="scss">
4147
.example-toolbar {
4248
display: flex;
43-
justify-content: flex-end;
49+
align-items: center;
50+
justify-content: space-between;
4451
padding: 5px 12px;
4552
4653
&__code-button {

0 commit comments

Comments
 (0)