-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
98 lines (95 loc) · 1.87 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
html,body{
font-size: 16px;
font-family: 'Open Sans', sans-serif;
background: #223942;
}
.tabs-wrapper{
max-width: 800px;
margin:100px auto;
position: relative;
}
.tabs-wrapper .tabs-item{
float: left;
}
.tabs-wrapper .tabs-item label{
font-weight: 600;
text-transform: uppercase;
display: inline-block;;
padding: 20px;
background: #0bb5e8;
text-shadow:0px 1px 1px rgba(0,0,0,0.2);
color: #fff;
transition:background ease 0.2s;
cursor: pointer;
}
.tabs-wrapper .tabs-item input[type="radio"]{
position: absolute;
left: -9999px;
}
.tabs-wrapper .tabs-item .tabs-content{
left: 0px;
right: 0;
top: 56px;
opacity: 0;
visibility: hidden;
background: #458796;
padding:20px;
color: #f0f0f0;
line-height: 1.5;
position: absolute;
}
.tabs-wrapper .tabs-item input:checked ~ .tabs-content{
opacity: 1;
visibility: visible;
tansition-delay:2s;
transition:opacity ease 0.2s;
}
.tabs-wrapper .tabs-item input:checked ~ label{
background: #458796;
}
h3{
font-size: 25px;
margin-bottom: 20px;
}
@media all and (max-width: 767px){
.tabs-wrapper{
margin: 20px;
}
.tabs-wrapper .tabs-item{
width: 100%;
}
.tabs-wrapper .tabs-item label{
display: block;
width: 100%;
position: relative;
}
.tabs-wrapper .tabs-item label:after{
content: "+";
font-size: 30px;
font-weight: 600;
position: absolute;
right: 0px;
top: 0px;
width: 56px;
height: 56px;
line-height: 56px;
text-align: center;
bottom: 0;
margin: auto;
background: rgba(0,0,0,0.5);
}
.tabs-wrapper .tabs-item .tabs-content{
position: static;
visibility: visible;
display: none;
opacity: 1;
}
.tabs-wrapper .tabs-item input:checked ~ .tabs-content{
opacity: 1;
visibility: visible;
display: block;
}
.tabs-wrapper .tabs-item input:checked ~ label:after{
content: "-";
}
}