9
9
body {
10
10
font-family : system-ui;
11
11
font-size : 1.1rem ;
12
- margin : 2rem ;
13
- background : hsl (0 , 0% , 5% );
14
- color : # fffe ;
12
+ background : # 0d0d0d ;
13
+ color : # efefef ;
15
14
line-height : 1.6 ;
16
15
}
17
16
18
17
a {
19
18
color : inherit;
20
19
}
21
-
20
+
22
21
body {
23
22
display : grid;
24
23
gap : 4rem ;
24
+ margin : 2rem ;
25
25
26
26
row-rule :
27
- 1rem solid # fffe ,
28
- repeat (2 , 2px solid # fffe );
27
+ 1rem solid # efefef ,
28
+ repeat (2 , 2px solid # efefef );
29
29
}
30
30
31
31
h1 ,
43
43
display : flex;
44
44
flex-wrap : wrap;
45
45
gap : 2rem ;
46
- column-rule : 2px dashed # fff3 ;
46
+ column-rule : 2px dashed # 666 ;
47
47
}
48
48
49
49
article img {
53
53
object-fit : cover;
54
54
}
55
55
56
- footer {
57
- justify-self : end;
58
- }
59
-
60
56
main {
61
57
display : flex;
62
58
flex-wrap : wrap;
63
59
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 ;
66
63
}
67
64
68
65
main > * {
71
68
72
69
main article : has (p ) {
73
70
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' ;
88
71
}
89
72
</ style >
90
73
</ head >
91
74
92
75
< body >
93
76
< header >
94
- < h1 > CSS gap decorations </ h1 >
77
+ < h1 > My personal site </ h1 >
95
78
</ header >
96
79
< nav >
97
80
< ul >
@@ -110,7 +93,7 @@ <h1>CSS gap decorations</h1>
110
93
laborum.</ p >
111
94
</ article >
112
95
< article >
113
- < img src ="cat.jpg " alt ="A sleeping cat ">
96
+ < img src ="cat.jpg " alt ="A sleeping cat. ">
114
97
</ article >
115
98
< article >
116
99
< 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>
119
102
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</ p >
120
103
</ article >
121
104
< article >
122
- < img src ="tree.jpg " alt ="An old olive tree trunk ">
105
+ < img src ="tree.jpg " alt ="An old olive tree trunk. ">
123
106
</ article >
124
107
< article >
125
108
< p > Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
0 commit comments