mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed save button
This commit is contained in:
parent
6af37040d4
commit
bbb628a24a
2 changed files with 6 additions and 3 deletions
|
@ -100,7 +100,7 @@ class Component extends React.PureComponent<Props, void> {
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
className={classnames({ primary: changed, disabled: !changed })}
|
className={classnames({ primary: changed, inactive: !changed })}
|
||||||
onClick={this.startSaveMode}
|
onClick={this.startSaveMode}
|
||||||
>
|
>
|
||||||
<span className="desktop-only">СОХРАНИТЬ</span>
|
<span className="desktop-only">СОХРАНИТЬ</span>
|
||||||
|
|
|
@ -93,15 +93,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.disabled {
|
&.disabled, &.inactive {
|
||||||
color: #999999;
|
color: #999999;
|
||||||
pointer-events: none;
|
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
fill: #999999;
|
fill: #999999;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.disabled {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
&.highlighted {
|
&.highlighted {
|
||||||
background: rgba(255, 255, 255, 0.1);
|
background: rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue