-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
121 lines (102 loc) · 1.71 KB
/
style.css
File metadata and controls
121 lines (102 loc) · 1.71 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
:root {
--color-primary: #008009;
--color-secondary: #275243;
--color-dark: #151f1b;
--color-light: #f4f4f4;
}
@font-face {
font-family: 'Inter';
src: url('Inter-Variable.ttf') format('truetype');
}
html, body {
margin: 0;
height: 100%;
box-sizing: border-box;
}
body {
font-family: 'Inter', 'Arial', sans-serif;
background-color: var(--color-secondary);
color: var(--color-light);
font-size: 16px;
background-image:
linear-gradient(191deg, #F4F26921 0%, transparent 75%),
linear-gradient(311deg, #0E218A6B 0%, transparent 75%);
background-size: 100% 100%;
background-attachment: fixed;
}
main {
padding: 1em;
max-width: 980px;
margin: auto;
}
.logo {
width: 2em;
border-radius: 999px;
margin: auto;
display: inline;
vertical-align: middle;
}
h1 {
margin: 0;
padding: 1em;
background: #1b1b1b;
font-weight: 400;
color: var(--color-light);
}
h2 {
margin-top: 2em;
}
section {
display: flex;
gap: 1em;
flex-wrap: wrap;
}
@media (max-width: 1000px) {
section {
justify-content: space-around;
}
}
article {
position: relative;
background: var(--color-light);
border-radius: 8px;
overflow: hidden;
width: 300px;
color: var(--color-dark);
line-height: 1.4;
}
p {
margin-top: 0;
}
article img {
height: 200px;
width: 100%;
object-fit: cover;
}
article h3 {
padding: 0 1em;
margin: 0;
color: var(--color-light);
background: linear-gradient(0deg, var(--color-dark), transparent 50%);
height: 200px;
line-height: 350px;
width: 100%;
position: absolute;
top: 0;
}
article div {
padding: 1em;
}
a {
color: var(--color-light);
}
article a {
color: var(--color-primary);
}
a + a {
margin-left: 0.5em;
}
footer {
padding: 1em;
text-align: center;
}