Attempt better Forks styling

This commit is contained in:
Soitora 2023-07-20 01:51:12 +02:00
parent 54456883a1
commit 44e9fa7a5b
11 changed files with 40 additions and 27 deletions

View File

@ -1,15 +1,12 @@
// https://vitepress.dev/guide/custom-theme // https://vitepress.dev/guide/custom-theme
import { h } from "vue"; import { h } from "vue";
import Theme from "vitepress/theme"; import Theme from "vitepress/theme";
import "./style.css"; import CustomLayout from "./layouts/CustomLayout.vue";
import "./styles/style.css";
export default { export default {
extends: Theme, extends: Theme,
Layout: () => { Layout: CustomLayout,
return h(Theme.Layout, null, {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
});
},
enhanceApp({ app, router, siteData }) { enhanceApp({ app, router, siteData }) {
// ... // ...
}, },

View File

@ -0,0 +1,12 @@
<script setup lang="ts">
import DefaultTheme from 'vitepress/theme'
import { useData } from 'vitepress'
const { frontmatter } = useData()
</script>
<template>
<div :class="frontmatter.pageClass">
<DefaultTheme.Layout />
</div>
</template>

View File

@ -1,8 +1,8 @@
.image-bg { .page-neko .image-bg {
display: none; display: none;
} }
::selection { .page-neko ::selection {
background: rgba(255, 109, 137, 0.2); background: rgba(255, 109, 137, 0.2);
} }
@ -10,8 +10,8 @@
* Colors * Colors
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-neko {
--vp-c-brand: #ff6884; --vp-c-brand: #ff6884 !important;
--vp-c-brand-light: #ff8da2; --vp-c-brand-light: #ff8da2;
--vp-c-brand-lighter: #ffb3c1; --vp-c-brand-lighter: #ffb3c1;
--vp-c-brand-lightest: #ffd9e0; --vp-c-brand-lightest: #ffd9e0;
@ -25,7 +25,7 @@
* Component: Button * Component: Button
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-neko {
--vp-button-brand-text: var(--vp-c-black); --vp-button-brand-text: var(--vp-c-black);
--vp-button-brand-hover-text: var(--vp-c-black); --vp-button-brand-hover-text: var(--vp-c-black);
--vp-button-brand-active-text: var(--vp-c-black); --vp-button-brand-active-text: var(--vp-c-black);

View File

@ -1,8 +1,8 @@
.image-bg { .page-tachiyomiaz .image-bg {
display: none; display: none;
} }
::selection { .page-tachiyomiaz ::selection {
background: rgba(255, 204, 77, 0.2); background: rgba(255, 204, 77, 0.2);
} }
@ -10,7 +10,7 @@
* Colors * Colors
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-tachiyomiaz {
--vp-c-brand: #ffcc4d; --vp-c-brand: #ffcc4d;
--vp-c-brand-light: #ffd879; --vp-c-brand-light: #ffd879;
--vp-c-brand-lighter: #ffe5a6; --vp-c-brand-lighter: #ffe5a6;
@ -25,7 +25,7 @@
* Component: Button * Component: Button
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-tachiyomiaz {
--vp-button-brand-text: var(--vp-c-black); --vp-button-brand-text: var(--vp-c-black);
--vp-button-brand-hover-text: var(--vp-c-black); --vp-button-brand-hover-text: var(--vp-c-black);
--vp-button-brand-active-text: var(--vp-c-black); --vp-button-brand-active-text: var(--vp-c-black);

View File

@ -1,8 +1,8 @@
.image-bg { .page-tachiyomij2k .image-bg {
display: none; display: none;
} }
::selection { .page-tachiyomij2k ::selection {
background: rgba(9, 82, 175, 0.2); background: rgba(9, 82, 175, 0.2);
} }
@ -10,7 +10,7 @@
* Colors * Colors
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-tachiyomij2k {
--vp-c-brand: #0952af; --vp-c-brand: #0952af;
--vp-c-brand-light: #467dc3; --vp-c-brand-light: #467dc3;
--vp-c-brand-lighter: #84a8d7; --vp-c-brand-lighter: #84a8d7;
@ -25,7 +25,7 @@
* Component: Button * Component: Button
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-tachiyomij2k {
--vp-button-brand-text: var(--vp-c-white); --vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-hover-text: var(--vp-c-white); --vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-active-text: var(--vp-c-white); --vp-button-brand-active-text: var(--vp-c-white);

View File

@ -1,8 +1,8 @@
.image-bg { .page-tachiyomisy .image-bg {
display: none; display: none;
} }
::selection { .page-tachiyomisy ::selection {
background: rgba(206, 40, 40, 0.2); background: rgba(206, 40, 40, 0.2);
} }
@ -10,7 +10,7 @@
* Colors * Colors
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-tachiyomisy {
--vp-c-brand: #ce2828; --vp-c-brand: #ce2828;
--vp-c-brand-light: #da5d5d; --vp-c-brand-light: #da5d5d;
--vp-c-brand-lighter: #e69393; --vp-c-brand-lighter: #e69393;
@ -25,7 +25,7 @@
* Component: Button * Component: Button
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */
:root { :root .page-tachiyomisy {
--vp-button-brand-text: var(--vp-c-white); --vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-hover-text: var(--vp-c-white); --vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-active-text: var(--vp-c-white); --vp-button-brand-active-text: var(--vp-c-white);

View File

@ -3,6 +3,7 @@ title: Neko
description: LongDesc description: LongDesc
layout: home layout: home
pageClass: page-neko
hero: hero:
name: Neko name: Neko
@ -66,5 +67,5 @@ const members = [
</script> </script>
<style> <style>
@import "../.vitepress/theme/forks/neko.css" @import "../.vitepress/theme/styles/forks/neko.css"
</style> </style>

View File

@ -3,6 +3,7 @@ title: TachiyomiAZ
description: LongDesc description: LongDesc
layout: home layout: home
pageClass: page-tachiyomiaz
hero: hero:
name: TachiyomiAZ name: TachiyomiAZ
@ -74,5 +75,5 @@ const members = [
</script> </script>
<style> <style>
@import "../.vitepress/theme/forks/tachiyomiaz.css" @import "../.vitepress/theme/styles/forks/tachiyomiaz.css"
</style> </style>

View File

@ -3,6 +3,7 @@ title: TachiyomiJ2K
description: LongDesc description: LongDesc
layout: home layout: home
pageClass: page-tachiyomij2k
hero: hero:
name: TachiyomiJ2K name: TachiyomiJ2K
@ -67,5 +68,5 @@ const members = [
</script> </script>
<style> <style>
@import "../.vitepress/theme/forks/tachiyomij2k.css" @import "../.vitepress/theme/styles/forks/tachiyomij2k.css"
</style> </style>

View File

@ -3,6 +3,7 @@ title: TachiyomiSY
description: LongDesc description: LongDesc
layout: home layout: home
pageClass: page-tachiyomisy
hero: hero:
name: TachiyomiSY name: TachiyomiSY
@ -83,5 +84,5 @@ const members = [
</script> </script>
<style> <style>
@import "../.vitepress/theme/forks/tachiyomisy.css" @import "../.vitepress/theme/styles/forks/tachiyomisy.css"
</style> </style>