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
166 lines (137 loc) · 2.41 KB
/
style.css
File metadata and controls
166 lines (137 loc) · 2.41 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
/* Global CSS variables for colors */
:root {
--primary: #F1FAEE;
--secondary: #A8DADC;
--tertiary:#1D3557;
}
* {
box-sizing: border-box;
margin: 0;
}
body {
background: var(--primary);
color: var(--tertiary);
font-family: 'Roboto', sans-serif;
}
/* Header styling */
header {
background: var(--secondary);
color: var(--primary);
width: 100%;
min-height: 25vh;
display: flex;
flex-direction: column;
}
h1{
font-size: 1.5rem;
text-transform: uppercase;
text-align: center;
margin-top: 2rem;
padding: 0.5rem;
}
/* Main page */
.container {
display: flex;
flex-direction: column;
}
/* Profile section */
.profile-container {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 2rem;
margin-bottom: 1rem;
}
img {
border-radius: 50%;
max-width: 20vw;
border: 2px solid var(--secondary);
}
.profile-name h3{
font-size: 1rem;
text-align: center;
padding: 0.5rem;
}
.profile-name h4 {
font-size: 0.8rem;
text-align: center;
}
.profil-name h4, a {
text-decoration: none;
color: inherit;
}
.chart-container {
max-width: 20vh;
max-height: 20vh;
margin-bottom: 1rem;
}
/* Styling of the project section */
.projects {
display: flex;
flex-direction: column;
align-items: center;
margin: 2rem;
}
.card {
background-color: var(--primary);
width: 60vw;
border: 2px solid var(--tertiary);
padding: 1.2rem;
margin: 0.5rem;
box-shadow: 4px 6px 6px #36454F;
}
.card h3 {
text-transform: uppercase;
text-align: center;
}
.card:hover {
background-color: var(--tertiary);
color: var(--primary);
border: 5px solid var(--secondary);
}
.card a:hover {
color: var(--secondary);
}
/* Media query for tablet */
@media screen and (min-width: 768px) {
h1{
font-size: 3rem;
}
.profile-name h3{
font-size: 1.5rem;
}
.profile-name h4 {
font-size: 1rem;
}
.profile-container {
display: flex;
flex-direction: row;
justify-content: space-evenly;
}
.chart-container {
min-width: 20vw;
min-height: 20vh;
}
.projects {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.5rem;
place-items: center;
}
.card {
max-width: 40vw;
}
}
/* Media query for desktop */
@media screen and (min-width:1024px) {
.projects {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: (auto, 1fr);
gap: 0.2rem;
align-items: center;
}
.card {
max-width: 30vw;
}
}