-
-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathstyle.css
More file actions
110 lines (93 loc) · 1.49 KB
/
style.css
File metadata and controls
110 lines (93 loc) · 1.49 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
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: #f4f4f4;
color: #222;
line-height: 1.6;
/* Sticky footer layout */
display: flex;
flex-direction: column;
min-height: 100vh;
}
.page-header {
text-align: center;
padding: 2rem 1rem;
}
.page-header h1 {
margin-bottom: 0.5rem;
}
.subtitle {
color: #555;
}
.content {
max-width: 1100px;
margin: 0 auto;
padding: 1rem;
flex: 1;
/* pushes footer to bottom */
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.card {
background-color: #fff;
border: 2px solid #000;
margin-bottom: 2rem;
}
.featured {
width: 100%;
}
.article-image {
width: 100%;
height: 220px;
/* aligned image height */
object-fit: cover;
/* prevents distortion */
display: block;
}
.card-body {
padding: 1rem;
}
.card-body h2 {
margin-top: 0;
}
.button {
display: inline-block;
padding: 0.5rem 1rem;
border: 2px solid #000;
text-decoration: none;
color: #000;
font-weight: bold;
}
.button:hover,
.button:focus {
background-color: #000;
color: #fff;
}
.card-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
}
.page-footer {
background: #918d8d;
color: rgb(39, 37, 37);
text-align: center;
padding: 1rem;
}
@media (max-width: 768px) {
.card-grid {
grid-template-columns: 1fr;
}
}