2015-05-14 16:45:37 +03:00
|
|
|
/* Image Uploader
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader {
|
2015-05-14 16:45:37 +03:00
|
|
|
position: relative;
|
2016-02-26 16:25:47 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
2015-05-14 16:45:37 +03:00
|
|
|
overflow: hidden;
|
2015-05-16 14:43:12 +03:00
|
|
|
margin: 1.6em 0;
|
2016-02-26 16:25:47 +03:00
|
|
|
min-height: 130px;
|
2015-05-14 16:45:37 +03:00
|
|
|
width: 100%;
|
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
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader.--drag-over {
|
|
|
|
border: 2px solid;
|
2015-06-24 15:37:37 +03:00
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader.--with-image {
|
|
|
|
background: rgba(0, 0, 0, 0.1);
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader img {
|
|
|
|
display: block;
|
|
|
|
margin: 0 auto;
|
|
|
|
max-width: 100%;
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .image-cancel {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
z-index: 300;
|
|
|
|
display: block;
|
|
|
|
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;
|
|
|
|
color: #fff;
|
2015-05-14 16:45:37 +03:00
|
|
|
text-decoration: none;
|
2016-02-26 16:25:47 +03:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 10px;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .upload-form {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .x-file-input {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .x-file-input label {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .description {
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 1.6rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .image-upload,
|
|
|
|
.gh-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
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader a {
|
|
|
|
color: var(--midgrey);
|
|
|
|
text-decoration: none;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader a:hover {
|
|
|
|
color: var(--darkgrey);
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .image-upload:hover,
|
|
|
|
.gh-image-uploader .image-url:hover {
|
2015-05-16 14:43:12 +03:00
|
|
|
cursor: pointer;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader form {
|
|
|
|
padding: 55px 60px;
|
|
|
|
width: 100%;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-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
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader input.url + .btn.btn-blue {
|
2015-05-14 16:45:37 +03:00
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .image-cancel:hover {
|
|
|
|
background: var(--red);
|
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .progress-container {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .progress {
|
2015-05-14 16:45:37 +03:00
|
|
|
overflow: hidden;
|
2016-02-26 16:25:47 +03:00
|
|
|
margin: 0 auto;
|
|
|
|
width: 60%;
|
2015-05-14 16:45:37 +03:00
|
|
|
background: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
|
|
|
border-radius: 12px;
|
|
|
|
box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px inset;
|
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .failed {
|
|
|
|
margin: 1em 2em;
|
2015-05-14 16:45:37 +03:00
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .bar {
|
2015-05-14 16:45:37 +03:00
|
|
|
height: 12px;
|
|
|
|
background: var(--blue);
|
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .bar.fail {
|
|
|
|
width: 100% !important;
|
2015-05-14 16:45:37 +03:00
|
|
|
background: var(--red);
|
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
/* Try Again button */
|
|
|
|
.gh-image-uploader .btn-green:last-child {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 3em;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|