diff --git a/css/empty-view.css b/css/empty-view.css new file mode 100644 index 00000000..5b728058 --- /dev/null +++ b/css/empty-view.css @@ -0,0 +1,18 @@ +#empty-view { + display: none; + align-items: center; + background-color: #e1e1e1; + padding: 10px; + position: fixed; + z-index: 1; + height: 30px; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + border-radius: 5px; + border: 1px solid #000; +} + +#empty-view p { + margin-left: 10px; +} diff --git a/css/information.css b/css/information.css index 6f02a227..e6ebef1e 100644 --- a/css/information.css +++ b/css/information.css @@ -37,3 +37,40 @@ .info-modal-content { width: 100%; } + +#information-buttons { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + margin-top: 10px; +} + +.information-button { + background-color: #fff; + padding: 5px; + border-radius: 5px; + border: 1px solid black; + margin: 0 5px; +} + +.information-button:hover { + cursor: pointer; + background-color: #c5c5c5; +} + +#information-button { + background-color: #c5c5c5; +} + +#view-information-button { + display: none; +} + +#information-button { + display: none; +} + +#view-information-content { + display: none; +} diff --git a/css/switch-deploy.css b/css/switch-deploy.css new file mode 100644 index 00000000..dea8a671 --- /dev/null +++ b/css/switch-deploy.css @@ -0,0 +1,32 @@ +#switch-deploy { + position: fixed; + left: 10px; + bottom: 10px; + display: flex; + flex-direction: row; + align-items: center; + z-index: 1; + background-color: #fff; + padding: 5px; + border-radius: 5px; + border: 1px solid #000; +} + +#switch-deploy-button { + cursor: pointer; + background-color: #fff; + border: 1px solid #000; + padding: 5px; + border-radius: 5px; + font-family: sans-serif; + font-size: 14px; +} + +#switch-deploy-button:hover { + background-color: #c5c5c5; + cursor: pointer; +} + +#switch-deploy-text { + margin: 0 7px 0 0; +} diff --git a/css/views.css b/css/views.css new file mode 100644 index 00000000..86e4c0c8 --- /dev/null +++ b/css/views.css @@ -0,0 +1,61 @@ +#available-views { + display: flex; + flex-wrap: wrap; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 8px; + max-height: 90px; + overflow-y: auto; +} + +.view-button { + background-color: #f1f1f1; + border: 1px solid #000; + border-radius: 5px; + padding: 8px; + margin: 8px; + cursor: pointer; + height: fit-content; +} + +#views { + display: none; + flex-direction: column; + position: fixed; + top: 25%; + left: 10px; + width: fit-content; + height: 50%; + background-color: #e1e1e1; + padding: 15px; + border: 1px solid #000; + border-radius: 5px; +} + +#view-selector { + display: flex; + flex-direction: column; + justify-content: flex-start; + overflow-y: auto; + overflow-x: hidden; + width: fit-content; +} + +.view-selector-menu::-webkit-scrollbar { + width: 7px; +} + +.view-selector-menu::-webkit-scrollbar-track { + background: #e1e1e1; + border-radius: 5px; +} + +.view-selector-menu::-webkit-scrollbar-thumb { + background: #afafaf; + border-radius: 5px; +} + +.view-selector-menu::-webkit-scrollbar-thumb:hover { + background: #858585; +} diff --git a/img/blue-info.svg b/img/blue-info.svg new file mode 100644 index 00000000..760cf319 --- /dev/null +++ b/img/blue-info.svg @@ -0,0 +1,5 @@ + \ No newline at end of file diff --git a/index.html b/index.html index 47939161..c8222b41 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,9 @@ + + +
@@ -33,14 +36,27 @@Example input file (right click to save): p8_ee_ZH_ecm240.edm4hep.json +
Example input files (right click to save): +
Select a view:
+ +This view has no elements
+Switch to
+ +