-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
99 lines (93 loc) · 2.16 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
/* 左右の余白 */
.body-margin-LR {
margin-left: 100px;
margin-right: 100px;
}
/* テキスト中央寄せ */
.text-center {
text-align: center;
display: block;
}
.text-center .text {
text-align: left;
display: inline-block;
}
/* 枠線付きボックス */
.bordered {
border: 1px solid #000;
padding: 20px;
margin: 10px;
}
/* テキスト中央寄せ(リスト) */
.text-center2 {
margin: 16px auto;
text-align: center;
display: block;
}
.text-center2 ul {
padding-left: 0;
list-style: none;
display: inline-block;
}
.text-center2 ul li {
text-align: left;
}
/* GitHub Markdown スタイル */
@import url('https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.1.0/github-markdown.min.css');
.markdown-body {
max-width: 800px;
margin: 0 auto;
padding: 20px;
font-size: 16px;
}
/* カスタム WARNING / IMPORTANT スタイル */
.markdown-body p:has(strong:contains("WARNING")) {
background-color: #ffeb3b;
padding: 10px;
border-left: 5px solid #f44336;
font-weight: bold;
}
.markdown-body p:has(strong:contains("IMPORTANT")) {
background-color: #e3f2fd;
padding: 10px;
border-left: 5px solid #2196f3;
font-weight: bold;
}
/* トップボタンとホームボタン */
#page-top, #home-link {
position: fixed;
font-size: 1.2rem;
line-height: 1.2rem;
background: #FFF;
color: #111;
padding: 10px;
border: solid 1px;
border-radius: 50%;
box-shadow: 0 2px 10px -6px rgba(0,0,0,.5), 0 3px 10px -4px rgba(0,0,0,.2);
z-index: 10;
}
#page-top {
right: 10px;
bottom: 60px;
padding: 10px 11px; /* サイズを調整 */
}
#home-link {
right: 10px;
bottom: 10px;
}
#page-top:hover, #home-link:hover {
background: #111;
color: #FFF;
}
/* text スタイル */
.text {
color: #000;
font-size: 16px;
font-family: "メイリオ", "Meiryo", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Osaka", "MS PGothic", "MS Pゴシック", sans-serif;
line-height: 0.8em;
letter-spacing: 0.02em;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
text-align: left;
}