mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
33 lines
651 B
SCSS
33 lines
651 B
SCSS
|
.mm-button-icon {
|
||
|
--button-icon-size: var(--size, 24px);
|
||
|
--button-icon-opacity-hover: 0.5; // TODO: replace with design tokens
|
||
|
--button-icon-opacity-disabled: 0.3; // TODO: replace with design tokens
|
||
|
|
||
|
height: var(--button-icon-size);
|
||
|
width: var(--button-icon-size);
|
||
|
padding: 0;
|
||
|
cursor: pointer;
|
||
|
|
||
|
// ButtonIcon default states
|
||
|
&:active,
|
||
|
&:hover {
|
||
|
opacity: var(--button-icon-opacity-hover);
|
||
|
}
|
||
|
|
||
|
&--disabled,
|
||
|
&:disabled {
|
||
|
opacity: var(--button-icon-opacity-disabled);
|
||
|
cursor: not-allowed;
|
||
|
}
|
||
|
|
||
|
// ButtonIcon Sizes
|
||
|
&--size-sm {
|
||
|
--button-icon-size: 24px;
|
||
|
}
|
||
|
|
||
|
&--size-lg {
|
||
|
--button-icon-size: 32px;
|
||
|
}
|
||
|
}
|
||
|
|