186 lines
2.8 KiB
CSS
186 lines
2.8 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #000;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
background: #fff;
|
|
border-radius: 20px;
|
|
padding: 30px;
|
|
box-shadow: 0 0 0 2px #000;
|
|
max-width: 400px;
|
|
width: 100%;
|
|
}
|
|
|
|
.status-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30px;
|
|
padding: 15px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
border: 2px solid #000;
|
|
}
|
|
|
|
#connection-status {
|
|
font-weight: 600;
|
|
color: #000;
|
|
}
|
|
|
|
#connection-status.connected {
|
|
color: #000;
|
|
font-weight: 800;
|
|
background: #e0e0e0;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#device-info {
|
|
font-size: 14px;
|
|
color: #000;
|
|
}
|
|
|
|
.numpad {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.numpad-row {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.key {
|
|
flex: 1;
|
|
min-width: 60px;
|
|
height: 60px;
|
|
border: 2px solid #000;
|
|
border-radius: 12px;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.key:hover {
|
|
border-width: 3px;
|
|
}
|
|
|
|
.key:active {
|
|
background: #000;
|
|
color: #fff;
|
|
}
|
|
|
|
.key.pressed {
|
|
background: #000;
|
|
color: #fff;
|
|
border-width: 3px;
|
|
}
|
|
|
|
.key.operator {
|
|
background: #f0f0f0;
|
|
color: #000;
|
|
border: 3px solid #333;
|
|
}
|
|
|
|
.key.operator:hover {
|
|
background: #e0e0e0;
|
|
border-color: #000;
|
|
}
|
|
|
|
.key.special {
|
|
background: #d0d0d0;
|
|
color: #000;
|
|
border: 3px solid #555;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.key.special:hover {
|
|
background: #b0b0b0;
|
|
border-color: #000;
|
|
}
|
|
|
|
.info-panel {
|
|
background: #f8f8f8;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
border: 2px solid #666;
|
|
}
|
|
|
|
.info-panel h3 {
|
|
color: #000;
|
|
margin-bottom: 15px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.info-panel ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.info-panel li {
|
|
color: #000;
|
|
margin-bottom: 8px;
|
|
padding-left: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.info-panel li:before {
|
|
content: "•";
|
|
position: absolute;
|
|
left: 0;
|
|
color: #000;
|
|
font-weight: bold;
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.container {
|
|
padding: 20px;
|
|
margin: 10px;
|
|
}
|
|
|
|
.key {
|
|
min-width: 50px;
|
|
height: 50px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.key.special {
|
|
min-width: 100px;
|
|
}
|
|
|
|
.status-bar {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
.key {
|
|
min-width: 70px;
|
|
height: 70px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.key.special {
|
|
min-width: 140px;
|
|
}
|
|
} |