Skip to content

Commit

Permalink
Merge pull request #174 from IgnaceMaes/sidebar-tweaks
Browse files Browse the repository at this point in the history
style: on-this-page tweaks
  • Loading branch information
mansona authored Feb 19, 2024
2 parents b91c98e + e359c78 commit e297ca4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 0 additions & 4 deletions addon/styles/addon.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ main {
margin: var(--spacing-4) 0;
}

.on-this-page-wrapper {
margin-top: .6em;
}

@media (max-width: 80em) {
.guides-article-wrapper {
display: grid;
Expand Down
17 changes: 16 additions & 1 deletion addon/styles/on-this-page.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
.on-this-page-wrapper {
font-size: var(--font-size-sm);
}

.on-this-page-wrapper ul {
list-style: none;
padding: 0;
padding-left: var(--spacing-2);
margin-top: var(--spacing-2);
border-left: 2px solid var(--color-gray-300);
}

.on-this-page-wrapper-header {
color: var(--color-gray-600);
font-weight: var(--font-weight-3);
}

.on-this-page-wrapper hr {
Expand All @@ -14,6 +22,13 @@

main .on-this-page-wrapper a {
text-decoration: none;
color: var(--color-text);
color: var(--color-gray-600);
background: none;
padding: 2px 0;
display: block;
transition: color 0.2s ease;
}

main .on-this-page-wrapper a:hover {
color: var(--color-gray-800);
}

0 comments on commit e297ca4

Please sign in to comment.