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

Commit c79cfb8

Browse files
committed
feat(client): add custom css
1 parent a21684a commit c79cfb8

File tree

16 files changed

+69
-499
lines changed

16 files changed

+69
-499
lines changed

packages/client/assets/style/code.css

-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,5 @@ pre[class*='language-'] {
3131
pre > code[class*='language-'],
3232
pre[class*='language-'] {
3333
font-size: 1.8rem !important;
34-
width: min-content;
3534
}
3635
}

packages/client/assets/style/common.css

-6
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ h1 {
115115
}
116116
}
117117

118-
@media (min-width: 850px) {
119-
.slide-box {
120-
margin: auto 24px;
121-
}
122-
}
123-
124118
h1 span {
125119
font-style: italic;
126120
}

packages/client/assets/style/customize.css

+10-2
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,22 @@
2525
.swiper-slide {
2626
display: flex;
2727
align-items: center;
28+
text-align: center;
2829
justify-content: center;
2930
overflow-y: auto;
3031
}
3132

32-
.slide-box {
33+
.slide-internal-box {
3334
padding: 16px 0;
34-
text-align: center;
35+
text-align: inherit;
3536
max-width: 100%;
3637
margin: auto;
3738
min-width: 320px;
39+
width: 80%;
40+
}
41+
42+
@media (min-width: 850px) {
43+
.slide-internal-box {
44+
margin: auto 24px;
45+
}
3846
}

packages/client/src/components/SlideCore.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,14 @@ export const SlideCore = ({ slides, onChangeSlideIndex }) => (
5757
<SwiperSlide
5858
key={i /* mdx-loaderでhash作成 */}
5959
className={classnames(
60+
'slide-box',
6061
'slide-background',
6162
fusumaProps.classes,
6263
fusumaProps.sectionTitle ? 'section-title' : undefined
6364
)}
6465
data-hash={`slide-${i + 1}`}
6566
>
66-
<div className="slide-box slide-background">
67+
<div className="slide-internal-box slide-background">
6768
<Slide />
6869
</div>
6970
</SwiperSlide>

samples/advanced/.fusumarc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ slide:
66
code:
77
languages:
88
- yaml
9+
build:
10+
useCashe: false

samples/debug/components/Hello.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import React from 'react';
2+
3+
export const Hello = () => <h3>hello from js</h3>;

samples/debug/package-lock.json

+16-296
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)