Files
gokayfem-ComfyUI-Texture-Si…/web/style/threeStyle.css
T
2026-07-28 18:42:52 +03:00

167 lines
3.0 KiB
CSS

:root {
color-scheme: dark;
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
background: #14171c;
color: #f2f5f8;
}
* {
box-sizing: border-box;
}
html,
body,
#viewer,
#canvas-container {
width: 100%;
height: 100%;
margin: 0;
overflow: hidden;
}
#viewer {
position: relative;
min-height: 380px;
background:
radial-gradient(circle at 50% 15%, #303640 0, #14171c 60%);
}
#canvas-container canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
}
#status,
#error {
position: absolute;
inset: 0.75rem auto auto 50%;
max-width: min(30rem, calc(100% - 2rem));
padding: 0.55rem 0.8rem;
border: 1px solid #46505e;
border-radius: 8px;
background: rgb(20 23 28 / 88%);
box-shadow: 0 8px 30px rgb(0 0 0 / 30%);
transform: translateX(-50%);
text-align: center;
pointer-events: none;
}
#error {
border-color: #b64c5c;
color: #ffd7dc;
}
#material-panel {
position: absolute;
inset: 0.75rem 0.75rem auto auto;
display: grid;
width: min(20rem, calc(100% - 1.5rem));
max-height: calc(100% - 6rem);
gap: 0.65rem;
overflow: auto;
padding: 0.8rem 1rem;
border: 1px solid rgb(255 255 255 / 14%);
border-radius: 12px;
background: rgb(20 23 28 / 90%);
box-shadow: 0 12px 40px rgb(0 0 0 / 40%);
backdrop-filter: blur(12px);
}
#material-panel[hidden] {
display: none;
}
.panel-heading {
display: flex;
gap: 1rem;
align-items: center;
justify-content: space-between;
}
#close-material {
width: 2rem;
padding: 0;
font-size: 1.25rem;
}
#material-panel label:not(.checkbox) {
display: grid;
grid-template-columns: 7.5rem 1fr;
gap: 0.55rem;
align-items: center;
color: #d0d6df;
font-size: 0.78rem;
}
#material-panel input[type="range"],
#material-panel input[type="number"] {
width: 100%;
min-width: 0;
}
.checkbox {
display: flex;
gap: 0.45rem;
align-items: center;
font-size: 0.8rem;
}
.toolbar {
position: absolute;
inset: auto 0.65rem 0.65rem;
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
align-items: center;
padding: 0.5rem;
border: 1px solid rgb(255 255 255 / 12%);
border-radius: 10px;
background: rgb(20 23 28 / 88%);
box-shadow: 0 8px 30px rgb(0 0 0 / 35%);
backdrop-filter: blur(10px);
}
.toolbar label {
display: flex;
gap: 0.35rem;
align-items: center;
color: #ccd3dc;
font-size: 0.72rem;
}
button,
select,
input[type="number"] {
min-height: 2rem;
padding: 0.35rem 0.55rem;
border: 1px solid #46505e;
border-radius: 6px;
background: #252b34;
color: inherit;
font: inherit;
}
button {
cursor: pointer;
}
button:hover:not(:disabled) {
border-color: #67a7d8;
background: #303a47;
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
outline: 2px solid #71b9eb;
outline-offset: 2px;
}
button:disabled,
select:disabled {
cursor: not-allowed;
opacity: 0.5;
}