1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Reviewed and refactored next/previous navigation button implementation

- Updated styling to include item name.
- Extracted used text to translations.
- Updated the design to better suit the surrounding blocks.
- Removed newly added model/repo methods.
- Moved core logic out of controller and instead into a "NextPreviousContentLocator"
helper with re-uses the output from the book-tree generation.
- Also added the system to chapters.

For #2511
This commit is contained in:
Dan Brown
2021-05-29 12:39:41 +01:00
parent 7ca66c5d5e
commit 0cfff6ab6f
13 changed files with 158 additions and 101 deletions

View File

@ -112,10 +112,11 @@ a {
}
}
a.disabled {
pointer-events: none;
cursor: default;
opacity: 0.6;
a.no-link-style {
color: inherit;
&:hover {
text-decoration: none;
}
}
.blended-links a {
@ -141,6 +142,9 @@ hr {
&.faded {
background-image: linear-gradient(to right, #FFF, #e3e0e0 20%, #e3e0e0 80%, #FFF);
}
&.darker {
@include lightDark(background, #DDD, #666);
}
&.margin-top, &.even {
margin-top: $-l;
}