mirror of
https://github.com/PrismarineJS/prismarine-web-client.git
synced 2024-11-28 10:35:38 -05:00
1b08956d10
* added readme pt-pt * added url/querystring deps and fix chat pos/scale url and querystring were missing in node_modules. chat scale option wasn't implemented and chat input was on top instead of bottom. * added bot version text field and guiScale for small screens text field to choose bot version. gui scale changes on small screens (slider takes no effect then). Removed unused images. * added mobile controls * fixed bot and chat * mobile controls only appear on mobile or if forced * lint fix
120 lines
No EOL
2.2 KiB
CSS
120 lines
No EOL
2.2 KiB
CSS
:root {
|
|
--guiScaleFactor: 3;
|
|
--guiScale: 3;
|
|
--chatWidth: 320px;
|
|
--chatHeight: 180px;
|
|
--chatScale: 1;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dirt-bg {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
background: url('textures/1.17.1/gui/options_background.png'), rgba(0, 0, 0, 0.7);
|
|
background-size: 16px;
|
|
background-repeat: repeat;
|
|
width: 100%;
|
|
height: 100%;
|
|
transform-origin: top left;
|
|
transform: scale(2);
|
|
background-blend-mode: overlay;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: minecraft;
|
|
src: url(minecraftia.woff);
|
|
}
|
|
|
|
@font-face {
|
|
font-family: mojangles;
|
|
src: url(mojangles.ttf);
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
position: relative;
|
|
margin:0;
|
|
padding:0;
|
|
height: 100vh;
|
|
font-family: sans-serif;
|
|
background: #333;
|
|
/* background: linear-gradient(#141e30, #243b55); */
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
canvas {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
font-size: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#ui-root {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
transform-origin: top left;
|
|
transform: scale(var(--guiScale));
|
|
width: calc(100% / var(--guiScale));
|
|
height: calc(100% / var(--guiScale));
|
|
z-index: 10;
|
|
image-rendering: optimizeSpeed;
|
|
image-rendering: -moz-crisp-edges;
|
|
image-rendering: -webkit-optimize-contrast;
|
|
image-rendering: -o-crisp-edges;
|
|
image-rendering: pixelated;
|
|
-ms-interpolation-mode: nearest-neighbor;
|
|
font-family: minecraft, mojangles, monospace;
|
|
}
|
|
|
|
@media only screen and (max-width: 971px) {
|
|
#ui-root {
|
|
transform: scale(2);
|
|
width: calc(100% / 2);
|
|
height: calc(100% / 2);
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-height: 670px) {
|
|
#ui-root {
|
|
transform: scale(2);
|
|
width: calc(100% / 2);
|
|
height: calc(100% / 2);
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 561px) {
|
|
#ui-root {
|
|
transform: scale(1);
|
|
width: calc(100% / 1);
|
|
height: calc(100% / 1);
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-height: 430px) {
|
|
#ui-root {
|
|
transform: scale(1);
|
|
width: calc(100% / 1);
|
|
height: calc(100% / 1);
|
|
}
|
|
} |