spee.ch/client/scss/_dropzone.scss

96 lines
1.7 KiB
SCSS
Raw Normal View History

.dropzone-wrapper {
// fill the parent flex container
flex: 1 0 auto;
// be a flex container for children
display: flex;
flex-direction: column;
2018-11-14 21:24:36 -06:00
position: relative;
2019-01-25 19:37:07 -05:00
width: 100%;
box-sizing: border-box;
padding: 0px;
}
.dropzone {
2019-01-25 19:37:07 -05:00
border: 2px dashed $drop-zone-border-color;
// fill the parent flex container
flex: 1 0 auto;
// be a flex container for children
display: flex;
2019-01-25 19:37:07 -05:00
padding: $thin-padding;
-webkit-flex-direction: column;
flex-direction: column;
justify-content: center;
align-items: center;
2018-11-08 19:44:59 -05:00
user-select: none;
}
.dropzone:hover, .dropzone--active {
2019-01-25 19:37:07 -05:00
border: 2px dashed $drop-zone-border-hover;
cursor: pointer;
}
.dropzone-dropit-display, .dropzone-instructions-display {
padding: 1em;
text-align: center;
}
2018-11-08 19:44:59 -05:00
.dropzone-dropit-display
{
color: $primary-color;
}
2018-06-01 15:15:48 -07:00
.dropzone-preview-wrapper {
position: relative;
2018-06-05 14:24:54 -07:00
width: 100%;
2018-06-01 15:15:48 -07:00
.dropzone-preview-overlay {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
justify-content: center;
}
}
2018-06-02 20:58:54 -07:00
.dropzone-preview-image {
display: block;
2018-11-14 21:24:36 -06:00
width: 100%;
}
.dropzone-preview-memeify {
margin-top: 3em;
2018-06-02 20:58:54 -07:00
}
2018-11-08 19:44:59 -05:00
2018-11-14 20:08:20 -06:00
.dropzone-memeify-button {
2018-11-14 21:24:36 -06:00
background: $primary-color;
2018-11-14 20:08:20 -06:00
color: #fff;
2018-11-14 21:24:36 -06:00
cursor: pointer;
2018-11-14 20:08:20 -06:00
font-size: .8em;
padding: 3px 6px;
position: absolute;
right: 0;
top: 0;
z-index: 3;
}
.dropzone-memeify-saveMessage {
padding-top: .25em;
position: relative;
top: .5em;
}
2018-11-14 21:24:36 -06:00
.dropzone-memeify-toolbar {
/* TODO: Cleanup `!important` */
background: $primary-color !important;
left: -1em !important;
right: -1em !important;
top: -4em !important;
}
2018-11-08 19:44:59 -05:00
.dropzone-instructions-display__chooser-label {
text-decoration: underline;
}