Skip to content

Commit 57a6f65

Browse files
committed
Improve CSS
1 parent 9f02083 commit 57a6f65

1 file changed

Lines changed: 8 additions & 18 deletions

File tree

‎static/style.css‎

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
--space-nav-margin-desktop: .5rem;
7474
--space-article-col-gap: 3rem;
7575
--space-section-gap: 1rem;
76-
--space-about-photo-offset: 1rem;
7776
--space-figure-caption-top: 0.5rem;
7877
--space-blockquote-y: 1.5rem;
7978
--space-blockquote-pad-y: 0.75rem;
@@ -100,7 +99,6 @@
10099
--size-nav-gap-mobile-row: 0.35rem;
101100
--size-nav-gap-mobile-col: 1.4rem;
102101

103-
/* --tracking-h1: 1.2px; */
104102
--tracking-heading: 0;
105103
--tracking-nav: 0.10em;
106104
--underline-offset: 3px;
@@ -117,7 +115,6 @@
117115
--link-green: #2f6168;
118116
--dry-grass: #b05c3a;
119117
--dry-grass-rgb: 176 92 58;
120-
--dry-grass-strong: #a45031;
121118
--visited-green: #485a31;
122119
--ground-white: #f2f5ef;
123120
--alpha-rule-line: 0.16;
@@ -148,7 +145,6 @@ header {
148145
margin: var(--space-h1-top) var(--space-0) var(--space-h1-bottom);
149146
font-size: var(--font-size-title);
150147
font-weight: var(--font-weight-regular);
151-
letter-spacing: var(--tracking-h1);
152148
line-height: var(--line-height-h1);
153149
color: var(--tree-ink);
154150
}
@@ -224,19 +220,10 @@ a:focus-visible {
224220
box-shadow: 0 0 0 2px var(--dry-grass);
225221
}
226222

227-
/* Lazy loading styles */
228223
img {
229-
opacity: var(--space-0);
230-
transition: opacity var(--duration-image) var(--easing-image);
231-
width: 100%;
232-
max-width: var(--size-img-max);
224+
max-width: 100%;
233225
height: auto;
234226
display: block;
235-
margin: var(--space-0) auto;
236-
}
237-
238-
img[loading="lazy"] {
239-
opacity: 1;
240227
}
241228

242229
.bold {
@@ -376,7 +363,8 @@ article section > p:first-of-type {
376363
}
377364

378365
.recipe-hero img {
379-
max-width: 100%;
366+
max-width: 320px;
367+
width: 100%;
380368
}
381369

382370
.social-media {
@@ -575,9 +563,11 @@ section + section {
575563
margin-top: var(--space-section-gap);
576564
}
577565

578-
.about-photo {
579-
margin-top: var(--space-about-photo-offset);
580-
margin-bottom: var(--space-about-photo-offset);
566+
.about-photo img {
567+
width: 100%;
568+
max-width: 240px;
569+
margin-inline: auto;
570+
margin-top: 1rem;
581571
}
582572

583573
/* Custom tooltip styles */

0 commit comments

Comments
 (0)