mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-62528 forum: Fixed vertical position when loading permalinks
This commit is contained in:
parent
6e445671c1
commit
0e202eca75
3 changed files with 14 additions and 9 deletions
|
@ -325,7 +325,7 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
li.section {
|
li.section {
|
||||||
padding-top: $spacer;
|
margin-top: $spacer;
|
||||||
padding-bottom: $spacer;
|
padding-bottom: $spacer;
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
|
|
@ -6,10 +6,13 @@ $drawer-padding-x: 20px !default;
|
||||||
$drawer-padding-y: 20px !default;
|
$drawer-padding-y: 20px !default;
|
||||||
$drawer-offscreen-gutter: 20px !default;
|
$drawer-offscreen-gutter: 20px !default;
|
||||||
|
|
||||||
:target {
|
:target::before {
|
||||||
padding-top: ($fixed-header-y + 30px) !important; /* stylelint-disable declaration-no-important */
|
content: " ";
|
||||||
margin-top: -$fixed-header-y !important; /* negative fixed header height */
|
display: block;
|
||||||
|
height: ($fixed-header-y + 10px); /* fixed header height*/
|
||||||
|
margin-top: -($fixed-header-y + 10px); /* negative fixed header height */
|
||||||
}
|
}
|
||||||
|
|
||||||
.pagelayout-embedded :target {
|
.pagelayout-embedded :target {
|
||||||
padding-top: initial;
|
padding-top: initial;
|
||||||
margin-top: initial;
|
margin-top: initial;
|
||||||
|
|
|
@ -11855,7 +11855,7 @@ table.calendartable caption {
|
||||||
padding: 0; }
|
padding: 0; }
|
||||||
.course-content ul.topics li.section,
|
.course-content ul.topics li.section,
|
||||||
.course-content ul.weeks li.section {
|
.course-content ul.weeks li.section {
|
||||||
padding-top: 1rem;
|
margin-top: 1rem;
|
||||||
padding-bottom: 1rem; }
|
padding-bottom: 1rem; }
|
||||||
.course-content ul.topics li.section .content,
|
.course-content ul.topics li.section .content,
|
||||||
.course-content ul.weeks li.section .content {
|
.course-content ul.weeks li.section .content {
|
||||||
|
@ -12495,10 +12495,12 @@ span.editinstructions {
|
||||||
font-size: 32px; }
|
font-size: 32px; }
|
||||||
|
|
||||||
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
|
/* Anchor link offset fix. This makes hash links scroll 60px down to account for the fixed header. */
|
||||||
:target {
|
:target::before {
|
||||||
padding-top: 80px !important;
|
content: " ";
|
||||||
/* stylelint-disable declaration-no-important */
|
display: block;
|
||||||
margin-top: -50px !important;
|
height: 60px;
|
||||||
|
/* fixed header height*/
|
||||||
|
margin-top: -60px;
|
||||||
/* negative fixed header height */ }
|
/* negative fixed header height */ }
|
||||||
|
|
||||||
.pagelayout-embedded :target {
|
.pagelayout-embedded :target {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue