-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
208 lines (188 loc) · 3.61 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
body {
font-family: "Open Sans", Arial;
background-image: linear-gradient(to right, #F5F8FA, #1DA1F2);
}
body * {
font-weight: 300;
margin: 0;
padding: 0;
}
.form-box {
text-align: center;
padding-top: 1%;
}
/* Add a black background color to the top navigation */
.topnav {
overflow: hidden;
background-color: #333;
position: fixed;
top: 0;
width: 100%;
}
/* Style the links inside the navigation bar */
.topnav a {
float: left;
display: block;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
/* Change the color of links on hover */
.topnav a:hover {
background-color: #0C7BDC;
color: snow;
}
/* Add a color to the active/current link */
.topnav a.active {
background-color: #0C7BDC;
color: white;
}
.main {
padding: 16px;
margin-top: 30px;
height: 1500px; /* Used in this example to enable scrolling */
}
/*
This is the Section for the Pie Chart Representation.
*/
@-webkit-keyframes bake-pie {
from {
transform: rotate(0deg) translate3d(0, 0, 0);
}
}
@keyframes bake-pie {
from {
transform: rotate(0deg) translate3d(0, 0, 0);
}
}
.pie-chart {
font-family: "Open Sans", Arial;
}
.pie-chart--wrapper {
width: 900px;
margin: -300px auto;
text-align: right;
}
.pie-chart__pie, .pie-chart__legend {
display: inline-block;
vertical-align: top;
width: 900px;
margin: 150px auto;
}
.pie-chart__pie {
position: relative;
height: 200px;
width: 200px;
margin: 10px auto 35px;
}
.pie-chart__pie::before {
content: "";
display: block;
position: absolute;
z-index: 1;
width: 100px;
height: 100px;
background: #EEE;
border-radius: 50%;
top: 50px;
left: 50px;
}
.pie-chart__pie::after {
content: "";
display: block;
width: 120px;
height: 2px;
background: rgba(0, 0, 0, 0.1);
border-radius: 50%;
box-shadow: 0 0 3px 4px rgba(0, 0, 0, 0.1);
margin: 220px auto;
}
.slice {
position: absolute;
width: 200px;
height: 200px;
clip: rect(0px, 200px, 200px, 100px);
-webkit-animation: bake-pie 1s;
animation: bake-pie 1s;
}
.slice span {
display: block;
position: absolute;
top: 0;
left: 0;
background-color: black;
width: 200px;
height: 200px;
border-radius: 50%;
clip: rect(0px, 200px, 200px, 100px);
}
.pie-chart__legend {
float: right;
display: block;
list-style-type: none;
padding: 0;
margin: 5000 auto;
background: #FFF;
padding: 0.75em 0.75em 0.05em;
font-size: 13px;
box-shadow: 1px 1px 0 #DDD, 2px 2px 0 #BBB;
text-align: left;
width: 25%;
}
.pie-chart__legend li {
height: 1.25em;
margin-bottom: 0.7em;
padding-left: 0.5em;
border-left: 1.25em solid black;
}
.pie-chart__legend em {
font-style: normal;
}
.pie-chart__legend span {
float: right;
}
.pie-charts {
display: flex;
flex-direction: row;
}
@media (max-width: 800px) {
.pie-charts {
flex-direction: column;
}
}
.welcome_section {
text-align: center;
background-color: #2e7395;
}
.welcome_section .img-box {
width: 65%;
margin: 0 auto;
}
.welcome_section .img-box img {
width: 100%;
}
.welcome_section .detail-box {
margin-top: 45px;
}
.welcome_section .detail-box a {
display: inline-block;
padding: 12px 40px;
background-color: #feb543;
color: #f9fcfb;
border-radius: 25px;
-webkit-box-shadow: 0px 2px 7px 0px rgba(32, 50, 117, 0.26);
box-shadow: 0px 2px 7px 0px rgba(32, 50, 117, 0.26);
-webkit-transition: all .3s;
transition: all .3s;
border: none;
margin-top: 45px;
}
.welcome_section .detail-box a:hover {
-webkit-transform: translateY(-7px);
transform: translateY(-7px);
}
.layout_padding2 {
padding: 45px 0;
}