mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-02-21 00:23:02 +08:00
66 lines
1.3 KiB
CSS
66 lines
1.3 KiB
CSS
body, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.simple-keyboard {
|
|
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
|
width: 100%;
|
|
user-select: none;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.simple-keyboard .hg-row {
|
|
display: flex;
|
|
}
|
|
|
|
.simple-keyboard .hg-row:not(:last-child) {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.simple-keyboard .hg-row .hg-button:not(:last-child) {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.simple-keyboard .hg-button {
|
|
display: inline-block;
|
|
flex-grow: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.simple-keyboard.hg-layout-default .hg-button.hg-standardBtn {
|
|
max-width: 100px;
|
|
}
|
|
|
|
/**
|
|
* hg-theme-default theme
|
|
*/
|
|
.simple-keyboard.hg-theme-default {
|
|
background-color: rgba(0,0,0,0.2);
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.simple-keyboard.hg-theme-default .hg-button {
|
|
box-shadow: 0px 0px 3px -1px rgba(0,0,0,0.3);
|
|
height: 40px;
|
|
border: 1px solid rgba(0,0,0,0.25);
|
|
border-radius: 5px;
|
|
box-sizing: border-box;
|
|
padding: 5px;
|
|
background: white;
|
|
border-bottom: 1px solid gray;
|
|
}
|
|
|
|
.simple-keyboard.hg-theme-default .hg-button:active {
|
|
background: #e4e4e4;
|
|
}
|
|
|
|
.simple-keyboard.hg-theme-default.hg-layout-numeric .hg-button {
|
|
width: 33.3%;
|
|
height: 60px;
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
} |