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

Commit e704af0

Browse files
committed
fix(client): add slide-background class to container
1 parent 03ff1a9 commit e704af0

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:root {
2+
--title-color: #3498db;
3+
--base-color: #f5f5f5;
4+
--background-color: #545454;
5+
--link-color: #60d7a9;
6+
}

packages/client/src/components/SlideCore.js

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const SlideCore = ({ slides, onChangeSlideIndex }) => (
6161
: {}),
6262
}}
6363
onSlideChange={({ realIndex }) => onChangeSlideIndex(realIndex)}
64+
className="slide-background"
6465
>
6566
{slides.map(({ slide: Slide, fusumaProps }, i) => (
6667
<SwiperSlide

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

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ a {
3333
.slide-box {
3434
/* set the default align */
3535
text-align: center;
36-
37-
& > * {
38-
/* set the slide width: the default is 80% */
39-
/* width: 100px; */
40-
}
4136
}
4237

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

samples/debug/style.css

+1-5
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@
22
@import '../../packages/client/assets/style/themes/webpack.css';
33
/* @import '../../packages/client/assets/style/themes/babel.css'; */
44
/* @import '../../packages/client/assets/style/themes/node.css'; */
5+
/* @import '../../packages/client/assets/style/themes/pop.css'; */
56

67
@font-face {
78
font-family: Stratum;
89
src: url('./assets/StratumNo1.ttf');
910
}
1011

11-
/* background: #f5f5f5; */
1212
.slide-background {
1313
background: var(--background-color);
1414
color: var(--base-color);
1515
}
1616

1717
.slide-box {
1818
text-align: center;
19-
20-
& > * {
21-
/* width: 100px; */
22-
}
2319
}
2420

2521
h1,

0 commit comments

Comments
 (0)