mirror of
https://github.com/itorr/one-last-image.git
synced 2026-01-02 20:06:03 +08:00
118 lines
1.7 KiB
Plaintext
118 lines
1.7 KiB
Plaintext
:root{
|
|
--background-color: #c3c3c3;
|
|
}
|
|
html{
|
|
background:var(--background-color);
|
|
text-align: center;
|
|
font: 14px sans-serif;
|
|
}
|
|
body{
|
|
margin: 0;
|
|
}
|
|
button{
|
|
cursor: pointer;
|
|
}
|
|
a{
|
|
color:midnightblue;
|
|
text-decoration: none;
|
|
}
|
|
header{
|
|
padding: 40px 0 20px;
|
|
p{
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
h1{
|
|
margin:0 auto;
|
|
|
|
// width: 200px;
|
|
// height: 34px;
|
|
// font-size:26px;
|
|
// line-height: 34px;
|
|
|
|
width: 400px;
|
|
height: 68px;
|
|
font-size:52px;
|
|
|
|
line-height: 68px;
|
|
word-spacing: -1px;
|
|
color:transparent;
|
|
|
|
background: url(one-last-image-sans.svg) no-repeat;
|
|
background-size: contain;
|
|
}
|
|
|
|
canvas{
|
|
background:#FFF;
|
|
}
|
|
.app{
|
|
max-width:800px;
|
|
margin:0 auto;
|
|
}
|
|
.output-box{
|
|
position: relative;
|
|
cursor: pointer;
|
|
img,canvas{
|
|
display: block;
|
|
max-width:100%;
|
|
margin:0 auto;
|
|
}
|
|
img{
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity .1s ease;
|
|
}
|
|
canvas{
|
|
|
|
}
|
|
&:active{
|
|
img{
|
|
opacity: 1;
|
|
}
|
|
}
|
|
&[data-cover="true"]{
|
|
width:480px;
|
|
height:480px;
|
|
margin:0 auto;
|
|
img,canvas{
|
|
width:480px;
|
|
height:480px;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
}
|
|
.ctrl-box{
|
|
padding:20px 0;
|
|
}
|
|
|
|
.generator-btn{
|
|
&:before{
|
|
content: '生成';
|
|
}
|
|
}
|
|
.app[data-runing="true"]{
|
|
.generator-btn{
|
|
pointer-events: none;
|
|
&:before{
|
|
content: '生成中...';
|
|
}
|
|
}
|
|
}
|
|
.config-box{
|
|
}
|
|
/* .app[data-cover="true"] canvas{
|
|
width:480px;
|
|
height:480px;
|
|
} */
|
|
h1{
|
|
|
|
}
|
|
|
|
footer{
|
|
padding:40px 0 100px;
|
|
a{
|
|
display: inline-block;
|
|
padding:0 .5em;
|
|
}
|
|
} |