mr-crocs-adventures/tilorswift/style.css

343 lines
5.6 KiB
CSS

@keyframes menuFadeIn {
from { width: 96px; }
to { width: 512px; }
}
@keyframes switch-toggle-on {
from {left: 0}
to {left: 50%}
}
@keyframes switch-toggle-off {
from {left: 50%}
to {left: 0}
}
body {
padding: 0;
margin: 0;
overflow: hidden;
font-family: sans-serif;
background-attachment: fixed;
background-size: cover;
background-position: center center;
}
#level {
border-spacing: 0;
border-collapse: collapse;
}
#mainbar {
display: flex;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 32px;
background-color: #cccccc;
box-shadow: 0 0 20px black;
}
.menu-group {
position: relative;
display: inline-block;
cursor: pointer;
padding: 5px 20px;
overflow: visible;
font-family: sans-serif;
}
.menu-group:hover {
background-color: #5555cc;
}
.menu-dropdown {
display: none;
position: absolute;
top: 16px;
left: 0;
background-color: #cccccc;
list-style: none;
box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
padding-left: 0;
}
.menu-dropdown > li {
padding: 5px 20px;
width: 180px;
}
.menu-dropdown > li:hover {
background-color: #5555cc;
}
.menu-group:hover > .menu-dropdown {
display: block;
}
#widget-bar {
position: fixed;
flex-flow: wrap row;
top: 32px;
left: 0;
bottom: 0;
width: 96px;
padding: 20px;
background-color: #cccccc;
box-shadow: 0 0 20px black;
}
.widget-container {
margin-bottom: 20px;
}
.widget-disabled {
filter: saturate(0);
}
#map {
position: fixed;
top: 32px;
left: 136px;
right: 0;
bottom: 0;
overflow: scroll;
}
#tileset-picker {
border: 1px solid black;
cursor: pointer;
position: relative;
overflow: visible;
}
#tileset-picker.widget-disabled {
cursor: not-allowed;
}
#tileset-selector-widget {
display: none;
position: absolute;
top: 0;
background-color: #cccccc;
box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.5);
max-width: 1000%;
max-height: 500%;
overflow: auto;
}
#tileset-picker:hover > #tileset-selector-widget {
display: block;
}
#tileset-picker.widget-disabled:hover > #tileset-selector-widget {
display: none;
}
#entrance-picker, #target-picker {
width: 96px;
height: 96px;
border: 1px solid black;
background-image: url("graphics/entrance-point.svg");
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
cursor: pointer;
}
#target-picker {
background-image: url("graphics/target-point.svg");
}
#widget-insert-rows {
position: relative;
width: 96px;
height: 96px;
border: 1px solid black;
}
#widget-insert-rows-button {
width: 100%;
cursor: pointer;
}
#widget-insert-rows-input {
position: absolute;
width: 80%;
bottom: 0;
left: 0;
right: 0;
}
.field, .button-tile {
border: 0;
padding: 0;
margin: 0;
background-repeat: no-repeat;
cursor: pointer;
display: inline-flex;
}
.entrance, .target {
background-image: url("graphics/entrance-point.svg") !important;
background-size: contain !important;
background-position: center bottom !important;
}
.target {
background-image: url("graphics/target-point.svg") !important;
}
.button-tile {
margin: 2px;
}
.selection {
width: 100%;
height: 100%;
opacity: 0;
background-color: red;
}
.field:hover .selection {
opacity: 0.5;
}
.dialog {
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.25);
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
z-index: 200;
}
.dialog-box {
width: 500px;
background-color: #cccccc;
color: black;
padding: 20px;
box-shadow: 0 0 20px black;
}
.dialog-message {
text-align: center;
color: black;
margin-bottom: 20px;
}
.dialog-button-area {
display: flex;
justify-content: space-evenly;
width: 100%;
}
.dialog-label {
width: 100%;
}
.dialog-input-area {
width: 100%;
}
.dialog-input {
width: 480px;
margin-bottom: 20px;
}
input[type="file"] {
margin-bottom: 20px;
}
.dialog-button {
padding: 5px 20px;
background-color: grey;
font-weight: bold;
color: white;
cursor: pointer;
}
#tileset-selector {
position: relative;
}
#tileset-avatar {
width: 96px;
height: 96px;
background-size: auto 100%;
cursor: pointer;
margin-bottom: 20px;
}
#tileset-list {
position: absolute;
top: 20px;
left: 116px;
display: none;
padding: 10px;
background-color: #cccccc;
box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.tileset {
display: table-row;
cursor: pointer;
}
.tileset:hover {
background-color: #5555cc;
}
.tileset-thumbnail {
display: block;
width: 32px;
height: 32px;
background-size: auto 100%;
}
.tileset:hover > .tileset-thumbnail {
opacity: 0.5;
}
.tileset-title {
display: table-cell;
vertical-align: middle;
padding: 10px;
}
.switch {
position: relative;
border-radius: 16px;
border: 2px solid #333333;
width: 100%;
height: 32px;
cursor: pointer;
background-color: #777777;
}
.switch-slider {
position: absolute;
border-radius: 14px;
width: 50%;
height: 100%;
border: 1px solid white;
}
.switch-slider-on {
left: 50%;
background-color: #2222aa;
animation-name: switch-toggle-on;
animation-duration: 0.2s;
}
.switch-slider-off {
left: 0;
background-color: #888888;
animation-name: switch-toggle-off;
animation-duration: 0.2s;
}