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

418 lines
6.8 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 {
2019-09-04 21:01:54 +05:30
padding: $gl-padding-8;
padding-bottom: $gl-padding-8 + 1;
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 {
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
/* 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 {
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;
}
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;
2019-09-04 21:01:54 +05:30
margin-bottom: $gl-padding-8;
2018-03-17 18:26:18 +05:30
}
2016-04-02 18:10:28 +05:30
}
}
.nav-controls {
display: inline-block;
text-align: right;
2019-09-04 21:01:54 +05:30
@include media-breakpoint-down(sm) {
margin-top: $gl-padding-8;
}
@include media-breakpoint-up(md) {
display: flex;
align-items: center;
}
2016-04-02 18:10:28 +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 {
2016-04-02 18:10:28 +05:30
margin-right: $gl-padding-top;
&: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;
2020-05-24 23:13:21 +05:30
&:not[type='checkbox'] {
/* Medium devices (desktops, 992px and up) */
@include media-breakpoint-up(md) { width: 200px; }
2016-04-02 18:10:28 +05:30
2020-05-24 23:13:21 +05:30
/* Large devices (large desktops, 1200px and up) */
@include media-breakpoint-up(lg) { width: 250px; }
}
2016-04-02 18:10:28 +05:30
}
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%;
}
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
}
2017-09-10 17:25:29 +05:30
2019-09-04 21:01:54 +05:30
@include media-breakpoint-down(md) {
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%;
2019-09-04 21:01:54 +05:30
margin-top: $gl-padding-8;
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 {
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
bottom: $gl-padding;
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;
.fa {
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;
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;
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 {
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
}