Skip to content

Commit

Permalink
feat(client): add custom css
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jan 30, 2021
1 parent a21684a commit c79cfb8
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 499 deletions.
1 change: 0 additions & 1 deletion packages/client/assets/style/code.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ pre[class*='language-'] {
pre > code[class*='language-'],
pre[class*='language-'] {
font-size: 1.8rem !important;
width: min-content;
}
}
6 changes: 0 additions & 6 deletions packages/client/assets/style/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ h1 {
}
}

@media (min-width: 850px) {
.slide-box {
margin: auto 24px;
}
}

h1 span {
font-style: italic;
}
Expand Down
12 changes: 10 additions & 2 deletions packages/client/assets/style/customize.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,22 @@
.swiper-slide {
display: flex;
align-items: center;
text-align: center;
justify-content: center;
overflow-y: auto;
}

.slide-box {
.slide-internal-box {
padding: 16px 0;
text-align: center;
text-align: inherit;
max-width: 100%;
margin: auto;
min-width: 320px;
width: 80%;
}

@media (min-width: 850px) {
.slide-internal-box {
margin: auto 24px;
}
}
3 changes: 2 additions & 1 deletion packages/client/src/components/SlideCore.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,14 @@ export const SlideCore = ({ slides, onChangeSlideIndex }) => (
<SwiperSlide
key={i /* mdx-loaderでhash作成 */}
className={classnames(
'slide-box',
'slide-background',
fusumaProps.classes,
fusumaProps.sectionTitle ? 'section-title' : undefined
)}
data-hash={`slide-${i + 1}`}
>
<div className="slide-box slide-background">
<div className="slide-internal-box slide-background">
<Slide />
</div>
</SwiperSlide>
Expand Down
2 changes: 2 additions & 0 deletions samples/advanced/.fusumarc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ slide:
code:
languages:
- yaml
build:
useCashe: false
3 changes: 3 additions & 0 deletions samples/debug/components/Hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React from 'react';

export const Hello = () => <h3>hello from js</h3>;
312 changes: 16 additions & 296 deletions samples/debug/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c79cfb8

Please sign in to comment.