demo/build-templates/web-mobile/style.css

97 lines
1.8 KiB
CSS
Raw Permalink Normal View History

2024-03-22 00:57:47 -07:00
html {
-ms-touch-action: none;
}
body, canvas, div {
display: block;
outline: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
-khtml-user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* Remove spin of input type number */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
/* display: none; <- Crashes Chrome on hover */
-webkit-appearance: none;
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
body {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
margin: 0;
cursor: default;
color: #888;
/* background-color: #333; */
text-align: center;
font-family: Helvetica, Verdana, Arial, sans-serif;
display: flex;
flex-direction: column;
}
canvas {
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#bg_black {
width: 100%;
height: 100%;
background-color: #000;
}
#GameDiv, #Cocos2dGameContainer, #GameCanvas {
width: 100%;
height: 100%;
position: absolute;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#splash {
background: #000;
position: fixed;
transition: transform 3s;
transform: scale(1.2);
top: 0;
left: 0;
bottom: 0;
right: 0;
margin: 0 auto;
background-image: url("landingPage.png");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#splash_opcity {
background-color:rgb(0,0,0);
opacity:0.7;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 0;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}