Skip to content

Commit aa30a24

Browse files
afhtbm
authored andcommitted
Clean-up stylesheet using SCSS nesting
1 parent acb76ce commit aa30a24

File tree

1 file changed

+28
-36
lines changed

1 file changed

+28
-36
lines changed

source/stylesheets/site.css.scss

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,48 +15,45 @@ header {
1515
min-height:65px;
1616
border-bottom:3px solid gray;
1717
padding:1em;
18-
}
1918

20-
header li {
21-
display:inline-block;
22-
margin: 0 2em 0 0;
23-
}
19+
li {
20+
display:inline-block;
21+
margin: 0 2em 0 0;
22+
}
2423

25-
header a {
26-
text-decoration:none;
24+
a { text-decoration:none; }
2725
}
2826

2927
nav ul {
3028
padding: 0;
3129
}
3230

33-
nav li:has(a[href="/"]) {
34-
font-size:50px;
35-
margin-left: 0;
36-
}
37-
38-
nav li a[href="/"] {
39-
color: black;
40-
}
41-
4231
nav {
4332
display:inline;
44-
}
4533

46-
nav ul {
47-
display:inline;
48-
}
34+
ul {
35+
display:inline;
36+
}
4937

50-
nav li {
51-
white-space:nowrap;
38+
li {
39+
white-space:nowrap;
40+
41+
a[href="/"] {
42+
color: black;
43+
}
44+
}
45+
li:has(a[href="/"]) {
46+
font-size:50px;
47+
margin-left: 0;
48+
}
5249
}
5350

5451
article {
5552
padding:1em;
56-
}
5753

58-
article h1 {
59-
font-size: 2em;
54+
h1 {
55+
font-size: 2em;
56+
}
6057
}
6158

6259
pre, code, tt {
@@ -66,6 +63,12 @@ pre, code, tt {
6663
pre {
6764
margin:0 0 0 1em;
6865
}
66+
pre code {
67+
padding:0.5em;
68+
display:inline-block;
69+
background: #eee;
70+
font-size:small;
71+
}
6972

7073
.large {
7174
font-size:large;
@@ -79,17 +82,6 @@ pre {
7982
white-space:nowrap;
8083
}
8184

82-
pre {
83-
margin:0 0 0 1em;
84-
}
85-
86-
pre code {
87-
padding:0.5em;
88-
display:inline-block;
89-
background: #eee;
90-
font-size:small;
91-
}
92-
9385
.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}
9486

9587
@media screen and (max-width: 765px) {

0 commit comments

Comments
 (0)