1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
onion/sass/ascribe_uploader.scss

359 lines
7.1 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;
@media screen and (max-width: 625px) {
.file-name {
display: block;
}
}
}
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 {
2015-12-23 09:36:08 +01:00
margin: 0 0 1.5em 0;
2015-12-21 11:46:46 +01:00
2015-12-23 09:36:08 +01:00
.file-drag-and-drop-dialog-title {
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-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 {
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;
2015-12-08 20:55:13 +01:00
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-12-23 09:36:08 +01:00
// REFACTOR TO USE TABLE CELL
.action-file, .spinner-file {
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 {
height: 94px;
2015-06-23 10:16:53 +02:00
text-align: center;
width: 104px;
2015-06-23 10:16:53 +02:00
p {
margin-top: 5px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.action-file:not(.icon-ascribe-ok), .spinner-file {
2015-08-31 19:04:44 +02:00
margin-top: 0;
position: relative;
top: 0.8em;
2015-08-31 19:04:44 +02:00
}
2015-06-23 10:16:53 +02:00
}
2015-12-08 18:22:11 +01:00
.file-drag-and-drop-error {
color: #333333;
2015-12-08 18:22:11 +01:00
margin-bottom: 25px;
overflow: hidden;
text-align: center;
h4 {
margin-top: 0;
color: $ascribe-pink;
}
.btn {
padding-left: 45px;
padding-right: 45px;
}
/* Make button larger on mobile */
@media screen and (max-width: 625px) {
.btn {
padding: 10px 100px 10px 100px;
margin-bottom: 10px;
margin-top: 10px;
}
}
}
.file-drag-and-drop-error-detail {
float: left;
padding-right: 25px;
text-align: left;
width: 40%;
&.file-drag-and-drop-error-detail-multiple-files {
width: 45%;
}
/* Have detail fill up entire width on mobile */
@media screen and (max-width: 625px) {
text-align: center;
width: 100%;
&.file-drag-and-drop-error-detail-multiple-files {
width: 100%;
}
}
}
.file-drag-and-drop-error-file-names {
float: left;
height: 104px;
max-width: 35%;
padding-left: 25px;
position: relative;
text-align: left;
ul {
list-style: none;
padding-left: 0;
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
li {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
/* Drop down file names under the retry button on mobile */
@media screen and (max-width: 625px) {
height: auto;
max-width: none;
padding: 0;
text-align: center;
width: 100%;
ul {
margin-bottom: 0;
margin-top: 10px;
top: 0;
-webkit-transform: none;
-ms-transform: none;
transform: none;
li {
display: inline-block;
max-width: 25%;
padding-right: 10px;
&:not(:last-child)::after {
content: ',';
}
}
}
}
}
.file-drag-and-drop-error-icon-container {
background-color: #eeeeee;
display: table;
2015-12-08 18:22:11 +01:00
float: left;
height: 104px;
position: relative;
width: 104px;
vertical-align: top;
.icon-ascribe-thin-cross {
display: table-cell;
font-size: 5.5em;
vertical-align: middle;
2015-12-08 18:22:11 +01:00
}
&.file-drag-and-drop-error-icon-container-multiple-files {
background-color: #d7d7d7;
left: -15px;
margin-bottom: 24px;
2015-12-08 18:22:11 +01:00
z-index: 1;
&::before {
content: '';
background-color: #e9e9e9;
display: block;
height: 104px;
left: 15px;
position: absolute;
top: 12px;
width: 104px;
z-index: 2;
}
&::after {
content: '';
background-color: #f5f5f5;
display: block;
height: 104px;
left: 30px;
position: absolute;
top: 24px;
width: 104px;
z-index: 3;
}
.icon-ascribe-thin-cross {
left: 44px;
position: absolute;
top: 38px;
2015-12-08 18:22:11 +01:00
z-index: 4;
}
}
/* Hide the icon when the screen is too small */
@media screen and (max-width: 625px) {
display: none;
}
}
.ascribe-progress-bar {
margin-bottom: 0;
> .progress-bar {
background-color: $ascribe-dark-blue;
}
span {
2015-12-08 20:55:13 +01:00
font-size: 1.2em;
color: white;
2015-12-08 20:55:13 +01:00
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;
}
2015-12-21 11:46:46 +01:00
.ascribe-upload-button {
display: inline-block;
text-align: left;
2015-12-21 11:46:46 +01:00
&.ascribe-upload-button-has-label {
display: block;
2015-12-21 11:46:46 +01:00
.btn {
font-size: 1em;
margin-right: 1em;
}
span + .btn {
margin-left: 1em;
}
}
2015-12-08 18:22:11 +01:00
}