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

Commit 30d615c

Browse files
committed
feat(client): add custom css for images
1 parent 8da3771 commit 30d615c

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ The following properties are provided, but you can change the css directly if yo
136136
--base-align: center;
137137
--base-max-width: 1280px;
138138
--base-outer-margin: 24px;
139+
--base-image-height: auto;
140+
--base-image-width: 100%;
141+
--base-image-border: none;
142+
--base-image-border-radius: 0;
139143

140144
--color-title: #464646;
141145
--color-base: #545454;

packages/client/assets/style/tags.css

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ li {
6767

6868
img {
6969
margin: 0 auto;
70+
border: var(--base-image-border);
71+
border-radius: var(--base-image-border-radius);
72+
height: var(--base-image-height);
73+
width: var(--base-image-width);
7074
}
7175

7276
ol {

packages/client/assets/style/variables.css

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
--base-align: center;
88
--base-max-width: 1280px;
99
--base-outer-margin: 24px;
10+
--base-image-height: auto;
11+
--base-image-width: 100%;
12+
--base-image-border: none;
13+
--base-image-border-radius: 0;
1014

1115
--h1-font-size: 5.6rem;
1216
--h1-font-weight: 300;

packages/client/src/components/Assistant.js

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ const itemCss = {
2626
color: '#3d3738',
2727
};
2828

29-
const hrCss = {
30-
margin: '4px 0',
31-
};
32-
3329
const smallTitleCss = {
3430
borderBottom: '1px solid #ccc',
3531
marginBottom: '4px',

samples/debug/slides/02-file-loader.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
<!-- block-start: column -->
66

7-
### from markdown
7+
### markdown
88

99
![js](../assets/js.jpg)
1010

1111
<!-- block-end -->
1212
<!-- block-start: column -->
1313

14-
### from html
14+
### html
1515

16-
<img src="../assets/js.jpg" />
16+
<p><img src="../assets/js.jpg" /></p>
1717

1818
<!-- block-end -->
1919
<!-- block-end -->

0 commit comments

Comments
 (0)