Added dropdowns

This commit is contained in:
dpassoni
2023-01-17 20:58:34 +01:00
parent baf288c6a0
commit 280799b27a
10 changed files with 396 additions and 45 deletions

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,83 @@
.olympus-dropdown {
height: 30px;
background-color: #FFFD;
z-index: 1000;
border-radius: 2px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: var(--background-color);
padding-left: 5px;
display: flex;
align-items: center;
cursor: pointer;
font-size: 15px;
}
.olympus-dropdown::before {
content: "";
position: absolute;
height: 30px;
width: 30px;
top: 0px;
right: 0px;
background-color: var(--background-color);
z-index: 1000;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
.olympus-dropdown-open {
border-bottom-left-radius: 0px;
}
.olympus-dropdown-open::after {
content: "";
position: absolute;
top: 11px;
right: 9px;
height: 3px;
width: 3px;
border: solid white;
border-width: 0 3px 3px 0;
padding: 3px;
z-index: 1000;
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
}
.olympus-dropdown-closed::after {
content: "";
position: absolute;
top: 7px;
right: 9px;
height: 3px;
width: 3px;
border: solid white;
border-width: 0 3px 3px 0;
padding: 3px;
z-index: 1000;
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
}
.olympus-dropdown-content {
position: fixed;
overflow: visible;
overflow-y: scroll;
background-color: #FFFD;
z-index: 2000;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
.olympus-dropdown-element {
margin: 2px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: var(--background-color);
cursor: pointer;
opacity: 1;
font-size: 15px;
}
.olympus-dropdown-element:hover {
background-color: var(--highlight-color);
}

View File

@@ -11,7 +11,7 @@
font-family: "Lucida Console", "Courier New", monospace !important;
}
.olympus-panel table{
.olympus-panel table {
margin: 5px;
width: 100%;
}
@@ -33,13 +33,3 @@
color: var(--text-color);
margin: 5px;
}
/* Panels position */
#olympus-unit-info-panel {
height: 100px;
width: 800px;
left: 10px;
bottom: 10px;
z-index: 1000;
display: flex;
}

View File

@@ -1,4 +1,5 @@
@import url("panels.css");
@import url("dropdown.css");
@import url("selectionwheel.css");
@import url("selectionscroll.css");
@import url("unitmarker.css");
@@ -25,9 +26,31 @@ html, body {
width: 100%;
}
#olympus-map-container
#map-container
{
height: 100%;
width: 100%;
}
#unit-info-panel {
height: 100px;
width: 800px;
left: 10px;
bottom: 10px;
z-index: 1000;
display: flex;
}
#scenario-dropdown {
position: fixed;
top: 10px;
left: 10px;
width: 250px;
}
#map-source-dropdown {
position: fixed;
top: 10px;
left: 280px;
width: 250px;
}