-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
159 lines (159 loc) · 3.32 KB
/
style.css
File metadata and controls
159 lines (159 loc) · 3.32 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
body {
margin: 0;
background: #fff;
color: #111;
font-family: Georgia, 'Times New Roman', Times, serif;
}
.forbes-header {
background: #111;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.2rem 3vw;
}
.forbes-logo {
font-family: 'Georgia', serif;
font-weight: bold;
font-size: 2.2rem;
letter-spacing: 7px;
text-transform: uppercase;
color: #f7b800;
}
.forbes-nav a {
color: #fff;
margin-left: 2.3rem;
text-decoration: none;
font-size: 1rem;
padding-bottom: 3px;
border-bottom: 2px solid transparent;
}
.forbes-nav a:hover {
color: #f7b800;
border-bottom: 2px solid #f7b800;
}
main.forbes-main {
display: flex;
flex-wrap: wrap;
max-width: 1280px;
margin: 0 auto;
gap: 2vw;
padding: 2.5rem 1vw 0 1vw;
}
.feature-area {
flex: 3 1 540px;
background: #fffde7;
border-radius: 12px;
padding: 2.2rem 2.5rem;
box-shadow: 0 2px 22px #b3920023;
display: flex;
gap: 2.2rem;
position: relative;
align-items: center;
}
.feature-img {
width: 130px;
height: 130px;
border-radius: 50%;
border: 6px solid #fff;
box-shadow: 0 0 26px #f7b800;
object-fit: cover;
}
.feature-content h1 {
margin: 0 0 0.38rem 0;
font-size: 2.4rem;
letter-spacing: 3px;
font-weight: bold;
}
.feature-content .lead {
font-size: 1.15rem;
font-style: italic;
margin-bottom: 0.6rem;
color: #444;
}
.social-links {
margin-top: 1rem;
}
.social-links a {
margin-right: 1rem;
background: #f7b800;
color: #111;
padding: 0.32rem 1.1rem;
border-radius: 2rem;
text-decoration: none;
font-weight: 600;
font-size: 1rem;
transition: background 0.16s;
}
.social-links a:hover {
background: #111;
color: #f7b800;
}
.side-cards {
flex: 1 1 270px;
display: flex;
flex-direction: column;
gap: 1.4rem;
}
.side-card {
background: #fff;
border-left: 6px solid #f7b800;
border-radius: 8px;
box-shadow: 0 1px 10px #b3920032;
padding: 1.1rem 0.9rem 1rem 1.4rem;
margin-bottom: 0.6rem;
}
.side-card h2 {
margin: 0 0 0.15rem 0;
font-size: 1.12rem;
letter-spacing: 1.5px;
font-family: Georgia, serif;
}
.sub-cards {
margin-top: 2.8rem;
display: flex;
gap: 3vw;
width: 100%;
}
.news-card {
flex: 1 1 260px;
background: #f8f8fa;
border-radius: 8px;
box-shadow: 0 2px 14px #b392001a;
padding: 1.7rem 1.2rem 1.2rem 1.2rem;
margin-right: 1.5rem;
border-top: 4px solid #f7b800;
}
.news-card h3 {
margin: 0 0 0.31rem 0;
font-size: 1.11rem;
}
ul {
margin: 0.2rem 0 0 0.9rem;
padding: 0;
list-style-type: disc;
}
footer {
margin-top: 2.2rem;
padding: 1.1rem 0;
background: #222;
color: #fff;
text-align: center;
font-size: 0.97rem;
}
@media (max-width: 900px) {
main.forbes-main {
flex-direction: column;
gap: 2.4rem;
padding: 1.2rem 3vw 0 3vw;
}
.feature-area {
flex-direction: column;
gap: 1rem;
align-items: flex-start;
}
.sub-cards {
flex-direction: column;
gap: 1.1rem;
}
}