Skip to content

Commit 7087367

Browse files
style: update background colors of codeblocks (#198)
Co-authored-by: seungrodotlee <seungrodotlee@gmail.com>
1 parent 5ca32de commit 7087367

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

.vitepress/theme/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,13 @@
211211
font-size: 14px;
212212
color: var(--vp-color-secondary);
213213
}
214+
215+
div.codeblock {
216+
padding: 20px 24px;
217+
border-radius: 8px;
218+
background-color: white;
219+
}
220+
221+
html.dark div.codeblock {
222+
background-color: var(--vp-c-bg-alt);
223+
}

src/docs/en/contributing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ JSDoc comments must include `@description` and `@example`, and if there are para
6666

6767
This JSDoc will be converted into the following documentation.
6868

69-
<div style="background: white; padding: 20px 24px; border-radius: 8px;">
69+
<div class='codeblock'>
7070
<Interface
7171
required
7272
name="name"
@@ -140,7 +140,7 @@ JSDoc comments must include `@description` and `@example`, and if there are para
140140

141141
This JSDoc will be converted into the following documentation.
142142

143-
<div style="background: white; padding: 20px 24px; border-radius: 8px;">
143+
<div class='codeblock'>
144144
<Interface
145145
name=""
146146
type="[value: string, onChange: () => void]"
@@ -176,7 +176,7 @@ JSDoc comments must include `@description` and `@example`, and if there are para
176176

177177
This JSDoc will be converted into the following documentation.
178178

179-
<div style="background: white; padding: 20px 24px; border-radius: 8px;">
179+
<div class='codeblock'>
180180
<Interface
181181
name=""
182182
type="Object"
@@ -271,7 +271,7 @@ All `react-simplikit` implementations use special rendering functions to verify
271271

272272
### Deployment
273273

274-
When changes are merged into the main branch, deployment happens automatically. You can view the deployment results in [GitHub Actions](https://github.com/toss/react-simplikit/actions).
274+
When changes are merged into the `main` branch, deployment happens automatically. You can view the deployment results in [GitHub Actions](https://github.com/toss/react-simplikit/actions).
275275

276276
## Documentation Contribution
277277

src/docs/ko/contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ JSDoc 주석은 `@description`과 `@example`을 반드시 포함해야 하고,
6666

6767
이 파라미터 JSDoc은 다음과 같은 문서로 변환돼요.
6868

69-
<div style="background: white; padding: 20px 24px; border-radius: 8px;">
69+
<div class='codeblock'>
7070
<Interface
7171
required
7272
name="name"
@@ -140,7 +140,7 @@ JSDoc 주석은 `@description`과 `@example`을 반드시 포함해야 하고,
140140

141141
이 반환 값 JSDoc은 다음과 같은 문서로 변환돼요.
142142

143-
<div style="background: white; padding: 20px 24px; border-radius: 8px;">
143+
<div class='codeblock'>
144144
<Interface
145145
name=""
146146
type="[value: string, onChange: () => void]"
@@ -176,7 +176,7 @@ JSDoc 주석은 `@description`과 `@example`을 반드시 포함해야 하고,
176176

177177
이 반환 값 JSDoc은 다음과 같은 문서로 변환돼요.
178178

179-
<div style="background: white; padding: 20px 24px; border-radius: 8px;">
179+
<div class='codeblock'>
180180
<Interface
181181
name=""
182182
type="Object"

0 commit comments

Comments
 (0)