Files
taiko-web2/public/src/css/main.css
2018-11-13 07:56:38 +03:00

328 lines
5.7 KiB
CSS

html,
body{
margin: 0;
width: 100%;
height: 100%;
background: #fe7839;
position: absolute;
user-select: none;
touch-action: none;
overflow: hidden;
}
#screen{
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: #fe7839;
background-position: top center;
background-size: 30vh;
font-family: TnT, Meiryo, sans-serif;
}
#assets{
display: none;
}
.window{
width: 60vmin;
height: 23vmin;
padding: 3vmin;
color: black;
background: rgba(255, 220, 47, 0.95);
border: .5vmin outset #f4ae00;
box-shadow: 2px 2px 10px black;
margin: auto;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.stroke-main{
font-weight: 300;
}
.result-title{
margin-top: 9px !important;
margin-left: 5px !important;
z-index: 1;
}
.result-song,
.game-song{
position: absolute;
right: 0;
font-size: 5vmin;
margin: 3vmin 3vmin 0px 0px;
color: white;
float: right;
z-index: 1;
font-weight: 300;
}
.stroke-main::before{
content: attr(alt);
left: 0;
z-index: -1;
position: absolute;
-webkit-text-stroke: 0.3em #fb3c0c;
}
.stroke-main::after{
content: attr(alt);
left: 0;
z-index: -2;
position: absolute;
-webkit-text-stroke: 0.5em #000;
}
.stroke-sub::before{
content: attr(alt);
position: absolute;
-webkit-text-stroke: 0.25em #000;
left: 0;
z-index: -1;
}
.don{
background-position-y: 0;
position: absolute;
top: 0px;
}
.alpha-title .song-title-char{
transform: scale(1.3, 1);
font-size: 80%;
line-height: 22px;
}
.song-title-apos{
padding-left: 4px;
}
.song-title-char[alt="ぁ"],
.song-title-char[alt="ぃ"],
.song-title-char[alt="ぅ"],
.song-title-char[alt="ぇ"],
.song-title-char[alt="ぉ"],
.song-title-char[alt="ゃ"],
.song-title-char[alt="ゅ"],
.song-title-char[alt="ょ"],
.song-title-char[alt="っ"],
.song-title-char[alt="ァ"],
.song-title-char[alt="ィ"],
.song-title-char[alt="ゥ"],
.song-title-char[alt="ェ"],
.song-title-char[alt="ォ"],
.song-title-char[alt="ャ"],
.song-title-char[alt="ュ"],
.song-title-char[alt="ョ"],
.song-title-char[alt="ッ"]{
margin-top: -6px;
}
.song-title-char[alt="ー"],
.song-title-char[alt="-"]{
transform: rotate(95deg);
font-size: 90%;
}
#tutorial-outer{
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: absolute;
width: 100%;
height: 100%;
}
#tutorial{
background: rgb(246, 234, 212);
color: black;
border: 0.25em black solid;
border-radius: 0.5em;
width: 800px;
padding: 1em;
margin: 1em;
font-size: 21px;
position: relative;
}
.touch-enabled #tutorial{
font-size: 3vmin;
}
#tutorial-title{
z-index: 1;
position: absolute;
color: white;
top: -0.7em;
font-size: 1.65em;
}
#tutorial-content{
margin: 0.7em 0;
overflow-y: auto;
max-height: calc(100vh - 14em);
}
kbd{
font-family: inherit;
padding: 0.1em 0.6em;
border: 1px solid #ccc;
font-size: 0.6em;
background-color: #f7f7f7;
color: #333;
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #ffffff inset;
border-radius: 3px;
display: inline-block;
text-shadow: 0 1px 0 #fff;
line-height: 1.4;
white-space: nowrap;
}
.taibtn{
display: inline-block;
background: #f6ead4;
padding: 0.4em 0.4em;
border-radius: 0.5em;
border: 0.1em rgba(218, 205, 178, 1) solid;
cursor: pointer;
font-size: 1.4em;
box-sizing: border-box;
color: #555;
text-align: center;
}
#tutorial-end-button{
float: right;
padding: 0.4em 1.5em;
font-weight: bold;
border-color: #000;
color: #000;
}
.taibtn:hover,
#tutorial-end-button:hover{
position: relative;
z-index: 1;
color: #fff;
background: #ffb547;
border-color: #fff;
}
.taibtn::before{
padding-left: inherit;
}
#about-link-btns{
float: left;
display: flex;
}
#about-link-btns .taibtn{
margin-right: 0.4em;
}
#diag-txt textarea,
#diag-txt iframe{
width: 100%;
height: 5em;
font-size: inherit;
resize: none;
word-break: break-all;
margin-bottom: 1em;
background: #fff;
border: 1px solid #a9a9a9;
user-select: all;
}
.text-warn{
color: #d00;
}
.link-btn a{
color: inherit;
text-decoration: none;
pointer-events: none;
}
.nowrap{
white-space: nowrap;
}
#session-invite{
width: 100%;
height: 1.9em;
font-family: sans-serif;
font-size: 2em;
background: #fff;
border: 1px solid #a9a9a9;
padding: 0.3em;
margin: 0.3em 0;
box-sizing: border-box;
text-align: center;
user-select: all;
cursor: text;
overflow: hidden;
}
@keyframes bgscroll{
from{
background-position: 0 top;
}
to{
background-position: calc(-100vh / 720 * 512) top;
}
}
#song-select{
width: 100%;
height: 100%;
background-size: calc(100vh / 720 * 512);
background-repeat: repeat no-repeat;
animation: bgscroll 16s infinite linear;
white-space: nowrap;
transition: background-image 0.5s;
}
#song-sel-canvas{
position: absolute;
right: 0;
left: 0;
margin: auto;
}
#song-select #touch-full-btn{
display: none;
position: absolute;
top: 0;
right: 0;
width: 12.5vmin;
height: 12.5vmin;
opacity: 0.5;
background-size: contain;
background-repeat: no-repeat;
}
#song-sel-selectable{
position: absolute;
opacity: 1;
text-align: center;
word-break: break-all;
white-space: pre-wrap;
user-select: all;
cursor: text;
color: transparent;
}
#song-sel-selectable:focus{
background: #ffdb2c;
color: #000;
}
#song-sel-selectable .stroke-sub{
position: absolute;
z-index: 1;
}
#song-sel-selectable .stroke-sub::before{
-webkit-text-stroke: 0;
}
#song-sel-selectable:focus .stroke-sub::before{
-webkit-text-stroke: 0.25em #fff;
}
#version {
position: fixed;
z-index: 1000;
font-size: 2vh;
position: absolute;
bottom: 1vh;
right: 1vh;
opacity: 0.7;
font-family: TnT, Meiryo, sans-serif;
}
#version:hover{
opacity: 1;
}
#version-link{
color: #FFFFFF;
text-decoration: none;
pointer-events: none;
}
.version-hide{
pointer-events: none;
}