feat: move some form.scss styles to button.vue

This commit is contained in:
Dominik Pschenitschni 2021-10-20 12:20:12 +02:00
parent 4f8cce0f45
commit 19a4b17004
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
3 changed files with 37 additions and 42 deletions

View file

@ -75,6 +75,42 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.button {
transition: all $transition;
border: 0;
text-transform: uppercase;
font-size: 0.85rem;
font-weight: bold;
height: $button-height;
box-shadow: $shadow-sm;
&.is-hovered,
&:hover {
box-shadow: $shadow-md;
}
&.fullheight {
padding-right: 7px;
height: 100%;
}
&.is-active,
&.is-focused,
&:active,
&:focus,
&:focus:not(:active) {
box-shadow: $shadow-xs !important;
}
&.is-primary.is-outlined:hover {
color: $white;
}
&.is-small {
border-radius: $radius;
}
}
.underline-none { .underline-none {
text-decoration: none !important; text-decoration: none !important;
} }

View file

@ -71,7 +71,7 @@
<div class="select"> <div class="select">
<select <select
@change="toggleType(s)" @change="toggleType(s)"
class="button mr-2" class="mr-2"
v-model="selectedRight[s.id]" v-model="selectedRight[s.id]"
> >
<option <option

View file

@ -1,44 +1,3 @@
// FIXME:
// this should be moved to button.vue
// what prevents this currently is that the class is also used
// on a <select> element in userTeam.vue
// -> Maybe create a mixin and import in both components?
.button {
transition: all $transition;
border: 0;
text-transform: uppercase;
font-size: 0.85rem;
font-weight: bold;
height: $button-height;
box-shadow: $shadow-sm;
&.is-hovered,
&:hover {
box-shadow: $shadow-md;
}
&.fullheight {
padding-right: 7px;
height: 100%;
}
&.is-active,
&.is-focused,
&:active,
&:focus,
&:focus:not(:active) {
box-shadow: $shadow-xs !important;
}
&.is-primary.is-outlined:hover {
color: $white;
}
&.is-small {
border-radius: $radius;
}
}
.field.has-addons .button { .field.has-addons .button {
height: 2.5rem; height: 2.5rem;
margin-left: 0 !important; margin-left: 0 !important;