filestash/public/assets/pages/filespage/ctrl_upload.css
2024-12-04 13:07:17 +11:00

184 lines
4.5 KiB
CSS

/***************************/
/* COMPONENT: UPLOAD QUEUE */
.component_upload {
position: fixed;
bottom: 0;
right: 00px;
z-index: 999;
width: 100%;
max-width: 550px;
box-shadow: 1px 2px 20px rgba(0, 0, 0, 0.1);
background: white;
box-sizing: border-box;
border-top-left-radius: 15px;
border-top-right-radius: 15px;
}
.dark-mode .component_upload {
color: var(--bg-color);
}
.component_upload h2 {
padding: 20px 20px 5px 20px;
margin: 0 0 5px 0;
font-size: 1.2em;
font-weight: normal;
}
.component_upload h2 .percent {
color: var(--emphasis-primary);
}
.component_upload h2 .count_block {
display: inline;
margin-left: 10px;
}
.component_upload h2 .count_block span.grandTotal {
font-size: 0.8em;
opacity: 0.8;
}
.component_upload h2 .count_block span.grandTotal:before {
content: "/";
}
.component_upload h2 .count_block span.completed {
opacity: 0.8;
}
.component_upload h2 .component_icon {
cursor: pointer;
margin-left: 10px;
width: 20px;
float: right;
}
.component_upload h3 {
padding: 3px 20px 3px 20px;
margin: 0;
font-size: 0.95rem;
font-weight: normal;
background: var(--dark);
color: var(--super-light);
}
.component_upload h3 span {
float: right;
}
.component_upload .stats_content {
padding: 5px 10px 5px 20px;
clear: both;
max-height: 200px;
overflow-y: auto;
overflow-x: hidden;
font-size: 0.85em;
}
.component_upload .stats_content:empty {
display: none;
}
.component_upload .stats_content .error_color {
color: var(--error);
}
.component_upload .stats_content .todo_color {
opacity: 0.7;
}
.component_upload .stats_content .file_row {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
.component_upload .stats_content .file_row .file_path {
flex: 1;
padding: 0px 3px 0px 0;
line-height: 25px;
}
.component_upload .stats_content .file_row .file_path .speed {
font-size: 0.7rem;
opacity: 0.7;
padding-left: 5px;
line-height: 0.7rem;
}
.component_upload .stats_content .file_row .file_path .speed:not(:empty):before {
content: "(";
}
.component_upload .stats_content .file_row .file_path .speed:not(:empty):after {
content: ")";
}
.component_upload .stats_content .file_row .file_state {
width: 50px;
line-height: 25px;
text-align: right;
padding-right: 3px;
}
.component_upload .stats_content .file_row .file_control {
width: 25px;
display: flex;
justify-content: end;
align-items: center;
margin-left: -2px;
margin-right: -2px;
}
.component_upload .stats_content .file_row .file_control img {
display: none;
cursor: pointer;
height: 22px;
width: 22px;
}
.component_upload .stats_content .file_row:hover .file_control img {
display: inherit;
padding-top: 3px;
}
/***********************/
/* COMPONENT: FILEZONE */
[data-bind="filemanager-children"].dropzone {
border: 2px dashed!important;
}
/**************************/
/* COMPONENT: FILE UPLOAD */
.component_mobilefileupload {
display: inline;
position: fixed;
bottom: 25px;
right: 25px;
z-index: 1;
}
.component_mobilefileupload input[type="file"] {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}
.component_mobilefileupload input[type="file"]:focus + label, .component_mobilefileupload input[type="file"] + label:hover {
opacity: 0.95;
}
.component_mobilefileupload input[type="file"] + label {
display: inline-block;
cursor: pointer;
background: #57595A;
border-radius: 50%;
background-position: center;
box-shadow: rgba(0, 0, 0, 0.14) 0px 4px 5px 0px, rgba(0, 0, 0, 0.12) 0px 1px 10px 0px, rgba(0, 0, 0, 0.2) 0px 2px 4px -1px;
width: 50px;
height: 50px;
}
.component_mobilefileupload input[type="file"] + label:hover {
transition: background 0.4s;
background: var(--primary) radial-gradient(circle, transparent 1%, var(--emphasis-secondary) 1%) center/15000%;
}
.component_mobilefileupload input[type="file"] + label:active {
background-color: #00000033;
background-size: 100%;
transition: background 0s;
}
.component_mobilefileupload input[type="file"] + label .component_icon {
width: 24px;
height: 24px;
padding: 13px;
}
.mobilefileupload-appear {
transform: translateX(75px);
transition: transform 0.25s ease;
}
.mobilefileupload-appear-active {
transition-delay: 0.3s;
transform: translateX(0px);
}