From d75e8e3ac890f5b9793b4f504eeb922a65e12c23 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 31 May 2012 14:51:02 +1200 Subject: [PATCH] MDL-33521 css: Fixed invalid CSS in core CSS and plugin styles.css files --- admin/tool/health/styles.css | 8 ++++---- blocks/community/styles.css | 2 +- grade/report/grader/styles.css | 8 ++++---- mod/quiz/styles.css | 6 +++--- mod/wiki/styles.css | 2 +- mod/workshop/styles.css | 8 ++++---- theme/base/style/admin.css | 4 ++-- theme/base/style/course.css | 2 +- theme/base/style/filemanager.css | 3 +-- theme/base/style/message.css | 2 +- theme/standard/style/grade.css | 2 +- theme/standard/style/modules.css | 2 +- 12 files changed, 24 insertions(+), 25 deletions(-) diff --git a/admin/tool/health/styles.css b/admin/tool/health/styles.css index 556b443e95e..7994a8c203a 100644 --- a/admin/tool/health/styles.css +++ b/admin/tool/health/styles.css @@ -3,7 +3,7 @@ width: 60%; margin: auto; padding: 1em; - border: 1px black solid; + border: 1px solid black; -moz-border-radius: 6px; } .path-admin-tool-health dl.healthissues { @@ -35,15 +35,15 @@ .path-admin-tool-health dl.healthissues dd { margin: 0px; padding: 1em; - border: 1px black solid; + border: 1px solid black; } .path-admin-tool-health dl.healthissues dt { font-weight: bold; - border-bottom: none; + border-bottom: 0; padding-bottom: 0.5em; } .path-admin-tool-health dl.healthissues dd { - border-top: none; + border-top: 0; padding-top: 0.5em; margin-bottom: 10px; } diff --git a/blocks/community/styles.css b/blocks/community/styles.css index 34f06607458..97e6e1d171e 100644 --- a/blocks/community/styles.css +++ b/blocks/community/styles.css @@ -173,7 +173,7 @@ bottom:0; right:0; opacity:0.35; - filter:alpha(opacity:35); + filter:alpha(opacity=35); background:#000; } diff --git a/grade/report/grader/styles.css b/grade/report/grader/styles.css index 4730ba53680..c562c82b5c5 100644 --- a/grade/report/grader/styles.css +++ b/grade/report/grader/styles.css @@ -185,7 +185,7 @@ margin-right:10px; } table#user-grades .quickfeedback { -border:#000 1px dashed; +border:1px dashed #000; } .path-grade-report-grader #siteconfiglink { @@ -262,7 +262,7 @@ border-width:0 1px 1px; } .path-grade-report-grader table td.topleft { -border-bottom:none; +border-bottom:0; } table#user-grades td.topleft { @@ -325,12 +325,12 @@ margin: 10px 10px 0px 10px; } .path-grade-report-grader table#quick_edit td.fullname { -border-left:none; +border-left:0; padding-left:5px; } .path-grade-report-grader table#quick_edit td.picture { -border-right:none; +border-right:0; } .path-grade-report-grader table#quick_edit td.finalgrade input { diff --git a/mod/quiz/styles.css b/mod/quiz/styles.css index d19de769a09..63610241324 100644 --- a/mod/quiz/styles.css +++ b/mod/quiz/styles.css @@ -48,7 +48,7 @@ body.jsenabled .questionflagcheckbox {display: none;} .path-mod-quiz .qnbutton.incorrect .trafficlight {border-top: 3px solid #800;} .path-mod-quiz .qnbutton.free:hover {text-decoration: underline;} -.path-mod-quiz .qnbutton.free span {cursor: pointer; cursor: hand;} +.path-mod-quiz .qnbutton.free span {cursor: pointer;} .path-mod-quiz .othernav {clear: both; margin: 0.5em 0;} .path-mod-quiz .othernav a, @@ -192,7 +192,7 @@ table#categoryquestions {width: 100%;overflow: hidden;table-layout: fixed;} #page-mod-quiz-edit div.quizwhenbankcollapsed {width:100%;} #page-mod-quiz-edit div.quizpage {display:block;clear:both;width:100%;} #page-mod-quiz-edit div.quizpage span.pagetitle {margin-top:0.3em;float:left;display:block;color:#006;} -#page-mod-quiz-edit div.quizpage .pagecontent {margin-top:0.3em;display:block;float:left;position:relative;margin-left:0.3em;margin-bottom:0.2em;border-left:solid #777 thin;line-height:1.3em;-webkit-border-radius:0.6em;-webkit-border-radius-bottomleft:0;-webkit-border-radius-topleft:0;border-radius:0.6em;border-radius-bottomleft:0;border-radius-topleft:0;width:88%;padding:0.15em 0 0.3em;background-color:#d6d6d6;} +#page-mod-quiz-edit div.quizpage .pagecontent {margin-top:0.3em;display:block;float:left;position:relative;margin-left:0.3em;margin-bottom:0.2em;border-left:thin solid #777;line-height:1.3em;-webkit-border-radius:0.6em;-webkit-border-radius-bottomleft:0;-webkit-border-radius-topleft:0;border-radius:0.6em;border-radius-bottomleft:0;border-radius-topleft:0;width:88%;padding:0.15em 0 0.3em;background-color:#d6d6d6;} #page-mod-quiz-edit div.quizpage .pagecontent .pagestatus {-webkit-border-radius-bottomright:0.3em;-webkit-border-radius-topright:0.3em;border-radius-bottomright:0.3em;border-radius-topright:0.3em;margin:0.3em;padding:0.1em 0.1em 0.1em 0.3em;background-color:#eee;font-weight:bold;} #page-mod-quiz-edit div.quizpage .pagecontent form#addquestion{background-color:#fff;} #page-mod-quiz-edit div.quizpage .pagecontent form.randomquestionform div {/* it is a mystery why this has to be inline-table but otherwise the layout gets screwed, even if it is "inline" */display: inline-table;} @@ -237,7 +237,7 @@ table#categoryquestions {width: 100%;overflow: hidden;table-layout: fixed;} #page-mod-quiz-edit div.question div.qnum {display:block;float:left;width:1.4em;padding-right:0.3em;padding-left:0;z-index:99;text-align:right;color:#333;} #page-mod-quiz-edit div.question div.questioncontainer{background-color:#ffc;} #page-mod-quiz-edit div.editq div.question div.content{width:87%;float:left;position:relative;-webkit-border-radius:0.6em;-webkit-border-radius-bottomleft:0;-webkit-border-radius-topleft:0;border-radius:0.6em;border-radius-bottomleft:0;border-radius-topleft:0;line-height:1.4em;padding:0.5em;} -#page-mod-quiz-edit div.question div.content div.points{top:0.5em;border-left:#FFF solid 0.4em;width:8.5em;padding:0.2em;line-height:1em;max-width:30%;position:absolute;right:50px;-webkit-border-radius:0.2em;-webkit-border-radius-bottomleft:0;-webkit-border-radius-topleft:0;border-radius:0.2em;border-radius-bottomleft:0;border-radius-topleft:0;z-index:900;display:block;margin:0;background-color:#ddf;} +#page-mod-quiz-edit div.question div.content div.points{top:0.5em;border-left:0.4em solid #FFF;width:8.5em;padding:0.2em;line-height:1em;max-width:30%;position:absolute;right:50px;-webkit-border-radius:0.2em;-webkit-border-radius-bottomleft:0;-webkit-border-radius-topleft:0;border-radius:0.2em;border-radius-bottomleft:0;border-radius-topleft:0;z-index:900;display:block;margin:0;background-color:#ddf;} #page-mod-quiz-edit div.question div.content div.points input{width:2em;padding:0;} #page-mod-quiz-edit div.question div.content div.points input.pointssubmitbutton{width:auto;} #page-mod-quiz-edit div.question div.content div.qorder {line-height:1em;max-width:30%;position:absolute;right:50px;-webkit-border-radius:0.2em;-webkit-border-radius-bottomleft:0;-webkit-border-radius-topleft:0;border-radius:0.2em;border-radius-bottomleft:0;border-radius-topleft:0;z-index:900;display:block;margin:0;background-color:#ddf;} diff --git a/mod/wiki/styles.css b/mod/wiki/styles.css index dcfd4804bbd..74536aa8fee 100644 --- a/mod/wiki/styles.css +++ b/mod/wiki/styles.css @@ -142,7 +142,7 @@ } .wiki_modifieduser img { - border: thin black solid; + border: thin solid black; } .wiki_restore_yes, .wiki_deletecomment_yes { diff --git a/mod/workshop/styles.css b/mod/workshop/styles.css index ba99b03d8a7..6f9c01409ce 100644 --- a/mod/workshop/styles.css +++ b/mod/workshop/styles.css @@ -20,12 +20,12 @@ .path-mod-workshop .groupwidget { text-align:center; - margin: 0.75 auto; + margin: 0.75em auto; } .path-mod-workshop .perpagewidget { text-align:center; - margin: 0.75 auto; + margin: 0.75em auto; } /** @@ -246,7 +246,7 @@ color: black; font-size: 140%; border: 1px solid #ddd; - border-bottom: none; + border-bottom: 0; background: #e7f1c3; } @@ -276,7 +276,7 @@ } .path-mod-workshop .userplan td.lastcol { - border-right: none; + border-right: 0; } .path-mod-workshop .userplan td.active { diff --git a/theme/base/style/admin.css b/theme/base/style/admin.css index e22e8027923..049a2a88d87 100644 --- a/theme/base/style/admin.css +++ b/theme/base/style/admin.css @@ -157,7 +157,7 @@ #adminsettings fieldset.error legend {display: block;} #adminsettings .form-item {clear: both;margin: 1em 0 2em 0;} #adminsettings .form-item .form-label {display: block;float: left;width: 12.5em;text-align: right;} -#adminsettings .form-item .form-label .form-shortname {display:block;line-break: break;} +#adminsettings .form-item .form-label .form-shortname {display:block;} #adminsettings .form-item .form-setting {display: block;margin-left: 13.5em;text-align: left;} #adminsettings .form-item .form-setting .form-htmlarea {width: 640px;display:inline;} #adminsettings .form-item .form-setting .form-htmlarea .htmlarea {width: 640px;display:block;} @@ -181,7 +181,7 @@ .admin_colourpicker_preview {display:none;} .jsenabled .admin_colourpicker_preview {display:inline;} .jsenabled .admin_colourpicker {display:block;height:102px;width:410px;margin-bottom:10px;} -.admin_colourpicker .loadingicon {vertical-align:center;margin-left:auto;} +.admin_colourpicker .loadingicon {vertical-align:middle;margin-left:auto;} .admin_colourpicker .colourdialogue {float:left;border:1px solid #000;} .admin_colourpicker .previewcolour {border:1px solid #000;margin-left:301px;} .admin_colourpicker .currentcolour {border:1px solid #000;margin-left:301px;border-top-width:0;} diff --git a/theme/base/style/course.css b/theme/base/style/course.css index 4d3039ed5fb..09dc4b29aaf 100644 --- a/theme/base/style/course.css +++ b/theme/base/style/course.css @@ -168,6 +168,6 @@ input.titleeditor { /* Course drag and drop upload styles */ #dndupload-status {width:40%;margin:0 30%;padding:6px;border:1px solid #ddd;text-align:center;background:#ffc;position:absolute;z-index:9999;box-shadow:2px 2px 5px 1px #ccc;border-radius:0px 0px 8px 8px;z-index: 0;} .dndupload-preview {color:#909090;border:1px dashed #909090;} -.dndupload-progress-outer {width:70px;border:solid black 1px;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;} +.dndupload-progress-outer {width:70px;border:1px solid black;height:10px;display:inline-block;margin:0;padding:0;overflow:hidden;position:relative;} .dndupload-progress-inner {width:0%;height:100%;background-color:green;display:inline-block;margin:0;padding:0;float:left;} .dndupload-hidden {display:none;} diff --git a/theme/base/style/filemanager.css b/theme/base/style/filemanager.css index 86d0446a2e8..105c238d4bd 100644 --- a/theme/base/style/filemanager.css +++ b/theme/base/style/filemanager.css @@ -228,8 +228,7 @@ a.ygtvspacer:hover {color: transparent;text-decoration: none;} /* * Lazy loading on fp-content (File Picker only) */ -.file-picker .fp-nextpage {clear:both;align:center;} -.file-picker .fp-nextpage .fp-nextpage-link {align:center;} +.file-picker .fp-nextpage {clear:both;} .file-picker .fp-nextpage .fp-nextpage-loading {display:none;} .file-picker .fp-nextpage.loading .fp-nextpage-link {display:none;} .file-picker .fp-nextpage.loading .fp-nextpage-loading {display:block;text-align: center;height: 100px;padding-top: 50px;} diff --git a/theme/base/style/message.css b/theme/base/style/message.css index 57adc20a2e6..0be514e2759 100644 --- a/theme/base/style/message.css +++ b/theme/base/style/message.css @@ -43,7 +43,7 @@ table.message .searchresults td {padding:5px;} .message .messagearea .messagehistory .left {padding-bottom:10px;width:50%;float:left;clear:both;} .message .messagearea .messagehistory .right {padding-bottom:10px;width:50%;float:right;clear:both;} .message .messagearea .messagehistory .notification {padding:10px;background-color:#EEEEEE;margin-top:5px;} -.message .messagearea .messagesend {padding-top:20px;float:center;clear:both;} +.message .messagearea .messagesend {padding-top:20px;clear:both;} .message .messagearea .messagesend .messagesendbox {width:100%} .message .messagearea .messagesend fieldset {padding:0px;margin:0;} /** bring the message send button closer to the message box */ diff --git a/theme/standard/style/grade.css b/theme/standard/style/grade.css index 41bcce93e50..c67cd43b8ea 100644 --- a/theme/standard/style/grade.css +++ b/theme/standard/style/grade.css @@ -29,7 +29,7 @@ td.grade div.overridden {background-color: #DDDDDD;} .gradetreebox tr.category th.cell.rowspan {border-width:0; border-left:1px solid #AAA;} .gradetreebox tr.category th.cell.rowspan:hover {background-color: #EEE;} .gradetreebox td.name {border-left: 0px;} -.gradetreebox td.colspan {border-left: 1px solid #AAA;border-bottom: 1px solid #AAA;border-top: none;background-color: #DDD;} +.gradetreebox td.colspan {border-left: 1px solid #AAA;border-bottom: 1px solid #AAA;border-top: 0;background-color: #DDD;} .gradetreebox tr .cell.level1 {background-color: #F3DFD0; width: 10px;} .gradetreebox tr .cell.level2 {background-color: #D0DBD3; width: 10px;} .gradetreebox tr .cell.level3 {background-color: #D0F3D6; width: 10px;} diff --git a/theme/standard/style/modules.css b/theme/standard/style/modules.css index e19bfdd0891..6456edfd964 100644 --- a/theme/standard/style/modules.css +++ b/theme/standard/style/modules.css @@ -131,7 +131,7 @@ table.mod_index {width:90%;margin:1em auto;} #page-mod-glossary-import table.glossaryimportexport {text-align: center;} .path-mod-glossary .glossarydisplay {width: 90%;text-align:center;} .path-mod-glossary .entrybox {border-width: 0px 1px 1px 1px;border-style: solid;border-color: #BBB;} -.path-mod-glossary .entrybox hr {border-left:none;border-right:none;} +.path-mod-glossary .entrybox hr {border-left:0;border-right:0;} #page-mod-glossary-report table tr.teacher {background: #F0F0F0;} #page-mod-glossary-view table.glossarycategoryheader {background-color: #DDD;} #page-mod-glossary-view table.glossarycategoryheader h2 {font-size: 1em;margin: 0;}