Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 9, 2024
1 parent c2d6b9f commit 6ff7b3d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/.vitepress/theme/CustomLayout.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<script setup>
import DefaultTheme from "vitepress/theme-without-fonts";
import ExamplesGrid from "./ExamplesGrid.vue";
import ObservablePromo from "./ObservablePromo.vue";
import VersionAndStars from "./VersionAndStars.vue";
const {Layout} = DefaultTheme;
</script>

<template>
Expand All @@ -25,6 +27,7 @@ const {Layout} = DefaultTheme;
</template>

<style>
.VPHome {
overflow-x: hidden; /* iOS */
}
Expand Down Expand Up @@ -54,5 +57,5 @@ const {Layout} = DefaultTheme;
height: 2rem;
}
}
</style>
</style>
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/VersionAndStars.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<script setup>
import {formatPrefix} from "d3-format";
import {data} from "./stargazers.data";
const formattedStarCount = data ? formatPrefix(".1s", 1000)(data) : "";
const version = __APP_VERSION__;
</script>

<template>
Expand Down Expand Up @@ -33,6 +35,7 @@ const version = __APP_VERSION__;
</template>

<style scoped>
a {
font-size: 14px;
font-weight: 500;
Expand Down Expand Up @@ -74,4 +77,5 @@ a.mobile {
display: flex;
}
}
</style>

0 comments on commit 6ff7b3d

Please sign in to comment.