forked from siriokun/css-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (91 loc) · 1.38 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
@import url(http://fonts.googleapis.com/css?family=Noto+Sans);
body {
font-family: 'Noto Sans', sans-serif;
margin: 0;
}
a {
color: steelblue;
text-decoration: none;
}
.logo {
margin: 0;
text-align: center;
}
.logo a {
display: inline-block;
margin: 0;
padding: 20px;
}
.nav {
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
}
.nav li {
flex: 1;
list-style: none;
}
.nav a {
background: #000;
color: #fff;
display: block;
padding: 20px 10px;
text-align: center;
text-decoration: none;
-webkit-transition: .3s;
-o-transition: .3s;
transition: .3s;
}
.nav a:hover {
background: steelblue;
}
.content {
min-height: 220px;
max-width: 1000px;
margin: 100px auto;
}
.footer {
background: #000;
color: #fff;
padding: 20px;
text-align: center;
}
@media (max-width: 768px) {
body {
margin-bottom: 80px;
word-wrap: break-word;
}
.header {
background: #000;
}
.nav {
bottom: 0;
position: fixed;
width: 100%;
}
.nav li:nth-child(n+1) a {
background: blue;
}
.nav li:nth-child(n+2) a {
background: cyan;
}
.nav li:nth-child(n+3) a {
background: red;
}
.nav li:nth-child(n+4) a {
background: green;
}
.nav li:nth-child(n+5) a {
background: gold;
}
.nav li a:hover {
background: steelblue;
}
.content {
margin: 20px;
}
.footer {
display: none;
}
}