Improving dynamic structuring within selection UI.
The server list is now centered. The minimum height was set to 40%, with a maximum of 65%. The UI will now scale to ideally fit the given number of servers. Four servers can be shown before scrolling enables.
This commit is contained in:
parent
9d04eb2227
commit
61538fdde5
@ -2,7 +2,7 @@
|
|||||||
#serverSelectContent {
|
#serverSelectContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 75%;
|
height: 75%;
|
||||||
}
|
}
|
||||||
@ -19,19 +19,21 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
overflow-y: scroll;
|
justify-content: center;
|
||||||
padding: 0px 5px;
|
max-height: 65%;
|
||||||
height: 65%;
|
min-height: 40%;
|
||||||
}
|
}
|
||||||
#serverSelectList::-webkit-scrollbar {
|
#serverSelectListScrollable {
|
||||||
|
padding: 0px 5px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
|
#serverSelectListScrollable::-webkit-scrollbar {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
}
|
}
|
||||||
|
#serverSelectListScrollable::-webkit-scrollbar-track {
|
||||||
#serverSelectList::-webkit-scrollbar-track {
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
#serverSelectListScrollable::-webkit-scrollbar-thumb {
|
||||||
#serverSelectList::-webkit-scrollbar-thumb {
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.50);
|
box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.50);
|
||||||
}
|
}
|
||||||
@ -42,20 +44,28 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 5px 0px;
|
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
transition: 0.25s ease;
|
transition: 0.25s ease;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
background: rgba(131, 131, 131, 0.25);
|
||||||
}
|
}
|
||||||
.serverListing[selected] {
|
.serverListing[selected] {
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background: rgba(255, 255, 255, 0.25);
|
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
}
|
}
|
||||||
.serverListing:hover {
|
.serverListing:hover {
|
||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
}
|
}
|
||||||
|
#serverSelectListScrollable > .serverListing:not(:first-child):not(:last-child) {
|
||||||
|
margin: 5px 0px;
|
||||||
|
}
|
||||||
|
#serverSelectListScrollable > .serverListing:first-child {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
#serverSelectListScrollable > .serverListing:last-child {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.serverListingImg {
|
.serverListingImg {
|
||||||
margin: 0px 10px 0px 5px;
|
margin: 0px 10px 0px 5px;
|
||||||
@ -105,6 +115,7 @@
|
|||||||
padding: 0px 8.1px;
|
padding: 0px 8.1px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: 0.25s ease;
|
transition: 0.25s ease;
|
||||||
|
min-height: 20.67px;
|
||||||
}
|
}
|
||||||
#serverSelectConfirm:hover,
|
#serverSelectConfirm:hover,
|
||||||
#serverSelectConfirm:focus {
|
#serverSelectConfirm:focus {
|
||||||
@ -207,6 +218,7 @@
|
|||||||
<div id="serverSelectContent">
|
<div id="serverSelectContent">
|
||||||
<span id="serverSelectHeader">Available Servers</span>
|
<span id="serverSelectHeader">Available Servers</span>
|
||||||
<div id="serverSelectList">
|
<div id="serverSelectList">
|
||||||
|
<div id="serverSelectListScrollable">
|
||||||
<div class="serverListing" selected>
|
<div class="serverListing" selected>
|
||||||
<img class="serverListingImg" src="./assets/images/WesterosSealSquare.png"/>
|
<img class="serverListingImg" src="./assets/images/WesterosSealSquare.png"/>
|
||||||
<div class="serverListingDetails">
|
<div class="serverListingDetails">
|
||||||
@ -262,6 +274,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div id="serverSelectActions">
|
<div id="serverSelectActions">
|
||||||
<button id="serverSelectConfirm">Select</button>
|
<button id="serverSelectConfirm">Select</button>
|
||||||
<a href="javascript:void(0);" id="serverSelectCancel">Cancel</a>
|
<a href="javascript:void(0);" id="serverSelectCancel">Cancel</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user