mirror of
https://github.com/hodgef/simple-keyboard.git
synced 2025-03-01 06:43:02 +08:00
122 lines
2.3 KiB
CSS
122 lines
2.3 KiB
CSS
/**
|
|
* simple-keyboard
|
|
* Theme: hg-theme-default
|
|
*/
|
|
.hg-theme-default {
|
|
width: 100%;
|
|
user-select: none;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
touch-action: manipulation;
|
|
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue",
|
|
Helvetica, Arial, "Lucida Grande", sans-serif;
|
|
background-color: #ececec;
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button span {
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* When using option "useButtonTag" */
|
|
.hg-theme-default button.hg-button {
|
|
border-width: 0;
|
|
outline: 0;
|
|
font-size: inherit;
|
|
}
|
|
|
|
.hg-theme-default .hg-button {
|
|
display: inline-block;
|
|
flex-grow: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.hg-theme-default .hg-row {
|
|
display: flex;
|
|
}
|
|
|
|
.hg-theme-default .hg-row:not(:last-child) {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.hg-theme-default .hg-row .hg-button:not(:last-child) {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.hg-theme-default .hg-row .hg-button-container {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.hg-theme-default .hg-row > div:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.hg-theme-default .hg-row .hg-button-container {
|
|
display: flex;
|
|
}
|
|
|
|
.hg-theme-default .hg-button {
|
|
box-shadow: 0px 0px 3px -1px rgba(0, 0, 0, 0.3);
|
|
height: 40px;
|
|
border-radius: 5px;
|
|
box-sizing: border-box;
|
|
padding: 5px;
|
|
background: white;
|
|
border-bottom: 1px solid #b5b5b5;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-standardBtn {
|
|
width: 20px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-activeButton {
|
|
background: #efefef;
|
|
}
|
|
|
|
.hg-theme-default.hg-layout-numeric .hg-button {
|
|
width: 33.3%;
|
|
height: 60px;
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-button-numpadadd {
|
|
height: 85px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-button-numpadenter {
|
|
height: 85px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-button-numpad0 {
|
|
width: 105px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-button-com {
|
|
max-width: 85px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-standardBtn.hg-button-at {
|
|
max-width: 45px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-selectedButton {
|
|
background: rgba(5, 25, 70, 0.53);
|
|
color: white;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"] {
|
|
max-width: 82px;
|
|
}
|
|
|
|
.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"] {
|
|
max-width: 60px;
|
|
}
|