-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
70 lines (61 loc) · 965 Bytes
/
style.css
File metadata and controls
70 lines (61 loc) · 965 Bytes
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
body {
font-family: "Lato", sans-serif;
}
h2 {
color: #000;
text-align: center;
font-size: 2em;
margin: 20px 0;
}
.warpper {
display: flex;
flex-direction: column;
align-items: center;
}
.tab {
cursor: pointer;
padding: 10px 20px;
margin: 0px 2px;
background: #32557f;
display: inline-block;
color: #fff;
border-radius: 3px 3px 0px 0px;
}
.panels {
background: #fff;
min-height: 200px;
width: 100%;
max-width: 500px;
border-radius: 3px;
overflow: hidden;
padding: 20px;
}
.panel {
display: none;
animation: fadein 0.8s;
}
@keyframes fadein {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.panel-title {
font-size: 1.5em;
font-weight: bold;
}
.radio {
display: none;
}
#one:checked ~ .panels #one-panel,
#two:checked ~ .panels #two-panel{
display: block;
}
#one:checked ~ .tabs #one-tab,
#two:checked ~ .tabs #two-tab {
background: #fff;
color: #000;
border-top: 3px solid #32557f;
}