1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00
metamask-extension/ui/components/component-library/button-base/button-base.scss
Garrett Bear 3f27d018c4
Fix/buttonbase ts update (#20060)
* Migrate ButtonBase to TS

---------

Co-authored-by: Binij Shrestha <shresthabinij@gmail.com>
2023-07-25 09:05:15 -07:00

57 lines
768 B
SCSS

.mm-button-base {
position: relative;
height: 40px;
cursor: pointer;
vertical-align: middle;
user-select: none;
&--block {
width: 100%;
}
&--ellipsis {
max-width: 100%;
}
&--size-sm {
height: 32px;
}
&--size-md {
height: 40px;
}
&--size-lg {
height: 48px;
}
&--loading {
cursor: not-allowed;
}
&--disabled,
&:disabled {
opacity: var(--opacity-disabled);
cursor: not-allowed;
}
&__icon-loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
animation: spinner 1.2s linear infinite;
}
}
a.mm-button-base:hover {
color: var(--color-text-default);
}
@keyframes spinner {
to { transform: translate(-50%, -50%) rotate(360deg); }
}