UNPKG

landers.upload

Version:

landers.upload

269 lines (250 loc) 7.15 kB
.top-response { position: absolute; left: 0; right: 0; background: rgba(0, 0, 0, 0.5); color: #fff; text-align: center; font-size: 13px; font-weight: 100%; } .top-response.message-success { background: rgba(76, 174, 76, 0.5); } .top-response.message-warning { background: rgba(240, 173, 78, 0.5); } .top-response.message-info { background: rgba(70, 184, 218, 0.5); } .top-response.message-error { background: rgba(212, 63, 58, 0.5); } /*循环旋转*/ @-webkit-keyframes rotating { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } @keyframes rotating { 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { -webkit-transform: rotate(359deg); transform: rotate(359deg); } } .rotating { -webkit-animation-name: rotating; animation-name: rotating; animation-duration: 1s; animation-timing-function: linear; animation-delay: initial; animation-iteration-count: infinite; animation-direction: initial; animation-fill-mode: initial; animation-play-state: initial; } .landers-upload { position: relative; margin: -6px; padding: 0; zoom: 1; overflow: visible; } .landers-upload:after { content: "\200B"; display: block; height: 0; clear: both; } .landers-upload > li { list-style-type: none; border: 1px solid #cccccc; background-color: #FFFFFF; margin: 6px; padding: 1px !important; position: relative; display: inline-block; zoom: 1; overflow: hidden; text-align: center; } .landers-upload > li > .top-response { top: -25px; line-height: 25px; height: 25px; } .landers-upload > li > .preview { display: block; overflow: hidden; } .landers-upload > li > .buttons { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; background: rgba(0, 0, 0, 0.5); } .landers-upload > li > .buttons > table { border: none; border-collapse: separate; } .landers-upload > li > .buttons .button { display: block; width: 100%; padding: 0; height: 100%; border-radius: 0; overflow: hidden; color:#fff; text-align: center; transition: all .2s; } .landers-upload > li > .buttons .button:hover { color: #8fbf6b; background: rgba(0, 0, 0, 0.5); } .landers-upload > li > .buttons .button > i { line-height: 25px; display: inline-block; width: 20px; } .landers-upload > li > .buttons .btn-upload-local { position: relative; } .landers-upload > li > .buttons .btn-upload-local input { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: block; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size:0 } .upload-form { position: absolute; z-index: -1; display: none; } .landers-upload > li > .upload-iframe { position: absolute; z-index: -1; display: none; width: 0; height: 0; } .preview-file-type, .preview-file-type > div { width: 100%; height: 100%; background-size: 100% 100%; /*background-position: -1% 0px;*/ background-repeat:no-repeat; } .preview-file-type .file-type-rar {background-image: url("resources/rar.png"); } .preview-file-type .file-type-jpeg {background-image: url("resources/jpeg.png"); } .preview-file-type .file-type-txt {background-image: url("resources/txt.png"); } .preview-file-type .file-type-zip {background-image: url("resources/zip.png"); } .preview-file-type .file-type-doc {background-image: url("resources/doc.png"); } .preview-file-type .file-type-docx {background-image: url("resources/docx.png"); } .preview-file-type .file-type-xls {background-image: url("resources/xls.png"); } .preview-file-type .file-type-xlsx {background-image: url("resources/xlsx.png"); } .preview-file-type .file-type-swf {background-image: url("resources/swf.png"); } .preview-file-type .file-type-ppt {background-image: url("resources/ppt.png"); } .preview-file-type .file-type-pptx {background-image: url("resources/pptx.png"); } .preview-file-type .file-type-pdf {background-image: url("resources/pdf.png"); } .preview-file-type .file-type-mp3 {background-image: url("resources/mp3.png"); } .preview-file-type .file-type-wma {background-image: url("resources/wma.png"); } .preview-file-type .file-type-mpeg {background-image: url("resources/mpeg.png"); } .preview-file-type .file-type-mov {background-image: url("resources/mov.png"); } .preview-file-type .file-type-fla {background-image: url("resources/fla.png"); } .preview-file-type .file-type-avi {background-image: url("resources/avi.png"); } .preview-file-type .file-type-css {background-image: url("resources/css.png"); } .preview-file-type .file-type-eml {background-image: url("resources/eml.png"); } .preview-file-type .file-type-jpg {background-image: url("resources/jpg.png"); } .preview-file-type .file-type-gif {background-image: url("resources/gif.png"); } .preview-file-type .file-type-png {background-image: url("resources/png.png"); } .preview-file-type .file-type-html {background-image: url("resources/html.png"); } .preview-file-type .file-type-htm {background-image: url("resources/html.png"); } .preview-file-type .file-type-ini {background-image: url("resources/ini.png"); } .preview-file-type .file-type-psd {background-image: url("resources/psd.png"); } .preview-file-type .file-type-wav {background-image: url("resources/wav.png"); } .preview-file-type .file-type-wmv {background-image: url("resources/wmv.png"); } .preview-file-type .file-type-midi {background-image: url("resources/midi.png"); } .preview-file-type .file-type-eps {background-image: url("resources/eps.png"); } .preview-file-type .file-type-url {background-image: url("resources/url.png"); } .preview-file-type .file-type-tiff {background-image: url("resources/tiff.png"); } .preview-file-type .file-type-exe {background-image: url("resources/exe.png"); } .preview-file-type .file-type-c {background-image: url("resources/c.png"); } .preview-file-type .file-type-apk {background-image: url("resources/apk.png"); } .preview-file-type .file-type-dmg {background-image: url("resources/dmg.png"); } .image-tools-buttons { position: relative; } .image-tools-buttons > ul { width: 100%; position: absolute; bottom: 25px; left: 0; right: 0; background: rgba(0, 0, 0, 0.5); overflow: hidden; visibility: hidden; } .image-tools-buttons > ul > li > a { line-height: 30px; } .image-tools-buttons > ul > li > a:hover { background: rgba(0, 0, 0, 0.5); text-decoration-line: none; } /** * 上传框ui-button样式 */ .landers-upload > li.ui-button div.buttons { bottom: 0px !important; } .landers-upload > li.ui-button > .buttons .button, .landers-upload .ui-button .top-response { height: 34px; line-height: 34px; } .landers-upload > li.ui-button > .buttons .button { background-color: #337ab7; } .landers-upload > li.ui-button > .buttons .button:hover { background-color: #286090; }