mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
b46501cc0d
* migration of button icon to use TS box version * fixed lint issues * Some convention and linting updates * README fixes * Updating snapshot * snapshot updates --------- Co-authored-by: georgewrmarshall <george.marshall@consensys.net>
45 lines
747 B
SCSS
45 lines
747 B
SCSS
.mm-button-icon {
|
|
--button-icon-size: var(--size, 24px);
|
|
|
|
height: var(--button-icon-size);
|
|
width: var(--button-icon-size);
|
|
min-width: var(--button-icon-size); // fixes width for flexbox
|
|
padding: 0;
|
|
cursor: pointer;
|
|
|
|
// ButtonIcon default states
|
|
|
|
&:hover {
|
|
background-color: var(--color-background-hover);
|
|
}
|
|
|
|
&:active {
|
|
background-color: var(--color-background-pressed);
|
|
}
|
|
|
|
&--disabled,
|
|
&:disabled {
|
|
opacity: var(--opacity-disabled);
|
|
cursor: not-allowed;
|
|
|
|
&:hover,
|
|
&:active {
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
// ButtonIcon Sizes
|
|
&--size-sm {
|
|
--button-icon-size: 24px;
|
|
}
|
|
|
|
&--size-md {
|
|
--button-icon-size: 28px;
|
|
}
|
|
|
|
&--size-lg {
|
|
--button-icon-size: 32px;
|
|
}
|
|
}
|
|
|