@ -2,6 +2,10 @@
* Headings
* Headings
* -------------------------------------------------------------------------- * /
* -------------------------------------------------------------------------- * /
. vp-doc . header-wrapper {
position : relative ;
}
. vp-doc h1 ,
. vp-doc h1 ,
. vp-doc h2 ,
. vp-doc h2 ,
. vp-doc h3 ,
. vp-doc h3 ,
@ -15,22 +19,45 @@
. vp-doc h1 {
. vp-doc h1 {
letter-spacing : -0 . 02em ;
letter-spacing : -0 . 02em ;
}
. vp-doc h1 ,
. vp-doc h1 + . header-anchor {
line-height : 40px ;
line-height : 40px ;
font-size : 28px ;
font-size : 28px ;
}
}
@ media ( min-width : 768px ) {
. vp-doc h1 ,
. vp-doc h1 + . header-anchor {
font-size : 32px ;
}
}
. vp-doc h2 {
. vp-doc h2 {
margin : 48px 0 16px ;
margin : 48px 0 16px ;
border-top : 1px solid var ( --vp-c-divider ) ;
border-top : 1px solid var ( --vp-c-divider ) ;
padding-top : 24px ;
padding-top : 24px ;
letter-spacing : -0 . 02em ;
letter-spacing : -0 . 02em ;
}
. vp-doc h2 ,
. vp-doc h2 + . header-anchor {
line-height : 32px ;
line-height : 32px ;
font-size : 24px ;
font-size : 24px ;
}
}
. vp-doc h2 + . header-anchor {
top : 24px ;
}
. vp-doc h3 {
. vp-doc h3 {
margin : 32px 0 0 ;
margin : 32px 0 0 ;
letter-spacing : -0 . 01em ;
letter-spacing : -0 . 01em ;
}
. vp-doc h3 ,
. vp-doc h3 + . header-anchor {
line-height : 28px ;
line-height : 28px ;
font-size : 20px ;
font-size : 20px ;
}
}
@ -38,6 +65,10 @@
. vp-doc h4 {
. vp-doc h4 {
margin : 24px 0 0 ;
margin : 24px 0 0 ;
letter-spacing : -0 . 01em ;
letter-spacing : -0 . 01em ;
}
. vp-doc h4 ,
. vp-doc h4 + . header-anchor {
line-height : 24px ;
line-height : 24px ;
font-size : 18px ;
font-size : 18px ;
}
}
@ -47,6 +78,7 @@
top : 0 ;
top : 0 ;
left : 0 ;
left : 0 ;
margin-left : -0 . 87em ;
margin-left : -0 . 87em ;
padding-right : 0 . 3em ;
font-weight : 500 ;
font-weight : 500 ;
user-select : none ;
user-select : none ;
opacity : 0 ;
opacity : 0 ;
@ -56,37 +88,11 @@
opacity 0 . 25s ;
opacity 0 . 25s ;
}
}
. vp-doc . header-anchor : before {
. vp-doc . header-wrapper : hover . header-anchor ,
content : var ( --vp-header-anchor-symbol ) ;
. vp-doc . header-wrapper . header-anchor : focus {
}
. vp-doc h1 : hover . header-anchor ,
. vp-doc h1 . header-anchor : focus ,
. vp-doc h2 : hover . header-anchor ,
. vp-doc h2 . header-anchor : focus ,
. vp-doc h3 : hover . header-anchor ,
. vp-doc h3 . header-anchor : focus ,
. vp-doc h4 : hover . header-anchor ,
. vp-doc h4 . header-anchor : focus ,
. vp-doc h5 : hover . header-anchor ,
. vp-doc h5 . header-anchor : focus ,
. vp-doc h6 : hover . header-anchor ,
. vp-doc h6 . header-anchor : focus {
opacity : 1 ;
opacity : 1 ;
}
}
@ media ( min-width : 768px ) {
. vp-doc h1 {
letter-spacing : -0 . 02em ;
line-height : 40px ;
font-size : 32px ;
}
}
. vp-doc h2 . header-anchor {
top : 24px ;
}
/ * *
/ * *
* Paragraph and inline elements
* Paragraph and inline elements
* -------------------------------------------------------------------------- * /
* -------------------------------------------------------------------------- * /