Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit da3b7b2

Browse files
committed
feat(client): add webpack and babel themes
1 parent c79cfb8 commit da3b7b2

File tree

12 files changed

+77
-29
lines changed

12 files changed

+77
-29
lines changed

packages/client/assets/style/code.css

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
@import './variable';
21
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro');
32

3+
:root {
4+
--color-white: #f5f5f5;
5+
}
6+
47
pre {
58
background: var(--color-white);
69
border-radius: 10px;

packages/client/assets/style/commentsList.css

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import './variable';
2-
31
.comments-list {
42
background: #333;
53
height: 100vh;

packages/client/assets/style/common.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
@import 'modern-normalize/modern-normalize.css';
22
@import 'swiper/swiper.min.css';
33
@import 'swiper/components/a11y/a11y.min.css';
4-
@import './variable.css';
54
@import './customize.css';
65
@import './sidebar.css';
76
@import './grid.css';
87

98
html {
10-
color: var(--color-black);
9+
color: #333;
1110
font-size: 62.5%;
1211
}
1312

packages/client/assets/style/host.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
@import './variable';
1+
:root {
2+
--color-main: #3498db;
3+
--color-white: #f5f5f5;
4+
--color-black: #333;
5+
}
26

37
.disabled {
48
pointer-events: none;

packages/client/assets/style/sidebar.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@import './variable';
2-
31
:root {
42
--color-cyan: #7bb7fa;
3+
--color-white: #f5f5f5;
4+
--color-black: #373a47;
55
}
66

77
.btn-sidebar {
@@ -21,7 +21,7 @@
2121
}
2222

2323
.bm-menu {
24-
background: #373a47;
24+
background: var(--color-black);
2525
padding: 16px;
2626
}
2727

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* https://babeljs.io/ */
2+
3+
:root {
4+
--title-color: #f5da55;
5+
--base-color: hsla(0, 0%, 100%, 0.8);
6+
--background-color: #3b3c38;
7+
--link-color: rgba(245, 218, 85, 0.15);
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:root {
2+
--title-color: #464646;
3+
--base-color: #545454;
4+
--background-color: #f5f5f5;
5+
--link-color: #3498db;
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* https://webpack.js.org/ */
2+
3+
:root {
4+
--title-color: #8dd6f9;
5+
--base-color: #fff;
6+
--background-color: #2b3a42;
7+
--link-color: #86a5ba;
8+
}

packages/client/assets/style/variable.css

-7
This file was deleted.

packages/client/assets/style/view.css

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import './variable.css';
2-
31
.fusuma-presenter-view {
42
height: 100vh;
53
width: 100vw;

packages/fusuma/src/configs/templates/style.css

+27-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
1-
:root {
2-
--color-white: #f5f5f5;
3-
--color-black: #333;
4-
--color-cyan: #7bb7fa;
5-
}
1+
/* themes */
2+
@import '@fusuma/client/assets/style/themes/default.css';
3+
/* @import '@fusuma/client/assets/style/themes/babel.css'; */
4+
/* @import '@fusuma/client/assets/style/themes/webpack.css'; */
5+
6+
/* set custom colors */
7+
/* :root {
8+
} */
69

710
html {
811
/* set the base font-size */
912
font-size: 62.5%;
1013
}
1114

15+
h1,
16+
h2 {
17+
color: var(--title-color);
18+
}
19+
20+
a {
21+
color: var(--link-color);
22+
}
23+
1224
.slide-background {
1325
/* set the default background */
14-
background: var(--color-white);
26+
background: var(--background-color);
1527

1628
/* set the default font-color */
17-
color: var(--color-black);
29+
color: var(--base-color);
1830
}
1931

20-
a {
21-
/* set the default link color */
22-
color: var(--color-cyan);
32+
.slide-box {
33+
/* set the default align */
34+
text-align: center;
35+
36+
& > * {
37+
/* set the slide width: the default is 80% */
38+
/* width: 100px; */
39+
}
2340
}
2441

2542
/* https://hiroppy.github.io/fusuma/docs/guides/slide-syntax#declaring-section-title */

samples/debug/style.css

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
/* @import '../../packages/client/assets/style/themes/default.css'; */
2+
@import '../../packages/client/assets/style/themes/webpack.css';
3+
14
@font-face {
25
font-family: Stratum;
36
src: url('./assets/StratumNo1.ttf');
47
}
58

9+
/* background: #f5f5f5; */
610
.slide-background {
7-
background: #f5f5f5;
11+
background: var(--background-color);
12+
color: var(--base-color);
813
}
914

1015
.slide-box {
@@ -15,6 +20,15 @@
1520
}
1621
}
1722

23+
h1,
24+
h2 {
25+
color: var(--title-color);
26+
}
27+
28+
a {
29+
color: var(--link-color);
30+
}
31+
1832
.file-loader-font {
1933
font-family: Stratum;
2034
font-size: 2rem;

0 commit comments

Comments
 (0)