Skip to content

Commit 9c416ce

Browse files
committed
Combine html and css
1 parent 32b1041 commit 9c416ce

File tree

2 files changed

+56
-53
lines changed

2 files changed

+56
-53
lines changed

web/src/index.htm

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,62 @@
5555
>Arduino Remote Switch on GitHub</a
5656
>
5757

58+
<style>
59+
html {
60+
height: 95%;
61+
font-family: 'Lucida Console', 'Arial', monospace;
62+
}
63+
64+
body {
65+
background-color: #1f1e29;
66+
color: #cfcfcf;
67+
height: 100%;
68+
}
69+
70+
.heading {
71+
font-size: 5vh;
72+
text-align: center;
73+
}
74+
75+
button {
76+
position: relative;
77+
display: inline-block;
78+
width: calc(100% - 2vw);
79+
min-width: 50px;
80+
max-width: 200vh;
81+
height: 15%;
82+
min-height: 50px;
83+
border: none;
84+
border-radius: 1vw;
85+
margin: 1vh 1vw 1vh 1vw;
86+
font-size: 5vh;
87+
color: #cfcfcf;
88+
background-color: #313131;
89+
}
90+
91+
.activeButton {
92+
cursor: pointer;
93+
}
94+
95+
.activeButton:hover {
96+
background-color: #cfcfcf;
97+
color: black;
98+
}
99+
100+
.activeButton:active {
101+
background-color: #494949;
102+
color: #cfcfcf;
103+
}
104+
105+
a {
106+
color: #cfcfcf;
107+
display: flex;
108+
align-items: center;
109+
justify-content: center;
110+
margin: 5%;
111+
}
112+
</style>
113+
58114
<script>
59115
const CMD_POWER_ON = 'powerOn',
60116
CMD_STAND_BY = 'standBy',

web/src/style.css

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)