Commit f874652a authored by Mikel Martín Corrales's avatar Mikel Martín Corrales
Browse files

MDL-71152 theme_boost: Use 'scroll-margin-top' for anchor links

Current anchor link offset fix is not working with 'display:flex' elements
parent 8453fe0d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment