app/src/ui/components/Button.vue

50 lines
775 B
Vue
Raw Normal View History

<template>
<button :class="{danger: danger, primary: primary}">{{label}}</button>
</template>
<script>
export default {
props: {
label: String,
danger: Boolean,
primary: Boolean,
},
};
</script>
<style scoped>
button {
cursor: pointer;
transition: all 0.2s;
padding: 10px 18px;
color: #fff;
font-weight: 500;
border: none;
background: #21242B;
box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}
button:hover {
transition: all 0.2s;
box-shadow: rgba(0, 0, 0, 0.42) 0px 1px 3px, rgba(0, 0, 0, 0.64) 0px 1px 2px;
}
button.danger {
background: #41141B;
}
button.danger:hover {
background: #61141B;
}
button.primary {
background: #21244B;
}
button.primary:hover {
background: #21246B;
}
</style>