mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
Fixed display of an icon in a button. The shadow is smaller in CircleButton. (#81)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
parent
a157c113c8
commit
18bd1e4d19
@ -30,7 +30,7 @@
|
||||
</script>
|
||||
|
||||
<button class="button {size}" class:primary class:transparent disabled={disabled || loading} style={width ? 'width: ' + width : ''} on:click>
|
||||
{#if icon}
|
||||
{#if icon && !loading}
|
||||
<div class="icon">
|
||||
{#if typeof (icon) === 'string'}
|
||||
<Icon {icon} size={'small'}/>
|
||||
|
@ -51,11 +51,11 @@
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, .25);
|
||||
box-shadow: 0 0 1rem rgba(0, 0, 0, .3);
|
||||
box-shadow: 0 0 .5rem rgba(0, 0, 0, .3);
|
||||
}
|
||||
&:active {
|
||||
background-color: rgba(255, 255, 255, .15);
|
||||
box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
|
||||
box-shadow: 0 0 .5rem rgba(0, 0, 0, .1);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user