Skip to content
Snippets Groups Projects
Verified Commit 564a9967 authored by João Magalhães's avatar João Magalhães :rocket:
Browse files

feat: new styles

parent 4c405865
No related branches found
No related tags found
1 merge request!9Version 0.4.0 🍾
Pipeline #1390 passed
......@@ -293,6 +293,9 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
const onKeyboardClick = () => {
showToast("Keyboard click");
};
const onInformationClick = () => {
showToast("Information click");
};
const onThemeClick = () => {
setBackgroundIndex((backgroundIndex + 1) % backgrounds.length);
};
......@@ -420,6 +423,12 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
imageAlt="keyboard"
onClick={onKeyboardClick}
/>
<Button
text={"Information"}
image={require("../res/info.svg")}
imageAlt="iformation"
onClick={onInformationClick}
/>
<Button
text={"Theme"}
image={require("../res/marker.svg")}
......
......@@ -3,8 +3,8 @@
}
.button-container > * {
margin-right: 8px;
margin-bottom: 12px;
margin-right: 8px;
}
.button-container > *:last-child {
......
.keyboard-chip8 {
font-size: 0px;
text-align: center;
touch-callout: none;
-o-touch-callout: none;
-ms-touch-callout: none;
-moz-touch-callout: none;
-khtml-touch-callout: none;
-webkit-touch-callout: none;
user-select: none;
-o-user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
}
.keyboard-chip8 > .keyboard-line {
margin-bottom: 12px;
}
.keyboard-chip8 > .keyboard-line:last-child {
margin-bottom: 0px;
}
.keyboard-chip8 .key {
border: 2px solid #ffffff;
border-radius: 5px 5px 5px 5px;
-o-border-radius: 5px 5px 5px 5px;
-ms-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-khtml-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
cursor: pointer;
display: inline-block;
font-size: 38px;
height: 48px;
line-height: 46px;
margin-right: 14px;
text-align: center;
width: 48px;
}
.keyboard-chip8 .key:last-child {
margin-right: 0px;
}
.keyboard-chip8 .key:hover {
background-color: #50cb93;
}
.keyboard-chip8 .key:active {
background-color: #2a9d8f;
}
.keyboard-chip8 {
font-size: 0px;
text-align: center;
touch-callout: none;
-o-touch-callout: none;
-ms-touch-callout: none;
-moz-touch-callout: none;
-khtml-touch-callout: none;
-webkit-touch-callout: none;
user-select: none;
-o-user-select: none;
-ms-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
}
.keyboard-chip8 > .keyboard-line {
margin-bottom: 12px;
}
.keyboard-chip8 > .keyboard-line:last-child {
margin-bottom: 0px;
}
.keyboard-chip8 .key {
border: 2px solid #ffffff;
border-radius: 5px 5px 5px 5px;
-o-border-radius: 5px 5px 5px 5px;
-ms-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-khtml-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
cursor: pointer;
display: inline-block;
font-size: 38px;
height: 48px;
line-height: 46px;
margin-right: 14px;
text-align: center;
width: 48px;
}
.keyboard-chip8 .key:last-child {
margin-right: 0px;
}
.keyboard-chip8 .key:hover {
background-color: #50cb93;
}
.keyboard-chip8 .key:active {
background-color: #2a9d8f;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment