-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from 10up/fix/css-nesting
remove nesting from css
- Loading branch information
Showing
2 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
.table-of-contents { | ||
border-left: none; | ||
} | ||
|
||
& li { | ||
margin: 0 0.25rem 0 0; | ||
.table-of-contents li { | ||
margin: 0 0.25rem 0 0; | ||
} | ||
|
||
& ul { | ||
margin-left: 0.75rem; | ||
} | ||
} | ||
.table-of-contents li ul { | ||
margin-left: 0.75rem; | ||
} | ||
|
||
& a { | ||
padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal); | ||
text-decoration: none; | ||
border-radius: .5rem; | ||
.table-of-contents a { | ||
padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal); | ||
text-decoration: none; | ||
border-radius: .5rem; | ||
} | ||
|
||
&:hover { | ||
color: var(--ifm-color-primary); | ||
text-decoration: underline; | ||
} | ||
} | ||
.table-of-contents:hover { | ||
color: var(--ifm-color-primary); | ||
text-decoration: underline; | ||
} | ||
|
||
& .table-of-contents__link--active { | ||
outline: 1px solid #ddd; | ||
box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.1); | ||
font-weight: 700; | ||
} | ||
.table-of-contents .table-of-contents__link--active { | ||
outline: 1px solid #ddd; | ||
box-shadow: 0 2px 3px -1px rgba(0, 0, 0, 0.1); | ||
font-weight: 700; | ||
} | ||
|
||
& code { | ||
font-size: inherit; | ||
} | ||
.table-of-contents code { | ||
font-size: inherit; | ||
} |