css: Use SCSS nesting for `.help .sidebar h1`.

This commit is contained in:
Siddharth Varshney 2020-05-13 19:36:57 +05:30 committed by Tim Abbott
parent 42956cde19
commit e609561ed4
1 changed files with 22 additions and 19 deletions

View File

@ -168,29 +168,33 @@ html {
line-height: 1.5; line-height: 1.5;
margin-bottom: 0px; margin-bottom: 0px;
border-bottom: 1px solid hsla(0, 0, 100%, .6); border-bottom: 1px solid hsla(0, 0, 100%, .6);
}
.help .sidebar h1:not(:first-of-type) { &:not(:first-of-type) {
margin-top: 20px; margin-top: 20px;
} }
.help .sidebar h1:first-of-type, &:first-of-type,
.help .sidebar h1.home-link { &.home-link {
border-bottom: none; border-bottom: none;
} }
&.home-link {
font-size: 1em;
margin-bottom: 17px;
.help .sidebar h1.home-link { a::before {
font-size: 1em; display: inline-block;
margin-bottom: 17px; font: normal normal normal 14px/1 FontAwesome;
font-size: inherit;
a::before { content: "\f0d9";
display: inline-block; margin-right: 10px;
font: normal normal normal 14px/1 FontAwesome; }
font-size: inherit; }
content: "\f0d9"; a {
margin-right: 10px; color: inherit;
display: block;
} }
} }
@ -238,8 +242,7 @@ html {
cursor: pointer; cursor: pointer;
} }
.help .sidebar li a, .help .sidebar li a {
.help .sidebar h1 a {
color: inherit; color: inherit;
display: block; display: block;
} }