Skip to content

Commit

Permalink
fix(client): add slide-background class to container
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jan 30, 2021
1 parent 03ff1a9 commit e704af0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
6 changes: 6 additions & 0 deletions packages/client/assets/style/themes/pop.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:root {
--title-color: #3498db;
--base-color: #f5f5f5;
--background-color: #545454;
--link-color: #60d7a9;
}
1 change: 1 addition & 0 deletions packages/client/src/components/SlideCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const SlideCore = ({ slides, onChangeSlideIndex }) => (
: {}),
}}
onSlideChange={({ realIndex }) => onChangeSlideIndex(realIndex)}
className="slide-background"
>
{slides.map(({ slide: Slide, fusumaProps }, i) => (
<SwiperSlide
Expand Down
5 changes: 0 additions & 5 deletions packages/fusuma/src/configs/templates/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ a {
.slide-box {
/* set the default align */
text-align: center;

& > * {
/* set the slide width: the default is 80% */
/* width: 100px; */
}
}

/* https://hiroppy.github.io/fusuma/docs/guides/slide-syntax#declaring-section-title */
Expand Down
6 changes: 1 addition & 5 deletions samples/debug/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,20 @@
@import '../../packages/client/assets/style/themes/webpack.css';
/* @import '../../packages/client/assets/style/themes/babel.css'; */
/* @import '../../packages/client/assets/style/themes/node.css'; */
/* @import '../../packages/client/assets/style/themes/pop.css'; */

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

/* background: #f5f5f5; */
.slide-background {
background: var(--background-color);
color: var(--base-color);
}

.slide-box {
text-align: center;

& > * {
/* width: 100px; */
}
}

h1,
Expand Down

0 comments on commit e704af0

Please sign in to comment.