Template:UnGameAd/styles.css
Jump to navigation
Jump to search
.ungames-screen-container {
position: relative;
user-select: none;
max-width: 580px;
overflow: hidden;
margin: 0 auto;
}
.ungames-screen-container>img {
position: relative;
z-index: 3;
}
.ungames-screen {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1;
}
.scanlines {
overflow: hidden;
z-index: 2;
}
.scanlines:before,
.scanlines:after {
display: block;
content: "";
position: absolute;
}
.scanlines:before {
width: 100%;
height: 2px;
z-index: 2;
background: rgba(0, 0, 0, 0.1);
opacity: 0.75;
animation: scanline 6s linear infinite;
}
.scanlines:after {
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
background: linear-gradient(to bottom,
transparent 50%,
rgba(0, 0, 0, 0.1) 51%);
background-size: 100% 4px;
animation: scanlines 1s steps(60) infinite;
}
@keyframes scanline {
0% {
transform: translate3d(0, 200000%, 0);
}
}
@keyframes scanlines {
0% {
background-position: 0 50%;
}
}
.ungames-play {
position: relative;
}
.ungames-play a {
display: block;
position: absolute;
z-index: 999;
top: -65px;
right: 80px;
background: #F44336;
background: linear-gradient(45deg, #F44336 0%, #E57373 100%);
text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.3), 0px -1px 0px rgba(0, 0, 0, 0.7);
color: #fff;
font-family: monospace, Courier New;
font-variant: all-small-caps;
font-size: 1.5rem;
border-radius: 0.8rem;
border: 4px outset #E57373;
padding: 0.2rem;
margin: 0 0.4rem 0 0;
text-decoration: none;
transform: rotate(-1deg);
}
.ungames-play a:hover {
background: linear-gradient(45deg, #57c785 0%, #2da75f 100%);
border: 4px outset #2da75f;
}
.ungames-play a:active {
border: 4px inset #2da75f;
}
.ungames-credit {
text-align: center;
margin: 0.5rem;
}
@media screen and (max-width:1279.9px) {
.ungames-ad .ungames-screen-container {
width: fit-content;
background: none !important;
}
.scanlines {
display: none;
}
.ungames-screen-container>img {
display: none;
}
.ungames-screen {
position: relative;
top: 0;
left: 0;
transform: none;
}
.ungames-screen img {
border: 5px outset silver;
border-radius: 0.5rem;
display: block;
margin: 0 auto;
}
.ungames-play a {
position: relative;
margin: 0.4rem auto;
top: 0;
left: 0;
transform: none;
text-align: center;
width: 100px;
}
}
@media screen and (max-width:767.9px) {
.ungames-screen img {
width: 90%;
height: auto;
}
}
/* [[Category:Stylesheets]] */