Skip to content

Commit

Permalink
Merge pull request #6214 from rashidkpc/feature/dashboard-restyle
Browse files Browse the repository at this point in the history
V5 dashboard restyle
  • Loading branch information
simianhacker committed Feb 12, 2016
2 parents 30d8445 + 4622a4c commit 2ce4dfb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<div class="panel panel-default" ng-switch on="panel.type" ng-if="savedObj || error">
<div class="panel-heading">
<span class="panel-title" title="{{::savedObj.title}}">
<i
class="fa"
ng-class="savedObj.vis.type.icon"
aria-label="{{::savedObj.vis.type.title}} Icon"
title="{{::savedObj.vis.type.title}}">
</i>
{{::savedObj.title}}
</span>
<div class="btn-group">
Expand Down
38 changes: 37 additions & 1 deletion src/plugins/kibana/public/dashboard/styles/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,30 @@ dashboard-grid {
width: 25px;
}

.gs-w {
border: 2px dashed transparent;

&:hover {
border-color: @kibanaGray4;

dashboard-panel {
.visualize-show-spy {
visibility: visible;
}
.panel .panel-heading {
background-color: @kibanaGray6;
&:hover {
cursor: pointer;
}
.btn-group {
display: block !important;
}
}
}

}
}

i.remove {
cursor: pointer;
}
Expand All @@ -58,15 +82,23 @@ dashboard-grid {
display: flex;
flex-direction: column;
justify-content: flex-start;
border: 0 solid transparent;

.panel-heading {
padding: 0px 0px 0px 5px;
flex: 0 0 auto;
white-space: nowrap;
display: flex;
border-top-right-radius: 0;
border-top-left-radius: 0;
background-color: @white;
border: none;

div.btn-group {
.btn-group {
a {
color: inherit;
}
display: none;
white-space: nowrap;
flex: 0 0 auto;
}
Expand Down Expand Up @@ -99,6 +131,10 @@ dashboard-grid {
}
}

.visualize-show-spy {
visibility: hidden;
}

.load-error {
text-align: center;
font-size: 1em;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/public/styles/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ html,
body {
.flex-parent();
height: 100%;
margin: 0px;
margin: 0;
}

label > small {
Expand Down
4 changes: 2 additions & 2 deletions src/ui/public/styles/variables/for-theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@


// Dashboard ===================================================================
@dashboard-bg: @gray-lighter;
@dashboard-panel-bg: @panel-bg;
@dashboard-bg: #fff;
@dashboard-panel-bg: #fff;
@dashboard-panel-color: @text-color;
@dashboard-panel-heading-link-color: @text-color;
@dashboard-panel-heading-link-hover-color: @link-hover-color;
Expand Down

0 comments on commit 2ce4dfb

Please sign in to comment.