diff --git a/gz3d/client/style/gz3d-hbp.css b/gz3d/client/style/gz3d-hbp.css new file mode 100644 index 0000000000000000000000000000000000000000..e27b42ba911e4491e69e544b9854a2d16bc90379 --- /dev/null +++ b/gz3d/client/style/gz3d-hbp.css @@ -0,0 +1,753 @@ +/* general */ +body +{ + font-size-adjust: 0.5; +} +input:invalid +{ + box-shadow: none; +} +input[type=number] +{ + -moz-appearance:textfield; +} +input[type=number]::-webkit-outer-spin-button, +input[type=number]::-webkit-inner-spin-button +{ + -webkit-appearance: none; + margin: 0; +} +.ui-content +{ + overflow: hidden; +} +/* header */ +.header-button +{ + float: left; + height: 1.45em; + width: 1.45em; + padding: 0.65em;; +} +.header-button img +{ + height: 1.45em; +} +#clock-touch +{ + z-index: 100; +} +#clock-touch > p +{ + text-align: right; +} +#clock-mouse > p +{ + margin: 0; + margin-right: 0.25em; + text-align: right; +} +/* tabs */ +.tab +{ + width: 0; + height: 4em; + border-left: 2em solid; + border-top: 1em solid transparent; + border-bottom: 1em solid transparent; + z-index: 1001; + position: absolute; + left: 0em; +} +.tab img +{ + position: relative; + left: -1.7em; + top: 1.2em; + height: 1.45em; +} +.tab:nth-of-type(1) +{ + top: 1.8em; +} +.tab:nth-of-type(2) +{ + top: 7.8em; +} +.tab:nth-of-type(3) +{ + top: 13.8em; +} +/* panel */ +#leftPanel +{ + height: 100%; + position: absolute; + left: 0; + z-index: 1002; +} +.panelsGroup +{ + margin-left: 1em; + height: 100%; + position: absolute; + top: 0; +} +.leftPanels +{ + display: none; + height: 100%; + width: 23em; +} +.panelContent +{ + height: calc(100% - 2.51em); + margin-top: 0.01em; +} +.panelTitle +{ + width: 100%; + height: 2.5em; + line-height: 1.8em; +} +.panelTitle h3 +{ + margin: 0.3em; + float: left; + width: calc(100% - 1.5em); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.panelTitle img +{ + height: 1.2em; + margin: 0.3em; + position: absolute; + right: 0; + top: 0.3em; +} +.leftPanels ul +{ + list-style: none; + width: 21em; + padding: 0em; + padding-left: 1em; + margin: 0em; +} +.clickable:hover +{ + cursor: pointer; +} + +.insertMenus +{ + display : none; +} + +/* main menu*/ +#mainMenu li +{ + left: -1em; + padding: 0; + margin: 0; + width: 23em; +} +.collapsible_header +{ + font-size: 1.2em; +} +.collapsible_item +{ + font-size: 0.9em; + color: #bdbdbd; +} +/* insert menu */ +.insertMenuItem +{ + width: 7em; + height: 6.5em; + margin-left: 1.3em; + float: left; +} +.insertMenuItem img +{ + height: 5em; + max-width: 6em; +} +.insertMenuItem h1 +{ + font-size: 1em; + margin: 0em; + width: 100%; +} +.insertMenuItemLight img +{ + height: 4em; + margin-top: 0.6em; +} +.insertMenuCategoryItem +{ + width: calc(100% - 5em); +} +.insertMenuCategoryItem img +{ + vertical-align: middle; + margin-left: 1em; + height: 4em; + max-width: 4em; + padding-top: 1em; +} +.insertMenuCategoryItemLight > img:nth-child(5) +{ + display: none; +} + +a[id^="insert-entity-"] +{ + text-decoration: none; +} + +/* world tree */ +.expandableTree +{ + font-weight: bolder; + padding-left: 0.5em; + width: calc(100% - 0.5em); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-shadow: none; + font-size: 1.2em; + background-color: #333333; + border-top: 1px solid #222222; + border-bottom: 1px solid #222222; + line-height: 2em; +} +.expandableTree:hover, +.expandableTree:active +{ + background-color: #373737; +} +.notExpandableTree +{ + padding-left: 1.6em; + width: calc(100% - 1.6em); +} +.treeItem +{ + font-size: 1em; + line-height: 2em; + padding: 0; + width: 23em; + clear: both; + margin-left: -1em; +} +.treeItemImg +{ + height: 2em; + width: 3.5em; + text-align: center; + float: left; +} +.treeItemImg img +{ + height: 1.2em; + vertical-align: middle; +} +.treeItemTitle +{ + height: 2em; + width: 10.5em; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + float: left; +} +.unselectedTreeItem +{ + background-color: #2a2a2a; +} +.selectedTreeItem +{ + background-color: #aaaaaa; +} +/* property panel */ +.propertyPanelImg +{ + text-align: center; + clear: both; +} +.propertyPanelImg > img +{ + height: 5em; +} +.propertyPanelHeader +{ + text-align: center; + clear: both; +} +.propertyPanelHeader > h4 +{ + background-color: #aaaaaa; + float: left; + margin: 0; +} +.propertyPanelHeader > h4:first-child +{ + width: 60%; +} +.propertyPanelHeader > h4:nth-child(2) +{ + width: 40%; +} +/* Property general */ +.property div +{ + float: left; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + position: relative; + text-shadow: none; + font-size: 0.9em; +} +.property > div:first-child +{ + font-weight:bolder; + padding-left: 1.7em; + width: calc(60% - 1.7em); +} +.property > div:nth-child(2) +{ + width: 40%; +} +.propertyToggle +{ + text-align: right; + padding-right: 0.3em; + width: calc(40% - 0.3em) !important; +} +.propertyToggle > div:nth-child(2) +{ + float: right; + width: 3em; + text-align: left; + padding-left: 0.2em; + font-size: 1em; +} +.propertyToggle img +{ + vertical-align: middle; + height: 0.8em; +} +.propertyNumber +{ + text-align: right; + padding-right: 2em; + width: calc(40% - 2em) !important; +} +.propertyNumber div:first-child +{ + text-align: right; + float:right; + line-height: inherit; +} +.propertyNumberEdit div +{ + margin: 0; +} +.propertyNumberEdit input +{ + margin: 0; + padding: 0; + border: 0; + width: 80%; + background-color: #2a2a2a; + color: #ffffff; + text-align: right; + float:right; + padding-right: 2em; +} +.propertyUnit +{ + position: absolute !important; + right: 1em; +} +.propertyUnit3 +{ + font-size: 0.75em !important; + line-height: inherit !important; +} +.propertyUnit4 +{ + font-size: 0.6em !important; + right: 0.3em; +} +.expandableProperty +{ + font-weight: bolder; + padding-left: 0.2em; + width: calc(100% - 0.2em); + float: left; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-shadow: none; + font-size: 0.9em; +} +.expandableProperty +{ + font-size: 1.2em; + line-height: 1.9em; +} +.expandableProperty:hover, +.expandableProperty:active +{ + background-color: #2e2e2e; +} +.expandableProperty div +{ + position: relative; + float: left; + width: calc(60% - 0.2em); +} +.expandableProperty > div:nth-child(2) +{ + position: relative; + float: left; + width: 40%; +} +.expandableProperty img +{ + vertical-align: middle; + height: 1em; +} +.expandedContent +{ + display: none; +} +.colorDisplay +{ + display: inline-block; + height: 1em; + width: calc(40% - 2em) !important; + border: 1px solid white; +} +.propertyColorEdit +{ + height: 100%; +} +.propertyColorEdit div +{ + background-color: #aaaaaa !important; + padding: 0; + margin: 0; + height: 100%; + border: none; +} +.propertyColorEdit input +{ + padding: 0; + margin: 0; + min-height: 1em; + height: 1.2em; +} +.colorDisplay +{ + margin-top: 0.3em; +} +/* Level 1 */ +.propertyLevel1 div +{ + font-size: 1.2em; + line-height: 1.9em; +} +.propertyLevel1 > div:first-child +{ + padding-left: 1.3em; + width: calc(60% - 1.3em); +} +/* Level 2 */ +.propertyLevel2 div +{ + font-size: 0.8em; +} +.propertyLevel2 > div:first-child +{ + padding-left: 2.8em; + width: calc(60% - 2.8em); +} +.expandableLevel2 +{ + padding-left: 1.7em; + width: calc(100% - 1.7em); + font-size: 0.8em; +} +.expandableLevel2 img +{ + height: 0.8em; +} +.propertyLevel2 div, +.propertyLevel2 input +{ + font-size: 1.1em; + line-height: 1.8em; + height: 1.8em; +} +.propertyLevel2 > div:first-child +{ + padding-left: 2.3em; + width: calc(60% - 2.3em); +} +.expandableLevel2 +{ + font-size: 1.1em; + line-height: 1.8em; + padding-left: 1.2em; + width: calc(100% - 1.2em); +} +/* Level 3 */ +.propertyLevel3 div +{ + font-size: 0.7em; +} +.propertyLevel3 > div:first-child +{ + padding-left: 4.5em; + width: calc(60% - 4.5em); +} +.expandableLevel3 +{ + padding-left: 3.5em; + width: calc(100% - 3.5em); + font-size: 0.7em; +} +.expandableLevel3 img +{ + height: 0.7em; +} +.propertyLevel3 div, +.propertyLevel3 input +{ + font-size: 1.0em; + line-height: 1.7em; + height: 1.7em; +} +.propertyLevel3 > div:first-child +{ + padding-left: 3.3em; + width: calc(60% - 3.3em); +} +.expandableLevel3 +{ + font-size: 1.0em; + line-height: 1.7em; + padding-left: 2.4em; + width: calc(100% - 2.4em); +} +/* Level 4 */ +.propertyLevel4 div +{ + font-size: 0.65em; +} +.propertyLevel4 > div:first-child +{ + padding-left: 6.2em; + width: calc(60% - 6.2em); +} +.expandableLevel4 +{ + padding-left: 5.2em; + width: calc(100% - 5.2em); + font-size: 0.65em; +} +.expandableLevel4 img +{ + height: 0.65em; +} +.propertyLevel4 div, +.propertyLevel4 input +{ + font-size: 0.9em; + line-height: 1.6em; + height: 1.6em; +} +.propertyLevel4 > div:first-child +{ + padding-left: 4.3em; + width: calc(60% - 4.3em); +} +.expandableLevel4 +{ + font-size: 1.0em; + line-height: 1.7em; + padding-left: 3.0em; + width: calc(100% - 3.0em); +} +/* Level 5 */ +.propertyLevel5 div +{ + font-size: 0.6em; +} +.propertyLevel5 > div:first-child +{ + padding-left: 7.9em; + width: calc(60% - 7.9em); +} +.propertyLevel5 div, +.propertyLevel5 input +{ + font-size: 0.8em; + line-height: 1.5em; + height: 1.5em; +} +.propertyLevel5 > div:first-child +{ + padding-left: 5.6em; + width: calc(60% - 5.6em); +} +#real-time-update-rate +{ + font-size: 1.1em; + padding-left: 1.4em; + width: calc(60% - 1.4em); +} +/* Background colors */ +.redBg div +{ + background-color: #772a2a !important; +} +.greenBg div +{ + background-color: #2a772a !important; +} +.blueBg div +{ + background-color: #2a2a77 !important; +} +.lightBg div, +.lightBg input +{ + background-color: #414141 !important; +} +/* model popup */ +#model-popup +{ + width: 12em; + height: 0em; + border: none; +} +/* narrow screens*/ +@media (max-width: 35em) +{ + /* panel */ + .leftPanels + { + width: 10.5em; + } + .leftPanels ul + { + width: 8.5em; + } + /* main menu */ + #mainMenu li + { + width: 10.5em; + } + /* insert menu */ + .insertMenuItem + { + width: calc(100% - 3.2em); + height: 4.3em; + margin-left: 0.5em; + } + .insertMenuItem img + { + height: 3.3em; + max-width: 4em; + } + .insertMenuItem h1 + { + font-size: 0.7em; + } + .insertMenuItemLight img + { + height: 2.7em; + margin-top: 0.4em; + } + .insertMenuCategoryItem img + { + margin-left: 0; + padding-top: 0; + } + .insertMenuCategoryItem > img:nth-child(2), + .insertMenuCategoryItem > img:nth-child(3), + .insertMenuCategoryItemLight > img:nth-child(4) + { + display: none; + } + .insertMenuCategoryItemLight > img:nth-child(5) + { + display: initial; + } + /* world tree */ + .treeItem + { + width: 10.5em; + } + .treeItemTitle + { + width: 6.5em; + } +} +/* short screens*/ +@media (max-height: 35em) +{ + /* tabs */ + .tab + { + height: 2em; + } + .tab img + { + left: -1.6em; + top: 0.4em; + height: 1.3em; + } + .tab:nth-of-type(1) + { + top: 1.8em; + } + .tab:nth-of-type(2) + { + top: 5.8em; + } + .tab:nth-of-type(3) + { + top: 9.8em; + } +} + +.viewContainer { + position: absolute; + minWidth: 50px; + maxWidth: 100%; + maxHeight: 100%; + boxShadow: 0px 0px 0px 3px rgba(0,0,0,0.3); + borderRadius: 2px; + background: rgba(0,0,0,0); +} + +.viewContainer > .frustumCheckbox { + position: absolute; + left: 0px; + top: 0px; +} + +.viewContainer > .frustumLabel { + position: absolute; + left: 20px; + top: 0px; +} + diff --git a/gz3d/src/gzmultiview.js b/gz3d/src/gzmultiview.js index 5837c80339a3cf5ed63c22b1bfcd0c5418d0bdc2..d234f66c16f629ff4c053c1370c13252f2f73f84 100644 --- a/gz3d/src/gzmultiview.js +++ b/gz3d/src/gzmultiview.js @@ -139,7 +139,7 @@ GZ3D.MultiView.prototype.createViewContainer = function(displayParams, name) return undefined; } - viewContainer.className += 'viewContainer'; + viewContainer.className += (viewContainer.className.length > 0) ? ' viewContainer' : 'viewContainer'; // z-index var zIndexTop = parseInt(this.mainContainer.style.zIndex, 10) + this.views.length + 1;