Skip to content

Commit

Permalink
Update link decoration
Browse files Browse the repository at this point in the history
  • Loading branch information
kilianhln committed Sep 6, 2021
1 parent 4e1a32d commit ce18db6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ html {
font-weight: var(--ifm-font-weight-normal);
}

article a:hover {
border-bottom: 1px solid var(--ifm-link-color);
padding-bottom: 1px;
}

.title__text {
text-align: center;
font-size: 4rem;
Expand Down Expand Up @@ -481,6 +486,10 @@ html[data-theme='dark'] {
width: 48px;
}

.hash-link:hover {
border: none;
}

/*
Patch to avoid displaying a double header in imported DOCS
*/
Expand Down
6 changes: 4 additions & 2 deletions src/theme/BlogPostItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function BlogPostItem(props) {
const TitleHeading = isBlogPostPage ? 'h1' : 'h2';
// Move date to the right
return (
<header>
<header className={styles.blogHeader}>
<TitleHeading className={styles.blogPostTitle} itemProp="headline">
{isBlogPostPage ? (
title
Expand Down Expand Up @@ -129,7 +129,9 @@ function BlogPostItem(props) {
className={clsx('col', {
'col--9': !isBlogPostPage,
})}>
<TagsListInline tags={tags} />
<div className={styles.tagsList}>
<TagsListInline tags={tags} />
</div>
</div>
)}

Expand Down
9 changes: 9 additions & 0 deletions src/theme/BlogPostItem/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
* LICENSE file in the root directory of this source tree.
*/

.blogHeader a:hover {
border:none
}

.blogPostTitle {
font-size: 3rem;
}
Expand All @@ -24,3 +28,8 @@
margin-left: auto;
margin-bottom: 2px;
}

.tagsList a:hover {
border: 1px solid var(--docusaurus-tag-list-border);
padding: .3rem .5rem;
}

0 comments on commit ce18db6

Please sign in to comment.