]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-13766, change color scheme, make file picker look better"
authordongsheng <dongsheng>
Wed, 3 Sep 2008 08:45:55 +0000 (08:45 +0000)
committerdongsheng <dongsheng>
Wed, 3 Sep 2008 08:45:55 +0000 (08:45 +0000)
repository/lib.php

index 43031d375d658796044aba2ae8e13d68e9923dd4..510ed105cf5fd04a6dbd66df31a69ad1010f6246 100644 (file)
@@ -1124,10 +1124,14 @@ p.upload a:hover {background: grey;color:white}
 .file_size{color:gray}
 .grid{width:80px; float:left;text-align:center;}
 .grid div{width: 80px; overflow: hidden}
-.grid .label{height: 36px}
+.grid p{margin:0;padding:0;background: #FFFFCC}
+.grid .label{height:48px}
+.grid span{background: #EEF9EB;color:gray}
 .repo-opt{font-size: 10px;}
 #panel-$suffix{padding:0;margin:0; text-align:left;}
 #file-picker-$suffix{font-size:12px;}
+#file-picker-$suffix a{color: #336699}
+#file-picker-$suffix a:hover{background:#003366;color:white}
 </style>
 <style type="text/css">
 @import "$CFG->wwwroot/lib/yui/resize/assets/skins/sam/resize.css";
@@ -1406,7 +1410,7 @@ _client.viewthumb = function(ds){
         } else {
             if(list[k].url)
                 title.innerHTML = '<p><a target="_blank" href="'+list[k].url+'">$strpreview</a></p>';
-            title.innerHTML += list[k].title;
+            title.innerHTML += '<span>'+list[k].title+"</span>";
         }
         title.className = 'label';
         el.appendChild(frame);
@@ -1768,6 +1772,8 @@ _client.search = function(id){
     if(data == '') {
         alert('$strnoenter');
         return;
+    }else if(data == null){
+        return;
     }
     _client.viewbar.set('disabled', false);
     _client.loading('load');