App shell + assets
It can render an image, but not much else. Oh, and the icons were ported from an earlier version of Sakura.
This commit is contained in:
15 files changed
+597
No files matched your search
@@ -0,0 +1,122 @@
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
:root {
|
||||
--pink-light: #FCD0E5;
|
||||
--pink-hard: #F1278C;
|
||||
/* https://material.io/design/motion/speed.html#easing */
|
||||
--anim-std: cubic-bezier(0.4, 0.0, 0.2, 1);
|
||||
--anim-peak-to-rest: cubic-bezier(0.0, 0.0, 0.2, 1);
|
||||
--anim-rest-to-peak: cubic-bezier(0.4, 0.0, 1, 1);
|
||||
--anim-ez-overshoot: cubic-bezier(0.4, 0.0, 0.2, 1.4);
|
||||
--anim-hard-overshoot: cubic-bezier(0.4, 0.0, 0.2, 1.6);
|
||||
}
|
||||
|
||||
:focus {
|
||||
outline-color: var(--pink-hard);
|
||||
outline-offset: 4px;
|
||||
outline-width: 2px;
|
||||
outline-style: solid;
|
||||
}
|
||||
|
||||
html { height: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
font-size: 16px;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* Prevent the weird overscroll bounce */
|
||||
overflow: hidden;
|
||||
overscroll-behavior: none;
|
||||
background-color: var(--pink-light);
|
||||
color: var(--pink-hard);
|
||||
}
|
||||
|
||||
canvas {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 1em;
|
||||
margin: 0 auto;
|
||||
max-width: 720px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#app {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overscroll-behavior: none;
|
||||
}
|
||||
|
||||
/* Helper styles */
|
||||
|
||||
.link-btn {
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
border: 0;
|
||||
background: 0;
|
||||
padding: 0;
|
||||
font-weight: 600;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.affix {
|
||||
position: absolute;
|
||||
display: block;
|
||||
top: 0; bottom: 0; left: 0; right: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
/* Welcome styles */
|
||||
|
||||
.welcome {
|
||||
margin: auto;
|
||||
width: 400px;
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
animation: 1800ms var(--anim-std) welcome-fade-in;
|
||||
}
|
||||
.welcome--blossom {
|
||||
width: 50%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.welcome--blossom--box {
|
||||
position: relative;
|
||||
padding-top: 100%;
|
||||
}
|
||||
.welcome--text {
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
/* Editor styles */
|
||||
|
||||
.editor {
|
||||
margin: auto;
|
||||
animation: 250ms var(--anim-std) fade-in;
|
||||
}
|
||||
.cbox {
|
||||
/* background-color: #1e1e1e; */
|
||||
position: fixed;
|
||||
overflow: visible;
|
||||
--x: 0;
|
||||
--y: 0;
|
||||
--scale: 1;
|
||||
}
|
||||
.cbox > canvas {
|
||||
transform: translate(var(--x), var(--y)) scale(var(--scale));
|
||||
}
|
||||
|
||||
@keyframes welcome-fade-in {
|
||||
from { opacity: 0; transform: translateY(5em); }
|
||||
}
|
||||
|
||||
@keyframes fade-in {
|
||||
from { opacity: 0; }
|
||||
}
|
||||
Reference in new issue
Block a user