198 lines
3.5 KiB
CSS
198 lines
3.5 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background: #202028;
|
|
font-family: Roboto, Helvetica, Arial, sans-serif;
|
|
font-size: 2.5em;
|
|
color: #fff;
|
|
}
|
|
|
|
#language-selector {
|
|
position: absolute;
|
|
right: 15px;
|
|
top: 20px;
|
|
font-size: 14px;
|
|
font-weight: 300;
|
|
z-index: 1;
|
|
}
|
|
|
|
.lang {
|
|
display: inline;
|
|
margin-left: 10px;
|
|
border-radius: 2px;
|
|
padding: 4px 8px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lang.active {
|
|
background-color: #3877FF;
|
|
}
|
|
|
|
#game-title {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -25%) translateY(-200px);
|
|
opacity: 1;
|
|
transition: opacity .5s;
|
|
}
|
|
|
|
#game-play, #game-reset {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 300px;
|
|
height: 75px;
|
|
font-size: 30px;
|
|
box-shadow: none;
|
|
color: #ffff !important;
|
|
background: #3877FF !important;
|
|
border: 0 !important;
|
|
border-radius: 0 !important;
|
|
transition: box-shadow .2s, opacity .5s;
|
|
cursor: pointer;
|
|
opacity: 1;
|
|
}
|
|
|
|
#game-reset {
|
|
display: none;
|
|
background-color: #FF0D72 !important;
|
|
transform: translate(-50%, -50%) translateY(85px);
|
|
opacity: 0;
|
|
}
|
|
|
|
#game-play:hover, #game-play:active, #game-play:focus {
|
|
outline: none !important;
|
|
box-shadow: 3px 4px 0 3px rgba(0, 0, 0, 0.2) !important;
|
|
}
|
|
|
|
#background {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
filter: url(#f2);
|
|
}
|
|
|
|
#background.blurred {
|
|
filter: url(#f1);
|
|
}
|
|
|
|
#tetris, #tetris-background {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
-webkit-transform: translate(-50%, -50%);
|
|
-moz-transform: translate(-50%, -50%);
|
|
-ms-transform: translate(-50%, -50%);
|
|
-o-transform: translate(-50%, -50%);
|
|
transform: translate(-50%, -50%);
|
|
border: solid .2em #fff;
|
|
z-index: 1;
|
|
background: transparent;
|
|
}
|
|
|
|
#tetris-background {
|
|
border: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
#game-stats {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) translateX(-30vw);
|
|
text-align: right;
|
|
}
|
|
|
|
#score {
|
|
font-weight: 900;
|
|
}
|
|
|
|
#time:before, #score:before {
|
|
content: attr(data-prefix);
|
|
}
|
|
|
|
#controls {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%) translateX(30vw);
|
|
font-size: 20px;
|
|
}
|
|
|
|
#footer {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
width: 95%;
|
|
left: 2.5%;
|
|
right: 2.5%;
|
|
font-size: 12px;
|
|
color: rgba(255, 255, 255, .5);
|
|
}
|
|
|
|
#version-author {
|
|
display: inline-block;
|
|
}
|
|
|
|
#corner-buttons {
|
|
display: inline-block;
|
|
position: absolute;
|
|
right: 0;
|
|
}
|
|
|
|
#corner-buttons > a {
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
left: 10px;
|
|
color: rgba(255, 255, 255, .5);
|
|
-webkit-transition: color .2s;
|
|
-moz-transition: color .2s;
|
|
-ms-transition: color .2s;
|
|
-o-transition: color .2s;
|
|
transition: color .2s;
|
|
}
|
|
|
|
#corner-buttons > a:hover, #corner-buttons > a:active {
|
|
color: rgba(255, 255, 255, 1);
|
|
}
|
|
|
|
@media (max-width: 1400px) {
|
|
#tetris, #tetris-background {
|
|
height: 75%;
|
|
}
|
|
|
|
#game-stats {
|
|
top: 10px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
#game-stats > div {
|
|
display: inline;
|
|
}
|
|
|
|
#time {
|
|
margin-right: 50px;
|
|
}
|
|
|
|
#controls {
|
|
top: initial;
|
|
bottom: 10px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
height: 10%;
|
|
overflow: auto;
|
|
}
|
|
|
|
#control-text {
|
|
height: 100%;
|
|
}
|
|
|
|
#language-selector {
|
|
font-size: 20px;
|
|
}
|
|
} |