Skip to content

Commit 868b4db

Browse files
committed
Updates.
1 parent 7486446 commit 868b4db

File tree

7 files changed

+835
-146
lines changed

7 files changed

+835
-146
lines changed
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
<script setup>
22
defineProps({
33
label: {
4-
type: String
4+
type: String,
5+
default: 'CosmWasm Docs',
6+
},
7+
bgColor: {
8+
type: String,
9+
default: 'var(--bg-medium-blue)'
510
}
611
})
712
</script>
813

914
<template>
10-
<span class="chapter-label">{{ label }}</span>
15+
<span class="chapter-label" :style="{backgroundColor: bgColor}">{{ label }}</span>
1116
</template>
1217

1318
<style scoped>
1419
.chapter-label {
1520
display: inline-block;
1621
color: white;
17-
background-color: #7954FF;
1822
border: none;
19-
padding: 0 10px 2px 8px;
23+
padding: 2px 10px 2px 8px;
2024
border-radius: 12px;
2125
user-select: none;
22-
margin-bottom: 20px;
26+
margin: 0 4px 20px 0;
2327
font-size: 0.9em;
2428
}
2529
</style>

.vitepress/theme/style.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
:root {
2-
--dt-light-background: #A855F7;
3-
--dt-dark-background: #334155;
2+
--bg-maya-blue: #70BCFF;
3+
--bg-medium-blue: #7954FF;
4+
--bg-persian-pink: #FC8ADC;
5+
--bg-congo-pink: #FF8B89;
6+
--bg-champagne: #FCECB2;
7+
8+
--dt-light-background: var(--bg-persian-pink);
9+
--dt-dark-background: var(--bg-medium-blue);
410
--vp-home-hero-name-color: transparent;
511
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, var(--dt-dark-background), var(--dt-light-background));
612
}

0 commit comments

Comments
 (0)