Browse Source

Remove global button styling (#9607)

Move remaining button and link related styles from _global to _nativebutton and _link.
tags/8.1.0.rc1
Henri Sara 6 years ago
parent
commit
e0372d2fc6

+ 1
- 0
themes/src/main/themes/VAADIN/themes/valo/components/_link.scss View File

@@ -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;

+ 7
- 0
themes/src/main/themes/VAADIN/themes/valo/components/_nativebutton.scss View File

@@ -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;
}

+ 0
- 10
themes/src/main/themes/VAADIN/themes/valo/shared/_global.scss View File

@@ -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;
}

Loading…
Cancel
Save