mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-23 08:05:28 +08:00
280 lines
4.4 KiB
SCSS
280 lines
4.4 KiB
SCSS
body {
|
|
margin: 0;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
code {
|
|
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
monospace;
|
|
}
|
|
|
|
.App {
|
|
position: relative;
|
|
height: 100vh;
|
|
}
|
|
|
|
$base-color1: #292d39;
|
|
$base-color2: #222831;
|
|
$base-color3: #393e46;
|
|
$accent-color1: #db5200;
|
|
$accent-color2: #ff8600;
|
|
$accent-color3: #ffd369;
|
|
$highlight-color1: #606980;
|
|
$highlight-color2: #eeeeee;
|
|
$highlight-color3: #ffffff;
|
|
|
|
.banner {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 50px;
|
|
width: 100%;
|
|
z-index: 1000;
|
|
background-color: $base-color2;
|
|
|
|
.banner-button {
|
|
margin: 10px;
|
|
float: left;
|
|
}
|
|
|
|
.banner-logo {
|
|
margin: 10px;
|
|
margin-right: 120px;
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
.App-body {
|
|
position: absolute;
|
|
top: 50px;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
$SidePanel-width: 400px;
|
|
$custom-border: solid 1px $base-color1;
|
|
|
|
.SidePanel {
|
|
position: absolute;
|
|
background-color: $base-color2;
|
|
color: $highlight-color2;
|
|
top: 0;
|
|
width: $SidePanel-width;
|
|
right: 0;
|
|
bottom: 0;
|
|
border: $custom-border;
|
|
z-index: 999;
|
|
text-align: center;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.Leva-container > div {
|
|
position: relative;
|
|
margin: auto;
|
|
width: 100%;
|
|
padding: 10px;
|
|
}
|
|
|
|
.simple-tabpanel-0 {
|
|
padding: 100px;
|
|
}
|
|
|
|
.Scene-container {
|
|
height: 500px;
|
|
}
|
|
|
|
// Your variable overrides
|
|
$sidebar-color: $accent-color3 !default;
|
|
$sidebar-width: 100% !default;
|
|
@import '~react-pro-sidebar/dist/scss/styles.scss';
|
|
|
|
// ------------------------------------
|
|
// Status Panel styling
|
|
.StatusPanel {
|
|
display: block;
|
|
background-color: $base-color1;
|
|
// height: 170px;
|
|
}
|
|
|
|
.StatusPanel .StatusPanel-play-button {
|
|
width: 100%;
|
|
padding: 10px;
|
|
}
|
|
|
|
.StatusPanel .StatusPanel-button-group {
|
|
margin: 10px;
|
|
}
|
|
|
|
.StatusPanel .StatusPanel-hide-scene-button {
|
|
margin: 12px;
|
|
}
|
|
|
|
.StatusPanel .WebSocketUrlField {
|
|
// display: block;
|
|
// float: left;
|
|
margin: 10px;
|
|
}
|
|
|
|
.StatusPanel-metrics {
|
|
background-color: $base-color2;
|
|
margin: 5px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.StatusPanel-metrics div {
|
|
position: relative;
|
|
font-size: 14px;
|
|
display: block;
|
|
text-align: left;
|
|
margin-top: 3px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
// ------------------------------------
|
|
// Landing Modal styling
|
|
|
|
.LandingModal-box {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 600px; // 400
|
|
background-color: $base-color2;
|
|
border: 2px solid #000;
|
|
// box-shadow: 24px 24px;
|
|
padding: 32px;
|
|
}
|
|
|
|
.LandingModal-box .WebSocketUrlField {
|
|
width: 100%;
|
|
}
|
|
|
|
.LandingModal-box .LandingModal-button {
|
|
margin: 3px;
|
|
}
|
|
|
|
// ------------------------------------
|
|
// Camera Pane
|
|
|
|
.CameraPanel {
|
|
}
|
|
|
|
.CameraPanel-top-button {
|
|
display: inline-block;
|
|
margin: 4px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.CameraPanel-slider-container {
|
|
margin-top: 40px;
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.CameraPanel-slider-button-container {
|
|
margin-bottom: 10px;
|
|
|
|
button {
|
|
margin: 4px;
|
|
}
|
|
}
|
|
|
|
.CameraList-container {
|
|
position: relative;
|
|
padding: 2px;
|
|
}
|
|
|
|
.CameraList-row {
|
|
padding: 4px;
|
|
border: solid 1px $highlight-color1;
|
|
text-align: left;
|
|
}
|
|
|
|
.CameraList-row-buttons {
|
|
display: inline-block;
|
|
float: right;
|
|
}
|
|
|
|
.CameraList-row-time-interval > div {
|
|
display: inline-block;
|
|
text-align: center;
|
|
margin: 10px;
|
|
width: 100px;
|
|
}
|
|
|
|
// ------------------------------------
|
|
// Viewer Window
|
|
|
|
.canvas-container-main,
|
|
.WebRTCVideo,
|
|
.ViewerWindow-render-crop-container {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: $SidePanel-width;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
border: $custom-border;
|
|
}
|
|
|
|
.WebRTCVideo {
|
|
z-index: 1;
|
|
}
|
|
|
|
.ViewerWindow-render-crop-container {
|
|
z-index: 2;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.canvas-container-main {
|
|
z-index: 3;
|
|
}
|
|
|
|
.WebRTCVideo-video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: fill;
|
|
}
|
|
|
|
.ViewerWindow-render-crop {
|
|
display: flex;
|
|
background-color: black;
|
|
z-index: 1;
|
|
opacity: 0.2;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
$viewer_button_size: 50px;
|
|
|
|
.ViewerWindow-camera-toggle {
|
|
position: absolute;
|
|
margin: auto;
|
|
text-align: center;
|
|
margin-top: 10px;
|
|
z-index: 1000;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.ViewerWindow-buttons {
|
|
position: absolute;
|
|
margin: 10px;
|
|
top: 0px;
|
|
right: $SidePanel-width;
|
|
z-index: 1000;
|
|
width: $viewer_button_size;
|
|
}
|
|
|
|
.ViewerWindow-iconbutton {
|
|
margin-top: 5px;
|
|
}
|