Skip to content

Commit 088b0d4

Browse files
committed
Refactor CSS for /docs/* pages
1 parent 26e1888 commit 088b0d4

File tree

4 files changed

+13
-83
lines changed

4 files changed

+13
-83
lines changed

app/assets/stylesheets/docs.scss

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,34 @@
3030
counter-reset: doc-chapter;
3131
position: relative;
3232
font-family: serif;
33+
line-height: 2.0em;
3334
}
3435
.doc > h1 {
3536
text-align: center;
36-
line-height: 1.5em;
37+
margin-bottom: 40px;
38+
line-height: 2.0em;
3739
}
3840
.doc > h1:first-child {
3941
margin-top: 0;
4042
}
4143
.doc > h2 {
4244
counter-reset: doc-paragraph;
4345
counter-increment: doc-chapter;
44-
margin-top: 1.2em;
45-
}
46-
.doc > h2::before {
47-
//content: "\7B2C" counter(doc-chapter) "\6761\FF08";
48-
}
49-
.doc > h2::after {
50-
//content: "\FF09";
46+
padding-top: 40px;
47+
margin-top: 1.2em;
48+
margin-bottom: 20px;
5149
}
5250
.doc > h3 {
53-
line-height: 1.7em;
54-
margin-top: 1.2em;
51+
padding-top: 40px;
52+
margin-top: 1.2em;
53+
margin-bottom: 20px;
54+
line-height: 2.0em;
5555
}
5656
.doc > p {
5757
counter-increment: doc-paragraph;
5858
text-indent: 0em;
5959
padding-left: 1em;
60-
line-height: 1.7em;
60+
line-height: 2.0em;
6161
}
6262
.doc > h1 + p,
6363
.doc > h2 + p,
@@ -119,6 +119,8 @@
119119
border: 1px solid black;
120120
padding: .5em 1.5em;
121121
margin: 1em 0 1.5em;
122+
123+
small { line-height: 2.0em; }
122124
}
123125
.doc > ol > li > ul {
124126
list-style: none;

public/docs/about-coderdojo-japan.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,6 @@
22

33
一般社団法人 CoderDojo Japan では、全国{{ NUM_OF_JAPAN_DOJOS }}ヶ所以上ある非営利のプログラミング道場「CoderDojo」の活動の輪を広げ、より一層楽しいものにしていくために、以下の事業を行っております。
44

5-
<style type="text/css">
6-
section.doc h1 {
7-
margin-bottom: 40px;
8-
line-height: 2.0em;
9-
}
10-
section.doc h2,
11-
section.doc h3 {
12-
padding-top: 40px;
13-
margin-bottom: 20px;
14-
line-height: 2.0em;
15-
}
16-
17-
section.doc p {
18-
line-height: 2.0em;
19-
}
20-
21-
blockquote small {
22-
line-height: 2.0em;
23-
}
24-
</style>
25-
265
<br>
276

287
- (1) 日本国内の「CoderDojo」の設立及び運営の支援

public/docs/about-partnership.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,6 @@
22

33
本パートナーシップにご興味を持って頂きありがとうございます。本ページでは CoderDojo の活動状況をご紹介させて頂きながら、貴社で行われている事業と継続的にご協力していけないかをご提案させて頂いております。
44

5-
<style type="text/css">
6-
section.doc h1 {
7-
margin-bottom: 40px;
8-
line-height: 2.0em;
9-
}
10-
section.doc h2,
11-
section.doc h3 {
12-
padding-top: 40px;
13-
margin-bottom: 20px;
14-
line-height: 2.0em;
15-
}
16-
17-
section.doc p {
18-
line-height: 2.0em;
19-
}
20-
21-
h2#faq {
22-
text-align: center;
23-
}
24-
25-
blockquote small {
26-
line-height: 2.0em;
27-
}
28-
</style>
29-
305

316
## [☯️](#coderdojo-is) CoderDojo とは? {#coderdojo-is}
327

public/docs/english.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -171,29 +171,3 @@ We occasionally host guests from overseas at our co-working and shared-office sp
171171
<script src='https://apis.google.com/js/platform.js'></script>
172172
</div>
173173
</div>
174-
175-
176-
<style type="text/css">
177-
section.doc h1 {
178-
margin-bottom: 40px;
179-
line-height: 2.0em;
180-
}
181-
section.doc h2,
182-
section.doc h3 {
183-
padding-top: 40px;
184-
margin-bottom: 20px;
185-
line-height: 2.0em;
186-
}
187-
188-
section.doc p {
189-
line-height: 2.0em;
190-
}
191-
192-
h2#faq {
193-
text-align: center;
194-
}
195-
196-
blockquote small {
197-
line-height: 2.0em;
198-
}
199-
</style>

0 commit comments

Comments
 (0)