mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
fix docs anchor
This commit is contained in:
parent
bda0cc2f76
commit
10cbdcd34f
File diff suppressed because one or more lines are too long
@ -289,6 +289,8 @@ $nav-tabs-link-active-border-color: $gray-700;
|
||||
$navbar-padding-y: 24px;
|
||||
$navbar-padding-x: 0;
|
||||
|
||||
$navbar-nav-height: 46px;
|
||||
$navbar-height-xl: 80px;
|
||||
|
||||
// Cards
|
||||
|
||||
|
@ -52,7 +52,7 @@
|
||||
|
||||
&-nav {
|
||||
align-items: center;
|
||||
height: 46px;
|
||||
height: $navbar-nav-height;
|
||||
}
|
||||
|
||||
.nav-item:not(:last-child) {
|
||||
@ -131,6 +131,35 @@
|
||||
}
|
||||
|
||||
@media screen and (max-width: 399.98px) {
|
||||
height: 80px;
|
||||
height: $navbar-height-xl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.navbar {
|
||||
@for $i from 1 through 8 {
|
||||
&.py-#{$i} {
|
||||
+ div {
|
||||
.anchor-fixer {
|
||||
:target {
|
||||
@media screen and (min-width: 616px) {
|
||||
scroll-margin-top: $navbar-nav-height + $spacer * $i * 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+ div {
|
||||
.anchor-fixer {
|
||||
:target {
|
||||
@media screen and (max-width: 615.98px) {
|
||||
scroll-margin-top: 73px;
|
||||
}
|
||||
@media screen and (max-width: 399.98px) {
|
||||
scroll-margin-top: $navbar-height-xl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div id="content-wrapper" class="{% if single_page %}col-md-10{% else %}col-md-8{% endif %} mt-5 p-2 p-md-4">
|
||||
<div id="content-wrapper" class="anchor-fixer {% if single_page %}col-md-10{% else %}col-md-8{% endif %} mt-5 p-2 p-md-4">
|
||||
<div id="content">
|
||||
{% if not single_page %}
|
||||
{% set ancestors = page.ancestors|reverse|list %}
|
||||
|
Loading…
Reference in New Issue
Block a user