Эх сурвалжийг харах

HUE-4445 [fb] Fixed CSS for file uploader

Enrico Berti 9 жил өмнө
parent
commit
732a8e0

+ 74 - 0
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -2669,6 +2669,10 @@ body {
   margin-right: 4px;
 }
 
+.qq-uploader {
+    position: relative;
+}
+
 .qq-upload-button {
   display: inline-block;
   height: 29px;
@@ -2723,4 +2727,74 @@ body {
   *background-color: #e4e4e4;
 }
 
+.qq-upload-drop-area {
+    position: absolute;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+    min-height: 40px;
+    z-index: 2;
+    background: #FFFFFF;
+    border: 2px dashed #DDDDDD;
+    -webkit-border-radius: 6px;
+    -moz-border-radius: 6px;
+    border-radius: 6px;
+    text-align: center;
+}
+
+.qq-upload-drop-area span {
+    display: block;
+    position: absolute;
+    top: 50%;
+    width: 100%;
+    margin-top: -8px;
+    font-size: 16px;
+    color: #666666;
+}
+
+.qq-upload-drop-area-active {
+    border-color: #CCCCCC;
+    background-color: #EFEFEF;
+}
+
+.qq-upload-list {
+    margin: 15px 35px;
+    padding: 0;
+    list-style: disc;
+}
+
+.qq-upload-list li {
+    margin: 0;
+    padding: 0;
+    line-height: 15px;
+    font-size: 12px;
+}
+
+.qq-upload-file, .qq-upload-spinner, .qq-upload-size, .qq-upload-cancel, .qq-upload-failed-text {
+    margin-right: 7px;
+}
+
+.qq-upload-file {
+}
+
+.qq-upload-spinner {
+    display: inline-block;
+    background: url("/static/desktop/ext/js/loading.gif");
+    width: 15px;
+    height: 15px;
+    vertical-align: text-bottom;
+}
+
+.qq-upload-size, .qq-upload-cancel {
+    font-size: 11px;
+}
+
+.qq-upload-failed-text {
+    display: none;
+}
+
+.qq-upload-fail .qq-upload-failed-text {
+    display: inline;
+}
 

+ 0 - 1
desktop/core/src/desktop/templates/common_header.mako

@@ -59,7 +59,6 @@ if USE_NEW_EDITOR.get():
   <link href="${ static('desktop/ext/css/bootplus.css') }" rel="stylesheet">
   <link href="${ static('desktop/ext/css/font-awesome.min.css') }" rel="stylesheet">
   <link href="${ static('desktop/css/hue3.css') }" rel="stylesheet">
-##   <link href="${ static('desktop/ext/css/fileuploader.css') }" rel="stylesheet">
 
   <style type="text/css">
     % if conf.CUSTOM.BANNER_TOP_HTML.get():