Skip to content

Commit

Permalink
Merge pull request #5013 from Bargs/fix/5004-visOverlap
Browse files Browse the repository at this point in the history
Fixes #5004 vis editor collapsible sidebar arrow overlaps visualization
  • Loading branch information
Matt Bargar committed Sep 23, 2015
2 parents 4652331 + 3223a4b commit 9e70e02
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 24 deletions.
1 change: 1 addition & 0 deletions src/plugins/kibana/public/discover/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

&-wrapper {
padding-right: 0px !important;
padding-left: @collapser-width;
}

&-content {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@
.sidebar-container {
.flex-parent(1, 1, auto);
background-color: @vis-editor-sidebar-bg;
border-right-color: @vis-editor-sidebar-border;

form {
.flex-parent(1, 1, auto);
Expand Down Expand Up @@ -332,6 +331,7 @@
display: flex;
flex-direction: column;
overflow: auto;
padding-left: @collapser-width;

&.embedded {
flex-shrink: 1;
Expand Down
25 changes: 8 additions & 17 deletions src/ui/public/collapsible_sidebar/collapsible_sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,28 @@

.sidebar-collapser {
background-color: @collapser-bg;
height: 28px;
height: 100%;
position: absolute;
top: 0;
right: -20px;
width: 20px;
border: 1px solid;
border-color: @collapser-border;
border-width: 0 1px 1px 0;
right: -(@collapser-width);
width: @collapser-width;
cursor: pointer;
z-index: -1;
border-bottom-right-radius: 4px;

&:hover {
background-color: @collapser-hover-bg;

.chevron-cont{

&:before {
color: @collapser-hover-color;
}
}
border-color: @collapser-hover-bg;
color: @collapser-hover-color;
}

.chevron-cont{
position: absolute;
left: 4px;
top: 5px;
left: 2px;
top: 8px;
font-size: 10px;

&:before {
font-family: FontAwesome;
color: @collapser-color;
content: "\F053";
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/ui/public/styles/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
padding-left: 0px !important;
padding-right: 0px !important;
background-color: @sidebar-bg;
border-right: 1px solid;
border-right-color: @sidebar-border;
border-bottom: 1px solid;
border-bottom-color: @sidebar-border;

.sidebar-well {
Expand Down
11 changes: 7 additions & 4 deletions src/ui/public/styles/variables/for-theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,15 @@


// Collapser ===================================================================
@collapser-bg: @white;
@collapser-border: @gray-lighter;
@collapser-bg: @gray-lighter;
@collapser-border: @collapser-bg;
@collapser-color: @gray3;

@collapser-hover-bg: @gray-lighter;
@collapser-hover-color: @gray3;
@collapser-hover-bg: @gray-light;
@collapser-hover-border: @collapser-hover-bg;
@collapser-hover-color: @white;

@collapser-width: 12px;


// Dashboard ===================================================================
Expand Down

0 comments on commit 9e70e02

Please sign in to comment.