keyboard: add css var to customize keys color

This commit is contained in:
jean-emmanuel 2016-11-24 00:11:52 +01:00
parent 74ab6356d1
commit 66b46dcf0b
2 changed files with 9 additions and 2 deletions

View file

@ -135,3 +135,9 @@ This one works pretty much like the multipush, excepts it looks like a piano key
#### `options`
- see push's [`options`](buttons/#push)
#### `css`
```
--color-white:color; /* white keys color */
--color-black:color; /* black keys color */
```

View file

@ -69,14 +69,15 @@
}
.keyboard-container {
--color-black: var(--color-raised);
.matrix {
position: relative;
overflow: hidden;
.white {
--color-raised:ivory;
--color-raised: var(--color-white, ivory);
}
.black {
// --color-raised:ebony;
--color-raised: var(--color-black);
position: absolute;
z-index: 1;
top:0;