Skip to content

Commit

Permalink
Merge pull request #169 from 10up/fix/css-nesting
Browse files Browse the repository at this point in the history
remove nesting from css
  • Loading branch information
fabiankaegy authored Aug 22, 2024
2 parents 004e927 + b773308 commit fda596e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
10 changes: 5 additions & 5 deletions src/css/global-footer.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.footer {
padding-inline: 0;
border-top: 2px solid var(--ifm-color-secondary-lightest);
}

& > .container {
padding: 0;
margin: 0;
max-width: 100%;
}
.footer > .container {
padding: 0;
margin: 0;
max-width: 100%;
}

.footer-about {
Expand Down
46 changes: 23 additions & 23 deletions src/css/toc.css
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;
}

0 comments on commit fda596e

Please sign in to comment.