Skip to content

Commit bf2aa9d

Browse files
committed
Improve accuracy
1 parent fbdc2ca commit bf2aa9d

File tree

2 files changed

+73
-16
lines changed

2 files changed

+73
-16
lines changed

static/index.css

+72-16
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,24 @@ a:is(:hover, :focus, :active) {
1616
text-decoration: underline;
1717
}
1818

19-
h2 {
20-
font-size: 2rem;
19+
h1, h2, h3 {
20+
font-weight: bold;
2121
}
2222

23-
h1, h3 {
23+
h1 {
2424
font-size: 3rem;
25-
padding: 0;
25+
letter-spacing: -.25rem;
26+
margin: 0;
27+
}
28+
29+
h2 {
30+
font-size: 1.5rem;
31+
letter-spacing: -0.125rem;
32+
}
33+
34+
h3 {
35+
font-size: 1.75rem;
36+
letter-spacing: -0.125rem;
2637
margin: 0;
2738
}
2839

@@ -32,14 +43,18 @@ ul {
3243
padding: 0;
3344
}
3445

46+
summary::marker {
47+
content: "";
48+
}
49+
3550

3651
header {
3752
position: fixed;
3853
top: 0;
3954
left: 0;
40-
font-size: 2rem;
41-
color: grey;
42-
margin-left: 1vw;
55+
font-size: 1.75rem;
56+
color: rgb(119, 119, 119);
57+
margin-left: 2vw;
4358
}
4459

4560
.search {
@@ -86,7 +101,12 @@ header ul li {
86101
}
87102

88103
header object {
89-
width: 5vw;
104+
width: 6.25vw;
105+
}
106+
107+
header li:nth-of-type(2) {
108+
font-size: 1.25rem;
109+
color: black;
90110
}
91111

92112
header details span {
@@ -97,16 +117,16 @@ header details span {
97117

98118
main, footer {
99119
margin-left: 15vw;
100-
width: 80vw;
120+
width: 60vw;
101121
}
102122

103-
@media (max-width: 1000px) {
123+
@media (max-width: 1200px) {
104124
header > nav {
105125
display: none;
106126
}
107127
main, footer {
108128
margin-left: 1vw;
109-
width: auto;
129+
width: 75vw;
110130
}
111131
}
112132

@@ -117,12 +137,27 @@ main, footer {
117137

118138
.hero > section {
119139
float: left;
120-
width: 50vw;
140+
width: 35vw;
121141
}
122142
.hero > section:nth-of-type(2) {
123143
margin-left: 1vw;
124-
width: 25vw;
144+
width: 20vw;
145+
}
146+
.hero > section:nth-of-type(2) li {
147+
border-top: 1px solid hsla(0, 0%, 50%, 0.33);
148+
margin-bottom: 2.5%;
125149
}
150+
151+
152+
@media (max-width: 1200px) {
153+
.hero > section {
154+
width: 45vw;
155+
}
156+
.hero > section:nth-of-type(2) {
157+
width: 20vw;
158+
}
159+
}
160+
126161
@media (max-width: 800px) {
127162
.hero > section {
128163
float: none;
@@ -140,10 +175,16 @@ section img {
140175
padding: 1rem;
141176
}
142177

178+
.hero img {
179+
padding: 0
180+
}
181+
143182
.post {
144183
position: relative;
145184
overflow: hidden;
146-
margin: 2.5% 0;
185+
margin-bottom: 2.5%;
186+
padding-top: 2.5%;
187+
border-top: 1px solid hsla(0, 0%, 50%, 0.33);
147188
}
148189

149190
.post > * {
@@ -159,13 +200,22 @@ section img {
159200
display: none;
160201
}
161202
}
203+
@media (max-width: 600px) {
204+
.post > div {
205+
width: 66.66%;
206+
}
207+
.post > a {
208+
width: 33.33%;
209+
}
210+
}
162211

163212
.post a:is(:hover, :active, :focus) {
164213
text-decoration: none;
165214
}
166215

167216
.post p {
168217
font-size: 2rem;
218+
margin: 0;
169219
}
170220
@media (max-width: 1000px) {
171221
.post p {
@@ -175,6 +225,12 @@ section img {
175225
font-size: 2rem;
176226
}
177227
}
228+
229+
@media (max-width: 600px) {
230+
.post h3 {
231+
font-size: 1.5rem;
232+
}
233+
}
178234
.post img {
179235
margin: 2.5%;
180236
}
@@ -195,9 +251,9 @@ time {
195251
}
196252

197253
.post p a {
198-
width: 75%;
199254
display: block;
200-
margin: auto;
255+
font-size: 1.25rem;
256+
color: rgb(119, 119, 119);
201257
}
202258

203259
cite {

templates/index.ejs

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<nav>
1717
<ul>
1818
<li><a href="https://techcrunch.com/"><object data="assets/logo.svg" title="Tech Crunch logo" type="image/svg+xml"></object></a></li>
19+
<br/>
1920
<li><a href="https://oidc.techcrunch.com/login/?prompt=login&dest=https%3A%2F%2Ftechcrunch.com%2F">Login</a></li>
2021
<li>
2122
<details class="search">

0 commit comments

Comments
 (0)