111 lines
2.2 KiB
SCSS
111 lines
2.2 KiB
SCSS
@import "variables";
|
|
|
|
.vn-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 44px;
|
|
border: none;
|
|
border-radius: 1px;
|
|
font-family: vn-font-bold;
|
|
text-transform: uppercase;
|
|
font-size: .87rem;
|
|
cursor: pointer;
|
|
box-sizing: border-box;
|
|
outline: none;
|
|
|
|
& > button {
|
|
width: 100%;
|
|
padding: 0 16px;
|
|
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;
|
|
font-size: 27px;
|
|
}
|
|
}
|
|
&.colored {
|
|
color: white;
|
|
background-color: $color-button;
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .3);
|
|
transition: background 200ms ease-in-out;
|
|
|
|
&:not(.disabled) {
|
|
&:hover,
|
|
&:focus {
|
|
background-color: lighten($color-button, 10%);
|
|
}
|
|
}
|
|
}
|
|
&.message {
|
|
color: white;
|
|
background-color: $color-bg-dark;
|
|
|
|
&:not(.disabled) {
|
|
&:hover,
|
|
&:focus {
|
|
background-color: lighten($color-bg-dark, 10%);
|
|
}
|
|
}
|
|
}
|
|
&.flat {
|
|
color: $color-button;
|
|
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%;
|
|
height: 60px;
|
|
width: 60px;
|
|
|
|
& > button > span {
|
|
display: none;
|
|
}
|
|
|
|
&.xs {
|
|
font-size: 8px;
|
|
}
|
|
|
|
&.sm {
|
|
font-size: 11px;
|
|
}
|
|
|
|
&.md {
|
|
font-size: 14px;
|
|
}
|
|
|
|
&.lg {
|
|
font-size: 19px;
|
|
}
|
|
}
|
|
&.disabled {
|
|
opacity: .7;
|
|
cursor: initial;
|
|
}
|
|
}
|