100 lines
1.4 KiB
SCSS
Raw Normal View History

@use './variables.module.scss' as *;
2023-03-15 15:59:21 +08:00
@mixin colorBtn($color) {
2023-04-03 00:05:09 +08:00
background: $color;
2023-03-15 15:59:21 +08:00
2023-04-03 00:05:09 +08:00
&:hover {
color: $color;
2023-03-15 15:59:21 +08:00
2023-04-03 00:05:09 +08:00
&:before,
&:after {
background: $color;
}
}
2023-03-15 15:59:21 +08:00
}
.blue-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($blue);
2023-03-15 15:59:21 +08:00
}
.light-blue-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($light-blue);
2023-03-15 15:59:21 +08:00
}
.red-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($red);
2023-03-15 15:59:21 +08:00
}
.pink-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($pink);
2023-03-15 15:59:21 +08:00
}
.green-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($green);
2023-03-15 15:59:21 +08:00
}
.tiffany-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($tiffany);
2023-03-15 15:59:21 +08:00
}
.yellow-btn {
2023-04-03 00:05:09 +08:00
@include colorBtn($yellow);
2023-03-15 15:59:21 +08:00
}
.pan-btn {
2023-04-03 00:05:09 +08:00
font-size: 14px;
color: #fff;
padding: 14px 36px;
border-radius: 8px;
border: none;
outline: none;
transition: 600ms ease all;
position: relative;
display: inline-block;
&:hover {
background: #fff;
&:before,
&:after {
width: 100%;
transition: 600ms ease all;
}
}
&:before,
&:after {
content: '';
position: absolute;
top: 0;
right: 0;
height: 2px;
width: 0;
transition: 400ms ease all;
}
&::after {
right: inherit;
top: inherit;
left: 0;
bottom: 0;
}
2023-03-15 15:59:21 +08:00
}
.custom-button {
2023-04-03 00:05:09 +08:00
display: inline-block;
line-height: 1;
white-space: nowrap;
cursor: pointer;
background: #fff;
color: #fff;
-webkit-appearance: none;
text-align: center;
box-sizing: border-box;
outline: 0;
margin: 0;
padding: 10px 15px;
font-size: 14px;
border-radius: 4px;
2023-03-15 15:59:21 +08:00
}