commit | author | age
|
fceb27
|
1 |
<template> |
CM |
2 |
<button :type="type" :class="mode"> |
|
3 |
<slot></slot> |
|
4 |
</button> |
|
5 |
</template> |
|
6 |
|
|
7 |
<script> |
|
8 |
export default { |
|
9 |
props: ['type', 'mode'], |
|
10 |
}; |
|
11 |
</script> |
|
12 |
|
|
13 |
<style scoped> |
|
14 |
button { |
|
15 |
padding: 0.75rem 1.5rem; |
|
16 |
font-family: inherit; |
|
17 |
background-color: #3a0061; |
|
18 |
border: 1px solid #3a0061; |
|
19 |
color: white; |
|
20 |
cursor: pointer; |
|
21 |
} |
|
22 |
|
|
23 |
button:hover, |
|
24 |
button:active { |
|
25 |
background-color: #270041; |
|
26 |
border-color: #270041; |
|
27 |
} |
|
28 |
|
|
29 |
.flat { |
|
30 |
background-color: transparent; |
|
31 |
color: #3a0061; |
|
32 |
border: none; |
|
33 |
} |
|
34 |
|
|
35 |
.flat:hover, |
|
36 |
.flat:active { |
|
37 |
background-color: #edd2ff; |
|
38 |
} |
|
39 |
</style> |