2017-09-28 18:54:16 -04:00
|
|
|
// For tabbed navigation links, scrolling tabs, etc. For all top/main navigation,
|
|
|
|
// please check nav.scss
|
|
|
|
.nav-links {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
height: auto;
|
2017-10-12 06:01:46 -04:00
|
|
|
border-bottom: 1px solid $border-color;
|
2017-09-28 18:54:16 -04:00
|
|
|
|
|
|
|
li {
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
a {
|
2017-09-28 19:17:04 -04:00
|
|
|
padding: $gl-btn-padding;
|
|
|
|
padding-bottom: 11px;
|
2017-09-28 18:54:16 -04:00
|
|
|
font-size: 14px;
|
|
|
|
line-height: 28px;
|
|
|
|
color: $gl-text-color-secondary;
|
|
|
|
border-bottom: 2px solid transparent;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $black;
|
2017-10-12 06:01:46 -04:00
|
|
|
border-bottom: 2px solid $gray-darkest;
|
2017-09-28 18:54:16 -04:00
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
.badge.badge-pill {
|
2017-09-28 18:54:16 -04:00
|
|
|
color: $black;
|
|
|
|
}
|
|
|
|
}
|
2018-05-31 10:23:49 -04:00
|
|
|
}
|
2017-09-28 18:54:16 -04:00
|
|
|
|
2018-05-31 10:23:49 -04:00
|
|
|
&.active a,
|
|
|
|
a.active {
|
|
|
|
color: $black;
|
|
|
|
font-weight: $gl-font-weight-bold;
|
2018-05-24 22:32:40 -04:00
|
|
|
|
2018-05-31 10:23:49 -04:00
|
|
|
.badge.badge-pill {
|
|
|
|
color: $black;
|
2017-09-28 18:54:16 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-area {
|
|
|
|
@include clearfix;
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
|
|
|
|
.nav-text {
|
|
|
|
padding-top: 16px;
|
|
|
|
padding-bottom: 11px;
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 28px;
|
|
|
|
white-space: normal;
|
|
|
|
|
|
|
|
/* Small devices (phones, tablets, 768px and lower) */
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2017-09-28 18:54:16 -04:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-links {
|
|
|
|
margin-bottom: 0;
|
2017-11-02 19:59:51 -04:00
|
|
|
border-bottom: 0;
|
2017-09-28 18:54:16 -04:00
|
|
|
float: left;
|
|
|
|
|
|
|
|
&.wide {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.scrolling-tabs {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
li a {
|
|
|
|
padding: 16px 15px 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Small devices (phones, tablets, 768px and lower) */
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2017-09-28 18:54:16 -04:00
|
|
|
width: 100%;
|
2018-01-25 16:51:33 -05:00
|
|
|
|
|
|
|
&.mobile-separator {
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
}
|
2017-09-28 18:54:16 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-controls {
|
|
|
|
display: inline-block;
|
|
|
|
float: right;
|
|
|
|
text-align: right;
|
|
|
|
padding: 11px 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
|
|
> .btn,
|
|
|
|
> .btn-container,
|
|
|
|
> .dropdown,
|
|
|
|
> input,
|
|
|
|
> form {
|
|
|
|
margin-right: $gl-padding-top;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: top;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .btn-grouped {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
/* Medium devices (desktops, 992px and up) */
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(md) { width: 200px; }
|
2017-09-28 18:54:16 -04:00
|
|
|
|
|
|
|
/* Large devices (large desktops, 1200px and up) */
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-up(lg) { width: 250px; }
|
2017-09-28 18:54:16 -04:00
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2017-09-28 18:54:16 -04:00
|
|
|
padding-bottom: 0;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.btn,
|
|
|
|
form,
|
|
|
|
.dropdown,
|
|
|
|
.dropdown-toggle,
|
|
|
|
.dropdown-menu-toggle,
|
|
|
|
.form-control {
|
|
|
|
margin: 0 0 10px;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
margin-bottom: 14px;
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: 100%;
|
|
|
|
margin: 0 0 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-label {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.project-item-select-holder {
|
|
|
|
margin: 0;
|
2018-01-25 16:51:33 -05:00
|
|
|
width: 100%;
|
2017-09-28 18:54:16 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.adjust {
|
|
|
|
.nav-text,
|
|
|
|
.nav-controls {
|
|
|
|
width: auto;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2017-09-28 18:54:16 -04:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.multi-line {
|
|
|
|
.nav-text {
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-controls {
|
|
|
|
padding: 17px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2017-09-28 18:54:16 -04:00
|
|
|
flex-flow: row wrap;
|
|
|
|
|
|
|
|
.nav-controls {
|
2018-06-12 16:19:01 -04:00
|
|
|
$controls-margin: $btn-margin-5 - 2px;
|
2017-09-28 18:54:16 -04:00
|
|
|
flex: 0 0 100%;
|
|
|
|
|
|
|
|
&.controls-flex {
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row wrap;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 0 0 $gl-padding-top;
|
|
|
|
}
|
|
|
|
|
|
|
|
.controls-item,
|
|
|
|
.controls-item-full,
|
|
|
|
.controls-item:last-child {
|
|
|
|
flex: 1 1 35%;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
margin: $controls-margin;
|
|
|
|
|
|
|
|
.btn,
|
|
|
|
.dropdown {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.controls-item-full {
|
|
|
|
flex: 1 1 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.scrolling-tabs-container {
|
2018-06-13 09:41:36 -04:00
|
|
|
position: relative;
|
|
|
|
|
2017-09-28 18:54:16 -04:00
|
|
|
.merge-request-tabs-container & {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-links {
|
|
|
|
@include scrolling-links();
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-right {
|
|
|
|
@include fade(left, $gray-light);
|
|
|
|
right: -5px;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
right: -7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-left {
|
|
|
|
@include fade(right, $gray-light);
|
|
|
|
left: -5px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
left: -7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.inner-page-scroll-tabs {
|
|
|
|
.fade-right {
|
|
|
|
@include fade(left, $white-light);
|
|
|
|
right: 0;
|
|
|
|
text-align: right;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-left {
|
|
|
|
@include fade(right, $white-light);
|
|
|
|
left: 0;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
left: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-right,
|
|
|
|
.fade-left {
|
|
|
|
top: 16px;
|
|
|
|
bottom: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-smaller {
|
|
|
|
.fade-right,
|
|
|
|
.fade-left {
|
|
|
|
top: 11px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-block {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
.nav-links {
|
|
|
|
@include scrolling-links();
|
|
|
|
|
|
|
|
.fade-right {
|
|
|
|
@include fade(left, $white-light);
|
|
|
|
right: -5px;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
right: -7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-left {
|
|
|
|
@include fade(right, $white-light);
|
|
|
|
left: -5px;
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
left: -7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.activities {
|
|
|
|
border-bottom: 1px solid $border-color;
|
|
|
|
|
|
|
|
.nav-links {
|
2017-11-02 19:59:51 -04:00
|
|
|
border-bottom: 0;
|
2017-09-28 18:54:16 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-09-28 19:51:29 -04:00
|
|
|
|
2017-11-05 18:13:11 -05:00
|
|
|
.project-item-select-holder.btn-group {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
float: right;
|
2017-09-28 19:51:29 -04:00
|
|
|
|
|
|
|
.new-project-item-link {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-project-item-select-button {
|
|
|
|
width: 32px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.empty-state .project-item-select-holder.btn-group {
|
|
|
|
float: none;
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
// overrides styles applied to plain `.empty-state .btn`
|
|
|
|
margin: 10px 0;
|
|
|
|
max-width: 300px;
|
|
|
|
width: auto;
|
|
|
|
|
2018-04-09 11:26:28 -04:00
|
|
|
@include media-breakpoint-down(xs) {
|
2017-09-28 19:51:29 -04:00
|
|
|
max-width: 250px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.new-project-item-select-button .fa-caret-down {
|
|
|
|
margin-left: 2px;
|
|
|
|
}
|