mirror of
https://github.com/linuxserver/emulatorjs.git
synced 2026-02-06 04:37:47 +08:00
342 lines
4.5 KiB
CSS
342 lines
4.5 KiB
CSS
/* Main page layout not mobile compatible */
|
|
#side {
|
|
position:fixed;
|
|
width: 15vw;
|
|
top: 40px;
|
|
left: 0;
|
|
height:calc(100vh - 40px);
|
|
overflow: auto;
|
|
}
|
|
|
|
#main {
|
|
position:fixed;
|
|
width: 85vw;
|
|
top: 40px;
|
|
right: 0;
|
|
height:calc(100vh - 40px);
|
|
overflow: auto;
|
|
}
|
|
|
|
.top {
|
|
position:fixed;
|
|
width: 100vw;
|
|
height: 40px;
|
|
top: 0;
|
|
left: 0;
|
|
border-bottom: 2px solid #000;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
float: left;
|
|
}
|
|
|
|
.nav-buttons {
|
|
display: flex;
|
|
float: right;
|
|
padding: 8px;
|
|
}
|
|
|
|
.top-item {
|
|
cursor: pointer;
|
|
padding: 10px;
|
|
border-right: 2px solid #000;
|
|
}
|
|
|
|
.top-item:hover {
|
|
background-color: #D3D3D3;
|
|
}
|
|
|
|
.readme {
|
|
padding: 10px
|
|
}
|
|
|
|
.centered {
|
|
text-align: center;
|
|
}
|
|
|
|
/* Roms page 2 column layout */
|
|
h3 {
|
|
margin-top: .25em;
|
|
margin-bottom: .25em;
|
|
}
|
|
|
|
#right {
|
|
grid-area: unidentified;
|
|
}
|
|
|
|
#left {
|
|
grid-area: identified;
|
|
}
|
|
|
|
.wrapper {
|
|
display: grid;
|
|
grid-template-columns: 49.5% 49.5%;
|
|
grid-template-areas:
|
|
"identified unidentified";
|
|
}
|
|
|
|
.wrapper {
|
|
margin: 0;
|
|
}
|
|
|
|
.wrapper p {
|
|
margin: 0;
|
|
}
|
|
|
|
.itemwrapper {
|
|
display: table;
|
|
border: 1px solid black;
|
|
width: 100%;
|
|
}
|
|
|
|
.itemwrapper + .itemwrapper {
|
|
border-top: 0;
|
|
}
|
|
|
|
.item {
|
|
width: 100%;
|
|
display: table-cell;
|
|
}
|
|
|
|
.itemwrapper:hover {
|
|
opacity: .8;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.identifybutton {
|
|
padding: 0;
|
|
margin-left: 20px;
|
|
}
|
|
|
|
/* Hidden elements */
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Json editor */
|
|
#editor {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Button/Links hover effect */
|
|
.hover:hover {
|
|
background-color: #D3D3D3;
|
|
}
|
|
|
|
/* Rom folder cards */
|
|
.card {
|
|
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
|
|
border: 1px solid #000;
|
|
transition: 0.3s;
|
|
width: 130px;
|
|
text-align: center;
|
|
margin: 5px;
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.card p {
|
|
margin: 1px;
|
|
}
|
|
|
|
.card h2 {
|
|
margin: 5px;
|
|
}
|
|
|
|
.scanbutton {
|
|
width: 80px;
|
|
height: 40px;
|
|
border: 2px solid #000;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
margin: 5px;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.cardcontainer {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
}
|
|
|
|
/* General purpose buttons */
|
|
|
|
.button {
|
|
border: 2px solid #000;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
margin: 5px;
|
|
}
|
|
|
|
/* Side menu table */
|
|
|
|
.sideitem {
|
|
width:calc("100% - 4px");
|
|
height: 30px;
|
|
line-height: 30px;
|
|
border: 2px solid #000;
|
|
border-top: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
text-align: center;
|
|
}
|
|
|
|
/* File browsers */
|
|
.browser {
|
|
position:fixed;
|
|
width: 85vw;
|
|
top: 40px;
|
|
right: 0;
|
|
height:calc(100vh - 40px);
|
|
}
|
|
|
|
/* CSS loading indicator */
|
|
.loader,
|
|
.loader:before,
|
|
.loader:after {
|
|
background: #000000;
|
|
-webkit-animation: load1 1s infinite ease-in-out;
|
|
animation: load1 1s infinite ease-in-out;
|
|
width: 1em;
|
|
height: 4em;
|
|
}
|
|
|
|
.loader {
|
|
color: #000000;
|
|
text-indent: -9999em;
|
|
margin: 88px auto;
|
|
position: relative;
|
|
font-size: 11px;
|
|
-webkit-transform: translateZ(0);
|
|
-ms-transform: translateZ(0);
|
|
transform: translateZ(0);
|
|
-webkit-animation-delay: -0.16s;
|
|
animation-delay: -0.16s;
|
|
}
|
|
|
|
.loader:before,
|
|
.loader:after {
|
|
position: absolute;
|
|
top: 0;
|
|
content: '';
|
|
}
|
|
|
|
.loader:before {
|
|
left: -1.5em;
|
|
-webkit-animation-delay: -0.32s;
|
|
animation-delay: -0.32s;
|
|
}
|
|
|
|
.loader:after {
|
|
left: 1.5em;
|
|
}
|
|
|
|
@-webkit-keyframes load1 {
|
|
0%,
|
|
80%,
|
|
100% {
|
|
box-shadow: 0 0;
|
|
height: 4em;
|
|
}
|
|
40% {
|
|
box-shadow: 0 -2em;
|
|
height: 5em;
|
|
}
|
|
}
|
|
|
|
@keyframes load1 {
|
|
0%,
|
|
80%,
|
|
100% {
|
|
box-shadow: 0 0;
|
|
height: 4em;
|
|
}
|
|
40% {
|
|
box-shadow: 0 -2em;
|
|
height: 5em;
|
|
}
|
|
}
|
|
|
|
#close {
|
|
position: absolute;
|
|
background: black;
|
|
top: 0;
|
|
right: 0;
|
|
cursor: pointer;
|
|
width: 20px;
|
|
height: 20px;
|
|
z-index: 3;
|
|
}
|
|
|
|
#modal {
|
|
display: none;
|
|
margin: auto;
|
|
position: absolute;
|
|
width: 70vw;
|
|
height: 90vh;
|
|
top: 0; left: 0; bottom: 0; right: 0;
|
|
background: white;
|
|
z-index: 2;
|
|
border: 1px solid black;
|
|
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
|
|
overflow: clip;
|
|
}
|
|
|
|
#modal-content p {
|
|
margin: 0;
|
|
}
|
|
|
|
#preview-iframe {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 60%;
|
|
border: none;
|
|
}
|
|
|
|
#rom-manage {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 40%;
|
|
}
|
|
|
|
#rom-manage p {
|
|
margin: 3px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
#manage-buttons {
|
|
position: absolute;
|
|
width: 100%;
|
|
height 30%;
|
|
bottom: 0;
|
|
left: 0;
|
|
justify-content: center;
|
|
display: flex;
|
|
}
|
|
|
|
.manage-button {
|
|
border: 2px solid #000;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
padding: 3%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
margin-left: 2px;
|
|
margin-right: 2px;
|
|
}
|
|
|
|
.manage-button:hover {
|
|
background-color: #D3D3D3;
|
|
}
|
|
|
|
#vidPos {
|
|
width: 300px;
|
|
}
|