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
232 lines (199 loc) · 3.55 KB
/
Copy pathstyle.css
File metadata and controls
232 lines (199 loc) · 3.55 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
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
* {
box-sizing: border-box;
text-align: center;
}
/* variables to style the dark mode, add these in another variable in dark mode and add those to the selectors */
:root {
--borderColor: 2px solid white;
--linkColor: white;
--usernameColor: white;
}
body {
background: #f9f3ec;
font-family: "Stick No Bills", sans-serif;
letter-spacing: 2px;
margin: 0;
transition: 0.6s ease, color 1s ease;
}
.dark-mode {
background: rgba(0, 0, 0, 0.8);
color: white;
--borderImgColor: var(--borderColor);
--colorOfLink: var(--linkColor);
--colorOfUsername: var(--usernameColor);
}
.toggleBtn {
font-family: "Stick No Bills", sans-serif;
border-radius: 20px;
padding: 8px;
cursor: pointer;
font-size: 20px;
}
.toggleBtn:hover {
border: 2px solid #fff;
background: #5f939a;
color: #fff;
}
header {
background: #5f939a;
padding: 10px;
width: 100%;
margin-bottom: 30px;
text-transform: uppercase;
}
.username {
color: var(--colorOfUsername);
font-size: 24px;
}
.username-link {
text-decoration: none;
color: var(--colorOfLink);
}
.username-link:hover {
transition: all 1s;
background: #5f939a;
border-radius: 30px;
padding: 5px;
}
.repo-amount {
font-style: italic;
}
.repo-title {
text-transform: uppercase;
}
.push-date {
width: 100%;
}
.push-title {
font-weight: bold;
display: block;
}
.cards {
border: 2px solid #5f939a;
background-color: #dbd7d298;
display: grid;
width: 90%;
text-align: center;
margin: 10px auto;
border-radius: 20px;
padding: 0 5px;
}
.branch {
border: 2px solid black;
border-radius: 30px;
width: 30%;
margin: auto;
background: #5f939a;
color: white;
}
.grid-container {
margin: auto;
}
fieldset {
border: 4px solid;
border-color: #5f939a;
border-radius: 20px;
margin: 0 10px;
}
legend {
text-transform: uppercase;
font-size: 28px;
}
img {
border: var(--borderImgColor);
width: 70%;
border-radius: 50%;
}
.chart {
margin: 10px auto;
height: 200px;
width: 200px;
}
.links {
color: var(--colorOfLink);
width: 80%;
margin: auto;
text-decoration: none;
font-size: 12px;
}
.links:hover {
transition: all 1s;
background: #5f939a;
border-radius: 30px;
}
footer {
background: #5f939a;
padding: 10px;
margin-top: 20px;
}
/* MEDIA QUERIES */
/* TABLET */
@media (min-width: 767px) and (max-width: 1023px) {
.cards {
font-size: 28px;
margin: 20px auto;
}
.links {
font-size: 24px;
}
.repo-amount {
font-size: 24px;
}
.location {
font-size: 22px;
}
.chart {
margin: 10px auto;
height: 275px;
width: 275px;
}
}
/* DESKTOP */
@media (min-width: 1024px) {
/* container for the whole page (profile section and cards) */
.grid-container {
display: grid;
grid-template-columns: 1fr 2fr;
}
/* class from HTML / container for all of the cards only */
.project-cards {
display: grid;
grid-template-columns: 1fr 1fr;
padding-top: 45px;
}
/* class from JS / container for each card */
.cards {
display: grid;
width: 90%;
margin: 10px auto;
font-size: 18px;
}
.cards:hover {
transform: scale(1.05);
box-shadow: 4px 8px 16px -3px rgba(0, 0, 0, 0.459);
}
.chart {
margin-top: 40px;
width: 300px;
height: 300px;
}
.links {
font-size: 12px;
}
/* class from js */
.repo-amount {
margin: 30px 0;
}
img {
animation: myAnim 2s ease 0s 1 normal forwards;
}
@keyframes myAnim {
0% {
transform: rotate(0) scale(0.3);
opacity: 0.5;
}
100% {
transform: rotate(360deg);
}
}
}