Files
ultimatemember/assets/css/um-fileupload.css
T

188 lines
3.0 KiB
CSS
Raw Normal View History

2014-12-15 22:38:07 +02:00
/*
- image preview
*/
.um .um-single-image-preview,
.um .um-single-file-preview {
margin-bottom: 20px;
}
2014-12-29 15:51:55 +02:00
.um .um-single-image-preview > img {
2014-12-30 20:18:29 +02:00
max-height: 300px;
2014-12-29 15:51:55 +02:00
display: block;
overflow: hidden;
margin: auto;
border-radius: 3px;
}
2014-12-15 22:38:07 +02:00
.um-single-image-preview,
.um-single-file-preview {
display: none;
text-align: center;
position: relative;
2014-12-29 15:51:55 +02:00
}
2014-12-30 20:18:29 +02:00
.um-single-image-preview.show,
.um-single-file-preview.show {display: block}
2014-12-29 15:51:55 +02:00
.um-single-image-preview > img {
max-width: 100%;
max-height: inherit;
2014-12-15 22:38:07 +02:00
}
.um-single-image-preview a.cancel,
.um-single-file-preview a.cancel {
position: absolute;
top: -15px;
right: -15px;
2014-12-15 22:38:07 +02:00
width: 30px;
height: 30px;
border-radius: 999px;
background: #ddd;
2014-12-15 22:38:07 +02:00
cursor: pointer;
text-decoration: none !important;
2015-01-05 01:33:17 +02:00
z-index: 666;
2014-12-29 15:51:55 +02:00
opacity: 0.75;
2014-12-15 22:38:07 +02:00
}
.um-single-image-preview a.cancel i,
.um-single-file-preview a.cancel i {
font-size: 16px;
color: #888;
position: relative;
2014-12-30 20:18:29 +02:00
display: block;
width: 100%;
height: 100%;
line-height: 30px;
overflow: hidden;
2014-12-15 22:38:07 +02:00
}
2014-12-30 20:18:29 +02:00
.um-single-image-preview a.cancel i:before,
.um-single-file-preview a.cancel i:before{line-height:inherit}
2014-12-15 22:38:07 +02:00
/*
2014-12-29 15:51:55 +02:00
- file info
2014-12-15 22:38:07 +02:00
*/
.um-single-fileinfo {
2014-12-29 15:51:55 +02:00
padding: 26px 0 20px 0;
2014-12-15 22:38:07 +02:00
display: inline-block;
}
.um-single-fileinfo span.icon {
2014-12-30 20:18:29 +02:00
font-size: 40px;
2014-12-15 22:38:07 +02:00
display: inline-block;
width: 100px;
height: 70px;
2014-12-29 15:51:55 +02:00
border-radius: 3px;
2014-12-15 22:38:07 +02:00
background-color: #666;
color: #fff !important;
}
2014-12-30 20:18:29 +02:00
.um-single-fileinfo span.icon i {
display: block;
height: 70px;
line-height: 70px;
overflow: hidden;
}
.um-single-fileinfo span.icon i:before{line-height:inherit}
2014-12-15 22:38:07 +02:00
.um-single-fileinfo span.filename {
display: block;
2014-12-29 15:51:55 +02:00
font-size: 16px;
color: #888;
2014-12-30 20:18:29 +02:00
padding-top: 5px;
2014-12-15 22:38:07 +02:00
}
2014-12-29 15:51:55 +02:00
.um-single-fileinfo a {
text-decoration: none !important;
opacity: 0.9;
}
.um-single-fileinfo a:hover {
opacity: 1
}
2014-12-15 22:38:07 +02:00
/*
- upload progress
*/
.upload-statusbar {
margin: 20px 0 0 0;
}
.upload-filename {
display: none !important;
}
.upload-progress {
position: relative;
width: 100%;
box-sizing: border-box;
}
.upload-bar {
width: 0;
height: 10px;
2014-12-15 22:38:07 +02:00
color: #666;
background: #7ACF58;
border-radius: 3px;
2014-12-15 22:38:07 +02:00
}
/*
- drag and drop area
*/
.ajax-upload-dragdrop {
width: 100%;
text-align: center;
vertical-align:middle;
padding: 20px;
box-sizing: border-box;
border: 2px dashed #ddd;
border-radius: 3px;
2014-12-15 22:38:07 +02:00
font-size: 18px;
line-height: 1em;
}
.ajax-upload-dragdrop span.str {
display: block;
2014-12-29 15:51:55 +02:00
margin: 0 0 15px 0;
2014-12-15 22:38:07 +02:00
}
.ajax-upload-dragdrop span.icon {
display: block;
font-size: 80px;
line-height: 80px;
vertical-align: middle;
}
.ajax-upload-dragdrop span.help {
display: block;
font-size: 14px;
color: #aaa;
margin: 0 0 12px 0;
}
/*
- upload button
*/
.upload {
cursor: pointer !important;
line-height: 34px !important;
height: 34px;
display: inline-block;
text-decoration: none;
border-radius: 3px;
padding: 0 20px;
color: #fff;
background: #3ba1da;
vertical-align: middle;
font-size: 14px;
box-sizing: border-box;
transition: 0.2s;
}
.upload:hover {
background: #44b0ec;
}
.um-modal input[type="file"]::-webkit-file-upload-button { cursor: pointer }