flash.moe/public/collection/assets/style.css

246 lines
4.4 KiB
CSS
Raw Normal View History

2020-08-20 00:02:37 +00:00
@import "//flash.moe/css/electrolize/style.css";
* {
margin: 0;
padding: 0;
box-sizing: border-box;
position: relative;
outline-style: none !important;
}
html,
body {
width: 100%;
height: 100%;
}
body {
color: #fff;
background: #222;
font: 12px/20px Tahoma, Geneva, 'Dejavu Sans', Arial, Helvetica, sans-serif;
}
h1 {
font-family: Electrolize, Verdana, sans-serif;
font-size: 3em;
line-height: 1.5em;
padding: 5px 10px;
text-shadow: 0 2px 5px #000;
}
h1 a {
text-decoration: none;
color: #fff;
}
h1 a:hover,
h1 a:focus {
text-decoration: underline;
}
.wrapper {
max-width: 1200px;
width: 100%;
margin: 0 auto;
}
.syscont {
margin: 5px auto;
display: flex;
flex-wrap: wrap;
max-width: 1040px;
width: 100%;
}
.sysbox {
flex: 0 0 auto;
vertical-align: middle;
width: 250px;
height: 250px;
overflow: hidden;
margin: 5px;
box-shadow: 0 0 5px #111;
transition: transform .2s;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.sysbox:hover,
.sysbox:focus-within {
transform: scale(1.1);
z-index: 101;
}
.sysbox:active {
transform: scale(.9);
}
.sysbox-bg {
width: 100%;
height: 100%;
object-fit: contain;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
.sysbox-link {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 100;
text-decoration: none;
display: block;
color: #fff;
}
.sysbox-cont {
background: linear-gradient(0deg, rgba(17, 17, 17, .9), transparent);
min-height: 60px;
}
.sysbox-cont h2 {
font-family: Electrolize, Verdana, sans-serif;
font-size: 2em;
line-height: 1.2em;
margin: 4px 10px 0;
text-shadow: 0 2px 5px #000;
}
.sysbox-cont p {
margin: 0 10px 4px;
text-shadow: 0 1px 2px #000;
}
.syshead {
display: flex;
align-items: center;
background: linear-gradient(180deg, #5a5a5a 0%, #272727 50%, #111 50%) #5a5a5a;
border-radius: 5px;
padding: 6px;
box-shadow: 0 0 5px #111;
margin: 0 5px;
}
.syshead-pic {
width: 50px;
height: 50px;
overflow: hidden;
flex: 0 0 auto;
box-shadow: 0 0 5px #111;
border-radius: 5px;
}
.syshead-pic img {
width: 100%;
height: 100%;
object-fit: contain;
}
.syshead-cont {
flex: 1 1 auto;
}
.syshead-cont h2 {
font-family: Electrolize, Verdana, sans-serif;
font-size: 2em;
line-height: 1.2em;
margin: 4px 10px 0;
text-shadow: 0 2px 5px #000;
}
.syshead-cont p {
margin: 0 10px;
text-shadow: 0 1px 2px #000;
}
.syshead-cont a {
color: #fff;
text-decoration: none;
}
.syshead-cont a:hover,
.syshead-cont a:focus {
text-decoration: underline;
}
.gamelist {
display: flex;
flex-wrap: wrap;
max-width: 1040px;
width: 100%;
margin: 10px auto 20px;
}
.gamebox {
width: 250px;
height: 250px;
overflow: hidden;
flex: 0 0 auto;
vertical-align: middle;
margin: 5px;
box-shadow: 0 0 5px #111;
transition: transform .2s, opacity .2s;
display: flex;
flex-direction: column;
justify-content: flex-end;
background: #111;
}
.gamebox--missing {
opacity: .3;
}
.gamebox--nds {
height: 221px;
}
.gamebox--nsw {
height: 405px;
}
.gamebox--wii {
height: 353px;
}
.gamebox--wiiu {
height: 352px;
}
.gamebox--snes {
height: 173px;
}
.gamebox:hover,
.gamebox:focus-within {
transform: scale(1.1);
z-index: 101;
}
.gamebox.gamebox--missing:hover,
.gamebox.gamebox--missing:focus-within {
opacity: .7;
}
.gamebox:active {
transform: scale(.9);
}
.gamebox-art {
width: 100%;
height: 100%;
object-fit: contain;
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
.gamebox--snes .gamebox-art {
object-fit: cover;
}
.gamebox-link {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 100;
text-decoration: none;
display: block;
color: #fff;
}
.gamebox-cont {
background: linear-gradient(0deg, rgba(17, 17, 17, .9) 0%, rgba(17, 17, 17, .3) 90%, transparent);
min-height: 60px;
}
.gamebox-cont h3 {
font-family: Electrolize, Verdana, sans-serif;
font-size: 1.5em;
line-height: 1.2em;
margin: 4px 10px 0;
text-shadow: 0 2px 5px #000;
}
.gamebox-cont p {
margin: 0 10px 4px;
text-shadow: 0 1px 2px #000;
}