grafana/public/sass/components/_footer.scss
David Kaltschmidt c928c546a3 Sticky footer for all pages
Currently the footer is based on top margins which looks odd on big screen sizes.
Also, the footer shows up on the top of the page on pages take a moment to load (while ng-view is rendering).

- True sticky footer based on flexbox
- Ensure footer stays at bottom while ng-view div does not exist yet
2018-11-22 13:15:29 +01:00

57 lines
844 B
SCSS

.page-dashboard .footer {
display: none;
}
.footer {
color: $footer-link-color;
padding: 1rem 0 1rem 0;
font-size: $font-size-sm;
position: relative;
width: 98%; /* was causing horiz scrollbars - need to examine */
a {
color: $footer-link-color;
&:hover {
color: $footer-link-hover;
}
}
ul {
list-style: none;
}
li {
display: inline-block;
padding-right: 2px;
&::after {
content: ' | ';
padding-left: 2px;
}
}
li:last-child {
&::after {
padding-left: 0;
content: '';
}
}
}
// Keeping footer inside the graphic on Login screen
.login-page {
.footer {
bottom: $spacer;
position: absolute;
padding: 1rem 0 1rem 0;
}
}
@include media-breakpoint-up(sm) {
.login-page {
.footer {
padding: 5rem 0 1rem 0;
}
}
}