mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
* button background hover updates * add buttonlink underline * update button base disabled * fix size auto * Update ui/components/component-library/button-link/button-link.stories.js Co-authored-by: George Marshall <george.marshall@consensys.net> * remove underline --------- Co-authored-by: George Marshall <george.marshall@consensys.net>
55 lines
827 B
SCSS
55 lines
827 B
SCSS
.mm-button-base {
|
|
position: relative;
|
|
height: 40px;
|
|
padding: 0; // TODO: remove once https://github.com/MetaMask/metamask-extension/pull/17006 is merged
|
|
cursor: pointer;
|
|
vertical-align: middle;
|
|
user-select: none;
|
|
|
|
&--block {
|
|
display: 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;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@keyframes spinner {
|
|
to { transform: translate(-50%, -50%) rotate(360deg); }
|
|
}
|
|
|