mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 11:22:30 +02:00
Fix header anchor alignment (#635)
This commit is contained in:
parent
9c98142fea
commit
be54c8f035
3 changed files with 13 additions and 10 deletions
|
@ -83,15 +83,22 @@ a.anchor {
|
|||
}
|
||||
|
||||
a.hash-link {
|
||||
float: left;
|
||||
line-height: 1;
|
||||
padding-right: 4px;
|
||||
margin-top: 4px;
|
||||
margin-left: -20px;
|
||||
line-height: 1.2;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
|
||||
a.hash-link:hover {
|
||||
opacity: 1 !important;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
a.hash-link .hash-link-icon {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
h1:hover .hash-link,
|
||||
h2:hover .hash-link,
|
||||
h3:hover .hash-link,
|
||||
|
@ -99,10 +106,6 @@ h4:hover .hash-link {
|
|||
opacity: 0.5;
|
||||
transition: none;
|
||||
}
|
||||
a.hash-link:hover {
|
||||
opacity: 1!important;
|
||||
transition: none;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
padding: 15px 30px 15px 15px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue