Skip to content

Commit 645eda3

Browse files
committed
Tweak redundant styles in Docs pages
1 parent 088b0d4 commit 645eda3

File tree

4 files changed

+142
-167
lines changed

4 files changed

+142
-167
lines changed

app/assets/stylesheets/docs.scss

Lines changed: 114 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.docs {
77
font-family: serif;
88
line-height: 2.2em;
9-
a:hover{
9+
a:hover {
1010
text-decoration: none;
1111
}
1212
ul {
@@ -15,115 +15,131 @@
1515
font-size: 20px;
1616
padding-left: 1.5em;
1717
text-indent: -1.5em;
18-
1918
@media only screen and (max-width: 768px) {
20-
padding-bottom: 10px;
21-
margin-left: -35px;
19+
padding-bottom: 10px;
20+
margin-left: -35px;
2221
}
2322
}
2423
}
2524
}
2625

2726
/* 各ページ用: /doc/* */
28-
2927
.doc {
3028
counter-reset: doc-chapter;
3129
position: relative;
3230
font-family: serif;
33-
line-height: 2.0em;
34-
}
35-
.doc > h1 {
36-
text-align: center;
37-
margin-bottom: 40px;
38-
line-height: 2.0em;
39-
}
40-
.doc > h1:first-child {
41-
margin-top: 0;
42-
}
43-
.doc > h2 {
44-
counter-reset: doc-paragraph;
45-
counter-increment: doc-chapter;
46-
padding-top: 40px;
47-
margin-top: 1.2em;
48-
margin-bottom: 20px;
49-
}
50-
.doc > h3 {
51-
padding-top: 40px;
52-
margin-top: 1.2em;
53-
margin-bottom: 20px;
54-
line-height: 2.0em;
55-
}
56-
.doc > p {
57-
counter-increment: doc-paragraph;
58-
text-indent: 0em;
59-
padding-left: 1em;
60-
line-height: 2.0em;
61-
}
62-
.doc > h1 + p,
63-
.doc > h2 + p,
64-
.doc > hr + p,
65-
.doc > p:first-of-type {
66-
text-indent: 0em;
67-
padding-left: 1em;
68-
}
69-
.doc > p::before {
70-
//content: counter(doc-paragraph) " ";
71-
font-weight: bold;
72-
margin-left: -2em;
73-
margin-right: 1em;
74-
}
75-
.doc > h1 + p::before,
76-
.doc > h2 + p::before,
77-
.doc > hr + p::before,
78-
.doc > p:first-of-type::before {
79-
content: none;
80-
}
81-
.doc > ul {
82-
list-style: none;
83-
padding: 0 0 0 2.5em;
84-
}
85-
.doc > ol {
86-
list-style: none;
87-
counter-reset: doc-ordered-list;
88-
padding: 0 0 0 2.5em;
89-
}
90-
.doc > ol > li {
91-
counter-increment: doc-ordered-list;
92-
text-indent: -2.5em;
93-
}
94-
.doc > ol > li::before {
95-
content: "\FF08" counter(doc-ordered-list) "\FF09";
96-
}
97-
.doc > hr {
98-
border: none;
99-
border-top: 1px solid black;
100-
margin: 2em 0;
101-
}
102-
.doc > h4 {
103-
position: absolute;
104-
margin: 0;
105-
right: 30em;
106-
font-size: 100%;
107-
}
108-
.doc > h4 + ul {
109-
margin: 0 0 2em auto;
110-
width: 28em;
111-
list-style: none;
112-
}
113-
.doc > h4 + ul > li:last-child::after {
114-
content: "\329E";
115-
position: absolute;
116-
right: 1em;
117-
}
118-
.doc > blockquote {
119-
border: 1px solid black;
120-
padding: .5em 1.5em;
121-
margin: 1em 0 1.5em;
31+
line-height: 2.0em;
12232

123-
small { line-height: 2.0em; }
124-
}
125-
.doc > ol > li > ul {
126-
list-style: none;
33+
h1 {
34+
text-align: center;
35+
margin-top: 1.2em;
36+
margin-bottom: 40px;
37+
line-height: 2.0em;
38+
}
39+
40+
h1:first-child {
41+
margin-top: 0;
42+
}
43+
44+
h2, h3 {
45+
margin-top: 2.6em;
46+
margin-bottom: 20px;
47+
line-height: 2.0em;
48+
}
49+
50+
.gc_wrapper { margin-top: 50px; }
51+
52+
p {
53+
counter-increment: doc-paragraph;
54+
text-indent: 0em;
55+
padding-left: 1em;
56+
line-height: 2.0em;
57+
}
58+
59+
p::before {
60+
font-weight: bold;
61+
margin-left: -2em;
62+
margin-right: 1em;
63+
}
64+
65+
h1 + p,
66+
h2 + p,
67+
hr + p,
68+
p:first-of-type {
69+
text-indent: 0em;
70+
padding-left: 1em;
71+
}
72+
73+
p::before,
74+
h1 + p::before,
75+
h2 + p::before,
76+
hr + p::before,
77+
p:first-of-type::before {
78+
content: none;
79+
}
80+
81+
ul {
82+
list-style: none;
83+
padding: 0 0 0 2.5em;
84+
}
85+
86+
ol {
87+
list-style: none;
88+
counter-reset: doc-ordered-list;
89+
padding: 0 0 0 2.5em;
90+
}
91+
92+
ol > li {
93+
counter-increment: doc-ordered-list;
94+
text-indent: -2.5em;
95+
}
96+
97+
ol > li::before {
98+
content: "\FF08" counter(doc-ordered-list) "\FF09";
99+
}
100+
101+
hr {
102+
border: none;
103+
border-top: 1px solid black;
104+
margin: 2em 0;
105+
}
106+
107+
h4 {
108+
position: absolute;
109+
margin: 0;
110+
right: 30em;
111+
font-size: 100%;
112+
}
113+
114+
h4 + ul {
115+
margin: 0 0 2em auto;
116+
width: 28em;
117+
list-style: none;
118+
}
119+
120+
h4 + ul > li:last-child::after {
121+
content: "\329E";
122+
position: absolute;
123+
right: 1em;
124+
}
125+
126+
blockquote {
127+
border: 1px solid black;
128+
padding: .5em 1.5em;
129+
margin: 1em 0 1.5em;
130+
131+
small {
132+
line-height: 2.0em;
133+
}
134+
}
135+
136+
ol > li > ul {
137+
list-style: none;
138+
}
139+
140+
small::before {
141+
content: none;
142+
}
127143
}
128144

129145
// Sample Usecase: https://coderdojo.jp/docs/fundraising-methods

public/docs/_calendar-kirie.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,28 @@
11
# 🗓 予定表([宮島](https://twitter.com/kiriem_)
22

3-
<br>
4-
53
打ち合わせの日程候補を挙げる際などで参考にして頂けると嬉しいです。
64

7-
<br>
8-
95
<div class="gc_wrapper">
106
<div class="responsive-iframe-container small-container">
117
<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&showTabs=0&showPrint=0&showDate=1&wkst=2&color=%23182C57&bgcolor=%23F2F2F2&hl=ja&ctz=Asia%2FTokyo&src=yohei%40coderdojo.jp&src=2bk907eqjut8imoorgq1qa4olc%40group.calendar.google.com&src=ay5taXlhamltYUBjb2RlLm9yLmpw&src=a2lyaWVAaW5wdy5qcA"
128
style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no"></iframe>
139
</div>
1410
</div>
15-
<br>
1611

1712
<blockquote style="padding-top: 10px; font-style: normal;">オンラインをご希望の場合は <a href="https://zoom.us/jp-jp/meetings.html">Zoom</a> または <a href="https://apps.google.com/meet/?hl=ja">Google Meet</a> をご用意できます。</blockquote>
1813

19-
<br>
2014

2115
## 🏢 (一社) CoderDojo Japan オフィス
2216

23-
<br>
24-
2517
打ち合わせはオンラインでもオフラインでもどちらでも大丈夫です。オフラインの場合は下記の弊社オフィス、もしくは東京都近辺であれば伺うことも可能です 🏢🏃💨
2618

2719
〒169-0075 東京都新宿区高田馬場1-28-10 三慶ビル4階 [CASE Shinjuku](https://case-shinjuku.com/access)
2820

29-
<br>
30-
3121
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3239.5740715995967!2d139.70255071526714!3d35.7120976358859!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x60188d54776dce6b%3A0xc46b1d392ca25f9!2sCoderDojo%20Japan!5e0!3m2!1sja!2sjp!4v1603170377148!5m2!1sja!2sjp" width="100%" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
3222

33-
<br><br>
3423

3524
## 📜 活動紹介
3625

37-
<br>
38-
3926
一般社団法人 CoderDojo Japan の活動を紹介するスライド資料です。打ち合わせ前のご参考になれば幸いです 😌
4027

4128
<div style='margin: 30px auto;'>
@@ -44,8 +31,6 @@
4431

4532
<div align='center'>詳細は<a href='/partnership'>パートナーシップのご案内</a>をご参照ください。</div>
4633

47-
<br>
48-
4934
<div align="right">
5035
一般社団法人 CoderDojo Japan<br>
5136
連絡先: info@coderdojo.jp

public/docs/_calendar-yohei.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,28 @@
11
# 🗓 予定表([安川](https://twitter.com/yasulab)
22

3-
<br>
4-
53
打ち合わせの日程候補を挙げる際などで参考にして頂けると嬉しいです。午前中の場合は10:15am以降だと助かります 🙏
64

7-
<br>
8-
95
<div class="gc_wrapper">
106
<div class="responsive-iframe-container small-container">
117
<iframe src="https://calendar.google.com/calendar/embed?showTitle=0&showTabs=0&showPrint=0&showDate=1&wkst=2&color=%23182C57&bgcolor=%23F2F2F2&hl=ja&ctz=Asia%2FTokyo&src=yohei%40coderdojo.jp&src=2bk907eqjut8imoorgq1qa4olc%40group.calendar.google.com&src=yasslab.jp_ac8rsip6rn0a77egdea47tc6t8%40group.calendar.google.com"
128
style="border-width:0" width="100%" height="600" frameborder="0" scrolling="no"></iframe>
139
</div>
1410
</div>
15-
<br>
1611

1712
<blockquote style="padding-top: 10px; font-style: normal;">オンラインをご希望の場合は <a href="https://zoom.us/jp-jp/meetings.html">Zoom</a> または <a href="https://apps.google.com/meet/?hl=ja">Google Meet</a> をご用意できます。</blockquote>
1813

19-
<br>
2014

2115
## 🏢 打ち合わせ場所について
2216

23-
<br>
24-
25-
<p>
26-
打ち合わせはオンライン・現地のどちらにも対応可能です。現地の場合は下記の弊社オフィス、もしくは都内であれば御社にお伺いすることも可能です 🏢🏃💨
27-
</p>
17+
打ち合わせはオンライン・現地のどちらにも対応可能です。現地の場合は下記の弊社オフィス、もしくは都内であれば御社にお伺いすることも可能です 🏢🏃💨
2818

2919
〒169-0075 東京都新宿区高田馬場1-28-10 三慶ビル4階 [CASE Shinjuku](https://case-shinjuku.com/access)
3020

31-
<br>
32-
3321
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3239.5740715995967!2d139.70255071526714!3d35.7120976358859!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x60188d54776dce6b%3A0xc46b1d392ca25f9!2sCoderDojo%20Japan!5e0!3m2!1sja!2sjp!4v1603170377148!5m2!1sja!2sjp" width="100%" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe>
3422

35-
<br><br>
3623

3724
## 📜 活動紹介:法人提携例
3825

39-
<br>
40-
4126
一般社団法人 CoderDojo Japan の活動を紹介するスライド資料です。打ち合わせ前のご参考になれば幸いです 😌
4227

4328
<div style='margin: 30px auto;'>
@@ -51,8 +36,6 @@
5136
</a>
5237
</div>
5338

54-
<br>
55-
5639
<div align="right">
5740
一般社団法人 CoderDojo Japan<br>
5841
連絡先: info@coderdojo.jp

0 commit comments

Comments
 (0)