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

229 lines
3.5 KiB
SCSS
Raw Normal View History

/*
* Twitter bootstrap with GitLab customizations/additions
*
*/
// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";
// Reset
@import "bootstrap/normalize";
@import "bootstrap/print";
// Core CSS
@import "bootstrap/scaffolding";
@import "bootstrap/type";
@import "bootstrap/code";
@import "bootstrap/grid";
@import "bootstrap/tables";
@import "bootstrap/forms";
@import "bootstrap/buttons";
// Components
2016-12-07 18:05:42 -05:00
@import "bootstrap/component-animations";
// @import "bootstrap/dropdowns";
@import "bootstrap/button-groups";
@import "bootstrap/input-groups";
@import "bootstrap/navs";
@import "bootstrap/navbar";
@import "bootstrap/breadcrumbs";
@import "bootstrap/pagination";
@import "bootstrap/pager";
@import "bootstrap/labels";
@import "bootstrap/badges";
@import "bootstrap/alerts";
@import "bootstrap/progress-bars";
@import "bootstrap/list-group";
2016-12-16 13:56:38 -05:00
@import "bootstrap/wells";
2016-12-07 18:05:42 -05:00
@import "bootstrap/close";
@import "bootstrap/panels";
// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
// Utility classes
.clearfix {
@include clearfix();
}
.center-block {
@include center-block();
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
.hide {
display: none;
}
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
@include text-hide();
}
.hidden {
display: none !important;
visibility: hidden !important;
}
.affix {
position: fixed;
}
/*
* Fix <summary> elements on firefox
* See https://github.com/necolas/normalize.css/issues/640
* and https://github.com/twbs/bootstrap/issues/21060
*
*/
summary {
display: list-item;
}
@import "bootstrap/responsive-utilities";
// Labels
.label {
2016-04-25 16:02:15 -04:00
padding: 4px 5px;
font-size: 12px;
font-style: normal;
font-weight: normal;
display: inline-block;
&.label-gray {
2016-11-30 08:25:25 -05:00
background-color: $label-gray-bg;
2016-12-30 15:18:27 -05:00
color: $gl-text-color;
text-shadow: none;
}
&.label-inverse {
2016-11-30 08:25:25 -05:00
background-color: $label-inverse-bg;
}
}
/**
* fix to keep tooltips position in top navigation bar
*
*/
.navbar .nav > li {
position: relative;
white-space: nowrap;
}
/**
* Add some extra stuff to panels
*
*/
.panel {
box-shadow: none;
2015-03-22 23:16:25 -04:00
.panel-body {
form,
pre {
margin: 0;
}
.form-actions {
margin: -15px;
margin-top: 18px;
}
}
.panel-footer {
.pagination {
margin: 0;
}
.btn {
min-width: 124px;
}
.btn-clipboard {
min-width: 0;
}
}
&.panel-small {
.panel-heading {
padding: 6px 15px;
font-size: 13px;
2015-03-26 02:21:13 -04:00
font-weight: normal;
a {
2016-11-30 08:25:25 -05:00
color: $panel-heading-link-color;
}
}
}
&.panel-without-border {
border: 0;
}
&.panel-without-margin {
margin: 0;
}
2014-05-30 17:13:15 -04:00
}
.panel-succes .panel-heading,
.panel-info .panel-heading,
.panel-danger .panel-heading,
.panel-warning .panel-heading,
.panel-primary .panel-heading,
.alert {
2015-03-17 02:44:30 -04:00
a:not(.btn) {
@extend .alert-link;
2016-11-30 08:25:25 -05:00
color: $white-light;
text-decoration: underline;
}
}
2015-03-12 13:04:09 -04:00
// Typography =================================================================
.text-primary,
.text-primary:hover {
color: $brand-primary;
}
.text-success,
.text-success:hover {
color: $brand-success;
}
.text-danger,
.text-danger:hover {
color: $brand-danger;
}
.text-warning,
.text-warning:hover {
color: $brand-warning;
}
.text-info,
.text-info:hover {
color: $brand-info;
}
2016-05-24 19:40:27 -04:00
// Prevent datetimes on tooltips to break into two lines
.local-timeago {
white-space: nowrap;
}