171 lines
3.4 KiB
CSS
171 lines
3.4 KiB
CSS
body {
|
|
background: #f2f2f2;
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: Roboto, sans-serif;
|
|
}
|
|
|
|
#header {
|
|
height: 100px;
|
|
width: 100%;
|
|
background-color: rebeccapurple;
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
line-height: 100px;
|
|
text-align: center;
|
|
z-index: 2;
|
|
}
|
|
|
|
#header span {
|
|
color: white;
|
|
font-size: 2em;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#content {
|
|
margin-top: 100px;
|
|
min-height: calc(100vh - 100px);
|
|
padding-top: 1rem;
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
#content div.block {
|
|
width: 800px;
|
|
max-width: calc(100vw - 7rem);
|
|
background: white;
|
|
padding: 2rem;
|
|
text-align: center;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
#content div.block:nth-of-type(n + 2) {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#content div#container {
|
|
position: relative;
|
|
height: 225px;
|
|
left: 50%;
|
|
-webkit-transform: translateX(-50%);
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
#content div#container #img {
|
|
display: block;
|
|
height: 100%;
|
|
width: auto;
|
|
border-left: 9px solid #fff;
|
|
-webkit-transition: margin 0.5s ease, border-color 0.2s ease;
|
|
transition: margin 0.5s ease, border-color 0.2s ease;
|
|
}
|
|
|
|
#content div#container div#reflection {
|
|
background: url(reflection.svg);
|
|
background-size: cover;
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
-webkit-transition: margin 0.5s ease;
|
|
transition: margin 0.5s ease;
|
|
}
|
|
|
|
#content .col {
|
|
display: inline-block;
|
|
height: 70px;
|
|
width: 70px;
|
|
cursor: pointer;
|
|
-webkit-transition: background-color 0.2s ease;
|
|
transition: background-color 0.2s ease;
|
|
background-color: #fff;
|
|
}
|
|
|
|
#content .col:nth-child(n + 2) {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
#content #customcol {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#content #customcol input {
|
|
padding: 0.5rem;
|
|
-webkit-transition: background-color 0.2s ease;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
#content #customcol input:invalid {
|
|
background-color: lightcoral;
|
|
}
|
|
|
|
#content input#file {
|
|
position: fixed;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
z-index: 1;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
-webkit-transition: opacity 0.3s ease;
|
|
transition: opacity 0.3s ease;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
}
|
|
|
|
#content input#file.show {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
|
|
#content input#file:after {
|
|
content: 'Drop cover image anywhere...';
|
|
color: white;
|
|
text-shadow: black 2px 0px 0px, black 1.75517px 0.95885px 0px, black 1.0806px 1.68294px 0px, black 0.14147px 1.99499px 0px, black -0.83229px 1.81859px 0px, black -1.60229px 1.19694px 0px, black -1.97998px 0.28224px 0px, black -1.87291px -0.70157px 0px, black -1.30729px -1.5136px 0px, black -0.42159px -1.95506px 0px, black 0.56732px -1.91785px 0px, black 1.41734px -1.41108px 0px, black 1.92034px -0.55883px 0px;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
-webkit-transform: translateX(-50%);
|
|
transform: translateX(-50%);
|
|
font-size: 2rem;
|
|
}
|
|
|
|
#content input#file:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#content input#file:hover + label {
|
|
background: #905ac7;
|
|
}
|
|
|
|
#content input#file + label {
|
|
color: white;
|
|
background-color: rebeccapurple;
|
|
padding: 0.9rem 1rem;
|
|
-webkit-transition: background-color 0.2s ease;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
#content input#file + label svg {
|
|
fill: white;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
#footer {
|
|
width: 100%;
|
|
background-color: #361e4e;
|
|
color: white;
|
|
text-align: center;
|
|
padding: 2rem 0;
|
|
line-height: 2rem;
|
|
}
|
|
|
|
#footer a {
|
|
color: white;
|
|
}
|
|
/*# sourceMappingURL=style.css.map */ |