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"] }) => { ...@@ -293,6 +293,9 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
const onKeyboardClick = () => { const onKeyboardClick = () => {
showToast("Keyboard click"); showToast("Keyboard click");
}; };
const onInformationClick = () => {
showToast("Information click");
};
const onThemeClick = () => { const onThemeClick = () => {
setBackgroundIndex((backgroundIndex + 1) % backgrounds.length); setBackgroundIndex((backgroundIndex + 1) % backgrounds.length);
}; };
...@@ -420,6 +423,12 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => { ...@@ -420,6 +423,12 @@ export const App: FC<AppProps> = ({ emulator, backgrounds = ["264653"] }) => {
imageAlt="keyboard" imageAlt="keyboard"
onClick={onKeyboardClick} onClick={onKeyboardClick}
/> />
<Button
text={"Information"}
image={require("../res/info.svg")}
imageAlt="iformation"
onClick={onInformationClick}
/>
<Button <Button
text={"Theme"} text={"Theme"}
image={require("../res/marker.svg")} image={require("../res/marker.svg")}
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
} }
.button-container > * { .button-container > * {
margin-right: 8px;
margin-bottom: 12px; margin-bottom: 12px;
margin-right: 8px;
} }
.button-container > *:last-child { .button-container > *:last-child {
......
.keyboard-chip8 { .keyboard-chip8 {
font-size: 0px; font-size: 0px;
text-align: center; text-align: center;
touch-callout: none; touch-callout: none;
-o-touch-callout: none; -o-touch-callout: none;
-ms-touch-callout: none; -ms-touch-callout: none;
-moz-touch-callout: none; -moz-touch-callout: none;
-khtml-touch-callout: none; -khtml-touch-callout: none;
-webkit-touch-callout: none; -webkit-touch-callout: none;
user-select: none; user-select: none;
-o-user-select: none; -o-user-select: none;
-ms-user-select: none; -ms-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-khtml-user-select: none; -khtml-user-select: none;
-webkit-user-select: none; -webkit-user-select: none;
} }
.keyboard-chip8 > .keyboard-line { .keyboard-chip8 > .keyboard-line {
margin-bottom: 12px; margin-bottom: 12px;
} }
.keyboard-chip8 > .keyboard-line:last-child { .keyboard-chip8 > .keyboard-line:last-child {
margin-bottom: 0px; margin-bottom: 0px;
} }
.keyboard-chip8 .key { .keyboard-chip8 .key {
border: 2px solid #ffffff; border: 2px solid #ffffff;
border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px;
-o-border-radius: 5px 5px 5px 5px; -o-border-radius: 5px 5px 5px 5px;
-ms-border-radius: 5px 5px 5px 5px; -ms-border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px; -moz-border-radius: 5px 5px 5px 5px;
-khtml-border-radius: 5px 5px 5px 5px; -khtml-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px;
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 38px; font-size: 38px;
height: 48px; height: 48px;
line-height: 46px; line-height: 46px;
margin-right: 14px; margin-right: 14px;
text-align: center; text-align: center;
width: 48px; width: 48px;
} }
.keyboard-chip8 .key:last-child { .keyboard-chip8 .key:last-child {
margin-right: 0px; margin-right: 0px;
} }
.keyboard-chip8 .key:hover { .keyboard-chip8 .key:hover {
background-color: #50cb93; background-color: #50cb93;
} }
.keyboard-chip8 .key:active { .keyboard-chip8 .key:active {
background-color: #2a9d8f; 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