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
George Marshall 5d17f86e02
Update Text import paths: component library/ (#19987)
* Updating component-librar import paths

* Updating snapshots

* Updates to AvatarBase story

* Updates to avatar and checkbox

* Updating last of the deprecated import paths

* Updating component-library snapshots from button-base

* Updating snapshots from rest of codebase to do with button-base

* Removing unneeded CSS

* Updating snapshots
2023-07-17 14:00:16 -07:00

54 lines
724 B
SCSS

.mm-button-base {
position: relative;
height: 40px;
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); }
}