myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hno...@apache.org
Subject [myfaces-tobago] branch master updated: fix button label margin
Date Tue, 17 Mar 2020 13:59:33 GMT
This is an automated email from the ASF dual-hosted git repository.

hnoeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git


The following commit(s) were added to refs/heads/master by this push:
     new 2abe446  fix button label margin
2abe446 is described below

commit 2abe446a2481c0fe8dbebdfda07df319cbafd00f
Author: Jasmin Kroeger <jasmin.kroeger@irian.eu>
AuthorDate: Tue Mar 17 13:06:37 2020 +0100

    fix button label margin
    
    A tobago-behavior is now rendered inside a button. Because of that, the old CSS rule was
leading to an unwanted margin-left on the button label.
    The CSS rule is now adjusted.
---
 tobago-core/src/main/resources/scss/_tobago.scss | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tobago-core/src/main/resources/scss/_tobago.scss b/tobago-core/src/main/resources/scss/_tobago.scss
index dd11466..8976f1e 100644
--- a/tobago-core/src/main/resources/scss/_tobago.scss
+++ b/tobago-core/src/main/resources/scss/_tobago.scss
@@ -171,7 +171,7 @@ $form-disabled-alpha: 0.5;
 
 /* button, link ------------------------------------------------------- */
 .tobago-button, .tobago-link {
-  > :nth-child(n+2) {
+  > img + span {
     margin-left: .4em;
   }
 }


Mime
View raw message