From efd47773aec9b7ffafe401d244984932a37183c2 Mon Sep 17 00:00:00 2001 From: dongsheng Date: Wed, 3 Sep 2008 08:20:06 +0000 Subject: [PATCH] "MDL-13766, improve css" --- lang/en_utf8/repository.php | 1 + repository/lib.php | 38 +++++++++++++++++-------------------- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/lang/en_utf8/repository.php b/lang/en_utf8/repository.php index 8eabfd4ca3..d56adc9403 100644 --- a/lang/en_utf8/repository.php +++ b/lang/en_utf8/repository.php @@ -21,6 +21,7 @@ $string['emptytype'] = 'Cannot create repository type: type name is empty'; $string['error'] = 'An unknown error occurred!'; $string['existingrepository'] = 'This repository already exists'; $string['filename'] = 'Filename'; +$string['filenotnull'] = 'You must select a file to upload.'; $string['filesaved'] = 'The file has been saved'; $string['getfile'] = 'Select this file'; $string['instance'] = 'instance'; diff --git a/repository/lib.php b/repository/lib.php index cd49d7eeec..43031d375d 100644 --- a/repository/lib.php +++ b/repository/lib.php @@ -1108,20 +1108,16 @@ function repository_get_client($context){ $struploading = get_string('uploading', 'repository'); $css = << -#list-$suffix{line-height: 1.5em} -#list-$suffix a{ padding: 3px } -#list-$suffix li a:hover{ background: gray; color:white; } -#repo-list-$suffix ul{list-style-type:none;} -#repo-list-$suffix li{margin-bottom: 1em;} -#paging-$suffix{margin:10px 5px; clear:both;} -#paging-$suffix a{padding: 4px;border: 1px solid #CCC} -#path-$suffix{margin: 4px;border-bottom: 1px dotted gray;} -#path-$suffix a{padding: 4px;} -#panel-$suffix{padding:0;margin:0; text-align:left;} -#rename-form{text-align:center} -#rename-form p{margin: 1em;} -p.upload{text-align:right;margin: 5px} -p.upload a{font-size: 14px;background: #ccc;color:black;padding: 3px} +.repo-list{list-style-type:none;padding:0} +.repo-list li{border-bottom:1px dotted gray;margin-bottom: 1em;} +.paging{margin:10px 5px; clear:both;} +.paging a{padding: 4px;border: 1px solid #CCC} +.repo-path{margin: 4px;border-bottom: 1px dotted gray;} +.repo-path a{padding: 4px;} +.rename-form{text-align:center} +.rename-form p{margin: 1em;} +.upload-form{margin: 2em 0;text-align:center} +p.upload a{font-size: 14px;background: #ccc;color:white;padding: 5px} p.upload a:hover {background: grey;color:white} .file_name{color:green;} .file_date{color:blue} @@ -1130,9 +1126,8 @@ p.upload a:hover {background: grey;color:white} .grid div{width: 80px; overflow: hidden} .grid .label{height: 36px} .repo-opt{font-size: 10px;} -#file-picker-$suffix{ -font-size:12px; -} +#panel-$suffix{padding:0;margin:0; text-align:left;} +#file-picker-$suffix{font-size:12px;}