debian-mirror-gitlab/app/assets/stylesheets/framework/system_messages.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

112 lines
2.3 KiB
SCSS
Raw Normal View History

2019-07-07 11:18:12 +05:30
.header-message,
.footer-message {
padding: 0 15px;
border: 1px solid transparent;
border-radius: 0;
position: fixed;
left: 0;
width: 100%;
text-align: center;
margin: 0;
z-index: 1000;
p {
@include str-truncated(100%);
margin-top: -1px;
margin-bottom: 0;
font-size: $gl-font-size-small;
}
}
.header-message {
top: 0;
height: $system-header-height;
line-height: $system-header-height;
}
.footer-message {
bottom: 0;
height: $system-footer-height;
line-height: $system-footer-height;
}
.with-performance-bar {
.header-message {
top: $performance-bar-height;
}
}
// System Header
.with-system-header {
// main navigation
// login page
.navbar-gitlab,
.fixed-top {
top: $system-header-height;
}
// left sidebar eg: project page
// right sidebar eg: MR page
.nav-sidebar,
.right-sidebar {
2022-03-02 08:16:31 +05:30
top: calc(#{$system-header-height} + #{$header-height});
2019-07-07 11:18:12 +05:30
}
2021-09-04 01:27:46 +05:30
.content-wrapper-margin {
2022-03-02 08:16:31 +05:30
margin-top: calc(#{$system-header-height} + #{$header-height});
2019-07-07 11:18:12 +05:30
}
// Performance Bar
// System Header
&.with-performance-bar {
// main navigation
2021-09-30 23:02:18 +05:30
header.navbar-gitlab,
.fixed-top {
2019-07-07 11:18:12 +05:30
top: $performance-bar-height + $system-header-height;
}
.layout-page {
2022-03-02 08:16:31 +05:30
margin-top: calc(#{$header-height} + #{$performance-bar-height} + #{$system-header-height});
2019-07-07 11:18:12 +05:30
}
// left sidebar eg: project page
// right sidebar eg: MR page
.nav-sidebar,
.right-sidebar {
2022-03-02 08:16:31 +05:30
top: calc(#{$header-height} + #{$performance-bar-height} + #{$system-header-height});
2019-07-07 11:18:12 +05:30
}
}
}
// System Footer
.with-system-footer {
// left sidebar eg: project page
// right sidebar eg: mr page
.nav-sidebar,
.right-sidebar,
2020-06-23 00:09:42 +05:30
// navless pages' footer eg: login page
// navless pages' footer border eg: login page
2019-07-07 11:18:12 +05:30
&.devise-layout-html body .footer-container,
&.devise-layout-html body hr.footer-fixed {
bottom: $system-footer-height;
}
2020-06-23 00:09:42 +05:30
2021-09-04 01:27:46 +05:30
.content-wrapper-margin {
2020-06-23 00:09:42 +05:30
margin-bottom: 16px;
}
2020-07-28 23:09:34 +05:30
.boards-list,
.board-swimlanes {
2022-03-02 08:16:31 +05:30
height: calc(100vh - (#{$header-height} + #{$breadcrumb-min-height} + #{$performance-bar-height} + #{$system-footer-height} + #{$gl-padding-32}));
2020-06-23 00:09:42 +05:30
}
2019-07-07 11:18:12 +05:30
}
.fullscreen-layout {
.header-message,
.footer-message {
position: static;
top: auto;
bottom: auto;
}
}