diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-06-29 10:57:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-29 10:57:38 +0300 |
commit | e0372d2fc63bb7489db8d039d2f1f984fc371de9 (patch) | |
tree | 2f977b55ce283ae9b171f41a46a60bdc9e80eead | |
parent | 415bdf9e697249653382fd4a2f77aedb133db6a1 (diff) | |
download | vaadin-framework-e0372d2fc63bb7489db8d039d2f1f984fc371de9.tar.gz vaadin-framework-e0372d2fc63bb7489db8d039d2f1f984fc371de9.zip |
Remove global button styling (#9607)
Move remaining button and link related styles from _global to _nativebutton and _link.
3 files changed, 8 insertions, 10 deletions
diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_link.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_link.scss index 270de1aace..daa697b19f 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/components/_link.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/components/_link.scss @@ -30,6 +30,7 @@ $v-link-cursor: pointer !default; @include valo-link-style; a { + @include valo-link-style; cursor: inherit; color: inherit; text-decoration: inherit; diff --git a/themes/src/main/themes/VAADIN/themes/valo/components/_nativebutton.scss b/themes/src/main/themes/VAADIN/themes/valo/components/_nativebutton.scss index 9bfca4f396..8d5fd88ea5 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/components/_nativebutton.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/components/_nativebutton.scss @@ -6,6 +6,13 @@ * @group nativebutton */ @mixin valo-nativebutton ($primary-stylename: v-nativebutton) { + + button { + font: inherit; + font-weight: 400; + line-height: $v-line-height; + } + .#{$primary-stylename} { -webkit-touch-callout: none; } diff --git a/themes/src/main/themes/VAADIN/themes/valo/shared/_global.scss b/themes/src/main/themes/VAADIN/themes/valo/shared/_global.scss index 441e073dcf..ecd8e1a59b 100644 --- a/themes/src/main/themes/VAADIN/themes/valo/shared/_global.scss +++ b/themes/src/main/themes/VAADIN/themes/valo/shared/_global.scss @@ -329,16 +329,6 @@ $valo-shared-pathPrefix: null; @include valo-nativeselect-select-style; } - button { - font: inherit; - font-weight: 400; - line-height: $v-line-height; - } - - a { - @include valo-link-style; - } - .v-disabled { cursor: default !important; } |