-
-
Notifications
You must be signed in to change notification settings - Fork 620
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·162 lines (143 loc) · 2.92 KB
/
Copy pathstyle.css
File metadata and controls
executable file
·162 lines (143 loc) · 2.92 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
/* We are using the 'Roboto' font from Google. This has already been added to your HTML header */
body {
font-family: "Roboto", sans-serif;
-webkit-font-smoothing: antialiased;
}
/**
* Add your custom styles below
*
* Remember:
* - Be organised, use comments and separate your styles into meaningful chunks
* for example: General styles, Navigation styles, Hero styles, Footer etc.
*
* - When using Flexbox, remember the items you want to move around need to be inside a parent container set to 'display: flex'
*/
:root {
--gap: 2vh;
--sectionHeight: 90vh;
--headerLineSize: calc(3.5vw + 25px);
--subHeaderLineSize: calc(2vw + 15px);
--logoColor: #e0633a;
--reverseColor: white;
--color: black;
--navColor: rgb(150, 150, 150);
}
body {
font-weight: 400;
}
main {
margin: 0;
}
h3 {
color: var(--reverseColor);
font-size: var(--headerLineSize);
font-weight: 100;
margin: var(--gap);
}
h4 {
color: var(--reverseColor);
font-size: var(--subHeaderLineSize);
font-weight: 100;
margin: var(--gap);
}
/* header styles */
header {
margin: 3vh 9vw;
height: 60px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.karmaIcon {
height: 60px;
}
nav ul {
list-style: none;
display: flex;
flex-direction: row;
gap: 2.5vw;
padding: 0;
}
nav ul li:nth-child(1) {
color: rgb(75, 75, 75);
font-weight: 500;
}
li {
font-size: 1.5vw;
color: var(--navColor);
}
/* first section styles */
.main-area {
height: var(--sectionHeight);
background-position: center;
background-size: cover;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.main-area button {
margin: calc(3 * var(--gap));
font-size: calc(var(--subHeaderLineSize) / 2);
color: var(--reverseColor);
background-color: var(--logoColor);
padding: calc(1.5 * var(--gap)) calc(3 * var(--gap));
border: none;
border-radius: 10px;
}
/* second section styles */
.article-area {
height: var(--sectionHeight);
margin: 0 9vw 5vh 9vw;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.article-area h3 {
margin: 8vh;
color: var(--color);
font-size: calc(var(--headerLineSize) / 1.3);
}
.article-area h4 {
color: var(--color);
font-size: calc(var(--subHeaderLineSize) / 1.3);
}
.article-icon {
height: 25vh;
}
.article-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-items: center;
text-align: center;
gap: 40px;
}
/* footer styles */
footer {
margin: 0 9vw 5vh 9vw;
text-align: center;
}
.media-logo {
border-radius: 27px;
padding: 10px;
border: var(--navColor) solid 2px;
height: 30px;
margin: 0 5px;
}
footer h5 {
font-size: 1.3vw;
color: var(--color);
font-weight: 300;
margin: 30px;
}
footer h6 {
font-size: 1vw;
color: rgb(150, 150, 150);
font-weight: 200;
margin: 40px 0 100px;
}
hr {
border: var(--navColor) solid 2px;
}