Skip to content

Commit 76d959d

Browse files
committed
edit style
1 parent 9d5fe84 commit 76d959d

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

Wireframe/style.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ header {
22
text-align: center;
33
}
44
:root {
5+
--paper: oklch(7 0 0);
6+
--ink: color-mix(in oklab, var(--color) 5%, black);
57
--font: 100%/1.5 system-ui;
68
--space: clamp(6px, 6px + 2vw, 15px);
79
--line: 1px solid;
@@ -13,13 +15,20 @@ body {
1315
color: var(--ink);
1416
font: var(--font);
1517
}
16-
18+
a {
19+
padding: var(--space);
20+
border: var(--line);
21+
max-width: fit-content;
22+
}
1723
img,
1824
svg {
1925
width: 100%;
2026
object-fit: cover;
2127
}
22-
28+
main {
29+
max-width: var(--container);
30+
margin: 0 auto calc(var(--space) * 4) auto;
31+
}
2332
footer {
2433
bottom: 0;
2534
text-align: center;
@@ -40,14 +49,15 @@ article {
4049
text-align: left;
4150
display: grid;
4251
grid-template-columns: var(--space) 1fr var(--space);
43-
52+
> * {
53+
grid-column: 2/3;
54+
}
4455
> img {
4556
grid-column: span 3;
46-
height: 300px;
57+
height: auto;
4758
width: 100%;
4859
object-fit: cover;
4960
}
5061
}
5162

5263

53-

0 commit comments

Comments
 (0)