Commit 75da9b25 authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'boards-ee-stylelint' into 'master'

Fixes stylelint in EE specific boards SCSS

Closes #10942

See merge request gitlab-org/gitlab-ee!11213
parents 4df14780 1a5a2af1
...@@ -25,13 +25,13 @@ export default { ...@@ -25,13 +25,13 @@ export default {
<template> <template>
<li class="filter-dropdown-item" @click="handleItemClick"> <li class="filter-dropdown-item" @click="handleItemClick">
<button class="btn btn-link dropdown-user" type="button"> <button class="btn btn-link dropdown-user d-flex py-2 px-4" type="button">
<div class="avatar-container s32"> <div class="avatar-container s32 flex-shrink-0">
<img :alt="avatarAltText" :src="item.avatar_url" class="avatar s32 lazy" /> <img :alt="avatarAltText" :src="item.avatar_url" class="avatar s32 lazy" />
</div> </div>
<div class="dropdown-user-details"> <div class="text-truncate dropdown-user-details">
<div :title="item.name">{{ item.name }}</div> <div class="text-truncate">{{ item.name }}</div>
<div :title="item.username" class="dropdown-light-content">@{{ item.username }}</div> <div class="text-truncate dropdown-light-content">@{{ item.username }}</div>
</div> </div>
</button> </button>
</li> </li>
......
.dropdown.show .dropdown-menu.dropdown-menu-tabs { .boards-add-list {
max-height: 400px; &.show {
overflow-y: hidden; .dropdown-menu-tabs {
} max-height: 400px;
min-width: 240px;
.dropdown .dropdown-menu.dropdown-menu-tabs { overflow-y: hidden;
padding-top: 0; }
min-width: 240px; }
.dropdown-tabs-list { .dropdown-tabs-list {
display: flex;
box-shadow: 0 0 0 1px $border-color; box-shadow: 0 0 0 1px $border-color;
}
.dropdown-tab-item {
border-left: 1px solid $border-color;
.dropdown-tab-item { a {
flex: 1; border-bottom: 2px solid transparent;
border-left: 1px solid $border-color; background-color: $gray-light;
&:first-of-type { &:focus,
border-left: 0; &.active {
background-color: $white-light;
} }
a { &.active {
width: 100%; font-weight: bold;
padding: $gl-padding $gl-padding-top; border-bottom-color: $indigo-500;
text-align: center;
border-bottom: 2px solid transparent;
background-color: $gray-light;
&:focus,
&.active {
background-color: $white-light;
}
&.active {
font-weight: bold;
border-bottom-color: $indigo-500;
}
} }
} }
} }
.tab-content { .issue-board-dropdown-content {
.issue-board-dropdown-content { margin: 0;
margin: 0; padding: $gl-padding;
padding: $gl-padding; border-bottom: 0;
border-bottom: 0; color: $gl-text-color-secondary;
color: $gl-text-color-secondary; }
} }
.tab-pane-labels { .tab-pane-labels {
.dropdown-page-one .dropdown-content { .dropdown-page-one .dropdown-content {
height: 140px; height: 140px;
} }
.dropdown-page-two { .dropdown-page-two {
margin-top: 10px; margin-top: 10px;
.dropdown-content { .dropdown-content {
max-height: initial; max-height: initial;
height: 205px; height: 205px;
}
}
} }
}
}
.tab-pane-assignees { .tab-pane-assignees {
.dropdown-content { .dropdown-content {
height: 225px; height: 225px;
max-height: 252px; max-height: 252px;
}
.dropdown-user {
display: flex;
padding: $gl-padding-8 $gl-padding-24;
}
.dropdown-user-details div {
max-width: 130px;
text-overflow: ellipsis;
overflow: hidden;
}
.dropdown-loading {
display: block;
}
}
} }
} }
...@@ -103,15 +77,13 @@ ...@@ -103,15 +77,13 @@
} }
} }
.boards-switcher { .boards-selector-wrapper > .show.dropdown .dropdown-menu {
.boards-selector-wrapper > .show.dropdown .dropdown-menu { // we cannot use d-flex from Bootstrap because of !important
// we cannot use d-flex from Bootstrap because of !important // see https://gitlab.com/gitlab-org/gitlab-ui/issues/38
// see https://gitlab.com/gitlab-org/gitlab-ui/issues/38 display: flex;
display: flex;
&.dropdown-extended-height { &.dropdown-extended-height {
max-height: $dropdown-max-height-lg; max-height: $dropdown-max-height-lg;
}
} }
} }
...@@ -137,64 +109,10 @@ ...@@ -137,64 +109,10 @@
} }
} }
.board-promotion-state {
.btn.btn-primary {
display: block;
margin-bottom: 15px;
}
}
.boards-title-holder {
padding: 25px 13px $gl-padding;
.dropdown-menu {
margin-top: -15px;
margin-left: 8px;
}
}
.board-selector-page-two {
padding-left: 10px;
padding-right: 10px;
white-space: normal;
}
.form-section-title { .form-section-title {
font-size: 16px; font-size: 16px;
} }
.board-delete-btns {
padding-top: 12px;
border-top: 1px solid $border-color;
}
.board-milestone-list {
> li {
padding-left: 0;
padding-right: 0;
}
a {
padding-left: 25px;
}
.fa-check {
margin-left: -18px;
}
}
.board-inner-milestone-dropdown {
margin-top: 10px;
.dropdown-menu {
position: fixed;
left: 10px;
top: 175px;
min-width: 200px;
}
}
.board-config-modal { .board-config-modal {
width: 440px; width: 440px;
......
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
- milestone_lists_available = board.parent.feature_available?(:board_milestone_lists) - milestone_lists_available = board.parent.feature_available?(:board_milestone_lists)
- if assignee_lists_available || milestone_lists_available - if assignee_lists_available || milestone_lists_available
.dropdown.prepend-left-10#js-add-list .dropdown.boards-add-list.prepend-left-10#js-add-list
%button.btn.btn-success.btn-inverted.d-flex.js-new-board-list{ type: "button", data: board_list_data } %button.btn.btn-success.btn-inverted.d-flex.js-new-board-list{ type: "button", data: board_list_data }
%span Add list %span Add list
= sprite_icon('chevron-down', size: 16, css_class: 'prepend-left-5 btn-success-board-list-chevron') = sprite_icon('chevron-down', size: 16, css_class: 'prepend-left-5 btn-success-board-list-chevron')
.dropdown-menu.dropdown-menu-paging.dropdown-menu-right.dropdown-menu-issues-board-new.dropdown-menu-selectable.dropdown-menu-tabs .dropdown-menu.dropdown-menu-paging.dropdown-menu-right.dropdown-menu-issues-board-new.dropdown-menu-selectable.dropdown-menu-tabs.pt-0
%ul.nav.nav-tabs.dropdown-tabs-list.js-new-board-list-tabs{ role: 'tablist' } %ul.nav.nav-tabs.dropdown-tabs-list.d-flex.js-new-board-list-tabs{ role: 'tablist' }
%li.nav-item.dropdown-tab-item.js-tab-button-labels %li.nav-item.dropdown-tab-item.flex-grow-1.flex-shrink-1.w-0.border-left-0.js-tab-button-labels
%a.active{ href: '#', role: 'tab', data: { is_link: 'true', toggle: 'tab', action: 'tab-labels', target: '#tab-labels' } } %a.w-100.text-center.py-3.px-2.active{ href: '#', role: 'tab', data: { is_link: 'true', toggle: 'tab', action: 'tab-labels', target: '#tab-labels' } }
Label Label
- if assignee_lists_available - if assignee_lists_available
%li.nav-item.dropdown-tab-item.js-tab-button-assignees %li.nav-item.dropdown-tab-item.flex-grow-1.flex-shrink-1.w-0.js-tab-button-assignees
%a{ href: '#', role: 'tab', data: { is_link: 'true', toggle: 'tab', action: 'tab-assignees', target: '#tab-assignees' } } %a.w-100.text-center.py-3.px-2{ href: '#', role: 'tab', data: { is_link: 'true', toggle: 'tab', action: 'tab-assignees', target: '#tab-assignees' } }
Assignee Assignee
- if milestone_lists_available - if milestone_lists_available
%li.nav-item.dropdown-tab-item.js-tab-button-milestones %li.nav-item.dropdown-tab-item.flex-grow-1.flex-shrink-1.w-0.js-tab-button-milestones
%a{ href: '#', role: 'tab', data: { is_link: 'true', toggle: 'tab', action: 'tab-milestones', target: '#tab-milestones' } } %a.w-100.text-center.py-3.px-2{ href: '#', role: 'tab', data: { is_link: 'true', toggle: 'tab', action: 'tab-milestones', target: '#tab-milestones' } }
Milestone Milestone
.tab-content .tab-content
#tab-labels.tab-pane.tab-pane-labels.active.js-tab-container-labels{ role: 'tabpanel' } #tab-labels.tab-pane.tab-pane-labels.active.js-tab-container-labels{ role: 'tabpanel' }
......
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
= link_to _('Issue board focus mode'), help_page_path('user/project/issue_board.html', anchor:'focus-mode-starter'), target: '_blank' = link_to _('Issue board focus mode'), help_page_path('user/project/issue_board.html', anchor:'focus-mode-starter'), target: '_blank'
= render 'shared/promotions/promotion_link_project' = render 'shared/promotions/promotion_link_project'
.top-space .top-space
%button.btn.btn-default.btn-block#hide-btn{ :href => "#", "@click.stop" => "clearPromotionState" } %button.d-block.mb-3.btn.btn-default.btn-block#hide-btn{ :href => "#", "@click.stop" => "clearPromotionState" }
= _("Thanks! Don't show me this again") = _("Thanks! Don't show me this again")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment