Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CSS to support scrolling in layers toolbar in the Cesium map view #2249

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/css/map-view.css
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
--headerHeight: 80px;
position: relative;
height: 100%;
min-height: calc(100vh - var(--headerHeight));
min-height: 100%;
width: 100%;
display: grid;
box-sizing: border-box;
Expand Down Expand Up @@ -229,6 +229,8 @@
top: 0;
left: 0;
height: 100%;
overflow: hidden;
width: min-content;
/* required to be placed above map widget in firefox: */
z-index: 1;
}
Expand Down Expand Up @@ -395,6 +397,7 @@ represents 1 unit of the given distance measurement. */
class .toolbar, is not hidden so that the links (tabs) are still visible when the
toolbar is closed */
display: none;
overflow: hidden;
}

.toolbar--open .toolbar__all-content {
Expand All @@ -408,10 +411,12 @@ represents 1 unit of the given distance measurement. */
justify-content: center;
/* hide unless the content section is active */
display: none;
overflow: auto;
}

.toolbar__content--active {
padding-top: 1rem;
padding-right: 1rem;
display: flex;
}

Expand Down
7 changes: 7 additions & 0 deletions src/css/metacatui-common.css
Original file line number Diff line number Diff line change
Expand Up @@ -4875,6 +4875,12 @@ i.toc-sub-item {
* Portals
********************************************/

.PortalView {
height: 100%;
display: grid;
grid-template-rows: 40px 0px 100fr 0px;
}

.portal-view{
width: calc(100% + 80px);
margin-left: -40px;
Expand Down Expand Up @@ -5458,6 +5464,7 @@ i.toc-sub-item {
/** The Portal Visualization View **/
.portal-viz-section-view{
background-color: black;
height: 100%;
}
.portal-viz-section-view iframe{
box-sizing: border-box;
Expand Down
5 changes: 5 additions & 0 deletions src/js/themes/knb/css/metacatui.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@

/* Portal & Editor (minimal header common to both views)
-------------------------------------------------- */
.PortalView {
/* Rows template differs from metacatui-common.css due to hiding #HeaderContainer. */
grid-template-rows: 40px 100fr;
}

#Navbar .navbar-inner:before, .navbar-inner:after {
display: none;
}
Expand Down
Loading