Refactored footer to use flex positioning

This commit is contained in:
squidfunk 2021-12-04 14:21:53 +01:00
parent 183db0937c
commit 6c9ffe0bda
6 changed files with 6 additions and 19 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -34,7 +34,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.cef86043.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.c31396f4.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.9204c3b2.min.css' | url }}">

View File

@ -36,6 +36,8 @@
// Footer wrapper
&__inner {
display: flex;
justify-content: space-between;
padding: px2rem(4px);
overflow: auto;
}
@ -48,11 +50,6 @@
outline-color: var(--md-accent-fg-color);
transition: opacity 250ms;
// [tablet +]: Adjust width to 50/50
@include break-from-device(tablet) {
width: 50%;
}
// Footer link on focus/hover
&:is(:focus, :hover) {
opacity: 0.7;
@ -60,11 +57,9 @@
// Footer link to previous page
&--prev {
float: left;
// [mobile -]: Adjust width to 25/75 and hide title
@include break-to-device(mobile) {
width: 25%;
// Hide footer title
.md-footer__title {
@ -74,7 +69,6 @@
// Adjust for right-to-left languages
[dir="rtl"] & {
float: right;
// Flip icon vertically
svg {
@ -85,17 +79,10 @@
// Footer link to next page
&--next {
float: right;
text-align: right;
// [mobile -]: Adjust width to 25/75
@include break-to-device(mobile) {
width: 75%;
}
// Adjust for right-to-left languages
[dir="rtl"] & {
float: left;
text-align: left;
// Flip icon vertically