From ac45ccbad75b90ee289147584978af8768487159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 21 Feb 2016 08:51:01 +0100 Subject: [PATCH] fix(panel): fixed text panel issue due to recent style changes, fixes #4095 --- public/app/plugins/panel/text/editor.html | 39 ++++++++++++++--------- public/app/plugins/panel/text/module.html | 3 +- public/sass/_grafana.scss | 1 + public/sass/base/_forms.scss | 1 + public/sass/components/_panel_text.scss | 6 ++++ 5 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 public/sass/components/_panel_text.scss diff --git a/public/app/plugins/panel/text/editor.html b/public/app/plugins/panel/text/editor.html index 2fefb438e7e..357becff5fd 100644 --- a/public/app/plugins/panel/text/editor.html +++ b/public/app/plugins/panel/text/editor.html @@ -1,17 +1,26 @@ -
-
-
- -
-
- -
-
+
+
+
+ Mode + + + +
- - - +
+ Font Size + + + +
+
+ +

Content

+ + + (This area uses Markdown. HTML is not supported) + + + diff --git a/public/app/plugins/panel/text/module.html b/public/app/plugins/panel/text/module.html index 12a02597384..4ed7806753d 100644 --- a/public/app/plugins/panel/text/module.html +++ b/public/app/plugins/panel/text/module.html @@ -1 +1,2 @@ -

+

+

diff --git a/public/sass/_grafana.scss b/public/sass/_grafana.scss index 463b83f23a1..a412919ef25 100644 --- a/public/sass/_grafana.scss +++ b/public/sass/_grafana.scss @@ -40,6 +40,7 @@ @import "components/panel_dashlist"; @import "components/panel_singlestat"; @import "components/panel_table"; +@import "components/panel_text"; @import "components/tagsinput"; @import "components/tables_lists"; @import "components/search"; diff --git a/public/sass/base/_forms.scss b/public/sass/base/_forms.scss index 25a95fafde8..79edd3591f9 100644 --- a/public/sass/base/_forms.scss +++ b/public/sass/base/_forms.scss @@ -32,6 +32,7 @@ input, button, select, textarea { + background-color: $input-bg; @include font-shorthand($font-size-base,normal,$line-height-base); // Set size, weight, line-height here } input, diff --git a/public/sass/components/_panel_text.scss b/public/sass/components/_panel_text.scss new file mode 100644 index 00000000000..06d3495aaa0 --- /dev/null +++ b/public/sass/components/_panel_text.scss @@ -0,0 +1,6 @@ + +.panel-text-content { + ul { + margin: 0 0 $spacer $spacer * 1.5; + } +}