Skip to content

Commit

Permalink
Fix styles according to Vitepress changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkaput committed Aug 29, 2023
1 parent 9446a2f commit 5298650
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 26 deletions.
4 changes: 2 additions & 2 deletions website/.vitepress/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ footer {
}
.copy {
color: var(--vp-c-brand);
color: var(--vp-c-brand-1);
}
.logo-path {
fill: var(--vp-c-brand);
fill: var(--vp-c-brand-1);
}
</style>
8 changes: 6 additions & 2 deletions website/.vitepress/components/Snippet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ defineProps({
<!-- NOTE: Whitespace is important here. -->
<pre
class="shiki"
><code v-for="line in $props.src.split('\n')"><span class="line">{{ line }}</span></code></pre>
><code v-for="line in $props.src.split('\n')"><span :class="`line ${$style.text}`">{{ line }}</span></code></pre>
</div>
</template>

<style module></style>
<style module>
.text {
color: var(--vp-c-text-1);
}
</style>
8 changes: 2 additions & 6 deletions website/.vitepress/components/home/Download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ asdf global scarb latest
<div class="split">
<div class="left">
<h3>Install via quick installation script</h3>
<Snippet :src="QUICK" class="snippet" lang="shell" />
<Snippet :src="QUICK" lang="shell" />
</div>
<div class="right">
<h3>
Expand All @@ -45,7 +45,7 @@ asdf global scarb latest
>
version manager
</h3>
<Snippet :src="ASDF" class="snippet" lang="shell" />
<Snippet :src="ASDF" lang="shell" />
</div>
</div>
<p class="notes">
Expand Down Expand Up @@ -108,8 +108,4 @@ h3 {
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
}
.snippet {
box-shadow: var(--vp-shadow-2);
}
</style>
5 changes: 2 additions & 3 deletions website/.vitepress/components/home/Features.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,10 @@
}
.feature > .icon .fill {
fill: var(--vp-c-brand);
opacity: 20%;
fill: var(--vp-c-brand-soft);
}
.feature > .icon .stroke {
stroke: var(--vp-c-brand);
stroke: var(--vp-c-brand-1);
}
</style>
6 changes: 3 additions & 3 deletions website/.vitepress/components/home/Terminal.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="window">
<div class="dark window">
<div class="traffic-lights">
<div class="traffic-light red" />
<div class="traffic-light yellow" />
Expand All @@ -22,10 +22,10 @@

<style scoped>
.window {
background-color: var(--vp-code-block-bg);
background-color: var(--vp-c-bg-alt);
border-radius: 0.5rem;
box-shadow: var(--vp-shadow-5);
color: var(--vp-code-block-color);
color: var(--vp-c-text-1);
font-family: var(--vp-font-family-mono);
font-size: var(--vp-code-font-size);
-webkit-font-smoothing: auto;
Expand Down
18 changes: 8 additions & 10 deletions website/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,17 @@
}

:root {
--vp-c-brand: var(--swm-c-navy-80);
--vp-c-brand-dark: var(--swm-c-navy-100);
--vp-c-brand-darker: var(--swm-c-navy-120);
--vp-c-brand-light: var(--swm-c-navy-40);
--vp-c-brand-lighter: var(--swm-c-navy-20);
--vp-c-brand-1: var(--swm-c-navy-80);
--vp-c-brand-2: var(--swm-c-navy-60);
--vp-c-brand-3: var(--swm-c-navy-100);
--vp-c-brand-soft: var(--swm-c-navy-20);
}

.dark {
--vp-c-brand: var(--swm-c-navy-60);
--vp-c-brand-dark: var(--swm-c-navy-80);
--vp-c-brand-darker: var(--swm-c-navy-100);
--vp-c-brand-light: var(--swm-c-navy-40);
--vp-c-brand-lighter: var(--swm-c-navy-20);
--vp-c-brand-1: var(--swm-c-navy-60);
--vp-c-brand-2: var(--swm-c-navy-40);
--vp-c-brand-3: var(--swm-c-navy-80);
--vp-c-brand-soft: var(--swm-c-navy-120);
}

:root {
Expand Down

0 comments on commit 5298650

Please sign in to comment.