From ff076a669b94bcef3e658852fdd1ed367fb03409 Mon Sep 17 00:00:00 2001 From: Yuta Hiroto Date: Mon, 1 Feb 2021 00:54:33 +0900 Subject: [PATCH] chore(samples): update --- packages/client/assets/style/code.css | 1 - .../fusuma/src/configs/templates/style.css | 26 ++--------- samples/plain/style.css | 46 ++++++------------- samples/themes/style.css | 1 - 4 files changed, 18 insertions(+), 56 deletions(-) diff --git a/packages/client/assets/style/code.css b/packages/client/assets/style/code.css index e3dc74eb7..093079f21 100644 --- a/packages/client/assets/style/code.css +++ b/packages/client/assets/style/code.css @@ -14,7 +14,6 @@ pre[class*='language-'] { max-width: 100%; width: fit-content; margin: var(--code-align, auto); - margin-bottom: 4px; } code { diff --git a/packages/fusuma/src/configs/templates/style.css b/packages/fusuma/src/configs/templates/style.css index 4b152ab4b..c1d02732c 100644 --- a/packages/fusuma/src/configs/templates/style.css +++ b/packages/fusuma/src/configs/templates/style.css @@ -1,10 +1,12 @@ /* themes */ -@import '@fusuma/client/assets/style/themes/default.css'; +/* If nothing is loaded, the default theme will be applied. */ +/* @import '@fusuma/client/assets/style/themes/pop.css'; */ /* @import '@fusuma/client/assets/style/themes/babel.css'; */ /* @import '@fusuma/client/assets/style/themes/webpack.css'; */ /* @import '@fusuma/client/assets/style/themes/node.css'; */ /* the default variables */ +/* TODO: add the url */ /* :root { */ /* --base-font-size: 62.5%; */ /* --base-font-weight: 300; */ @@ -12,28 +14,6 @@ /* --code-font-size: 1.8rem; */ /* } */ -h1, -h2 { - color: var(--title-color); -} - -a { - color: var(--link-color); -} - -.slide-background { - /* set the default background */ - background: var(--background-color); -} - -.slide-box { - /* set the default align */ - text-align: center; - - /* set the default font-color */ - color: var(--base-color); -} - .title { } diff --git a/samples/plain/style.css b/samples/plain/style.css index 9c23b64d7..c1d02732c 100644 --- a/samples/plain/style.css +++ b/samples/plain/style.css @@ -1,38 +1,22 @@ /* themes */ -@import '../../packages/client/assets/style/themes/default.css'; -/* @import '../../packages/client/assets/style/themes/webpack.css'; */ -/* @import '../../packages/client/assets/style/themes/babel.css'; */ -/* @import '../../packages/client/assets/style/themes/node.css'; */ +/* If nothing is loaded, the default theme will be applied. */ +/* @import '@fusuma/client/assets/style/themes/pop.css'; */ +/* @import '@fusuma/client/assets/style/themes/babel.css'; */ +/* @import '@fusuma/client/assets/style/themes/webpack.css'; */ +/* @import '@fusuma/client/assets/style/themes/node.css'; */ + +/* the default variables */ +/* TODO: add the url */ +/* :root { */ +/* --base-font-size: 62.5%; */ +/* --base-font-weight: 300; */ +/* --code-align: auto; */ +/* --code-font-size: 1.8rem; */ +/* } */ -/* set custom colors */ -/* :root { -} */ - -html { - /* set the base font-size */ - font-size: 62.5%; -} - -h1, -h2 { - color: var(--title-color); -} - -a { - color: var(--link-color); -} - -.slide-background { - /* set the default background */ - background: var(--background-color); - - /* set the default font-color */ - color: var(--base-color); +.title { } /* https://hiroppy.github.io/fusuma/docs/guides/slide-syntax#declaring-section-title */ .section-title { } - -.title { -} diff --git a/samples/themes/style.css b/samples/themes/style.css index 8abe2a1cf..725c62f31 100644 --- a/samples/themes/style.css +++ b/samples/themes/style.css @@ -1,5 +1,4 @@ /* themes */ -@import '../../packages/client/assets/style/themes/default.css'; /* @import '../../packages/client/assets/style/themes/webpack.css'; */ /* @import '../../packages/client/assets/style/themes/babel.css'; */ /* @import '../../packages/client/assets/style/themes/node.css'; */