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

125 lines
2.2 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
html {
overflow-y: scroll;
&.touch .tooltip { display: none !important; }
2015-12-23 02:04:40 +05:30
}
body {
&.navless {
2017-08-17 22:00:37 +05:30
background-color: $white-light !important;
}
&.card-content {
background-color: $gray-darker;
.content-wrapper {
padding: 0;
.container-fluid,
.container-limited {
background-color: $gray-darker;
}
}
2015-04-26 12:48:37 +05:30
}
2014-09-02 18:07:02 +05:30
}
2017-08-17 22:00:37 +05:30
.content-wrapper {
padding-bottom: 100px;
2017-09-10 17:25:29 +05:30
&:not(.page-with-layout-nav) {
margin-top: $header-height;
}
2017-08-17 22:00:37 +05:30
}
2014-09-02 18:07:02 +05:30
.container {
padding-top: 0;
z-index: 5;
}
.container .content {
2016-06-02 11:05:42 +05:30
margin: 0;
2014-09-02 18:07:02 +05:30
}
2015-04-26 12:48:37 +05:30
.navless-container {
2015-12-23 02:04:40 +05:30
margin-top: $header-height;
padding-top: $gl-padding * 2;
2015-04-26 12:48:37 +05:30
}
2015-09-25 12:07:36 +05:30
.container-limited {
max-width: $fixed-layout-width;
2017-08-17 22:00:37 +05:30
&.limit-container-width {
max-width: $limited-layout-width;
}
2017-09-10 17:25:29 +05:30
&.limit-container-width-sm {
max-width: $limited-layout-width-sm;
}
2017-08-17 22:00:37 +05:30
}
.alert-wrapper {
.alert {
margin-bottom: 0;
&:last-child {
margin-bottom: $gl-padding;
}
}
.alert-link-group {
float: right;
}
/* Center alert text and alert action links on smaller screens */
@media (max-width: $screen-sm-max) {
.alert {
text-align: center;
}
.alert-link-group {
float: none;
}
}
/* Stripe the background colors so that adjacent alert-warnings are distinct from one another */
.alert-warning {
transition: background-color 0.15s, border-color 0.15s;
background-color: $orange-500;
border-color: $orange-500;
}
.alert-warning + .alert-warning {
background-color: $orange-600;
border-color: $orange-600;
}
.alert-warning + .alert-warning + .alert-warning {
background-color: $orange-700;
border-color: $orange-700;
}
.alert-warning + .alert-warning + .alert-warning + .alert-warning {
background-color: $orange-800;
border-color: $orange-800;
}
.alert-warning:only-of-type {
background-color: $orange-500;
border-color: $orange-500;
}
2015-09-25 12:07:36 +05:30
}
2016-11-03 12:29:30 +05:30
2017-09-10 17:25:29 +05:30
.page-with-sidebar > .content-wrapper {
min-height: calc(100vh - #{$header-height});
}
2016-11-03 12:29:30 +05:30
2017-09-10 17:25:29 +05:30
.with-performance-bar .page-with-sidebar {
margin-top: $header-height + $performance-bar-height;
}
2016-11-03 12:29:30 +05:30
2017-09-10 17:25:29 +05:30
.vertical-center {
min-height: 100vh;
display: flex;
align-items: center;
2016-11-03 12:29:30 +05:30
}