1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
onion/sass/ascribe_uploader.scss

203 lines
3.8 KiB
SCSS
Raw Normal View History

2015-06-23 10:16:53 +02:00
.file-drag-and-drop {
2015-08-31 19:04:44 +02:00
background-color: #fefefe;
cursor: default !important;
2015-06-29 13:41:37 +02:00
display: block;
2015-06-29 14:36:55 +02:00
height: auto;
/* margin-top: 1em; */
2015-08-31 19:04:44 +02:00
outline: 1px dashed #9e9e9e;
overflow: auto;
text-align: center;
vertical-align: middle;
padding-top: 1.5em;
}
2015-07-07 18:07:12 +02:00
.inactive-dropzone {
2015-08-31 19:04:44 +02:00
background-color: rgba(0, 0, 0, 0) !important;
2015-07-07 18:07:12 +02:00
cursor: default !important;
outline: 0;
2015-06-23 10:16:53 +02:00
}
2015-07-27 14:21:26 +02:00
.present-options {
> p {
margin-bottom: .75em !important;
}
.btn {
2015-08-31 19:04:44 +02:00
margin: 0 1em;
2015-07-27 14:21:26 +02:00
}
}
.file-drag-and-drop-dialog {
margin: 1.5em 0 1.5em 0;
> p:first-child {
font-size: 1.5em !important;
margin-bottom: 0;
margin-top: 0;
padding-bottom: 0;
2015-09-04 14:54:39 +02:00
}
> .btn {
margin-bottom: 2em;
}
2015-09-09 15:15:54 +02:00
}
.file-drag-and-drop-hashing-dialog {
text-align: center;
2015-09-09 15:15:54 +02:00
margin: 1.5em 0 0 0;
}
2015-07-07 18:07:12 +02:00
.file-drag-and-drop .file-drag-and-drop-dialog > p:first-child {
font-size: 1.5em !important;
2015-06-23 10:16:53 +02:00
2015-07-07 18:07:12 +02:00
margin-top: 0;
margin-bottom: 0;
padding-bottom: 0;
2015-06-23 10:16:53 +02:00
}
.file-drag-and-drop-position {
display: inline-block;
margin-left: .7em;
margin-right: .7em;
2015-08-31 19:04:44 +02:00
position: relative;
2015-06-29 17:59:35 +02:00
.delete-file {
background-color: black;
2015-08-31 19:04:44 +02:00
border-radius: 1em;
cursor: pointer;
display: block;
2015-06-29 17:59:35 +02:00
height: 20px;
position: absolute;
right: -7px;
text-align: center;
2015-08-31 19:04:44 +02:00
top: -7px;
width: 20px;
2015-06-29 17:59:35 +02:00
span {
color: white;
2015-07-07 18:07:12 +02:00
font-size: .8em;
2015-08-31 19:04:44 +02:00
left: 0;
top: 1px;
2015-07-07 18:07:12 +02:00
&:hover {
color: $brand-danger;
}
2015-06-29 17:59:35 +02:00
}
}
2015-06-23 10:16:53 +02:00
}
.file-drag-and-drop-preview-table-wrapper {
display: table;
2015-08-31 19:04:44 +02:00
height: 94px;
width: 104px;
2015-06-23 10:16:53 +02:00
}
.file-drag-and-drop-preview {
2015-08-31 19:04:44 +02:00
background-color: #eeeeee;
2015-06-23 10:16:53 +02:00
border: 1px solid #616161;
2015-08-31 19:04:44 +02:00
cursor: default;
overflow: hidden;
2015-06-23 10:16:53 +02:00
}
.action-file {
color: white;
cursor: pointer;
font-size: 2.5em;
text-shadow: -1px 0 black,
0 1px black,
1px 0 black,
0 -1px black;
&:link,
&:visited,
&:hover,
&:active {
text-decoration: none;
}
&:hover {
color: #d9534f;
}
&.icon-ascribe-ok, &.icon-ascribe-ok:hover {
cursor: default;
color: $ascribe-dark-blue;
2015-11-23 11:05:02 +01:00
font-size: 4.2em;
top: .2em;
}
}
.spinner-file {
font-size: 2.5em;
}
2015-06-23 10:16:53 +02:00
.file-drag-and-drop-preview-image {
border: 1px solid #616161;
2015-08-31 19:04:44 +02:00
display: table;
height: 104px;
overflow: hidden;
2015-06-25 13:28:49 +02:00
text-align: center;
2015-08-31 19:04:44 +02:00
width: 104px;
2015-06-25 13:28:49 +02:00
2015-11-23 11:05:02 +01:00
.action-file, .spinner-file, .icon-ascribe-ok {
margin-top: 1em;
2015-11-23 11:05:02 +01:00
line-height: 1.3;
}
.ascribe-progress-bar + .action-file, .ascribe-progress-bar + .spinner-file {
2015-08-31 19:04:44 +02:00
margin-top: .6em;
2015-06-25 13:28:49 +02:00
}
}
2015-06-23 10:16:53 +02:00
.file-drag-and-drop-preview-other {
display: table-cell;
text-align: center;
vertical-align: middle;
p {
margin-top: 5px;
}
.action-file:not(.icon-ascribe-ok), .spinner-file {
2015-08-31 19:04:44 +02:00
margin-top: 0;
position: relative;
top: .3em;
span:not(:first-child) {
display: block;
margin-top: .5em;
}
}
2015-06-23 10:16:53 +02:00
}
.ascribe-progress-bar {
margin-bottom: 0;
> .progress-bar {
background-color: $ascribe-dark-blue;
}
span {
font-size: 1.2em;
color: white;
text-shadow: -1px 0 $ascribe--button-default-color,
0 1px $ascribe--button-default-color,
1px 0 $ascribe--button-default-color,
0 -1px $ascribe--button-default-color;
}
}
.ascribe-progress-bar-xs {
height: 12px;
}
.upload-button-wrapper {
text-align: left;
.btn {
font-size: 1em;
margin-right: 1em;
}
span + .btn {
margin-left: 1em;
}
}