Skip to content

Commit 71c2879

Browse files
simplified personal site demo
1 parent ad5cb9d commit 71c2879

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

css-gap-decorations/personal-site.html

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@
99
body {
1010
font-family: system-ui;
1111
font-size: 1.1rem;
12-
margin: 2rem;
13-
background: hsl(0, 0%, 5%);
14-
color: #fffe;
12+
background: #0d0d0d;
13+
color: #efefef;
1514
line-height: 1.6;
1615
}
1716

1817
a {
1918
color: inherit;
2019
}
21-
20+
2221
body {
2322
display: grid;
2423
gap: 4rem;
24+
margin: 2rem;
2525

2626
row-rule:
27-
1rem solid #fffe,
28-
repeat(2, 2px solid #fffe);
27+
1rem solid #efefef,
28+
repeat(2, 2px solid #efefef);
2929
}
3030

3131
h1,
@@ -43,7 +43,7 @@
4343
display: flex;
4444
flex-wrap: wrap;
4545
gap: 2rem;
46-
column-rule: 2px dashed #fff3;
46+
column-rule: 2px dashed #666;
4747
}
4848

4949
article img {
@@ -53,16 +53,13 @@
5353
object-fit: cover;
5454
}
5555

56-
footer {
57-
justify-self: end;
58-
}
59-
6056
main {
6157
display: flex;
6258
flex-wrap: wrap;
6359
gap: 4rem;
64-
row-rule: 2px solid #fff6;
65-
column-rule: 2px solid #fff6;
60+
row-rule: 2px solid #999;
61+
column-rule: 2px solid #999;
62+
column-rule-outset: 0;
6663
}
6764

6865
main>* {
@@ -71,27 +68,13 @@
7168

7269
main article:has(p) {
7370
flex-basis: 400px;
74-
place-content: center;
75-
}
76-
77-
main article p {
78-
text-align: center;
79-
font-style: italic;
80-
}
81-
82-
main article p::before {
83-
content: '\201C';
84-
}
85-
86-
main article p::after {
87-
content: '\201D';
8871
}
8972
</style>
9073
</head>
9174

9275
<body>
9376
<header>
94-
<h1>CSS gap decorations</h1>
77+
<h1>My personal site</h1>
9578
</header>
9679
<nav>
9780
<ul>
@@ -110,7 +93,7 @@ <h1>CSS gap decorations</h1>
11093
laborum.</p>
11194
</article>
11295
<article>
113-
<img src="cat.jpg" alt="A sleeping cat">
96+
<img src="cat.jpg" alt="A sleeping cat.">
11497
</article>
11598
<article>
11699
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
@@ -119,7 +102,7 @@ <h1>CSS gap decorations</h1>
119102
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
120103
</article>
121104
<article>
122-
<img src="tree.jpg" alt="An old olive tree trunk">
105+
<img src="tree.jpg" alt="An old olive tree trunk.">
123106
</article>
124107
<article>
125108
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

0 commit comments

Comments
 (0)