From 4bed35b0d72e3cc679e125da409c5234cedcdfdb Mon Sep 17 00:00:00 2001 From: ppisljar Date: Mon, 11 Jul 2016 08:08:53 +0200 Subject: [PATCH 1/6] fix #7194 Editor errors on Visualize are broken Former-commit-id: c7e89a98d5cf718c7c3ec8313a0546421d71bd3a --- .../kibana/public/visualize/editor/styles/_editor.less | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less b/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less index e810e664665e8..6bd62e23e88aa 100644 --- a/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less +++ b/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less @@ -22,18 +22,17 @@ > li { > a { - padding: 4px 0; - margin: 0 10px; + padding: 4px 10px 5px 10px; color: @kibanaGray2; } - > a:hover { - border-bottom: 2px solid @kibanaGray2; - } } .danger { color: @vis-editor-navbar-error-state-color; background-color: @vis-editor-navbar-error-state-bg; + &:hover { + background-color: darken(@vis-editor-navbar-error-state-bg, 12%); + } } } From 2d4e9a4a5f1f289ebc84d17955a45d920b1fbbf2 Mon Sep 17 00:00:00 2001 From: ppisljar Date: Sat, 16 Jul 2016 11:20:05 +0200 Subject: [PATCH 2/6] - fixing styles to reduce specificity Former-commit-id: be4a47f9fde591d06649700ccb667feeaf5c04c4 --- .../public/visualize/editor/sidebar.html | 10 +++- .../visualize/editor/styles/_editor.less | 60 ++++++++++--------- 2 files changed, 38 insertions(+), 32 deletions(-) diff --git a/src/core_plugins/kibana/public/visualize/editor/sidebar.html b/src/core_plugins/kibana/public/visualize/editor/sidebar.html index 0e153d2eb4996..57c90bdaabb1a 100644 --- a/src/core_plugins/kibana/public/visualize/editor/sidebar.html +++ b/src/core_plugins/kibana/public/visualize/editor/sidebar.html @@ -14,10 +14,14 @@ @@ -26,7 +30,7 @@
  • - +
  • diff --git a/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less b/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less index 6bd62e23e88aa..93a1c3100b237 100644 --- a/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less +++ b/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less @@ -7,35 +7,6 @@ .vis-editor { .flex-parent(); - // For the vis-editor sidebar nav - .navbar-default .navbar-nav { - &> .active > a { - border-bottom: 2px solid @kibanaGray2; - color: @kibanaGray1; - &:before { - display: none; - } - &:hover { - background-color: transparent; - } - } - - > li { - > a { - padding: 4px 10px 5px 10px; - color: @kibanaGray2; - } - } - - .danger { - color: @vis-editor-navbar-error-state-color; - background-color: @vis-editor-navbar-error-state-bg; - &:hover { - background-color: darken(@vis-editor-navbar-error-state-bg, 12%); - } - } - } - .btn-xs { line-height: 1.3; } @@ -381,6 +352,37 @@ vis-editor-vis-options > * { .flex-parent(); } +.vis-editor-subnav-link { + padding: 4px 10px 5px 10px !important; /* 1 */ + color: @kibanaGray2 !important; /* 1 */ + + &.is-vis-editor-sub-nav-link-selected { + border-bottom: 2px solid @kibanaGray2; + color: @kibanaGray1; + background-color: #f6f6f6; + + &:before { + display: none; + } + + &:hover { + background-color: transparent; + } + } +} + +/** + * 1. TODO: Override bootstrap styles. Remove !important once we're rid of bootstrap. + */ +.vis-editor-subnav-link--danger { + color: @vis-editor-navbar-error-state-color !important; /* 1 */ + background-color: @vis-editor-navbar-error-state-bg; + + &:hover { + background-color: darken(@vis-editor-navbar-error-state-bg, 12%) !important; /* 1 */ + } +} + form.vis-share { div.form-control { height: inherit; From 52024b209f699951fbaa5d612c8e4c5a0aae4f0c Mon Sep 17 00:00:00 2001 From: ppisljar Date: Sat, 16 Jul 2016 11:23:48 +0200 Subject: [PATCH 3/6] - adding comment Former-commit-id: d019a5e8d84b6fd7b23027c986f176092bbc297f --- .../kibana/public/visualize/editor/styles/_editor.less | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less b/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less index 93a1c3100b237..b7cc3e1af7c2b 100644 --- a/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less +++ b/src/core_plugins/kibana/public/visualize/editor/styles/_editor.less @@ -352,6 +352,9 @@ vis-editor-vis-options > * { .flex-parent(); } +/** + * 1. TODO: Override bootstrap styles. Remove !important once we're rid of bootstrap. + */ .vis-editor-subnav-link { padding: 4px 10px 5px 10px !important; /* 1 */ color: @kibanaGray2 !important; /* 1 */ From 0a2eb3ffe663ac046db5f25b5f37a61e3e2a381a Mon Sep 17 00:00:00 2001 From: ppisljar Date: Tue, 26 Jul 2016 10:54:46 +0200 Subject: [PATCH 4/6] updating to follow new html style guide Former-commit-id: 5a913294d725355939fe43a48bb136cc9e890bad --- .../public/visualize/editor/sidebar.html | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/src/core_plugins/kibana/public/visualize/editor/sidebar.html b/src/core_plugins/kibana/public/visualize/editor/sidebar.html index 57c90bdaabb1a..370fefd40c423 100644 --- a/src/core_plugins/kibana/public/visualize/editor/sidebar.html +++ b/src/core_plugins/kibana/public/visualize/editor/sidebar.html @@ -1,8 +1,10 @@