buttonPressed & buttonDisabled slots
This commit is contained in:
parent
8a7f3fc16a
commit
4b8e0f0afa
3 changed files with 100 additions and 6 deletions
44
src/App.scss
44
src/App.scss
|
@ -107,7 +107,10 @@ button {
|
|||
|
||||
&:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.5;
|
||||
color: $fallback--text;
|
||||
color: var(--btnDisabledText, $fallback--text);
|
||||
background-color: $fallback--fg;
|
||||
background-color: var(--btnDisabled, $fallback--fg)
|
||||
}
|
||||
|
||||
&.pressed {
|
||||
|
@ -365,6 +368,26 @@ i[class*=icon-] {
|
|||
height: 50px;
|
||||
box-sizing: border-box;
|
||||
|
||||
button {
|
||||
&, i[class*=icon-] {
|
||||
color: $fallback--text;
|
||||
color: var(--btnTopBarText, $fallback--text);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: $fallback--fg;
|
||||
background-color: var(--btnTopBarPressed, $fallback--fg);
|
||||
color: $fallback--text;
|
||||
color: var(--btnTopBarPressedText, $fallback--text);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $fallback--text;
|
||||
color: var(--btnTopBarDisabledText, $fallback--text);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.logo {
|
||||
display: flex;
|
||||
position: absolute;
|
||||
|
@ -525,6 +548,25 @@ main-router {
|
|||
align-self: stretch;
|
||||
}
|
||||
|
||||
button {
|
||||
&, i[class*=icon-] {
|
||||
color: $fallback--text;
|
||||
color: var(--btnPanelText, $fallback--text);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: $fallback--fg;
|
||||
background-color: var(--btnPanelPressed, $fallback--fg);
|
||||
color: $fallback--text;
|
||||
color: var(--btnPanelPressedText, $fallback--text);
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: $fallback--text;
|
||||
color: var(--btnPanelDisabledText, $fallback--text);
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $fallback--link;
|
||||
color: var(--panelLink, $fallback--link)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue