[Kimchi-devel] [PATCH] [Wok] Fixed underline text-decoration with .btn-link classes

sguimaraes943 at gmail.com sguimaraes943 at gmail.com
Wed May 4 21:09:05 UTC 2016


From: Samuel Guimarães <sguimaraes943 at gmail.com>

This commit removes an empty underline when putting the mouse over .btn-link buttons with icons.

Signed-off-by: Samuel Guimarães <sguimaraes943 at gmail.com>
---
 ui/css/bootstrap.custom.css      | 6 +++---
 ui/css/src/modules/_buttons.scss | 9 +++++++++
 ui/css/wok.css                   | 8 ++++++++
 3 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/ui/css/bootstrap.custom.css b/ui/css/bootstrap.custom.css
index 950e41b..c69939c 100644
--- a/ui/css/bootstrap.custom.css
+++ b/ui/css/bootstrap.custom.css
@@ -3460,9 +3460,9 @@ tbody.collapse.in {
   display: table-cell;
 }
 
-.input-group-addon:not(:first-child):not(:last-child),
-.input-group-btn:not(:first-child):not(:last-child),
-.input-group .form-control:not(:first-child):not(:last-child) {
+.input-group-addon:not(:first-child, :first-child, :first-child):not(:last-child, :last-child, :last-child),
+.input-group-btn:not(:first-child, :first-child, :first-child):not(:last-child, :last-child, :last-child),
+.input-group .form-control:not(:first-child, :first-child, :first-child):not(:last-child, :last-child, :last-child) {
   border-radius: 0;
 }
 
diff --git a/ui/css/src/modules/_buttons.scss b/ui/css/src/modules/_buttons.scss
index 077a21f..a8f9efa 100644
--- a/ui/css/src/modules/_buttons.scss
+++ b/ui/css/src/modules/_buttons.scss
@@ -31,6 +31,15 @@
     font-size: 11.5pt;
 }
 
+
+.btn-link:hover {
+    text-decoration: none;
+}
+
+.btn-link:hover > span {
+    text-decoration: underline;
+}
+
 .btn-login {
   @include button-variant($btn-login-color, $btn-login-bg, $btn-login-border);
 }
\ No newline at end of file
diff --git a/ui/css/wok.css b/ui/css/wok.css
index b0f2908..55308c0 100644
--- a/ui/css/wok.css
+++ b/ui/css/wok.css
@@ -344,6 +344,14 @@ body {
   font-size: 11.5pt;
 }
 
+.btn-link:hover {
+  text-decoration: none;
+}
+
+.btn-link:hover > span {
+  text-decoration: underline;
+}
+
 .btn-login {
   color: #fff;
   background-color: #008abf;
-- 
1.9.3




More information about the Kimchi-devel mailing list