somewhat fix sidebar card
This commit is contained in:
@@ -6,9 +6,9 @@ defineProps<{
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="field-body">
|
<div class="field-body">
|
||||||
<div class="field-icon" :class="icon" />
|
<div class="text-xl" :class="icon" />
|
||||||
<div class="value">
|
<!-- <p class="m-[10px 10px]">•</p> -->
|
||||||
•
|
<div class="text-[var(--vp-c-text-2)]">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -20,10 +20,6 @@ defineProps<{
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.value {
|
|
||||||
color: var(--vp-c-text-2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.field-body {
|
.field-body {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@@ -3,9 +3,9 @@ import Field from "./PaneFields.vue";
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="sidebar-pane">
|
<div class="card">
|
||||||
<div class="pane-header">
|
<div class="card-header">
|
||||||
<div class="pane-title">Emoji Legend</div>
|
<div class="card-title">Emoji Legend</div>
|
||||||
</div>
|
</div>
|
||||||
<Field icon="i-twemoji-star">Community Recommendations</Field>
|
<Field icon="i-twemoji-star">Community Recommendations</Field>
|
||||||
<Field icon="i-twemoji-globe-with-meridians">3rd Party Indexes</Field>
|
<Field icon="i-twemoji-globe-with-meridians">3rd Party Indexes</Field>
|
||||||
@@ -14,21 +14,21 @@ import Field from "./PaneFields.vue";
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.pane-header {
|
.card-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin-bottom: 12px;
|
margin-bottom: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.pane-title {
|
.card-title {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--vp-c-text-1);
|
color: var(--vp-c-text-1);
|
||||||
line-height: 32px;
|
line-height: 32px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-pane {
|
.card {
|
||||||
background: var(--vp-c-bg);
|
background: var(--vp-c-bg);
|
||||||
padding: 12px 24px 24px;
|
padding: 12px 24px 24px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -39,7 +39,7 @@ import Field from "./PaneFields.vue";
|
|||||||
transition: border-color 0.4s ease-in-out;
|
transition: border-color 0.4s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-pane:hover {
|
.card:hover {
|
||||||
border-color: var(--vp-c-brand-1);
|
border-color: var(--vp-c-brand-1);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { h } from "vue";
|
import { h } from "vue";
|
||||||
import { type Theme, inBrowser } from "vitepress";
|
import { type Theme, inBrowser } from "vitepress";
|
||||||
import DefaultTheme from "vitepress/theme";
|
import DefaultTheme from "vitepress/theme";
|
||||||
import Sidebar from "./layouts/Sidebar.vue";
|
import Sidebar from "./components/SidebarPane.vue";
|
||||||
import "./style.css";
|
import "./style.css";
|
||||||
import "uno.css";
|
import "uno.css";
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ if (inBrowser) import("./pwa");
|
|||||||
export default {
|
export default {
|
||||||
Layout: () => {
|
Layout: () => {
|
||||||
return h(DefaultTheme.Layout, null, {
|
return h(DefaultTheme.Layout, null, {
|
||||||
"sidebar-nav-after": () => h(Sidebar),
|
"sidebar-nav-before": () => h(Sidebar),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
enhanceApp({ app, router, siteData }) { },
|
enhanceApp({ app, router, siteData }) { },
|
||||||
|
@@ -1,9 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
import SidebarPane from "../components/SidebarPane.vue"
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<div>
|
|
||||||
<SidebarPane/>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
@@ -13,8 +13,8 @@
|
|||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"types": ["vite/client", "vite-plugin-pwa/vanillajs", "vitepress"]
|
"types": ["vite/client", "vite-plugin-pwa/vanillajs", "vitepress", "./.vitepress/vue-shim.d.ts"]
|
||||||
},
|
},
|
||||||
"include": ["./*.ts", "./.vitepress/**/*.ts", "./.vitepress/vue-shim.d.ts"],
|
"include": ["./*.ts", "./.vitepress/**/*.ts"],
|
||||||
"exclude": ["dist", "node_modules"]
|
"exclude": ["dist", "node_modules"]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user