Skip to content

Commit

Permalink
Views - default and test reconciled;
Browse files Browse the repository at this point in the history
  • Loading branch information
cityremade committed Feb 3, 2025
1 parent f6a5a79 commit 00953cf
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 353 deletions.
148 changes: 45 additions & 103 deletions public/views/_default.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,32 +108,27 @@
}

#Map {
grid-row: 1;
grid-column: 3;
position: relative;
}

#Map .ol-scale-line {
right: 5px;
top: 5px;
position: fixed;
}

.map-attribution > .logo {
pointer-events: auto;
height: 1em;
#OL {
width: 100%;
height: 100vh;
position: absolute;
}



#mapButton > * {
pointer-events: auto;
.map-attribution {
padding-left: 4em;
}

#mapButton .mask-icon.lock-open {
background-color: #afb42b;
#ctrl-panel {
transform: rotateY(180deg);
}

#mapButton .mask-icon.logout {
background-color: #b71c1c;
#ctrl-panel>div {
transform: rotateY(180deg);
}

#ctrls {
Expand All @@ -156,14 +151,14 @@
overflow: scroll;
}

#ctrl-tabs > .locations.mask-icon.active {
-webkit-mask-image: url('{{dir}}/public/icons/icon-location.svg');
mask-image: url('{{dir}}/public/icons/icon-location.svg');
body {
overflow-y: scroll;
overflow-x: hidden;
}

#ctrl-panel {
#Map {
height: calc(100% - 50px);
overflow-y: auto;
width: 100%;
}

#OL {
Expand All @@ -182,99 +177,45 @@

}
</style>

@media only screen and (max-width: 768px) {
html {
overflow: scroll;
}

body {
overflow-y: scroll;
overflow-x: hidden;
}

#Map {
height: calc(100% - 50px);
width: 100%;
}

#OL {
width: 100%;
height: 100%;
}

#mapButton {
position: fixed;
top: 0;
left: 0;
height: 100%;
}

#mapButton > button,
#mapButton > a {
margin-bottom: 10px;
background-color: white;
box-shadow: 1px 1px 3px #777;
border-radius: 50%;
opacity: 0.9;
padding: 5px;
width: 3em;
height: 3em;
}

#ctrls {
width: 100%;
height: 100%;
position: relative;
}

#ctrls-divider {
display: none;
}

.mobile-hidden {
visibility: hidden;
}

.mobile-display-none {
display: none !important;
}

<div id="ctrl-tabs" class="hover">
<div data-id="layers" class="active material-symbols-outlined">

layers

</div>
<div data-id="locations" class="material-symbols-outlined">
location_on
</div>


</head>
<body style="grid-template-rows: auto 0 0;">

<div id="Map">

<div id="OL"></div>

</div>

<div id="mapButton" class="btn-column"></div>

<div id="tabview-divider"></div>

<div
id="Tabview"
class="tabview mobile-display-none desktop-display-none"
></div>


<div id="Tabview" class="tabview mobile-display-none desktop-display-none"></div>

<div id="ctrls-divider"></div>

<div id="ctrls" class="lighter-background">

<div id="ctrl-tabs" class="hover">
<div data-id="layers" class="mask-icon layers active"></div>
<div data-id="locations" class="mask-icon locations"></div>
<div data-id="layers" class="active material-symbols-outlined">

layers

</div>
<div data-id="locations" class="material-symbols-outlined">
location_on
</div>

</div>

<div id="ctrl-panel">
<div id="layers" class="active"></div>
<div id="locations"></div>
</div>

</div>
</body>


<script type="module">
console.log(`MAPP v${mapp.version}`);
Expand Down Expand Up @@ -541,4 +482,5 @@
document.getElementById('mapButton').append(mapp.utils.html.node`
<div class="mobile-display-none" style="height: 60px;">`);
</script>
</body>
</html>
Loading

0 comments on commit 00953cf

Please sign in to comment.