mirror of
https://github.com/kichikuou/xsystem35-sdl2.git
synced 2026-09-27 01:00:24 +03:00
205 lines
3.0 KiB
CSS
205 lines
3.0 KiB
CSS
body {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
header {
|
|
background-color: rgb(68,68,68);
|
|
color: #ccc;
|
|
}
|
|
|
|
@media all and (max-height: 480px) {
|
|
#toolbar-handler {
|
|
position: absolute;
|
|
right: 0px;
|
|
top: 0px;
|
|
width: 40px;
|
|
height: 10px;
|
|
background-color: rgba(68,68,68,0.7);
|
|
}
|
|
|
|
.toolbar-handler-icon {
|
|
width: 5px;
|
|
height: 5px;
|
|
margin: auto;
|
|
border: solid #ccc;
|
|
border-width: 2px 2px 0 0;
|
|
-webkit-transform: rotate(135deg);
|
|
transform: rotate(135deg);
|
|
}
|
|
|
|
header.closeable {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
transition: top 0.4s ease;
|
|
background-color: rgba(68,68,68,0.85);
|
|
}
|
|
|
|
header.closeable.closed {
|
|
top: -42px;
|
|
}
|
|
}
|
|
|
|
@media not all and (max-height: 480px) {
|
|
#toolbar-handler {
|
|
display: none;
|
|
}
|
|
|
|
#toolbar-close-button {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.navbar {
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
padding: 0.5rem 0;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.navbar .navbar-primary {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.navbar-brand {
|
|
color: #ccc;
|
|
}
|
|
|
|
.navbar .navbar-section {
|
|
flex: 0;
|
|
}
|
|
|
|
.navbar .btn-link {
|
|
font-size: large;
|
|
color: #ccc;
|
|
}
|
|
|
|
.navbar .btn.btn-link:focus,
|
|
.navbar .btn.btn-link:hover,
|
|
.navbar .btn.btn-link:active,
|
|
.navbar .btn.btn-link.active {
|
|
color: #eee;
|
|
}
|
|
|
|
.contents {
|
|
flex: 1;
|
|
display: flex;
|
|
}
|
|
|
|
#loader {
|
|
max-width: 640px;
|
|
margin: 2ex auto 0;
|
|
}
|
|
|
|
#loader ul {
|
|
list-style-type: none;
|
|
}
|
|
#loader li {
|
|
color: #5764c6;
|
|
}
|
|
#loader li:before {
|
|
font-family: FontAwesome;
|
|
content: "\f15b";
|
|
padding-right: 0.5em;
|
|
}
|
|
#loader li.notready {
|
|
color: #808080;
|
|
}
|
|
#loader li.notready:after {
|
|
content: " (未選択)";
|
|
}
|
|
|
|
#unsupported {
|
|
max-width: 640px;
|
|
margin: 2ex auto 0;
|
|
color: red;
|
|
}
|
|
|
|
.bgblack-fade {
|
|
background-color: black;
|
|
transition-property: background-color;
|
|
transition-duration: 1s;
|
|
transition-timing-function: linear;
|
|
}
|
|
|
|
#xsystem35 {
|
|
margin: auto;
|
|
}
|
|
|
|
#xsystem35.fit {
|
|
margin: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
|
|
canvas.emscripten {
|
|
border: 0px none;
|
|
}
|
|
|
|
@media all and (min-aspect-ratio: 640/400) {
|
|
.fit canvas.emscripten {
|
|
height: 100%;
|
|
max-height: 100vh;
|
|
margin: auto;
|
|
display: block;
|
|
}
|
|
}
|
|
@media not all and (min-aspect-ratio: 640/400) {
|
|
#xsystem35.fit {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
.fit canvas.emscripten {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.pixelated {
|
|
image-rendering: pixelated;
|
|
image-rendering: -moz-crisp-edges;
|
|
}
|
|
|
|
#volume-control {
|
|
float: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
#volume-control-icon {
|
|
font-size: 20px;
|
|
width: 26px;
|
|
padding: 5px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#volume-control-slider {
|
|
width: 60px;
|
|
height: 30px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.settings section > div {
|
|
padding-left: 2rem;
|
|
}
|
|
|
|
.toast-container {
|
|
position: fixed;
|
|
bottom: 30px;
|
|
left: 30px;
|
|
width: 400px;
|
|
z-index: 500;
|
|
}
|
|
|
|
.toast {
|
|
-webkit-animation: slide-down .2s ease 1;
|
|
animation: slide-down .2s ease 1;
|
|
margin: 5px;
|
|
}
|