UNPKG

@xeokit/xeokit-viewer

Version:
599 lines (508 loc) 11.7 kB
/* Configures HTML generated by ViewerUI */ /* Toolbars and buttons */ .xeokit-toolbar { display: flex; flex-wrap: wrap; justify-content: flex-start; background: transparent; pointer-events: none; padding: 10px; } .xeokit-btn-group { position: relative; display: inline-flex; vertical-align: middle; margin-right: 1.2rem !important; pointer-events: none; } .xeokit-btn { position: relative; flex: 1 1 auto; color: #03103F; background-color: white; text-align: center; vertical-align: middle; border: 2px solid #1d2453; padding: .375rem .75rem; border-radius: .25rem; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; -webkit-appearance: button; overflow: visible; margin: 0 2px 0 0; box-sizing: border-box; align-items: flex-start; pointer-events: all; } .xeokit-btn.disabled { opacity: .55; color: #99A4AD; border: 2px solid #6c757d !important; } .xeokit-btn.active { color: #fff; background-color: #03103F; border-color: #03103F; } .xeokit-btn:hover { color: #477dca; border: 2px solid #477dca; } .xeokit-btn.active:hover { /*color: transparent;*/ color: white; background: #477dca; border: 2px solid #477dca; } .xeokit-btn.disabled:hover { opacity: .55; color: #99A4AD; border: 2px solid #6c757d !important; } /* Tabs */ .xeokit-tabs { line-height: 1.5; padding: 0; /*padding-left: 10px;*/ height: 100%; overflow:hidden; } .xeokit-tabs::before, .xeokit-tabs::after { display: table; content: ''; clear: both; } @media (max-width: 40em) { .xeokit-tabs { } } .xeokit-tabs .xeokit-tab { list-style: none; } @media (min-width: 40em) { .xeokit-tabs .xeokit-tab { display: inline; } } .xeokit-tabs .xeokit-tab:first-child .xeokit-tab-btn { } @media (max-width: 40em) { .xeokit-tabs .xeokit-tab:first-child .xeokit-tab-btn { } } @media (max-width: 40em) { .xeokit-tabs .xeokit-tab:last-child .xeokit-tab-btn { } } .xeokit-tabs .xeokit-tab.active .xeokit-tab-btn { background-color: #03103F; } @media (min-width: 40em) { .xeokit-tabs .xeokit-tab.active .xeokit-tab-btn { background-color: transparent; border-bottom: #CFCFCF solid 3px; margin-bottom: -1px; } } .xeokit-tabs .xeokit-tab.active .xeokit-tab-content { display: block; } .xeokit-tabs .xeokit-tab-btn { font-size: 16px; background-color: transparent; border-top: 2px solid #dcdcdc; color: #CFCFCF; display: block; font-weight: bold; padding: 0.75em 5px; padding-left: 0; padding-right: 10px; text-decoration: none; } @media (min-width: 40em) { .xeokit-tabs .xeokit-tab-btn { font-size: 20px; font-weight: normal; border-top-left-radius: 3px; border-top-right-radius: 3px; border-top: 0; display: inline-block; } } .xeokit-tabs .xeokit-tab-btn:hover { color: #477dca; } .xeokit-tabs .xeokit-tab-btn:focus { outline: none; } .xeokit-tabs .xeokit-tab-content { background: #03103F; display: none; padding-top: 2em; padding-left: 0; padding-right: 0px; width: calc(100% - 0px); height: calc(100% - 30px); } @media (min-width: 40em) { .xeokit-tabs .xeokit-tab-content { float: left; } } .xeokit-tabs .xeokit-btn-group { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 10px; } .xeokit-tabs .xeokit-btn { font-size: 16px; font-weight: normal; position: relative; flex: 1 1 auto; color: #CFCFCF; background-color: transparent; text-align: center; vertical-align: middle; border: 2px solid #CFCFCF; padding: .75rem .75rem; margin: 0 5px 10px 0; border-radius: .35rem; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; -webkit-appearance: button; overflow: visible; box-sizing: border-box; align-items: flex-start; /*font: 400 13.3333px Arial;*/ } .xeokit-tabs .xeokit-btn:hover { color: #477dca; border: 2px solid #477dca; /*background: black;*/ } .xeokit-tabs .xeokit-tab-btn.disabled { opacity: .55; color: #99A4AD; } .xeokit-modelsTab { } .xeokit-modelsTab .xeokit-form-check { padding: 2px 0 2px 15px; line-height: 3ex; } .xeokit-modelsTab .xeokit-form-check input { vertical-align: middle; } .xeokit-modelsTab .xeokit-form-check span { display: inline-block; color: #ffff; background-color: #03103F; padding-left: 3px; width: calc(100% - 30px); vertical-align: middle; } .xeokit-modelsTab .xeokit-form-check span.disabled { color: #99A4AD; background-color: #03103F; } .xeokit-modelsTab .xeokit-form-check span:hover { color: #ffffff; cursor: pointer; background: rgba(255, 255, 255, 0.2); padding-left: 3px; } .xeokit-modelsTab .xeokit-form-check span.disabled:hover { color: #99A4AD; background-color: #03103F; cursor: default; } .xeokit-objectsTab ul { list-style: none; padding-left: 1.75em; } .xeokit-objectsTab ul li { margin: 2px 0; position: relative; width: 500px; line-height: 3ex; } .xeokit-objectsTab ul li a { background-color: #eee; border-radius: 50%; color: #000; display: inline-block; height: 1.5em; left: -1.5em; /*line-height: 1.5em;*/ position: absolute; text-align: center; text-decoration: none; width: 1.5em; } .xeokit-objectsTab ul li a.plus { background-color: #ded; } .xeokit-objectsTab ul li a.minus { background-color: #eee; } .xeokit-objectsTab ul li a:active { top: 1px; } .xeokit-objectsTab ul li input { vertical-align: middle; } .xeokit-objectsTab ul li span { display: inline-block; width: calc(100% - 50px); padding-left: 2px; vertical-align: middle; } .xeokit-objectsTab ul li span:hover { color: #ffffff; cursor: pointer; background: rgba(255, 255, 255, 0.2); padding-left: 2px; vertical-align: middle; } .xeokit-objectsTab .top-right { font-size: small; position: fixed; right: 1em; top: 1em; } .xeokit-objectsTab .highlighted-node { /* Appearance of node highlighted with BIMViewer#showObjectInExplorers() */ border: black solid 1px; background: yellow; color: black; padding-left: 1px; padding-right: 5px; } .xeokit-storeysTab ul { list-style: none; padding-left: 1.75em; } .xeokit-storeysTab ul li { margin: 2px 0; position: relative; width: 500px; line-height: 3ex; } .xeokit-storeysTab ul li a { background-color: #eee; border-radius: 50%; color: #000; display: inline-block; height: 1.5em; left: -1.5em; /*line-height: 1.5em;*/ position: absolute; text-align: center; text-decoration: none; width: 1.5em; } .xeokit-storeysTab ul li a.plus { background-color: #ded; } .xeokit-storeysTab ul li a.minus { background-color: #eee; } .xeokit-storeysTab ul li a:active { top: 1px; } .xeokit-storeysTab ul li input { vertical-align: middle; } .xeokit-storeysTab ul li span { display: inline-block; width: calc(100% - 50px); padding-left: 2px; vertical-align: middle; } .xeokit-storeysTab ul li span:hover { color: white; cursor: pointer; background: rgba(255, 255, 255, 0.2); padding-left: 2px; } .xeokit-storeysTab .top-right { font-size: small; position: fixed; right: 1em; top: 1em; } .xeokit-storeysTab .highlighted-node { /* Appearance of node highlighted with BIMViewer#showObjectInExplorers() */ border: black solid 1px; background: yellow; color: black; padding-left: 1px; padding-right: 5px; } .xeokit-classesTab ul { list-style: none; padding-left: 1.75em; } .xeokit-classesTab ul li { margin: 2px 0; position: relative; width: 500px; line-height: 3ex; } .xeokit-classesTab ul li a { background-color: #eee; border-radius: 50%; color: #000; display: inline-block; height: 1.5em; left: -1.5em; /*line-height: 1.5em;*/ position: absolute; text-align: center; text-decoration: none; width: 1.5em; } .xeokit-classesTab ul li a.plus { background-color: #ded; } .xeokit-classesTab ul li a.minus { background-color: #eee; } .xeokit-classesTab ul li a:active { top: 1px; } .xeokit-classesTab ul li input { vertical-align: middle; } .xeokit-classesTab ul li span { display: inline-block; width: calc(100% - 50px); padding-left: 2px; vertical-align: middle; } .xeokit-classesTab ul li span:hover { color: white; cursor: pointer; background: rgba(255, 255, 255, 0.2); padding-left: 2px; vertical-align: middle; } .xeokit-classesTab .top-right { font-size: small; position: fixed; right: 1em; top: 1em; } .xeokit-classesTab .highlighted-node { /* Appearance of node highlighted with BIMViewer#showObjectInExplorers() */ border: black solid 1px; background: yellow; color: black; padding-left: 1px; padding-right: 5px; } .xeokit-tree-panel { overflow-y: auto; overflow-x: hidden; height: calc(100% - 150px); } /* Context menu */ .xeokit-context-menu { font-family: 'Roboto', sans-serif; font-size: 15px; display: none; z-index: 300000; background: rgba(255, 255, 255, 0.46); border: 1px solid black; border-radius: 6px; padding: 0; width: 200px; } .xeokit-context-menu ul { list-style: none; margin-left: 0; padding: 0; } .xeokit-context-menu ul li { list-style-type: none; padding-left: 10px; padding-right: 20px; padding-top: 4px; padding-bottom: 4px; color: black; border-bottom: 1px solid gray; background: rgba(255, 255, 255, 0.46); cursor: pointer; width: calc(100% - 30px); } .xeokit-context-menu ul li:hover { background: black; color: white; font-weight: bold; } .xeokit-context-menu ul li span { display: inline-block; } .xeokit-context-menu .disabled { display: inline-block; color: gray; cursor: default; font-weight: normal; } .xeokit-context-menu .disabled:hover { color: gray; cursor: default; background: #eeeeee; font-weight: normal; } /* Busy modal dialog */ .xeokit-busy-modal-backdrop { position:relative; } .xeokit-busy-modal { display: none; position: absolute; z-index: 1000000; padding-top: 100px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(3, 16, 63, 0.4); } .xeokit-busy-modal-content { position: relative; background-color: #FFFFFF; margin: auto; padding: 0; border: 2px solid #888; border-radius: 0.5em; width: 400px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -webkit-animation-name: xeokit-busy-modal-animatetop; -webkit-animation-duration: 0.6s; animation-name: xeokit-busy-modal-animatetop; animation-duration: 0.6s } /* Add Animation */ @-webkit-keyframes xeokit-busy-modal-animatetop { from { opacity: 0 } to { opacity: 1 } } @keyframes xeokit-busy-modal-animatetop { from { opacity: 0 } to { opacity: 1 } } .xeokit-busy-modal-message { font-size: 22px; padding: 2px 14px; background-color: #FFFFFF; color: #212529; } .xeokit-busy-modal-body { padding: 2px 14px; margin: 20px 2px }