2019-10-18 19:36:30 +00:00
|
|
|
@import "variables";
|
|
|
|
|
|
|
|
.vn-button {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2020-04-02 12:52:02 +00:00
|
|
|
height: 44px;
|
2019-10-18 19:36:30 +00:00
|
|
|
border: none;
|
2020-04-02 12:20:57 +00:00
|
|
|
border-radius: 1px;
|
2019-10-18 19:36:30 +00:00
|
|
|
font-family: vn-font-bold;
|
|
|
|
text-transform: uppercase;
|
2020-04-02 09:39:39 +00:00
|
|
|
font-size: .87rem;
|
2019-10-18 19:36:30 +00:00
|
|
|
cursor: pointer;
|
|
|
|
box-sizing: border-box;
|
|
|
|
outline: none;
|
|
|
|
|
|
|
|
& > button {
|
|
|
|
width: 100%;
|
2020-04-02 12:20:57 +00:00
|
|
|
padding: 0 16px;
|
2019-10-18 19:36:30 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
height: inherit;
|
|
|
|
color: inherit;
|
|
|
|
font: inherit;
|
|
|
|
display: block;
|
|
|
|
text-transform: inherit;
|
|
|
|
cursor: inherit;
|
|
|
|
outline: none;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
& > vn-icon {
|
|
|
|
vertical-align: middle;
|
|
|
|
color: inherit;
|
2020-04-02 13:11:42 +00:00
|
|
|
font-size: 1.68rem;
|
2019-10-18 19:36:30 +00:00
|
|
|
}
|
2018-05-08 07:26:17 +00:00
|
|
|
}
|
2019-10-18 19:36:30 +00:00
|
|
|
&.colored {
|
|
|
|
color: white;
|
2019-11-10 10:08:44 +00:00
|
|
|
background-color: $color-button;
|
2020-04-02 12:52:02 +00:00
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .3);
|
2019-10-18 19:36:30 +00:00
|
|
|
transition: background 200ms ease-in-out;
|
|
|
|
|
|
|
|
&:not(.disabled) {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2019-11-10 10:08:44 +00:00
|
|
|
background-color: lighten($color-button, 10%);
|
2019-10-18 19:36:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-03-09 10:50:23 +00:00
|
|
|
&.message {
|
|
|
|
color: white;
|
|
|
|
background-color: $color-bg-dark;
|
|
|
|
|
|
|
|
&:not(.disabled) {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: lighten($color-bg-dark, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-18 19:36:30 +00:00
|
|
|
&.flat {
|
2019-11-10 10:08:44 +00:00
|
|
|
color: $color-button;
|
2019-10-18 19:36:30 +00:00
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: none;
|
|
|
|
transition: background 200ms ease-in-out;
|
|
|
|
|
|
|
|
&:not(.disabled) {
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: $color-hover-cd;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
&.round {
|
|
|
|
border-radius: 50%;
|
2020-04-02 12:52:02 +00:00
|
|
|
height: 60px;
|
|
|
|
width: 60px;
|
2019-10-18 19:36:30 +00:00
|
|
|
|
|
|
|
& > button > span {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-03-09 10:50:23 +00:00
|
|
|
|
|
|
|
&.xs {
|
2020-04-02 13:11:42 +00:00
|
|
|
font-size: .5rem;
|
2020-03-09 10:50:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.sm {
|
2020-04-02 13:11:42 +00:00
|
|
|
font-size: .7rem;
|
2020-03-09 10:50:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.md {
|
2020-04-02 13:11:42 +00:00
|
|
|
font-size: .875rem;
|
2020-03-09 10:50:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.lg {
|
2020-04-02 13:11:42 +00:00
|
|
|
font-size: 1.2rem;
|
2020-03-09 10:50:23 +00:00
|
|
|
}
|
2019-10-18 19:36:30 +00:00
|
|
|
}
|
|
|
|
&.disabled {
|
|
|
|
opacity: .7;
|
|
|
|
cursor: initial;
|
|
|
|
}
|
|
|
|
}
|