-
-
Notifications
You must be signed in to change notification settings - Fork 431
Expand file tree
/
Copy pathstyle.css
More file actions
118 lines (100 loc) · 1.75 KB
/
style.css
File metadata and controls
118 lines (100 loc) · 1.75 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
:root {
--text-main: rgb(9, 9, 9);
--border-color: rgb(7, 7, 7);
--bg-body: rgb(245, 245, 245);
--bg-card: whitesmoke;
--bg-footer: rgb(238, 236, 233);
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background: var(--bg-body);
color: var(--text-main);
font-family: "Roboto", Helvetica, sans-serif;
}
header {
text-align: center;
padding: 2rem 1rem;
}
h1 {
font-size: 3rem;
font-weight: 900;
margin-bottom: 0.5rem;
}
h2 {
font-size: 1.7rem;
font-weight: 600;
}
p {
line-height: 1.5;
}
a {
display: inline-block;
width: 140px;
text-decoration: none;
color: var(--text-main);
border: 1px solid var(--border-color);
padding: 10px 15px;
margin-top: 1.5rem;
text-align: center;
transition: all 0.2s ease;
}
a:hover, a:focus {
text-decoration: underline;
background-color: var(--text-main);
color: white;
outline: none;
}
main {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
max-width: 1200px;
margin: 0 auto 4rem;
padding: 0 1rem;
}
main > article:first-child {
grid-column: 1 / -1;
}
article {
display: flex;
flex-direction: column;
background: var(--bg-card);
border: 1px solid var(--border-color);
}
article img {
display: block;
object-fit: cover;
width: 100%;
height: 250px;
border-bottom: 1px solid var(--border-color);
}
article .content {
display: flex;
flex-direction: column;
padding: 1.5rem;
flex-grow: 1;
}
article .content a {
margin-top: auto;
}
footer {
text-align: center;
padding: 0.8rem;
background-color: var(--bg-footer);
border-top: 1px solid #ddd;
position: fixed;
bottom: 0;
width: 100%;
}
@media (max-width: 768px) {
main {
grid-template-columns: 1fr;
}
h1 {
font-size: 2.2rem;
}
}