This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/sia-skynet/src/components/HomeUpload/HomeUpload.scss

224 lines
3.7 KiB
SCSS
Raw Normal View History

2020-02-12 22:13:34 +00:00
@import "../../variables.scss";
2020-02-12 17:23:10 +00:00
.home-upload {
position: relative;
.bottom-text {
color: $lightGray;
font-size: 13px;
text-align: center;
max-width: 670px;
margin: 25px auto 0;
@media (min-width: $largebp) {
font-size: 14px;
}
}
}
2020-02-13 22:07:42 +00:00
.home-upload-white {
transition: 0.2s background-color, 0.2s border, 0.2s color;
2020-02-12 17:23:10 +00:00
background: $white;
border-radius: 12px;
2020-02-12 22:13:34 +00:00
box-shadow: 0 8px 24px 0 rgba(90, 94, 91, 0.15),
0 2px 4px 0 rgba(0, 0, 0, 0.05);
2020-02-12 17:23:10 +00:00
padding: 16px;
2020-02-13 22:07:42 +00:00
opacity: 0;
transform: translateY(40px);
transition: 0.7s opacity, 0.7s transform;
2020-02-12 17:23:10 +00:00
}
2020-02-13 22:07:42 +00:00
.home-upload-split {
2020-02-12 17:23:10 +00:00
border: 1px dashed #c5cec7;
border-radius: 4px;
2020-02-13 22:07:42 +00:00
padding: 20px;
@media (min-width: $largebp) {
display: flex;
}
}
.home-upload-box {
padding-bottom: 20px;
@media (min-width: $largebp) {
width: 50%;
padding-bottom: 0;
padding-right: 20px;
}
}
.home-upload-dropzone {
border-radius: 4px;
height: 200px;
2020-02-12 17:23:10 +00:00
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
outline: none;
&:hover {
background-color: rgba(0, 0, 0, 0.03);
cursor: pointer;
}
&:hover .button {
background-color: $greenHover;
transform: translateY(-2px);
}
&.drop-active {
background-color: $green;
border: 1px solid $green;
2020-02-13 22:07:42 +00:00
h3 {
color: $white;
}
2020-02-12 17:23:10 +00:00
.button {
display: none;
}
}
.button {
margin-top: 15px;
}
}
.home-upload-text {
color: $gray;
display: block;
transition: 0.2s color;
2020-02-13 22:07:42 +00:00
font-size: 13px;
2020-02-12 17:23:10 +00:00
@media (min-width: $largebp) {
2020-02-13 22:07:42 +00:00
font-size: 14px;
2020-02-12 17:23:10 +00:00
}
.drop-active & {
color: $white;
}
2020-02-13 22:07:42 +00:00
h3 {
font-size: 16px;
margin-bottom: 5px;
color: $darkGray;
@media (min-width: $largebp) {
font-size: 18px;
}
}
2020-02-12 17:23:10 +00:00
}
.deco-3 {
position: absolute;
top: -70px;
left: -5px;
animation: 8s float infinite;
}
.deco-4 {
position: absolute;
top: -32px;
left: -90px;
animation: 6s float infinite;
}
.deco-5 {
position: absolute;
top: 52px;
left: -56px;
animation: 10s float infinite;
}
.home-uploaded-files {
border: solid 1px #c5cec7;
2020-02-12 22:13:34 +00:00
padding: 0 20px;
2020-02-12 17:23:10 +00:00
margin-top: 10px;
border-radius: 4px;
2020-02-12 22:13:34 +00:00
@media (min-width: $largebp) {
padding: 0 40px;
}
2020-02-12 17:23:10 +00:00
.upload-file + .upload-file {
border-top: 1px solid rgba(197, 206, 199, 0.4);
}
}
2020-02-13 22:07:42 +00:00
.home-upload-retrieve {
align-items: center;
text-align: center;
display: flex;
flex-direction: column;
text-align: center;
justify-content: center;
border-top: 1px dashed #c5cec7;
height: 200px;
padding: 40px 20px;
@media (min-width: $largebp) {
width: 50%;
padding: 20px 40px;
border-top: 0;
border-left: 1px dashed #c5cec7;
}
.home-upload-text {
width: 100%;
}
}
.home-upload-retrieve-form {
width: 100%;
margin-top: 3px;
position: relative;
margin-top: 30px;
input {
border: 1px solid #cbd3cd;
border-radius: 4px;
line-height: 46px;
transition: 0.2s border-color;
padding: 0 64px 0 16px;
font-size: 13px;
@media (min-width: $largebp) {
font-size: 14px;
}
}
input:hover,
input:hover + button {
border-color: rgb(143, 143, 143);
}
input:focus,
input:focus + button {
border-color: $green;
}
button {
border-left: 1px solid #cbd3cd;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
width: 46px;
height: 48px;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
right: 0;
color: #cbd3cd;
transition: 0.2s background-color, 0.2s border-color, 0.2s color;
&:hover {
background: $green;
color: $white;
border-color: $green;
}
}
}