mr-crocs-adventures/tilorswift/style.css

144 lines
2.2 KiB
CSS

@keyframes menuFadeIn {
from { width: 96px; }
to { width: 512px; }
}
body {
padding: 0;
margin: 0;
overflow: hidden;
font-family: sans-serif;
}
#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;
display: flex;
flex-flow: wrap row;
top: 32px;
left: 0;
bottom: 0;
width: 96px;
padding: 20px;
background-color: #cccccc;
box-shadow: 0 0 20px black;
}
.widget-disabled {
filter: saturate(0);
}
#map {
position: fixed;
top: 32px;
left: 136px;
right: 0;
bottom: 0;
overflow: scroll;
background-color: black;
}
#tileset-picker {
border: 1px solid black;
cursor: pointer;
position: relative;
overflow: visible;
}
#tileset-picker.widget-disabled {
cursor: not-allowed;
}
#tileset-selector {
display: none;
position: absolute;
top: 0;
background-color: #cccccc;
box-shadow: 20px 20px 20px rgba(0, 0, 0, 0.5);
}
#tileset-picker:hover > #tileset-selector {
display: block;
}
#tileset-picker.widget-disabled:hover > #tileset-selector {
display: none;
}
.field, .button-tile {
border: 0;
padding: 0;
margin: 0;
background-repeat: no-repeat;
cursor: pointer;
display: inline-flex;
}
.button-tile {
margin: 2px;
}
.selection {
width: 100%;
height: 100%;
opacity: 0;
background-color: red;
}
.field:hover .selection {
opacity: 0.5;
}