* SetProperties working * cleanup * added Node * switched to Vite * scene export working * vertex color output works * added unlit * fixed rename bug * switch worker to TS * don't fail on empty manifolds * reusing meshes * cleanup, updated gyroid example * change signature of setPropFunc * updated examples * add dist for githack testing * Revert "add dist for githack testing" This reverts commit 8769d7ab08dfaab9fe7824726f7a7229bf553bb3. * remove duplicate files * updated docs * fixed some bugs * multi-material working * switched to vitest * tests pass * fixed examples * fix CI * update deployment * tweak logging * cleanup * fix copy * updated READMEs * extend timeout
224 lines
3.4 KiB
CSS
224 lines
3.4 KiB
CSS
/*
|
|
Copyright 2022 The Manifold Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
html {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
height: 100%;
|
|
font-family: 'Rubik', sans-serif;
|
|
font-size: 24px;
|
|
line-height: 24px;
|
|
font-weight: 800;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
button {
|
|
display: block;
|
|
padding: 0 1em;
|
|
cursor: pointer;
|
|
height: 36px;
|
|
border: none;
|
|
border-radius: 18px;
|
|
font-family: 'Rubik', sans-serif;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
font-weight: 800;
|
|
text-align: left;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
a:link,
|
|
a:visited {
|
|
color: black;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
a:hover,
|
|
a:active {
|
|
color: black;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button:disabled {
|
|
color: black;
|
|
background-color: #eee !important;
|
|
cursor: auto;
|
|
}
|
|
|
|
button:hover {
|
|
filter: brightness(0.9);
|
|
}
|
|
|
|
input {
|
|
border: none;
|
|
height: 36px;
|
|
background-color: transparent;
|
|
font-family: 'Rubik', sans-serif;
|
|
font-size: 16px;
|
|
line-height: 24px;
|
|
font-weight: 800;
|
|
text-align: left;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
p {
|
|
margin: 1em;
|
|
text-align: left;
|
|
}
|
|
|
|
model-viewer {
|
|
position: relative;
|
|
flex: 3;
|
|
width: 100%;
|
|
background-color: #ddd;
|
|
}
|
|
|
|
#console {
|
|
flex: 1;
|
|
min-height: 0;
|
|
max-height: 25vh;
|
|
overflow-y: scroll;
|
|
background-color: #eee;
|
|
white-space: pre-wrap;
|
|
font-size: 14px;
|
|
font-weight: 100;
|
|
line-height: 20px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.page {
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
}
|
|
|
|
.col {
|
|
position: relative;
|
|
width: 50vw;
|
|
}
|
|
|
|
.center {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate3d(-50%, -50%, 0);
|
|
}
|
|
|
|
.header .margin {
|
|
font-size: 16px;
|
|
margin: 1em;
|
|
}
|
|
|
|
#file {
|
|
width: 250px;
|
|
}
|
|
|
|
.dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
z-index: 1;
|
|
width: 250px;
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.show {
|
|
display: block;
|
|
}
|
|
|
|
.uparrow {
|
|
display: inline-block;
|
|
position: relative;
|
|
border: solid black;
|
|
border-width: 0 3px 3px 0;
|
|
padding: 3px;
|
|
transform: rotate(-135deg);
|
|
}
|
|
|
|
.down {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.item {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.icon {
|
|
display: inline-block;
|
|
background-color: transparent;
|
|
position: absolute;
|
|
width: 36px;
|
|
top: 0px;
|
|
background-size: 20px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
.cancel {
|
|
background-image: url(/icons/close.png);
|
|
background-size: 20px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
}
|
|
|
|
.edit {
|
|
background-image: url(/icons/pencil.png);
|
|
right: 30px;
|
|
}
|
|
|
|
.trash {
|
|
background-image: url(/icons/trash.png);
|
|
right: 0px;
|
|
}
|
|
|
|
.icon:hover {
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.blue {
|
|
background-color: rgb(148, 221, 255);
|
|
}
|
|
|
|
.green {
|
|
background-color: rgb(131, 255, 131);
|
|
}
|
|
|
|
.red {
|
|
background-color: rgb(255, 177, 177);
|
|
}
|
|
|
|
@media only screen and (max-width: 600px) {
|
|
.container {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.col {
|
|
width: 100%;
|
|
}
|
|
} |