cryptpad/customize.dist/src/less2/include/fileupload.less

108 lines
3.2 KiB
Plaintext
Raw Normal View History

2019-07-29 09:22:52 +00:00
@import (reference) "./browser.less";
@import (reference) './colortheme-all.less';
@import (reference) './modal.less';
2017-09-04 13:09:54 +00:00
.fileupload_main () {
2018-07-14 13:15:23 +00:00
--LessLoader_require: LessLoader_currentFile();
.modal_main();
}
& {
2017-09-04 13:09:54 +00:00
/* Upload status table */
#cp-fileupload {
.modal_base();
position: absolute;
2019-07-29 09:22:52 +00:00
right: 10vw;
2017-09-04 13:09:54 +00:00
bottom: 10vh;
box-sizing: border-box;
z-index: 100000; //Z file upload table container
2017-09-04 13:09:54 +00:00
display: none;
color: darken(@colortheme_static_apps[default], 10%);
max-height: 180px;
overflow-y: auto;
2019-07-29 09:22:52 +00:00
@media screen and (max-width: @browser_media-medium-screen) {
left: 5vw; right: 5vw; bottom: 5vw;
}
.cp-fileupload-header {
display: flex;
background-color: darken(@colortheme_modal-bg, 10%);
font-weight: bold;
position: sticky;
top: 0;
z-index: 1;
2019-07-29 09:22:52 +00:00
.cp-fileupload-header-title {
padding: 0.25em 0.5em;
flex-grow: 1;
}
.cp-fileupload-header-close {
padding: 0.25em 0.5em;
cursor: pointer;
&:hover {
background-color: rgba(0,0,0,0.1);
2017-09-04 13:09:54 +00:00
}
}
2019-07-29 09:22:52 +00:00
}
#cp-fileupload-table {
width: 100%;
2017-09-04 13:09:54 +00:00
@upload_pad_h: 0.25em;
@upload_pad_v: 0.5em;
td {
padding: @upload_pad_h @upload_pad_v;
}
2017-09-25 10:44:05 +00:00
.cp-fileupload-table-link {
2019-07-29 09:22:52 +00:00
display: flex;
align-items: center;
white-space: nowrap;
max-width: 30vw;
margin: 0px @upload_pad_v;
2017-09-25 10:44:05 +00:00
.fa {
2019-07-29 09:22:52 +00:00
margin-top: 4px;
2017-09-25 10:44:05 +00:00
margin-right: 5px;
}
2019-07-29 09:22:52 +00:00
.cp-fileupload-table-name {
overflow: hidden;
text-overflow: ellipsis;
}
&[href]:hover {
text-decoration: none;
.cp-fileupload-table-name {
text-decoration: underline;
}
}
2017-09-25 10:44:05 +00:00
}
2017-09-04 13:09:54 +00:00
.cp-fileupload-table-progress {
2019-08-22 16:04:11 +00:00
min-width: 12em;
2019-07-29 09:22:52 +00:00
max-width: 16em;
2017-09-04 13:09:54 +00:00
position: relative;
text-align: center;
box-sizing: border-box;
}
.cp-fileupload-table-progress-container {
2019-07-29 09:22:52 +00:00
position: relative;
}
.cp-fileupload-table-progressbar {
2017-09-04 13:09:54 +00:00
position: absolute;
width: 0px;
2019-07-29 09:22:52 +00:00
height: 100%;
background-color: #dddddd;
z-index: -1; //Z file upload progress container
2017-09-04 13:09:54 +00:00
}
2019-07-29 09:22:52 +00:00
.cp-fileupload-table-cancel {
text-align: center;
padding: 0px;
&:not(.success):not(.cancelled):hover {
background-color: rgba(0,0,0,0.1);
}
.fa {
padding: @upload_pad_h @upload_pad_v;
&.fa-times {
cursor: pointer;
}
}
2017-09-04 13:09:54 +00:00
}
}
}
}