gitlab-org--gitlab-foss/app/assets/stylesheets/framework/layout.scss

124 lines
2.2 KiB
SCSS
Raw Normal View History

html {
overflow-y: scroll;
&.touch .tooltip {
display: none !important;
}
2015-12-02 14:04:29 +00:00
}
2015-01-15 02:42:25 +00:00
2015-12-02 14:04:29 +00:00
body {
// Improves readability for dyslexic users; supported only in Chrome/Safari so far
// scss-lint:disable PropertySpelling
text-decoration-skip: ink;
// scss-lint:enable PropertySpelling
&.navless {
2016-11-30 13:25:25 +00:00
background-color: $white-light !important;
}
2017-02-15 13:49:14 +00:00
&.card-content {
background-color: $gray-darker;
.content-wrapper {
padding: 0;
.container-fluid,
.container-limited {
background-color: $gray-darker;
}
}
}
}
2017-03-20 21:16:55 +00:00
.content-wrapper {
2017-12-08 21:09:48 +00:00
margin-top: $header-height;
2017-03-20 21:16:55 +00:00
padding-bottom: 100px;
}
.container {
padding-top: 0;
z-index: 5;
2017-07-12 09:50:26 +00:00
.content {
margin: 0;
}
}
2015-01-15 02:42:25 +00:00
.navless-container {
margin-top: $header-height;
padding-top: $gl-padding * 2;
2015-01-15 02:42:25 +00:00
}
.container-limited {
max-width: $fixed-layout-width;
&.limit-container-width {
max-width: $limited-layout-width;
}
&.limit-container-width-sm {
2017-06-23 10:33:47 +00:00
max-width: $limited-layout-width-sm;
}
}
.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;
2017-07-12 09:50:26 +00:00
&:only-of-type {
background-color: $orange-500;
border-color: $orange-500;
}
2017-07-12 09:50:26 +00:00
+ .alert-warning {
background-color: $orange-600;
border-color: $orange-600;
2017-07-12 09:50:26 +00:00
+ .alert-warning {
background-color: $orange-700;
border-color: $orange-700;
2017-07-12 09:50:26 +00:00
+ .alert-warning {
background-color: $orange-800;
border-color: $orange-800;
}
}
}
}
}
.with-performance-bar .layout-page {
margin-top: $header-height + $performance-bar-height;
}
2017-08-06 16:44:18 +00:00
2017-08-07 21:56:07 +00:00
.vertical-center {
min-height: 100vh;
display: flex;
align-items: center;
}