Skip to content

Instantly share code, notes, and snippets.

@Bigismall
Created October 19, 2023 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bigismall/5f87cdbb6fb192a13caea4b9fd1df42e to your computer and use it in GitHub Desktop.
Save Bigismall/5f87cdbb6fb192a13caea4b9fd1df42e to your computer and use it in GitHub Desktop.
Custom styles for GeoFS "Aircraft Menu" - just to reduce jumping
/*For community contributed list items */
.geofs-aircraft-list.geofs-visible > li.geofs-list-collapsible-item.geofs-list-item-expanded {
height:auto;
max-height:max-content;
}
.geofs-aircraft-list.geofs-visible > li.geofs-list-collapsible-item.geofs-list-item-expanded li {
min-height: 40px;
height: 40px;
}
/* For origin planes list */
.geofs-aircraft-list li {
display:block;
min-height: 60px;
height:auto;
max-height: 120px;
overflow:hidden;
}
.geofs-aircraft-list li:hover {
background-color: inherit;
}
.geofs-aircraft-list li img {
display: inline-block;
width: 80px;
max-height: 60px;
margin-right: 10px;
}
.geofs-aircraft-list li [data-livery] {
padding-left: 10px;
display: none;
font-size: 12px;
line-height: 16px;
vertical-align: top;
}
.geofs-aircraft-list li [data-livery] img {
display:block;
width: 50px;
}
.geofs-aircraft-list li:hover [data-livery] {
display: inline-block;
max-width: 100px;
}
.geofs-aircraft-list li:hover [data-livery]:first-of-type {
padding-left:20px;
margin-left: 20px;
border-left: 1px solid darkgray;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment