ui/app/styles/vendors/_bootstrap-tweak.scss

962 lines
16 KiB
SCSS

$normal-weight: normal;
$bold-weight: 700;
a {
color: $link-color;
}
H1, H2, H3, H4, H5, H6, SECTION.header {
margin: 0;
cursor: normal;
word-break: break-all;
.btn {
margin-left: 10px;
}
.left-divider {
display: inline-block;
padding-left: 10px;
margin-left: 10px;
vertical-align: middle;
&.btn, &.btn-group {
vertical-align: top;
}
&:not(:first-child) {
border-left: 1px solid #e3e5e6;
}
}
.breadcrumb + .left-divider:not(.pull-right) {
margin-left: 7px;
}
.right-divider {
display: inline-block;
padding-right: 10px;
margin-right: 10px;
vertical-align: middle;
&:not(:last-child) {
border-right: 1px solid $lightGray;
}
}
.right-divider-btn {
margin-left: 0;
vertical-align: middle;
position: relative;
left: -4px;
}
}
/**********
* alerts and banners
**********/
.alert {
position : relative;
color : white;
.alert-link {
text-decoration: none;
}
&.alert-header {
padding-left: 0;
&.alert-success {
.banner-head {
background : $greenDark;
&:after {
border-left-color: $greenDark;
}
}
}
&.alert-info {
.banner-head {
background : $lightTealDark;
&:after {
border-left-color: $lightTealDark;
}
}
}
&.alert-warning {
.banner-head {
background : $yellowDark;
&:after {
border-left-color: $yellowDark;
}
}
}
&.alert-danger {
.banner-head {
background : $redDark;
&:after {
border-left-color: $redDark;
}
}
}
}
.banner-head {
// background : $lightTealDark;
left : 0;
top : 0;
bottom : 0;
color : white;
line-height : 20px;
padding : 16px;
font-weight : bold;
position: relative;
&:after {
content : "";
display : block;
border-color : transparent;
border-width : 7px;
border-style : solid;
border-left-color : $lightTealDark;
position : absolute;
right : -14px;
top : 33%;
}
}
& .banner-content {
margin-left : 15px;
padding-right : 15px;
span:first-of-type {
margin-right : 15px;
}
}
& a {
color : $tealTwoDark;
}
}
/*tables*/
table {
background-color: transparent;
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: $line-height-computed;
thead {
th {
padding: 5px 0;
}
}
// Cells
> thead,
> tbody,
> tfoot {
> tr {
> th,
> td {
border-right: 1px dotted $table-border-color ;
}
}
}
}
/*buttons*/
button {
transition: ease all 100ms;
&:active {
color: $blueTwo;
}
}
.btn {
transition: ease all 100ms;
}
.btn-xs, .btn-group-xs > .btn {
padding: 2px 3px;
line-height: initial;
}
.btn-xs i {
margin: 0;
// font-size: 10px;
}
.btn-disabled,
.btn.disabled {
background-color: rgba($btn-disabled-bg, .15);
color: rgba($btn-disabled-color, .9);
opacity: 1;
&:hover,
&:focus {
color: inherit;
}
}
.btn-disabled,
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
cursor: not-allowed;
}
.btn-block {
padding-left: 10px;
padding-right: 10px;
}
.btn-primary {
&:hover {
background: $btn-primary-hover;
}
}
.btn-danger {
&:hover {
background: $btn-danger-hover;
}
}
.btn-default {
box-shadow: none;
background: $btn-default-bg;
color: $btn-default-color;
&:hover {
color: white;
background: $btn-default-hover;
}
&.active {
background: $accent-two;
}
&:focus, &.focus {
color: $btn-default-color;
background-color: $btn-default-bg;
border-color: $btn-default-border;
}
}
.btn-group {
&.clearable {
.icon {
position: absolute;
top:10px;
right: 5px;
font-size: 24px;
opacity: .5;
cursor: pointer;
}
}
&.searchable {
.icon {
position: absolute;
left: 10px;
top: 7px;
opacity: 0.3;
}
INPUT {
padding-left: 35px;
}
}
&.borderless {
.btn {
border: transparent;
}
}
}
.btn-group-select {
select.form-control,
input.form-control {
max-width: 49%;
display: inline-block;
}
input {
margin-left: -4px;
}
}
.form-control, .input-group-addon {
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0);
font-size: 13px;
line-height: 1.5;
border-width: 2px;
border-radius: 2px;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
border-color: rgba($accent-two, 0.5);
}
.input-group-addon {
padding: 0 10px;
background-color: rgba($accent-two, 0.1);
color: $input-color;
&.input-sm {
padding-top: 4px;
padding-bottom: 4px;
}
}
.input-group-btn-textarea {
vertical-align: top;
}
.input-group-btn BUTTON {
border: 1px solid $lightGray;
}
.nav LI {
cursor: pointer;
cursor: hand;
}
.nav-pills > li > a {
color: #888fa3;
border-bottom: 2px solid transparent;
}
.nav-list > li > a.active {
text-decoration: none;
background-color: #eff2f6;
border-bottom: #0075a8 1px solid;
}
.nav-list > li > a {
border-bottom: 1px solid #ccd1d3;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
border-bottom-color: #57c299;
color: #393d47;
background-color: inherit;
}
.nav-tabs {
> li {
margin-top: 0;
> a {
color: $lightGray;
margin-right: 0;
}
}
}
.text-bold {
font-weight: $bold-weight;
}
.text-uppercase {
text-transform: uppercase;
}
.text-italic { font-style: italic; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.bg-default { background-color: $lightGrayTwo; color: $midGray; }
.bg-primary { background-color: $brand-primary; color:white;}
.bg-success { background-color: transparent; color:$brand-success;}
.bg-danger { background-color: $brand-danger; color:$body-bg;}
.bg-warning { background-color: $brand-warning; color:$well-bg;}
.bg-info { background-color: $brand-info; color:$body-bg;}
.bg-lightgray { background-color: $lightGray;}
.badge {
display: inline-block;
min-width: 10px;
font-size: 13px;
padding: 5px;
font-weight: 400;
color: $well-bg;
line-height: 1;
vertical-align: middle;
white-space: nowrap;
text-align: center;
background-color: #0075a8;
&.bg-default { background-color: $lightGrayTwo; color: $midGray; }
&.bg-primary { background-color: $brand-primary; color: white;}
&.bg-success { background-color: transparent; color: $well-bg;}
&.bg-danger { background-color: $brand-danger; color: $well-bg;}
&.bg-warning { background-color: $brand-warning; color: $well-bg;}
&.bg-info { background-color: $brand-info; }
&.bg-default, &.badge-default { background-color: $btn-default-bg; color: $btn-default-color;}
&.bg-primary , &.badge-primary { background-color: #cce3ee; color: $brand-primary; }
&.bg-success, &.badge-success { background-color: $brand-success; }
&.bg-danger, &.badge-danger { background-color: $brand-danger; }
&.bg-warning, &.badge-warning { background-color: $brand-warning; }
&.bg-info, &.badge-info { background-color: $brand-info; }
&.state {
text-transform: capitalize;
// Successful states are de-emphasized by using [text-]color instead of background-color
&.bg-success {
background-color: transparent;
color: $brand-success;
}
&.text-success:hover {
color: $brand-success;
}
}
&.text-default:hover,
&.text-primary:hover,
&.text-success:hover,
&.text-danger:hover,
&.text-warning:hover,
&.text-info:hover {
color: $table-bg;
}
}
//alerts
.alert {
color: white;
}
.label-warning {
background-color: $brand-warning;
}
.border-default { border-color: $lightGrayTwo; }
.border-primary { border-color: $brand-primary; }
.border-success { border-color: $brand-success; }
.border-danger { border-color: $brand-danger; }
.border-warning { border-color: $brand-warning; }
.border-info { border-color: $brand-info; }
.border-top-default { border-top-color: $lightGrayTwo !important; }
.border-top-primary { border-top-color: $brand-primary !important; }
.border-top-success { border-top-color: $brand-success !important; }
.border-top-danger { border-top-color: $brand-danger !important; }
.border-top-warning { border-top-color: $brand-warning !important; }
.border-top-info { border-top-color: $brand-info !important; }
.progress {
margin-bottom: 0;
}
.well {
background-color: $well-bg;
box-shadow: none;
padding: 20px;
border-radius: $border-radius-base;
&.section {
margin: 20px 20px 0 20px;
}
}
.table {
margin-bottom: 0;
& > THEAD > TR > TH,
& > THEAD > TR > TD,
& > TBODY > TR > TH,
& > TFOOT > TR > TH,
& > TBODY + TBODY {
border-top: none;
font-weight: $bold-weight;
vertical-align: top;
}
&.no-lines > THEAD > TR > TH,
&.no-lines > THEAD > TR > TD,
&.no-lines > TBODY > TR > TH,
&.no-lines > TBODY > TR > TD,
&.no-lines > TFOOT > TR > TH,
&.no-lines > TFOOT > TR > TD,
& > THEAD > TR.no-lines > TH,
& > THEAD > TR.no-lines > TD,
& > TBODY > TR.no-lines > TH,
& > TBODY > TR.no-lines > TD,
& > TFOOT > TR.no-lines > TH,
& > TFOOT > TR.no-lines > TD {
border-top: none;
border-right: none;
}
&.vertical-middle {
& THEAD > TR > TH,
& THEAD > TR > TD,
& TBODY > TR > TH,
& TBODY > TR > TD,
& TFOOT > TR > TH,
& TFOOT > TR > TD {
vertical-align: middle;
}
}
& > THEAD > TR.no-lines > TH,
& > THEAD > TR.no-lines > TD,
& > TBODY > TR.no-lines > TH,
& > TBODY > TR.no-lines > TD,
& > TFOOT > TR.no-lines > TH,
& > TFOOT > TR.no-lines > TD {
padding-top: 0;
}
& > THEAD > TR > TH {
border-bottom: 0;
}
&.no-top-padding TH {
padding-top: 0;
}
&.tight TH,
&.tight TD {
padding: 3px 0;
}
&.small TH,
&.small TD {
font-size: 12px;
font-weight: $normal-weight;
}
.form-group {
margin-bottom: 0;
}
}
.row {
margin: 0;
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
background-color: rgba($btn-disabled-bg, .15);
color: rgba($btn-disabled-color, .9);
}
table a:not(.btn), .table a:not(.btn), .grid a:not(.btn) {
text-decoration: none;
}
.well > .table {
margin-bottom: 0;
}
HR {
margin: 10px 0;
clear: both;
border-top-color: $page-header-border-color;
}
.block {
display: block;
}
.dropdown-toggle:focus {
outline: 5px auto -webkit-focus-ring-color !important;
outline-offset: -2px !important;
}
.dropdown-menu {
@include box-shadow(0px 1px 10px rgba(0, 0, 0, 0.15));
border: 0;
max-height: 300px;
min-width: 100%;
overflow-y: auto;
background-color: $dropdown-bg;
text-transform: none;
padding: 0;
margin: 0;
// color: $input-color;
&.dropdown-menu-right {
left: auto;
right: auto;
}
.divider {
margin: 0;
}
.dropdown-header {
padding-left: 10px;
// color: $midGrayDark;
}
& > li > a {
padding: 5px 15px;
cursor: pointer;
cursor: hand;
color: $dropdown-link-color;
& i {
padding-right: 3px;
opacity: .5;
}
&:hover {
background-color: $lightGrayTwo;
color: $primary;
}
}
& > li.selected > a,
& > li.selected > a:hover,
& > li.selected > a:focus {
// color: $brand-success;
}
& .active .text-muted,
& A:hover .text-muted {
// color: inherit;
}
}
.list-group-item.active .text-muted {
color: inherit;
}
.radio, .checkbox {
margin-top: 0;
}
.radio.input {
min-height: 27px;
margin-bottom: 0;
}
.radio .with-input {
position: relative;
top: -4px;
}
LABEL {
@extend .no-select;
font-weight: $bold-weight;
}
FORM LABEL,
.horizontal-form LABEL,
.form-group LABEL {
color: $text-color;
font-weight: $normal-weight;
margin: 0;
}
.dropdown-menu LABEL,
.checkbox LABEL,
.radio LABEL {
color: inherit;
text-transform: inherit;
}
.horizontal-form .radio + .radio,
.horizontal-form .checkbox + .checkbox {
margin-top: inherit;
}
INPUT {
background : $input-bg;
color : $input-color;
border-color : $input-border;
}
INPUT[type="radio"],
INPUT[type="checkbox"] {
margin-top: 3px;
}
.checkbox.small,
.radio.small {
font-size: 12px;
LABEL {
min-height: 0;
}
}
// Don't print out link hrefs.
@media print {
a[href]:after {
content: none !important;
}
}
// Gutters on columns
.gutter {
padding-right:7px;
padding-left:7px;
}
.gutter:not(:first-child),.gutter:not(:last-child) {
padding-right:7px;
padding-left:7px;
}
// Equal height columns
.row-full-height {
height: 100%;
}
.col-full-height {
height: 100%;
vertical-align: middle;
}
.row-same-height {
display: table;
width: 100%;
/* fix overflow */
table-layout: fixed;
}
.col-xs-height {
display: table-cell;
float: none !important;
}
.col-xs-full-height {
height: 100%;
}
@media (min-width: $screen-xs) { // 480px
div.banner {
padding: 0 ;
.banner-head {
display: block;
position: relative;
&::after {
display:none;
}
}
.banner-content {
display: block;
margin-left: 0;
padding: 10px;
span:first-of-type {
display: block;
}
}
}
}
@media (min-width: $screen-sm) {
.col-sm-height {
display: table-cell;
float: none !important;
}
.col-sm-full-height {
height: 100%;
}
div.banner {
padding: 10px;
.banner-head {
display: inline;
position: absolute;
&::after {
display:initial;
}
}
.banner-content {
margin-left: 150px;
padding: 0 15px 0 0;
span:first-of-type {
display: initial;
}
}
}
}
@media (min-width: $screen-md) {
.col-md-height {
display: table-cell;
float: none !important;
}
.col-md-full-height {
height: 100%;
}
}
@media (min-width: $screen-lg) {
.col-lg-height {
display: table-cell;
float: none !important;
}
.col-lg-full-height {
height: 100%;
}
}
.col-top {
vertical-align: top;
}
.col-middle {
vertical-align: middle;
}
.col-bottom {
vertical-align: bottom;
}
.help-block {
color: $brand-info;
font-size: 12px;
}
.form-group {
padding-bottom: 15px;
margin-bottom: 0;
}
.breadcrumb {
display: inline-block;
padding: 0;
margin: 0;
line-height: 28px;
A {
cursor: pointer;
}
.ember-power-select-wrapper {
font-size: 16px;
vertical-align: middle;
}
.ember-power-select:not([dir=rtl]) .ember-power-select-trigger {
padding: 1px 15px 1px 5px;
}
.ember-power-select-trigger {
border-color: $lightGray;
background-image: none;
position: relative;
background: $input-bg;
&:after {
content: $icon-chevron-down;
font-family: 'rancher-icons';
position: absolute;
right: 5px;
font-size: 10px;
top: 25%;
}
}
.ember-power-select.opened {
.ember-power-select-trigger {
background-image: none;
&:after {
content: $icon-chevron-up;
font-family: 'rancher-icons';
position: absolute;
right: 5px;
top: 0;
}
}
}
LI {
cursor: pointer;
&.active {
cursor: default;
color: $midGrayDark;
}
}
}
.tooltip {
z-index: 25;
&.left {
white-space: nowrap;
}
}
.close {
font-size: inherit;
line-height: inherit;
}
.pagination {
> li {
> a,
> a:focus {
background-color: $btn-default-bg;
color: $btn-default-color;
border-color: $btn-default-border;
}
}
.active A,
.active A:focus {
font-weight: bold;
background-color: $btn-primary-bg;
color: $btn-primary-color;
border-color: $btn-primary-border;
}
.disabled {
cursor: default;
pointer-events: none;
opacity: .5;
}
}
/*lists*/
.list-unstyled {
margin: 0;
}
.nav .open > a, .nav .open > a:hover, .nav .open > a:focus {
background-color: transparent;
}
@media (max-width: $screen-sm-max) {
.navbar-toggle {
display: block;
}
HEADER NAV .nav > LI {
display: block;
width: 100%;
ul {
max-height: 100%;
background: transparent;
box-shadow: none;
width: 100%;
}
}
}