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

390 lines
6.3 KiB
SCSS
Raw Normal View History

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