feat(calc-02): restyle enter key label and colors
This commit is contained in:
@@ -19,8 +19,8 @@
|
|||||||
--btnDangerBottom: #402d2f;
|
--btnDangerBottom: #402d2f;
|
||||||
--btnEscapeTop: #6a4a2a;
|
--btnEscapeTop: #6a4a2a;
|
||||||
--btnEscapeBottom: #4a331d;
|
--btnEscapeBottom: #4a331d;
|
||||||
--btnEnterTop: #465349;
|
--btnEnterTop: #4f7f4d;
|
||||||
--btnEnterBottom: #303a31;
|
--btnEnterBottom: #355a34;
|
||||||
--btnText: #eef2f7;
|
--btnText: #eef2f7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const calculatorEl = document.querySelector('.calculator');
|
|||||||
const statusLine = document.getElementById('statusLine');
|
const statusLine = document.getElementById('statusLine');
|
||||||
|
|
||||||
const keypadKeys = [
|
const keypadKeys = [
|
||||||
{ label: 'Enter', action: 'enter', className: 'key-enter' },
|
{ label: 'ENTER', action: 'enter', className: 'key-enter' },
|
||||||
{ label: '⎋', action: 'escape', className: 'key-escape' },
|
{ label: '⎋', action: 'escape', className: 'key-escape' },
|
||||||
{ label: 'C', action: 'clear', className: 'key-danger' },
|
{ label: 'C', action: 'clear', className: 'key-danger' },
|
||||||
{ label: '⌫', action: 'backspace', className: 'key-danger' },
|
{ label: '⌫', action: 'backspace', className: 'key-danger' },
|
||||||
|
|||||||
Reference in New Issue
Block a user