japanese-drum-game/public/src/css/game.css

97 lines
1.5 KiB
CSS
Raw Normal View History

2015-07-17 16:22:46 +08:00
#game{
width: 100%;
height: 100%;
2018-10-25 22:18:41 +08:00
position: absolute;
2015-07-17 16:22:46 +08:00
overflow: hidden;
2018-09-27 23:31:57 +08:00
background-size: calc(100vh / 720 * 512);
2018-11-24 00:53:29 +08:00
background-position: center;
2018-09-27 09:04:01 +08:00
}
2018-12-02 23:25:42 +08:00
#screen.view{
background-image: none;
background-color: #000;
}
2015-07-17 16:22:46 +08:00
#canvas{
position: relative;
z-index: 1;
width: 100%;
height: 100%;
2015-07-17 16:22:46 +08:00
}
#cursor{
position: fixed;
width: 1px;
height: 1px;
cursor: none;
pointer-events: none;
z-index: 1;
2015-07-17 16:22:46 +08:00
}
#touch-drum{
2018-10-06 01:03:59 +08:00
display: none;
position: absolute;
right: 0;
bottom: 0;
left: 0;
width: 50%;
2018-10-06 01:03:59 +08:00
height: 50%;
text-align: center;
margin: auto;
2018-10-13 02:04:28 +08:00
overflow: hidden;
2018-10-06 01:03:59 +08:00
}
#touch-drum-img{
2018-10-06 01:03:59 +08:00
width: 100%;
2018-10-28 19:54:15 +08:00
height: 100%;
background-position: top;
background-size: cover;
background-repeat: no-repeat;
2018-10-06 01:03:59 +08:00
}
#touch-buttons{
display: none;
position: absolute;
2018-10-25 22:18:41 +08:00
top: 8vh;
2018-10-06 01:03:59 +08:00
right: 2vh;
opacity: 0.5;
z-index: 5;
}
2018-10-28 19:54:15 +08:00
#touch-buttons div{
display: inline-block;
width: 12.5vmin;
height: 12.5vmin;
2018-10-28 19:54:15 +08:00
background-size: contain;
background-repeat: no-repeat;
2018-10-06 01:03:59 +08:00
}
2018-10-25 22:18:41 +08:00
.portrait #touch-buttons{
top: 11vh;
}
.touchp2 #touch-buttons{
top: -1.9vh;
}
.touch-visible #touch-drum,
2018-10-06 01:03:59 +08:00
.touch-visible #touch-buttons{
display: block;
}
.touch-visible .window{
width: 80vmin;
height: 53vmin;
}
.touch-visible #pause-menu .window button{
font-size: 5vmin;
}
.touch-visible #pause-menu .window button.selected{
color: #000;
background: #fff;
border-color: #ae7a26;
}
2019-01-01 09:16:55 +08:00
.touch-results #touch-pause-btn{
display: none;
}
#fade-screen{
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: transparent;
pointer-events: none;
z-index: 2;
transition: 1s background-color linear;
}