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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

403 lines
6.5 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
2021-11-18 22:05:49 +05:30
.nav-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 {
2019-09-04 21:01:54 +05:30
padding: $gl-padding-8;
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;
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;
2022-04-04 11:22:00 +05:30
box-shadow: inset 0 -2px 0 0 $gray-darkest;
}
}
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;
2022-04-04 11:22:00 +05:30
box-shadow: inset 0 -2px 0 0 var(--gl-theme-accent, $theme-indigo-500);
2018-11-08 19:23:39 +05:30
.badge.badge-pill {
2017-08-17 22:00:37 +05:30
color: $black;
2022-03-02 08:16:31 +05:30
font-weight: $gl-font-weight-bold;
2017-08-17 22:00:37 +05:30
}
}
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 {
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $border-color;
2019-09-04 21:01:54 +05:30
display: flex;
@include media-breakpoint-down(md) {
flex-flow: column-reverse wrap;
}
2016-04-02 18:10:28 +05:30
.nav-text {
2019-09-30 21:07:59 +05:30
flex: 1;
2016-04-02 18:10:28 +05:30
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
2021-01-29 00:20:46 +05:30
/* Small devices (phones, 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 {
2018-03-17 18:26:18 +05:30
border-bottom: 0;
2019-09-04 21:01:54 +05:30
flex: 1;
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;
}
2021-01-29 00:20:46 +05:30
/* Small devices (phones, 768px and lower) */
2020-11-24 15:15:51 +05:30
@include media-breakpoint-down(sm) {
2016-04-02 18:10:28 +05:30
width: 100%;
}
}
.nav-controls {
display: inline-block;
text-align: right;
2019-09-04 21:01:54 +05:30
2017-08-17 22:00:37 +05:30
> .btn,
2020-04-22 19:07:51 +05:30
> .btn-group,
2017-08-17 22:00:37 +05:30
> .btn-container,
> .dropdown,
> input,
> form {
2021-04-29 21:17:54 +05:30
margin-right: $gl-padding-8;
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;
}
2021-01-29 00:20:46 +05:30
@include media-breakpoint-up(md) {
display: flex;
align-items: center;
}
@include media-breakpoint-down(md) {
$controls-margin: $btn-margin-5 - 2px;
flex: 0 0 100%;
margin-top: $gl-padding-8;
.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%;
}
}
2019-09-04 21:01:54 +05:30
@include media-breakpoint-down(sm) {
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,
2020-04-22 19:07:51 +05:30
.form-control,
> .btn-group {
2019-09-04 21:01:54 +05:30
margin: 0 0 $gl-padding-8;
2016-06-02 11:05:42 +05:30
display: block;
width: 100%;
}
2022-07-16 23:28:13 +05:30
.btn.dropdown-toggle-split {
margin-left: 1px;
}
2021-06-08 01:23:25 +05:30
/* This resets the width of the control so that the search button doesn't wrap */
.gl-search-box-by-click .form-control {
width: 1%;
}
2019-02-15 15:39:39 +05:30
.dropdown-menu-toggle {
margin-bottom: 0;
}
2016-06-02 11:05:42 +05:30
form {
display: block;
height: auto;
2019-09-04 21:01:54 +05:30
margin-bottom: $gl-padding-8;
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
}
2019-07-07 11:18:12 +05:30
&.inline {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
> .btn,
> .btn-container,
> .dropdown,
> input,
> form {
flex: 1 1 auto;
margin: 0 0 10px;
margin-left: $gl-padding-top;
width: auto;
&:first-child {
margin-left: 0;
float: none;
}
}
.btn-full {
flex: 1 1 100%;
margin-left: 0;
}
}
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
}
}
.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
}
2022-07-23 23:45:48 +05:30
.fade-left::after,
.fade-right::after {
content: '';
pointer-events: none;
z-index: -1;
display: block;
width: 16px;
height: 100%;
position: absolute;
top: 0;
}
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;
2021-02-22 17:27:13 +05:30
svg {
2016-08-24 12:49:21 +05:30
right: -7px;
}
2022-07-23 23:45:48 +05:30
&::after {
right: 0;
background: linear-gradient(270deg, $white, transparent);
}
2016-08-24 12:49:21 +05:30
}
.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
2021-02-22 17:27:13 +05:30
svg {
2016-08-24 12:49:21 +05:30
left: -7px;
}
2022-07-23 23:45:48 +05:30
&::after {
left: 0;
background: linear-gradient(90deg, $white, transparent);
}
2016-08-24 12:49:21 +05:30
}
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 {
2020-04-22 19:07:51 +05:30
@include fade(left, $white);
2018-03-17 18:26:18 +05:30
right: 0;
text-align: right;
2016-08-24 12:49:21 +05:30
2020-07-28 23:09:34 +05:30
svg {
2018-03-17 18:26:18 +05:30
right: 5px;
}
2018-03-17 18:26:18 +05:30
}
2018-03-17 18:26:18 +05:30
.fade-left {
2020-04-22 19:07:51 +05:30
@include fade(right, $white);
2018-03-17 18:26:18 +05:30
left: 0;
text-align: left;
2016-08-24 12:49:21 +05:30
2020-07-28 23:09:34 +05:30
svg {
2018-03-17 18:26:18 +05:30
left: 5px;
}
}
.fade-right,
.fade-left {
2019-09-04 21:01:54 +05:30
top: auto;
2018-03-17 18:26:18 +05:30
}
&.is-smaller {
.fade-right,
.fade-left {
top: 11px;
}
}
}
.nav-block {
position: relative;
.nav-links {
@include scrolling-links();
.fade-right {
2020-04-22 19:07:51 +05:30
@include fade(left, $white);
2016-08-24 12:49:21 +05:30
right: -5px;
2021-02-22 17:27:13 +05:30
svg {
2016-08-24 12:49:21 +05:30
right: -7px;
}
}
.fade-left {
2020-04-22 19:07:51 +05:30
@include fade(right, $white);
2016-08-24 12:49:21 +05:30
left: -5px;
2021-02-22 17:27:13 +05:30
svg {
2016-08-24 12:49:21 +05:30
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;
2019-09-04 21:01:54 +05:30
align-items: center;
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 {
.new-project-item-select-button {
2022-07-16 23:28:13 +05:30
max-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 {
2021-01-03 14:25:43 +05:30
max-width: 320px;
2018-03-17 18:26:18 +05:30
}