Files
tetris.js/style.css

96 lines
1.7 KiB
CSS

body {
margin: 0;
padding: 0;
overflow: hidden;
background: #202028;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 40px;
color: #fff;
}
#language-selector {
position: absolute;
right: 10px;
top: 10px;
font-size: 14px;
font-weight: 300;
}
.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: 25%;
transform: translate(-50%, -25%);
}
#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;
background: #3877FF;
border: 0;
border-radius: 0;
transition: box-shadow .2s;
cursor: pointer;
}
#game-reset {
display: none;
background-color: #FF0D72;
transform: translate(-50%, -50%) translateY(85px);
}
#game-play:hover, #game-play:active, #game-play:focus {
outline: none;
box-shadow: 3px 4px 0 3px rgba(0,0,0,0.2);
}
#tetris {
position: absolute;
left: 50%;
-webkit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-ms-transform: translateX(-50%);
-o-transform: translateX(-50%);
transform: translateX(-50%);
margin: 20px 0;
border: solid .2em #fff;
}
#score, #controls {
position: absolute;
font-weight: 900;
top: 50%;
right: 75%;
transform: translate(-50%, -50%);
}
#score:before {
content: attr(data-prefix);
}
#controls {
left: 75%;
right: 0;
font-size: 20px;
font-weight: 300;
transform: translate(0, -50%);
}