forked from Technigo/project-github-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
177 lines (150 loc) · 2.58 KB
/
style.css
File metadata and controls
177 lines (150 loc) · 2.58 KB
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
/* RESET CSS TO BORDER-BOX */
* {
box-sizing: border-box;
}
/* main styling for entire webpage */
body {
display: flex;
flex-direction: column;
align-items: center;
background: #EFE6DD;
height: 100vh;
font-family: 'Noto Serif Display';
margin: 0;
color: #1E1E24;
}
/* styling of header, including elements injected by JS */
header, .user-name, .user-img, .user-info {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
}
header {
width: 100vw;
}
header h1 {
text-align: center;
font-size: 5vw;
width: 100vw;
margin: 5vw;
animation: slideLeft 2s forwards;
left: -400px;
position: relative;
}
/* animation setting of h1 */
@keyframes slideLeft {
from
{
left: -300px;
}
to {
left: 0px;
}
}
header img {
width: 20vw;
border-radius: 50%;
}
.user-info {
flex-direction: column;
}
.user-name a, h2 {
font-size: 2.5vw;
}
/*style sizing of chart-wrapper*/
.chart-wrapper {
width: 30vw;
height: 30vw;
}
/*style sizing and flexbox of project-wrapper*/
.projects-wrapper {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 4vw;
}
.projects-wrapper h2, a {
font-size: 4vw;
text-align: center;
color: #1E1E24;
}
.projects {
display: flex;
justify-content: center;
flex-direction: column;
}
.projects h3 {
display: flex;
justify-content: center;
font-size: 4vw;
margin: 1vw;
}
/*h3 animation*/
h3:hover{
-webkit-transform: scale(1.2);
-ms-transform: scale(1.2);
transform: scale(1.2);
}
/*style sizing and flexbox of project-cards injected by JS*/
.card {
display: inline-flex;
flex-direction: column;
justify-content: center;
width: 45vw;
font-size: 2.5vw;
background: #F8F7F9;
padding: 8px;
margin: 10px;
border-radius: 20px;
}
.card p {
display: inline-flex;
justify-content: center;
margin: 1vw;
}
/*style sizing and flexbox footer with github bio injected by JS*/
footer {
display: flex;
justify-content: center;
align-items: center;
background-color: #DAB49D;
height: 12vw;
width: 100vw;
margin-top: 10vw;
}
.profile-bio {
font-size: 2.5vw;
text-align: center;
}
/*media queries for responsiveness*/
@media (min-width: 667px) {
.projects {
flex-direction: row;
flex-wrap: wrap;
}
}
@media (min-width: 992px) {
header {
margin-bottom: 4vw;
}
header h1 {
font-size: 4vw;
margin: 4vw;
}
.user-name a, h2 {
font-size: 1.5vw;
}
.projects-wrapper h2 {
font-size: 3vw;
}
.projects h3 {
font-size: 2vw;
}
.card {
font-size: 1.5vw;
width: 30vw;
}
footer p {
font-size: 1.5vw;
}
}