mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-71152 theme_boost: Use 'scroll-margin-top' for anchor links
Current anchor link offset fix is not working with 'display:flex' elements
This commit is contained in:
parent
8453fe0ddb
commit
f874652ad2
@ -15,7 +15,3 @@
|
||||
#page-admin-tool-task-scheduledtasks .task-clearfaildelay {
|
||||
font-size: 0.75em;
|
||||
}
|
||||
|
||||
#page-admin-tool-task-scheduledtasks :target {
|
||||
scroll-margin-top: 60px;
|
||||
}
|
||||
|
@ -6,13 +6,8 @@ $drawer-padding-x: 20px !default;
|
||||
$drawer-padding-y: 20px !default;
|
||||
$drawer-offscreen-gutter: 20px !default;
|
||||
|
||||
:target::before {
|
||||
content: " ";
|
||||
display: block;
|
||||
height: ($fixed-header-y + 10px); /* fixed header height*/
|
||||
margin-top: -($fixed-header-y + 10px); /* negative fixed header height */
|
||||
width: 1px;
|
||||
pointer-events: none;
|
||||
:target {
|
||||
scroll-margin-top: $fixed-header-y + 10px;
|
||||
}
|
||||
|
||||
.pagelayout-embedded :target {
|
||||
|
@ -14200,15 +14200,8 @@ span.editinstructions {
|
||||
font-size: 100%; }
|
||||
|
||||
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
|
||||
:target::before {
|
||||
content: " ";
|
||||
display: block;
|
||||
height: 60px;
|
||||
/* fixed header height*/
|
||||
margin-top: -60px;
|
||||
/* negative fixed header height */
|
||||
width: 1px;
|
||||
pointer-events: none; }
|
||||
:target {
|
||||
scroll-margin-top: 60px; }
|
||||
|
||||
.pagelayout-embedded :target {
|
||||
padding-top: initial;
|
||||
|
@ -14423,15 +14423,8 @@ span.editinstructions {
|
||||
font-size: 100%; }
|
||||
|
||||
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
|
||||
:target::before {
|
||||
content: " ";
|
||||
display: block;
|
||||
height: 60px;
|
||||
/* fixed header height*/
|
||||
margin-top: -60px;
|
||||
/* negative fixed header height */
|
||||
width: 1px;
|
||||
pointer-events: none; }
|
||||
:target {
|
||||
scroll-margin-top: 60px; }
|
||||
|
||||
.pagelayout-embedded :target {
|
||||
padding-top: initial;
|
||||
|
Loading…
x
Reference in New Issue
Block a user