2022-05-24 12:49:06 +08:00
|
|
|
.docs-button {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: var(--height);
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
|
|
|
color: white;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: 500;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
transition-property: background-color;
|
|
|
|
transition-duration: 0.1s;
|
|
|
|
|
2022-06-16 21:37:37 +08:00
|
|
|
@apply --squircle;
|
|
|
|
|
2022-05-24 12:49:06 +08:00
|
|
|
|
|
|
|
&__icon {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 24px;
|
|
|
|
height: 24px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-01 16:18:58 +08:00
|
|
|
&--with-label &__icon {
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
2022-05-24 12:49:06 +08:00
|
|
|
&--default {
|
|
|
|
--height: 40px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--small {
|
|
|
|
--height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--primary {
|
|
|
|
background: var(--color-button-primary);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-button-primary-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var(--color-button-primary-active);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--secondary {
|
|
|
|
background: var(--color-button-secondary);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-button-secondary-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var(--color-button-secondary-active);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--warning {
|
|
|
|
background: var(--color-button-warning);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--color-button-warning-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: var(--color-button-warning-active);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-01 16:18:58 +08:00
|
|
|
&--with-icon&--with-label {
|
|
|
|
padding-left: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--with-icon:not(&--with-label) {
|
|
|
|
padding-right: 8px;
|
2022-05-24 12:49:06 +08:00
|
|
|
padding-left: 8px;
|
|
|
|
}
|
2022-06-01 16:18:58 +08:00
|
|
|
|
|
|
|
&--small&--with-icon&--with-label {
|
|
|
|
padding-left: 6px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--small&--with-icon:not(&--with-label) {
|
|
|
|
padding-right: 6px;
|
|
|
|
padding-left: 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--small&--with-label:not(&--with-icon) {
|
|
|
|
padding-right: 10px;
|
|
|
|
padding-left: 10px;
|
|
|
|
}
|
2022-05-24 12:49:06 +08:00
|
|
|
}
|