mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
CHANGE: Reuse existing color palette
This commit is contained in:
parent
4debb0ddfc
commit
28d3b46d35
2 changed files with 16 additions and 8 deletions
|
|
@ -39,22 +39,16 @@ button {
|
||||||
border-style: dashed;
|
border-style: dashed;
|
||||||
}
|
}
|
||||||
|
|
||||||
.answerButton,
|
|
||||||
.answerButton:hover,
|
|
||||||
.answerButton:focus {
|
|
||||||
border-width: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.answerIncorrect,
|
.answerIncorrect,
|
||||||
.answerIncorrect:hover,
|
.answerIncorrect:hover,
|
||||||
.answerIncorrect:focus {
|
.answerIncorrect:focus {
|
||||||
border-color: #e01b24;
|
border-color: color(border-answerIncorrect);
|
||||||
}
|
}
|
||||||
|
|
||||||
.answerCorrect,
|
.answerCorrect,
|
||||||
.answerCorrect:hover,
|
.answerCorrect:hover,
|
||||||
.answerCorrect:focus {
|
.answerCorrect:focus {
|
||||||
border-color: #2ec27e;
|
border-color: color(border-answerCorrect);
|
||||||
}
|
}
|
||||||
|
|
||||||
.hitem {
|
.hitem {
|
||||||
|
|
|
||||||
|
|
@ -178,6 +178,20 @@ $vars: (
|
||||||
dark: palette(blue, 5),
|
dark: palette(blue, 5),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
answerCorrect: (
|
||||||
|
"Border color of answer buttons that show the answer was correct (hard, good, easy)",
|
||||||
|
(
|
||||||
|
light: palette(green, 5),
|
||||||
|
dark: palette(green, 5),
|
||||||
|
)
|
||||||
|
),
|
||||||
|
answerIncorrect: (
|
||||||
|
"Border color of the answer button that shows that the answer was incorrect (again)",
|
||||||
|
(
|
||||||
|
light: palette(red, 5),
|
||||||
|
dark: palette(red, 5),
|
||||||
|
)
|
||||||
|
),
|
||||||
),
|
),
|
||||||
button: (
|
button: (
|
||||||
bg: (
|
bg: (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue