2015-05-14 16:45:37 +03:00
|
|
|
/* Image Uploader
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
|
|
.image-uploader {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2015-05-16 14:43:12 +03:00
|
|
|
margin: 1.6em 0;
|
2015-05-14 16:45:37 +03:00
|
|
|
padding: 55px 60px;
|
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
2015-06-24 15:37:37 +03:00
|
|
|
background: #f6f7f8;
|
2015-05-18 19:30:59 +03:00
|
|
|
border-radius: 4px;
|
2015-06-24 15:37:37 +03:00
|
|
|
color: #808284;
|
2015-05-16 14:43:12 +03:00
|
|
|
text-align: center;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2015-06-24 15:37:37 +03:00
|
|
|
.image-uploader .description {
|
|
|
|
font-size: 1.6rem;
|
|
|
|
}
|
|
|
|
|
2015-05-14 16:45:37 +03:00
|
|
|
.image-uploader a {
|
2015-06-24 14:15:48 +03:00
|
|
|
color: var(--midgrey);
|
2015-05-14 16:45:37 +03:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader a:hover {
|
|
|
|
color: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
2015-05-18 19:30:59 +03:00
|
|
|
.image-uploader .image-upload,
|
|
|
|
.image-uploader .image-url {
|
2015-05-14 16:45:37 +03:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
2015-05-16 14:43:12 +03:00
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
2015-06-24 14:15:48 +03:00
|
|
|
color: var(--midgrey);
|
2015-05-14 16:45:37 +03:00
|
|
|
text-decoration: none;
|
2015-06-24 15:37:37 +03:00
|
|
|
font-size: 14px;
|
2015-05-16 14:43:12 +03:00
|
|
|
line-height: 12px;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2015-05-18 19:30:59 +03:00
|
|
|
.image-uploader .image-upload:hover,
|
|
|
|
.image-uploader .image-url:hover {
|
2015-05-14 16:45:37 +03:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader .btn-green {
|
|
|
|
position: relative;
|
|
|
|
z-index: 700;
|
2015-05-16 14:43:12 +03:00
|
|
|
display: inline-block;
|
2015-06-21 21:23:49 +03:00
|
|
|
margin-top: 10px;
|
2015-05-14 16:45:37 +03:00
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader input.main {
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
margin: 0;
|
2015-05-16 14:43:12 +03:00
|
|
|
font-size: 23px;
|
2015-05-14 16:45:37 +03:00
|
|
|
opacity: 0;
|
2015-05-16 14:43:12 +03:00
|
|
|
cursor: pointer;
|
2015-05-14 16:45:37 +03:00
|
|
|
transform: scale(14);
|
2015-05-16 14:43:12 +03:00
|
|
|
transform-origin: right;
|
2015-05-14 16:45:37 +03:00
|
|
|
direction: ltr;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader input.main.right {
|
|
|
|
right: 9999px;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader input.url {
|
2015-06-24 15:37:37 +03:00
|
|
|
margin: 0 0 10px 0;
|
2015-05-16 14:43:12 +03:00
|
|
|
padding: 9px 7px;
|
2015-05-14 16:45:37 +03:00
|
|
|
outline: 0;
|
|
|
|
background: #fff;
|
2015-05-16 14:43:12 +03:00
|
|
|
vertical-align: middle;
|
|
|
|
font: -webkit-small-control;
|
2015-06-24 15:37:37 +03:00
|
|
|
font-size: 1.4rem;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader input.url + .btn.btn-blue {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader .progress {
|
|
|
|
position: relative;
|
2015-06-21 21:23:49 +03:00
|
|
|
top: 50%;
|
2015-05-14 16:45:37 +03:00
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
background: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
|
|
|
border-radius: 12px;
|
|
|
|
box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px inset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader .fileupload-loading {
|
|
|
|
top: 50%;
|
2015-05-16 14:43:12 +03:00
|
|
|
display: block;
|
2015-06-21 21:23:49 +03:00
|
|
|
margin: 0 auto;
|
2015-05-14 16:45:37 +03:00
|
|
|
width: 35px;
|
|
|
|
height: 28px;
|
|
|
|
background-size: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader .failed {
|
|
|
|
position: relative;
|
|
|
|
top: -40px;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader .bar {
|
|
|
|
height: 12px;
|
|
|
|
background: var(--blue);
|
|
|
|
}
|
|
|
|
|
|
|
|
.image-uploader .bar.fail {
|
|
|
|
background: var(--red);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Pre-Image-Uploader // TODO: RENAME
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
|
|
.pre-image-uploader {
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
2015-05-16 14:43:12 +03:00
|
|
|
margin: 1.6em 0;
|
|
|
|
min-height: 46px;
|
2015-05-14 16:45:37 +03:00
|
|
|
height: auto;
|
|
|
|
background: rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 2px;
|
2015-06-24 14:15:48 +03:00
|
|
|
color: var(--midgrey);
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.pre-image-uploader input {
|
|
|
|
position: absolute;
|
|
|
|
left: 9999px;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pre-image-uploader a {
|
|
|
|
z-index: 10000;
|
2015-06-24 14:15:48 +03:00
|
|
|
color: var(--midgrey);
|
2015-05-14 16:45:37 +03:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pre-image-uploader a:hover {
|
|
|
|
color: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.pre-image-uploader img {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
2015-05-16 14:43:12 +03:00
|
|
|
max-width: 100%;
|
2015-05-14 16:45:37 +03:00
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pre-image-uploader .image-cancel {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
z-index: 300;
|
2015-05-18 19:30:59 +03:00
|
|
|
display: block;
|
2015-05-16 14:43:12 +03:00
|
|
|
padding: 8px;
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
box-shadow: rgba(255, 255, 255, 0.2) 0 0 0 1px;
|
2015-05-14 16:45:37 +03:00
|
|
|
color: #fff;
|
|
|
|
text-decoration: none;
|
2015-05-18 19:30:59 +03:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 10px;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.pre-image-uploader .image-cancel:hover {
|
2015-05-16 14:43:12 +03:00
|
|
|
background: var(--red);
|
2015-05-14 16:45:37 +03:00
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|