-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
181 lines (156 loc) · 3.06 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
padding: 100px 20px;
}
nav {
z-index: 1;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
color: #fff;
background-color: orange;
position: fixed;
top: 0;
left: 0;
width: 100%;
padding: 20px 0;
text-align: center;
transition: 0.5s;
}
.text-color {
color: orange;
transition: 0.5s;
}
footer {
padding: 40px 0;
text-align: center;
opacity: 0.33;
color: #111;
}
.wrapper {
max-width: 900px;
margin: 0 auto;
}
.tabs {
display: table;
table-layout: fixed;
width: 100%;
transform: translateY(5px);
}
.tabs > li {
transition: 0.25s;
display: table-cell;
list-style: none;
text-align: center;
padding: 20px 20px 25px 20px;
position: relative;
overflow: hidden;
cursor: pointer;
color: #fff;
}
.tabs > li::before {
z-index: -1;
position: absolute;
content: "";
width: 100%;
height: 100%; /* Changed */
top: 0;
left: 0;
background-color: rgba(255, 255, 255, 0.3);
transform: translateY(100%);
transition: 0.25s;
border-radius: 5px 5px 0 0;
}
.tabs > li:hover:before {
transform: translateY(82%); /* Changed */
}
.tabs > li.active {
color: #50555a;
}
.tabs > li.active:before {
transition: 0.5s;
background-color: #fff;
transform: translateY(0);
}
.tab-content {
background-color: #fff;
position: relative;
width: 100%;
border-radius: 5px;
}
.tab-content > li {
width: 100%;
position: absolute;
top: 0;
left: 0;
display: none;
list-style: none;
}
.tab-content > li .content-wrapper {
border-radius: 5px;
width: 100%;
padding: 45px 40px 40px 40px;
background-color: #fff;
}
.content-wrapper h2 {
width: 100%;
text-align: center;
padding-bottom: 20px;
font-weight: 300;
}
.content-wrapper > div {
/* Changed */
width: 200px;
height: 200px;
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
background-color: aqua;
color: #000;
font: 2rem;
font-weight: 700;
}
.colors {
text-align: center;
}
.colors > li {
list-style: none;
width: 50px;
height: 50px;
border-radius: 50%;
border-bottom: 5px solid rgba(0, 0, 0, 0.1);
display: inline-block;
margin: 0 10px;
cursor: pointer;
transition: 0.2s;
box-shadow: 0 2px 1px rgba(0, 0, 0, 0.2);
}
.colors > li:hover {
transform: scale(1.2);
border-bottom: 10px solid rgba(0, 0, 0, 0.15);
box-shadow: 0 10x 10x rgba(0, 0, 0, 0.2);
}
.colors > li.active-color {
transform: scale(1.2) translateY(-10px);
box-shadow: 0 10px 10px rgba(0 0 0 0.2);
border-bottom: 20px solid rgba(0, 0, 0, 0.15);
}
.colors > li:nth-child(1) {
background-color: #2ecc71;
}
.colors > li:nth-child(2) {
background-color: #d64a4b;
}
.colors > li:nth-child(3) {
background-color: #8effad;
}
.colors > li:nth-child(4) {
background-color: #46a1de;
}
.colors > li:nth-child(5) {
background-color: #bdc3c7;
}