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

376 lines
6.1 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
.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;
li {
2017-08-17 22:00:37 +05:30
display: flex;
a {
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;
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
.badge {
color: $black;
}
}
}
&.active a {
2016-06-02 11:05:42 +05:30
color: $black;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2017-08-17 22:00:37 +05:30
.badge {
color: $black;
}
}
}
}
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) */
2017-08-17 22:00:37 +05:30
@media (max-width: $screen-xs-max) {
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) */
2016-06-22 15:30:34 +05:30
@media (max-width: $screen-xs-max) {
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;
padding: 11px 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) */
@media (min-width: $screen-md-min) { width: 200px; }
/* Large devices (large desktops, 1200px and up) */
@media (min-width: $screen-lg-min) { width: 250px; }
&.input-short {
/* Medium devices (desktops, 992px and up) */
@media (min-width: $screen-md-min) { width: 170px; }
/* Large devices (large desktops, 1200px and up) */
@media (min-width: $screen-lg-min) { width: 210px; }
}
}
@media (max-width: $screen-xs-max) {
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%;
}
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;
}
}
.input-short {
width: 100%;
}
.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
@media (max-width: $screen-xs-max) {
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-03-17 18:26:18 +05:30
@media (max-width: $screen-xs-max) {
flex-flow: row wrap;
2016-06-02 11:05:42 +05:30
2018-03-17 18:26:18 +05:30
.nav-controls {
$controls-margin: $btn-xs-side-margin - 2px;
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 {
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 {
border-bottom: 1px solid $border-color;
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
}
}
}
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;
display: inline-block;
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-03-17 18:26:18 +05:30
@media(max-width: $screen-xs-max) {
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
}