107 lines
1.6 KiB
CSS
Executable File
107 lines
1.6 KiB
CSS
Executable File
body {
|
|
margin: 0;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
background: #000;
|
|
color: #EEE;
|
|
}
|
|
|
|
header, main, footer, .error, noscript {
|
|
position: absolute;
|
|
}
|
|
|
|
.error, noscript {
|
|
z-index: 10;
|
|
color: #F22;
|
|
font-size: 22px;
|
|
text-align: center;
|
|
padding: 4vw;
|
|
background-color: #000;
|
|
background-color: rgba(0,0,0,.85);
|
|
} .error {
|
|
display: none;
|
|
}
|
|
|
|
.coord {
|
|
height: 33%;
|
|
text-align: center;
|
|
font-size: 44px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
#rose {
|
|
width: 100%;
|
|
-webkit-transition-duration: 2s;
|
|
-moz-transition-duration: 2s;
|
|
-o-transition-duration: 2s;
|
|
transition-duration: .2s;
|
|
}
|
|
|
|
@media (orientation:portrait) {
|
|
/*.error#rotated { display: none; }*/
|
|
header, main, footer {
|
|
width: 90vw;
|
|
padding: 5vw;
|
|
} .error, noscript {
|
|
width: 82vw;
|
|
}
|
|
header {
|
|
height: calc(65vh - 60vw);
|
|
top: 0;
|
|
} main {
|
|
height: 90vw;
|
|
top: calc(65vh - 50vw);
|
|
} footer {
|
|
height: calc(35vh - 60vw);
|
|
bottom: 0;
|
|
} #about {
|
|
float: left;
|
|
} #by {
|
|
float: right;
|
|
}
|
|
main .error {
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
padding: 35vw 4vw;
|
|
}
|
|
}
|
|
@media (orientation:landscape) {
|
|
/*.error#rotated { display: block; }*/
|
|
header, main, footer {
|
|
height: 90vh;
|
|
padding: 5vh;
|
|
} .error, noscript {
|
|
width: 82vh;/**/
|
|
}
|
|
header {
|
|
width: calc(65vw - 60vh);
|
|
left: 0;
|
|
} main {
|
|
width: 90vh;
|
|
left: calc(65vw - 50vh);
|
|
} footer {
|
|
text-align: right;
|
|
width: calc(35vw - 60vh);
|
|
right: 0;
|
|
} #by {
|
|
position: absolute;
|
|
bottom: 5vh;
|
|
right: 5vh;
|
|
}
|
|
main .error {
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
padding: 35vh 4vh;
|
|
}
|
|
}
|
|
|
|
|
|
error { display: none; }
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
} a:hover {
|
|
text-decoration: none;
|
|
}
|