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

202 lines
3.2 KiB
SCSS
Raw Normal View History

2014-09-02 18:07:02 +05:30
/*
* 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";
2015-04-26 12:48:37 +05:30
@import "bootstrap/buttons";
2014-09-02 18:07:02 +05:30
// Components
@import "bootstrap/component-animations";
2016-06-02 11:05:42 +05:30
// @import "bootstrap/dropdowns";
2014-09-02 18:07:02 +05:30
@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";
@import "bootstrap/wells";
@import "bootstrap/close";
@import "bootstrap/panels";
// Components w/ JavaScript
@import "bootstrap/modals";
@import "bootstrap/tooltip";
@import "bootstrap/popovers";
// Utility classes
.clearfix {
@include clearfix();
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.center-block {
@include center-block();
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.pull-right {
float: right !important;
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.pull-left {
float: left !important;
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.hide {
display: none;
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.show {
display: block !important;
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.invisible {
visibility: hidden;
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.text-hide {
@include text-hide();
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.hidden {
display: none !important;
visibility: hidden !important;
}
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
.affix {
position: fixed;
}
2017-08-17 22:00:37 +05:30
/*
* 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;
}
2014-09-02 18:07:02 +05:30
@import "bootstrap/responsive-utilities";
// Labels
.label {
2016-06-02 11:05:42 +05:30
padding: 4px 5px;
2017-08-17 22:00:37 +05:30
font-size: 12px;
2014-09-02 18:07:02 +05:30
font-style: normal;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2014-09-02 18:07:02 +05:30
display: inline-block;
&.label-gray {
2017-08-17 22:00:37 +05:30
background-color: $label-gray-bg;
color: $gl-text-color;
2014-09-02 18:07:02 +05:30
text-shadow: none;
}
&.label-inverse {
2017-08-17 22:00:37 +05:30
background-color: $label-inverse-bg;
2014-09-02 18:07:02 +05:30
}
}
2015-09-11 14:41:01 +05:30
2014-09-02 18:07:02 +05:30
/**
* fix to keep tooltips position in top navigation bar
*
*/
.navbar .nav > li {
position: relative;
white-space: nowrap;
}
/**
* Add some extra stuff to panels
*
*/
2015-09-25 12:07:36 +05:30
2014-09-02 18:07:02 +05:30
.panel {
2015-09-25 12:07:36 +05:30
box-shadow: none;
2014-09-02 18:07:02 +05:30
.panel-body {
2017-08-17 22:00:37 +05:30
form,
pre {
2014-09-02 18:07:02 +05:30
margin: 0;
}
.form-actions {
2015-04-26 12:48:37 +05:30
margin: -15px;
margin-top: 18px;
2014-09-02 18:07:02 +05:30
}
}
.panel-footer {
.pagination {
margin: 0;
}
2015-09-25 12:07:36 +05:30
.btn {
min-width: 124px;
}
2015-11-26 14:37:03 +05:30
.btn-clipboard {
2016-06-02 11:05:42 +05:30
min-width: 0;
2015-11-26 14:37:03 +05:30
}
2014-09-02 18:07:02 +05:30
}
&.panel-small {
.panel-heading {
padding: 6px 15px;
font-size: 13px;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2016-11-03 12:29:30 +05:30
2014-09-02 18:07:02 +05:30
a {
2017-08-17 22:00:37 +05:30
color: $panel-heading-link-color;
2014-09-02 18:07:02 +05:30
}
}
}
2017-08-17 22:00:37 +05:30
&.panel-without-border {
border: 0;
}
&.panel-without-margin {
margin: 0;
}
2014-09-02 18:07:02 +05:30
}
2015-04-26 12:48:37 +05:30
.panel-succes .panel-heading,
.panel-info .panel-heading,
.panel-danger .panel-heading,
.panel-warning .panel-heading,
.panel-primary .panel-heading,
.alert {
a:not(.btn) {
@extend .alert-link;
2017-08-17 22:00:37 +05:30
color: $white-light;
2015-04-26 12:48:37 +05:30
text-decoration: underline;
2014-09-02 18:07:02 +05:30
}
}
// Prevent datetimes on tooltips to break into two lines
.local-timeago {
white-space: nowrap;
}