134 lines
2.7 KiB
CSS
134 lines
2.7 KiB
CSS
body, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden; /* Prevents scrollbars */
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.lil-gui.root {
|
|
/* Force it to sit at the bottom or top of the screen */
|
|
width: 100% !important;
|
|
right: 0 !important;
|
|
top: auto !important;
|
|
bottom: 0 !important; /* Move to bottom for easier thumb reach */
|
|
|
|
/* Make the text and hit-areas slightly larger for fingers */
|
|
--font-size: 14px;
|
|
--input-font-size: 14px;
|
|
--widget-height: 30px;
|
|
--name-width: 40%;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "SF Pro Medium";
|
|
src: url("fonts/SF-Pro.ttf") format("truetype");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "SF Pro Medium";
|
|
src: url("fonts/SF-Pro-Italic.ttf") format("truetype");
|
|
font-weight: normal;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "Blender Pro Bold";
|
|
src: url("fonts/BlenderPro-Bold.woff") format("woff");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
#info {
|
|
position: absolute;
|
|
bottom: 50px;
|
|
width: 100%;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
z-index: 1; /* TODO Solve this in HTML */
|
|
font-family: 'SF Pro Medium';
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
#mabuligheader {
|
|
position: absolute;
|
|
top: 10px;
|
|
width: 100%;
|
|
padding: 10px;
|
|
box-sizing: border-box;
|
|
text-align: center;
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
pointer-events: none;
|
|
z-index: 1; /* TODO Solve this in HTML */
|
|
font-family: 'Blender Pro Bold';
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
h1 {
|
|
margin: 5px;
|
|
/* font-weight: normal !important; */
|
|
}
|
|
h2 {
|
|
margin: 0px;
|
|
font-weight: normal !important;
|
|
}
|
|
h4 {
|
|
margin: 0px;
|
|
}
|
|
|
|
/* Container that covers the whole screen */
|
|
#loader-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
/*background-color: #1111115d; */ /* Dark background */
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 999; /* Ensure it stays on top of the Three.js canvas */
|
|
color: black;
|
|
font-family: 'Blender Pro Bold';
|
|
|
|
/* Prevent accidental text selection while tapping on mobile */
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
/* The actual spinning throbber */
|
|
.spinner {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 5px solid rgba(0, 0, 0, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: #303030;
|
|
animation: spin 1s ease-in-out infinite;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|