-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
130 lines (110 loc) · 1.84 KB
/
style.css
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
/* Desktop (4 columns) */
@media (min-width: 1024px) {
.News {
grid-template-columns: repeat(4, 1fr);
}
}
/* Tablet (2 columns) */
@media (min-width: 768px) and (max-width: 1023px) {
.News {
grid-template-columns: repeat(2, 1fr);
}
}
/* Mobile (1 column) */
@media (max-width: 767px) {
.News {
grid-template-columns: 1fr;
}
}
img {
display: block;
width: 300px;
height: 200px;
object-fit: cover;
}
h1 {
color: white;
text-align: center;
font-size: xx-large;
margin-top: 25px;
}
h2 {
color: black;
}
.logo-and-nav-bar {
background-color: #177082;
margin: 25px;
padding-top: 10px;
margin-inline: auto;
}
.newspaper-logo {
display: block;
width: 45px;
height: 30px;
object-fit: cover;
margin-right: auto;
margin-left: auto;
padding-bottom: 25px;
}
body,
ul,
li {
margin: 0;
padding: 0;
list-style: none;
}
body {
font-family: 'Raleway', sans-serif;
}
/* Header styles */
.header {
color: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
position: relative;
text-align: center;
}
/* Navigation bar */
.nav ul {
display: flex;
justify-items: center;
align-items: center;
text-align: center;
}
.nav ul li {
display: flex;
justify-items: center;
flex-grow: 1;
}
.nav ul li a {
color: rgb(241, 238, 238);
font-weight: bold;
text-decoration: none;
padding: 10px 15px;
display: flex;
}
.nav ul li a:hover {
background-color: #ffffff;
border-radius: 5px;
}
.News {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(2, 400px);
gap: 1.5rem;
padding-block: 50px;
margin: 50px;
}
.main-news-2 {
grid-column: 2 / 4;
}
footer {
display: flex;
justify-content: center;
background-color: #177082;
padding: 2rem;
font-size: 0.75rem;
font-family: 'Raleway', sans-serif;
}