webframe/public/index.css

182 lines
2.6 KiB
CSS

/* https://coolors.co/52d1dc-475b5a-8d8e8e-a3a9aa-bbbbbf */
body {
margin: 0;
}
#app {
display: flex;
height: 100vh;
width: 100%;
}
#app .loading {
position: absolute;
top: 50%;
text-align: center;
height: 100vh;
width: 100%;
}
#app .touchCanvas,
#app .content {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#app .controls {
z-index: 10;
position: absolute;
top: 0;
left: 0;
width: 0;
height: 0;
}
#app .touchCanvas {
z-index: 5;
}
#app .content {
z-index: 0;
display: flex;
}
#app img {
width: 100%;
height: auto;
max-height: 100vh;
z-index: 0;
align-self: center;
}
#app video {
height: 100vh;
max-width: 100vw;
margin: 0 auto;
display: block;
}
#app .btn {
display: block;
width: 40px;
height: 32px;
border-radius: 50%;
background-color: rgba(0, 0, 0, .3);
color: white;
text-align: center;
padding-top: 8px;
}
#app .btn:hover, #app .btn:active {
-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
-moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, .3);
cursor: pointer;
}
#app .btn:active {
background-color: white;
color: rgba(0, 0, 0, .3);
}
#app .floatBtn {
position: fixed;
top: 50vh;
}
#app .floatBtn.left {
left: 10px;
}
#app .floatBtn.right {
right: 10px;
}
#app .floatBar {
width: 100vw;
position: fixed;
}
#app .floatBar.bottom {
bottom: 10px;
}
#app .floatBar.bottom .btn {
margin: 0 auto;
}
#app .floatBar.top {
top: 10px;
}
#app .floatBar.top .btn.right {
float: right;
margin-right: 10px;
}
#app .empty {
text-align: center;
margin-top: 48vh;
}
/* menu */
#app .fullScreenMenu {
width: 100vw;
height: 100vh;
z-index: 15;
background: white;
position: fixed;
}
#app .fullScreenMenu .closeBtn {
position: fixed;
top: 10px;
right: 10px;
}
#app .fullScreenMenu .container {
width: 60vw;
margin: 0 auto;
overflow: hidden scroll;
}
#app .fullScreenMenu .container ul {
list-style-type: none;
width: 80%;
margin: 0 auto;
padding: 0;
}
#app .fullScreenMenu .container li {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 10px;
margin-bottom: 10px;
}
#app .fullScreenMenu .container img, #app .fullScreenMenu .container video {
height: 40px;
width: auto;
margin: 0;
}
#app .fullScreenMenu .container p.pRow {
display: flex;
justify-content: space-between;
align-items: center;
margin: 10px auto;
width: 80%;
}
#app input {
padding: 4px;
border-radius: 10px;
border: 1px solid lightgrey;
}