From 25fa1a0e69f0189c2d64c2a7d399dfe741197930 Mon Sep 17 00:00:00 2001 From: Philippe Le Van Date: Mon, 30 Jul 2018 13:56:52 +0200 Subject: [PATCH 1/2] First proposition of label styling Signed-off-by: Philippe Le Van --- css/style.scss | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/css/style.scss b/css/style.scss index bc863506f..dcd8940da 100644 --- a/css/style.scss +++ b/css/style.scss @@ -509,37 +509,28 @@ input.input-inline { font-weight: normal; font-size: 10pt; padding: 0; - margin: 5px; + margin: 0 5px; overflow: hidden; text-overflow: ellipsis; } - &.has-labels h4 { - margin-top: 15px; - } - .labels { - position: absolute; - top: -5px; - left: 10px; + position: relative; + margin-left: 5px; li { - padding: 0; - width: 15px; - height: 20px; + padding: 0 4px; + margin: 0 2px 1px 0; border-radius: 3px; - font-size: 80%; + font-size: 75%; border: none transparent; float: left; span { - display: none; - } - - &:hover span { - position: absolute; - padding: 3px; + display: inline-block; + font-weight: bold; background-color: inherit; + line-height: normal; } } } @@ -1451,4 +1442,4 @@ body:not(.snapjs-left) { #app-navigation-toggle-custom { display: none; } -} \ No newline at end of file +} From 508674f404a0c880c4e2470111cfdfec1b23ffb7 Mon Sep 17 00:00:00 2001 From: Philippe Le Van Date: Tue, 31 Jul 2018 06:59:06 +0200 Subject: [PATCH 2/2] little more bottom margin after review Signed-off-by: Philippe Le Van --- css/style.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/css/style.scss b/css/style.scss index dcd8940da..a94b60938 100644 --- a/css/style.scss +++ b/css/style.scss @@ -520,7 +520,7 @@ input.input-inline { li { padding: 0 4px; - margin: 0 2px 1px 0; + margin: 0 2px 2px 0; border-radius: 3px; font-size: 75%; border: none transparent;