hugo-theme-zzo/assets/sass/components/_button.scss

39 lines
819 B
SCSS
Raw Normal View History

2020-02-01 17:58:22 +00:00
.button {
position: relative;
display: inline-block;
padding: 3px 9px;
margin: 0.5rem;
cursor: pointer;
text-decoration: none !important;
border-radius: 0.25rem;
&__text {
margin: auto;
position: absolute;
top: 50%;
left: 50%;
@include translate(-50%, -50%);
}
@include themify($themes) {
&[data-color="default"] {
color: themed('link');
border: 1px solid themed('link');
@include on-event {
color: themed('link-hover');
border: 1px solid themed('link-hover');
}
}
&[data-color="primary"] {
color: themed('button-primary-color');
border: 1px solid themed('button-primary-color');
@include on-event {
color: themed('link-hover');
border: 1px solid themed('link-hover');
}
}
}
}