-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
104 lines (94 loc) · 1.57 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
100
101
102
103
104
*{
margin: 0;
padding: 0;
font-family: Arial, Helvetica, sans-serif;
}
.header{
height: 100px;
background-color: #34495e;
padding: 0 20px;
color: #fff;
/* position: fixed;
width: 100%;
top: 0;
right:0; */
}
.logo{
line-height: 100px;
float: left;
margin-left: 40px;
text-transform: uppercase;
}
.menu{
float: right;
line-height: 100px;
}
.menu a{
color:#fff;
text-transform: uppercase;
text-decoration: none;
padding: 0 10px;
transition: 0.4s;
}
.show-menu-btn,.hide-menu-btn{
transition: 0.4s;
font-size: 30px;
cursor: pointer;
display: none;
}
.show-menu-btn{
float: right;
}
.show-menu-btn i{
line-height: 100px;
}
.menu a:hover,
.show-menu-btn,
.hide-menu-btn{
color: #3498db;
}
#chk{
position: absolute;
visibility: hidden;
z-index: -1111;
}
.content{
padding: 0 20px;
}
.content img{
width: 100%;
max-width: 700px;
margin: 20px 0;
}
.content p{
text-align: justify;
}
@media screen and (max-width:800px){
.show-menu-btn,.hide-menu-btn{
display: block;
}
.menu{
position: fixed;
width: 30%;
height: 100vh;
background: #333;
right:-100%;
top: 0;
text-align: center;
padding:80px 0;
line-height: normal;
transition: 0.7s;
}
.menu a{
display: block;
padding:20px;
}
.hide-menu-btn{
position: absolute;
top: 40px;
right: 40px;
}
#chk:checked ~ .menu{
right:0;
}
}