remote-touchpad/webdata/main.css
2020-02-17 18:01:59 +01:00

173 lines
2.5 KiB
CSS

@font-face {
font-family: "icon";
src: url("icon.woff") format("woff");
}
* {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.hidden {
display: none;
}
html,
body,
body > div {
width: 100%;
height: 100%;
margin: 0;
font-family: sans-serif;
}
body > div {
background-color: #404040 !important;
background-image: url(tex.png);
display: flex;
flex-direction: column;
justify-content: center;
}
#opening,
#closed,
#keys {
align-items: center;
}
#keys {
justify-content: flex-end;
}
#keyboard {
flex-direction: row;
}
p {
font-size: 2rem;
color: white;
word-wrap: break-word;
}
#padlabel {
color: gray;
text-shadow:
-1px -1px 0 black,
1px -1px 0 black,
-1px 1px 0 black,
1px 1px 0 black;
opacity: 0.08;
font-weight: bold;
margin-top: auto;
margin-bottom: auto;
text-align: center;
font-size: 4rem;
word-wrap: break-word;
}
@media (max-width: 32rem) {
#padlabel {
font-size: 13vw;
}
}
.buttons {
display: flex;
}
button {
background-color: transparent;
border: 1px solid black;
height: 1.5em;
width: 2em;
font-size: 2rem;
color: white;
font-family: "icon";
}
button:focus {
outline: none;
}
#fullscreenbutton,
#keyboardbutton,
#sendbutton {
border-bottom: none;
}
#keysbutton,
#fullscreenbutton,
#playpausebutton,
#volumemutebutton {
border-left: none;
}
#keysbutton {
border-top: none;
}
#playpausebutton,
#volumemutebutton,
#keyboardbutton {
border-right: none;
}
#keyboardbutton {
margin-left: auto;
}
#reloadbutton {
font-size: 4rem;
}
textarea {
flex: 2;
border: none;
resize: none;
font-size: 2rem;
background-color: white;
color: black;
margin: 0;
}
#sendbutton {
border-right: none;
border-top: none;
height: 100%;
}
#keys > .buttons {
margin-bottom: 0.5rem;
}
#keys > .buttons > button {
height: 6rem;
width: 8rem;
}
@media (max-width: 25rem) {
#keys > .buttons > button {
width: calc(0.33 * (100vw - 1rem));
}
}
@media (max-height: 13.5rem) {
#keys > .buttons > button {
height: calc(0.5 * (100vh - 1.5rem));
}
}
@media (max-aspect-ratio: 4/3) {
#keyboard {
flex-direction: column;
}
#sendbutton {
border-left: none;
border-top: 1px solid black;
height: 1.5em;
width: 100%;
}
}