-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstyle.css
More file actions
76 lines (65 loc) · 1.68 KB
/
Copy pathstyle.css
File metadata and controls
76 lines (65 loc) · 1.68 KB
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
/*全体の背景と行間の設定*/
body{
background-color: ivory;
line-height: 175%;
}
/*パーツの集まりのサイズを決め、ページ中央に寄せる。*/
#wrapper{
width: 800px;
margin: 0 auto 0 auto;
}
/*ヘッド部分と記事部分の幅を決めて、右側に固定する。*/
#main{
float: right;
width: 540px;
}
/*ヘッド部分の高さを決めて、他の要素との間をあける。影を付ける。*/
#head{
height: 200px;
margin: 0 0 20px 0;
box-shadow: black 0 0 2px;
}
#head img{
display: block;
}
/*サイドバーの幅を決める。*/
#sidebar{
width: 220px;
}
/*サイドバー、記事部分、フォーム部分の背景を白くする。影を付ける。*/
#sidebar,
#content,
#form{
margin: 0 0 20px 0;
padding: 10px;
background-color: white;
box-shadow: black 0 0 2px;
}
/*サイドバーのリンクの位置の調整、#sidebarのすぐ下にあるulという要素について調整している。*/
#sidebar > ul{
padding: 0 0 0 1.2em;
}
/*おまけ・コンテンツ部分のフォントのサイズをいじる。*/
ol > li:first-letter{
font-size: 1.2em;
}
/*おまけ・ホバーしたときリンクの色を変える。*/
a{
transition: color 0.7s;
}
a:hover{
color: skyblue;
}
/*
width 要素の幅
height 要素の高さ
margin ある要素と他の要素との間の長さ
padding ある要素のコンテンツとと要素それ自身の間の長さ
font-family フォントの種類
font-size 文字サイズ
line-height 行の高さ
color 文字色
background-color 背景色
transition アニメーション効果を与える
詳細はMozilla Developer Netoworkなどのリファレンスサイトを参照
*/