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;
|
2017-08-02 10:05:59 +03:00
|
|
|
width: 100%;
|
|
|
|
min-height: 130px;
|
2015-05-14 16:45:37 +03:00
|
|
|
overflow: hidden;
|
2015-05-16 14:43:12 +03:00
|
|
|
margin: 1.6em 0;
|
2018-04-03 13:52:18 +03:00
|
|
|
color: color-mod(var(--midgrey) l(-18%));
|
2015-05-16 14:43:12 +03:00
|
|
|
text-align: center;
|
2021-03-03 20:41:25 +03:00
|
|
|
border-radius: 3px;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2016-09-24 12:10:08 +03:00
|
|
|
.gh-image-uploader.-drag-over {
|
2017-11-14 15:26:51 +03:00
|
|
|
border: 2px solid var(--blue);
|
2015-06-24 15:37:37 +03:00
|
|
|
}
|
|
|
|
|
2016-09-24 12:10:08 +03:00
|
|
|
.gh-image-uploader.-with-image {
|
2021-02-09 19:22:58 +03:00
|
|
|
background: transparent !important;
|
|
|
|
border: none !important;
|
2016-02-26 16:25:47 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader img {
|
|
|
|
display: block;
|
2017-05-07 21:07:46 +03:00
|
|
|
min-width: 200px;
|
2017-08-02 10:05:59 +03:00
|
|
|
max-width: 100%;
|
|
|
|
margin: 0 auto;
|
2016-02-26 16:25:47 +03:00
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
2021-06-16 19:56:25 +03:00
|
|
|
.image-delete {
|
2016-02-26 16:25:47 +03:00
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 10px;
|
|
|
|
z-index: 300;
|
|
|
|
display: block;
|
2017-08-02 10:05:59 +03:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2016-02-26 16:25:47 +03:00
|
|
|
padding: 8px;
|
|
|
|
color: #fff;
|
|
|
|
font-size: 13px;
|
|
|
|
line-height: 10px;
|
2017-08-02 10:05:59 +03:00
|
|
|
text-decoration: none;
|
|
|
|
background: rgba(0, 0, 0, 0.6);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
box-shadow: rgba(255, 255, 255, 0.2) 0 0 0 1px;
|
2017-04-14 19:22:14 +03:00
|
|
|
}
|
|
|
|
|
2021-06-16 19:56:25 +03:00
|
|
|
.image-delete svg {
|
2017-06-02 00:02:03 +03:00
|
|
|
width: 13px;
|
2017-08-02 10:05:59 +03:00
|
|
|
height: 13px;
|
2021-07-05 13:41:27 +03:00
|
|
|
margin: 0 !important;
|
2017-08-02 10:05:59 +03:00
|
|
|
fill: #fff;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2021-06-16 19:56:25 +03:00
|
|
|
.image-delete:hover {
|
|
|
|
color: #fff;
|
|
|
|
cursor: pointer;
|
|
|
|
background: var(--red);
|
|
|
|
}
|
|
|
|
|
2016-02-26 16:25:47 +03:00
|
|
|
.gh-image-uploader .upload-form {
|
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2017-08-02 10:05:59 +03:00
|
|
|
width: 100%;
|
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;
|
2017-03-16 17:39:57 +03:00
|
|
|
justify-content: center;
|
2017-08-02 10:05:59 +03:00
|
|
|
align-items: center;
|
2016-02-26 16:25:47 +03:00
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader .description {
|
|
|
|
width: 100%;
|
|
|
|
font-size: 1.6rem;
|
2017-08-02 10:05:59 +03:00
|
|
|
text-align: center;
|
2016-02-26 16:25:47 +03:00
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-image-uploader .failed {
|
|
|
|
margin: 1em 2em;
|
|
|
|
font-size: 16px;
|
2018-04-03 13:52:18 +03:00
|
|
|
color: color-mod(var(--midgrey));
|
2017-05-08 13:35:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
/* TODO: remove the gh-image-uploader classes once it's using gh-progrss-bar */
|
|
|
|
.gh-image-uploader .progress-container,
|
|
|
|
.gh-progress-container {
|
2016-02-26 16:25:47 +03:00
|
|
|
flex-grow: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-image-uploader .progress,
|
|
|
|
.gh-progress-container-progress {
|
2017-08-02 10:05:59 +03:00
|
|
|
width: 60%;
|
2015-05-14 16:45:37 +03:00
|
|
|
overflow: hidden;
|
2016-02-26 16:25:47 +03:00
|
|
|
margin: 0 auto;
|
2015-05-14 16:45:37 +03:00
|
|
|
background: linear-gradient(to bottom, #f5f5f5, #f9f9f9);
|
|
|
|
border-radius: 12px;
|
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-image-uploader .bar,
|
|
|
|
.gh-progress-bar {
|
2021-06-21 13:03:35 +03:00
|
|
|
height: 8px;
|
|
|
|
background: var(--green);
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-image-uploader .bar.fail,
|
|
|
|
.gh-progress-bar.-error {
|
2016-02-26 16:25:47 +03:00
|
|
|
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 */
|
2017-02-16 22:50:05 +03:00
|
|
|
.gh-image-uploader .gh-btn-green:last-child {
|
2016-02-26 16:25:47 +03:00
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 3em;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
2017-08-02 10:05:59 +03:00
|
|
|
|
|
|
|
|
|
|
|
/* Unsplash Button
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
|
|
.gh-image-uploader-unsplash {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 36px;
|
|
|
|
height: 36px;
|
|
|
|
padding: 10px;
|
2021-03-09 14:59:25 +03:00
|
|
|
opacity: 0.33;
|
|
|
|
transition: opacity 0.3s ease;
|
2017-08-02 10:05:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader-unsplash:hover {
|
|
|
|
cursor: pointer;
|
2021-03-09 14:59:25 +03:00
|
|
|
opacity: 1.0;
|
2017-08-02 10:05:59 +03:00
|
|
|
transition: opacity 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-image-uploader-unsplash svg {
|
2019-01-23 11:05:28 +03:00
|
|
|
width: 14px;
|
2017-08-02 10:05:59 +03:00
|
|
|
}
|