Skip to content

Commit

Permalink
remove nesting from css
Browse files Browse the repository at this point in the history
  • Loading branch information
xavortm committed Aug 22, 2024
1 parent 004e927 commit 1d7f25b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 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
44 changes: 22 additions & 22 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 1d7f25b

Please sign in to comment.