Commit 07482105 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

MDL-55165 less: use lowercase hex codes for colours

And use shorthand where possible.

Detected by
http://stylelint.io/user-guide/rules/color-hex-case/
http://stylelint.io/user-guide/rules/color-hex-length/

When reviewing this change, you can hide the case changes by
reviewing with:
GIT_EXTERNAL_DIFF='diff -ipu   #' git diff --ext-diff
parent 65f9a71f
......@@ -184,9 +184,6 @@ module.exports = function(grunt) {
syntax: 'less',
configOverrides: {
rules: {
// TODO: MDL-55165 -Enable these rules once we make output-changing changes to less.
"color-hex-case": null,
"color-hex-length": null,
// These rules have to be disabled in .stylelintrc for scss compat.
"at-rule-no-unknown": true,
"no-browser-hacks": [true, {"severity": "warning"}]
......
......@@ -199,10 +199,10 @@ a.autolink.glossary:hover {
background-image: url([[pix:t/expanded]]);
}
.yui-overlay .yui-widget-bd {
background-color: #FFEE69;
border: 1px solid #A6982B;
border-top-color: #D4C237;
color: #000000;
background-color: #ffee69;
border: 1px solid #a6982b;
border-top-color: #d4c237;
color: #000;
left: 0;
padding: 2px 5px;
position: relative;
......@@ -644,7 +644,7 @@ table.mod_index {
padding: 2px;
}
.comment-paging .curpage {
border: 1px solid #CCC;
border: 1px solid #ccc;
}
.comment-message .picture {
width: 20px;
......@@ -712,7 +712,7 @@ img.user-image {
}
.path-tag .tag-index-items .tagarea {
border: 1px solid #E3E3E3;
border: 1px solid #e3e3e3;
border-radius: 4px;
padding: 10px;
margin-top: 10px;
......@@ -729,7 +729,7 @@ img.user-image {
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
text-transform: uppercase;
word-wrap: break-word;
border-bottom: solid 1px #E3E3E3;
border-bottom: solid 1px #e3e3e3;
margin-bottom: 10px;
}
......@@ -959,7 +959,7 @@ tr.flagged-tag a {
.smartselect .smartselect_menu,
.smartselect .smartselect_submenu {
border: 1px solid #000;
background-color: #FFF;
background-color: #fff;
display: none;
}
.smartselect .smartselect_menu.visible,
......@@ -1155,7 +1155,7 @@ tr.flagged-tag a {
}
.corelightbox {
background-color: #CCC;
background-color: #ccc;
position: absolute;
top: 0;
left: 0;
......@@ -1350,7 +1350,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
}
/* Moodle Dialogue Settings (moodle-core-dialogue) */
.moodle-dialogue-base .moodle-dialogue-lightbox {
background-color: #AAA;
background-color: #aaa;
}
.moodle-dialogue-base .hidden,
.moodle-dialogue-base .moodle-dialogue-hidden {
......@@ -1434,7 +1434,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
}
.moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-content {
padding: 0;
background: #FFF;
background: #fff;
}
.moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-hd {
......@@ -1469,7 +1469,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
font-weight: bold;
}
.moodle-dialogue-exception .param-stacktrace label {
background-color: #EEE;
background-color: #eee;
border: 1px solid #ccc;
border-bottom-width: 0;
}
......@@ -1494,7 +1494,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
padding: 0;
margin: 0.7em 1em;
text-align: right;
background-color: #FFF;
background-color: #fff;
font-size: 12px;
}
.moodle-dialogue-confirm .confirmation-message {
......@@ -1575,7 +1575,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
}
.chooserdialogue .moodle-dialogue-wrap .moodle-dialogue-bd {
padding: 0;
background: #F2F2F2;
background: #f2f2f2;
.border-bottom-radius(10px);
}
/* Center the submit buttons within the area */
......@@ -1596,7 +1596,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
/* Various settings for the options area */
.choosercontainer #chooseform .options {
position: relative;
border-bottom: 1px solid #BBBBBB;
border-bottom: 1px solid #bbb;
}
/* Only set these options if we're showing the js container */
.jschooser .choosercontainer #chooseform .alloptions {
......@@ -1650,7 +1650,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
.choosercontainer #chooseform .option label {
display: block;
padding: 0.3em 0 0.1em 0;
border-bottom: 1px solid #FFFFFF;
border-bottom: 1px solid #fff;
}
.choosercontainer #chooseform .nonoption {
padding-left: 2.7em;
......@@ -1710,7 +1710,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
margin: 15px 0;
padding: 1px 19px 14px;
background-color: white;
border: 1px solid #DDD;
border: 1px solid #ddd;
.border-radius(4px);
}
.formlistingmore {
......@@ -1723,7 +1723,7 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
font-weight: bold;
background-color: #f5f5f5;
border: 1px solid #ddd;
color: #9DA0A4;
color: #9da0a4;
.border-radius(4px 0 4px 0);
}
.formlistingall {
......@@ -1734,10 +1734,10 @@ body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
.formlistingrow {
cursor: pointer;
border-bottom: 1px solid;
border-color: #E1E1E8;
border-left: 1px solid #E1E1E8;
border-right: 1px solid #E1E1E8;
background-color: #F7F7F9;
border-color: #e1e1e8;
border-left: 1px solid #e1e1e8;
border-right: 1px solid #e1e1e8;
background-color: #f7f7f9;
.border-radius(0 0 4px 4px);
padding: 6px;
top: 50%;
......@@ -1797,7 +1797,7 @@ div.criteria-description {
padding: 10px 15px;
margin: 5px 0;
background: none repeat scroll 0 0 #f9f9f9;
border: 1px solid #EEE;
border: 1px solid #eee;
}
ul.badges {
margin: 0;
......
......@@ -18,18 +18,18 @@ body.behat-site {
.phpinfo .e,
.phpinfo .v,
.phpinfo .h {
border: 1px solid #000000;
border: 1px solid #000;
font-size: 0.8em;
vertical-align: baseline;
color: #000000;
background-color: #cccccc;
color: #000;
background-color: #ccc;
}
.phpinfo .e {
background-color: #ccccff;
background-color: #ccf;
font-weight: bold;
}
.phpinfo .h {
background-color: #9999cc;
background-color: #99c;
font-weight: bold;
}
#page-footer .performanceinfo {
......
......@@ -9,7 +9,7 @@
.file-picker a,
.filemanager a:hover,
.file-picker a:hover {
color: #555555;
color: #555;
text-decoration: none;
}
.filemanager input[type="text"],
......@@ -40,7 +40,7 @@
}
#filesskin .yui3-panel-content {
padding-bottom: 20px;
background: #F2F2F2;
background: #f2f2f2;
.border-radius(8px);
border: 1px solid #fff;
display: inline-block;
......@@ -49,14 +49,14 @@
}
#filesskin .yui3-widget-hd {
.border-radius(10px 10px 0 0);
border-bottom: 1px solid #BBBBBB;
border-bottom: 1px solid #bbb;
padding: 5px;
text-align: center;
font-size: 12px;
color: #333;
letter-spacing: 1px;
text-shadow: 1px 1px 1px #fff;
filter: dropshadow(color=#FFFFFF, offx=1, offy=1);
filter: dropshadow(color=#fff, offx=1, offy=1);
#gradient > .vertical (#fff, #ccc);
}
.fp-panel-button {
......@@ -83,9 +83,9 @@
// File Picker layout
#filesskin .file-picker.fp-generallayout {
width: 859px;
background: #FFFFFF;
background: #fff;
.border-radius(10px);
border: 1px solid #CCCCCC;
border: 1px solid #ccc;
position: relative;
}
.file-picker .fp-repo-area {
......@@ -95,7 +95,7 @@
.ie7-inline-block();
float: left;
height: 525px;
border-right: 1px solid #BBBBBB;
border-right: 1px solid #bbb;
}
.file-picker .fp-repo-items {
float: none;
......@@ -108,8 +108,8 @@
float: left;
}
.file-picker .fp-navbar {
background: #F2F2F2;
border-bottom: 1px solid #BBBBBB;
background: #f2f2f2;
border-bottom: 1px solid #bbb;
min-height: 40px;
overflow: hidden;
}
......@@ -118,7 +118,7 @@
}
.file-picker .fp-content {
background: #FFFFFF;
background: #fff;
clear: none;
overflow: auto;
height: 452px;
......@@ -150,7 +150,7 @@
padding: .5em .7em;
}
.file-picker .fp-list .fp-repo.active {
background: #F2F2F2;
background: #f2f2f2;
}
.file-picker .fp-list .fp-repo-icon {
padding: 0 7px 0 5px;
......@@ -181,17 +181,17 @@
height: 27px;
}
.fp-toolbar .fp-tb-search input {
background: #FFFFFF url('[[pix:a/search]]') no-repeat 7px 7px;
background: #fff url('[[pix:a/search]]') no-repeat 7px 7px;
padding: 2px 6px 1px 27px;
width: 200px;
height: 27px;
border: 1px solid #BBBBBB;
border: 1px solid #bbb;
}
.fp-viewbar {
float: right;
height: 30px;
border: 1px solid #CCC;
border-bottom: 1px solid #B3B3B3;
border: 1px solid #ccc;
border-bottom: 1px solid #b3b3b3;
border-radius: 4px;
background: white;
}
......@@ -202,19 +202,19 @@
.fp-viewbar a {
width: 30px;
height: 30px;
border-right: 1px solid #CCC;
border-right: 1px solid #ccc;
display: block;
float: left;
}
.fp-viewbar a.checked:hover,
.fp-viewbar a:hover {
background-image: radial-gradient(ellipse at center, #ffffff 60%, #dfdfdf 100%);
background-image: radial-gradient(ellipse at center, #fff 60%, #dfdfdf 100%);
background-color: #ebebeb;
}
.fp-viewbar a.checked,
.fp-viewbar a:active {
background-image: radial-gradient(ellipse at center, #ffffff 40%, #dfdfdf 100%);
background-image: radial-gradient(ellipse at center, #fff 40%, #dfdfdf 100%);
background-color: #dfdfdf;
}
......@@ -270,7 +270,7 @@
min-height: 110px;
line-height: 110px;
text-align: center;
border: 1px solid #FFFFFF;
border: 1px solid #fff;
display: block;
}
.fp-iconview .fp-thumbnail img {
......@@ -295,7 +295,7 @@
z-index: 1000;
}
.fp-iconview .fp-filename-field .fp-filename {
background: #FFFFFF;
background: #fff;
padding-top: 5px;
padding-bottom: 12px;
min-width: 112px;
......@@ -303,22 +303,22 @@
// Table view (File Picker only)
.file-picker .yui3-datatable table {
border: 0 solid #BBBBBB;
border: 0 solid #bbb;
width: 100%;
}
#filesskin .file-picker .yui3-datatable-header {
background: #FFFFFF;
border-bottom: 1px solid #CCCCCC;
border-left: 0 solid #FFFFFF;
color: #555555;
background: #fff;
border-bottom: 1px solid #ccc;
border-left: 0 solid #fff;
color: #555;
}
#filesskin .file-picker .yui3-datatable-odd .yui3-datatable-cell {
background-color: #F6F6F6;
border-left: 0 solid #F6F6F6;
background-color: #f6f6f6;
border-left: 0 solid #f6f6f6;
}
#filesskin .file-picker .yui3-datatable-even .yui3-datatable-cell {
background-color: #FFFFFF;
border-left: 0 solid #FFFFFF;
background-color: #fff;
border-left: 0 solid #fff;
}
// Tree view (File Manager only)
......@@ -473,7 +473,7 @@ a.ygtvspacer:hover {
}
.file-picker .ygtvfocus,
.filemanager .ygtvfocus {
background-color: #EEEEEE;
background-color: #eee;
}
.fp-filename-icon {
margin-top: 10px;
......@@ -595,8 +595,8 @@ a.ygtvspacer:hover {
.fp-select .fp-hr {
clear: both;
height: 1px;
background-color: #FFFFFF;
border-bottom: 1px solid #BBBBBB;
background-color: #fff;
border-bottom: 1px solid #bbb;
width: auto;
margin: 10px 0;
}
......@@ -629,7 +629,7 @@ a.ygtvspacer:hover {
.box-shadow(inset 0 0 10px 0 #ccc);
}
.fp-select .fp-thumbnail img {
border: 1px solid #DDDDDD;
border: 1px solid #ddd;
padding: 3px;
vertical-align: middle;
margin: 10px;
......@@ -709,8 +709,8 @@ a.ygtvspacer:hover {
}
}
.filemanager .fp-navbar {
background: #F2F2F2;
border: 1px solid #BBBBBB;
background: #f2f2f2;
border: 1px solid #bbb;
border-bottom: none;
}
.filemanager-toolbar {
......@@ -718,7 +718,7 @@ a.ygtvspacer:hover {
overflow: hidden;
}
.fp-pathbar {
border-top: 1px solid #BBBBBB;
border-top: 1px solid #bbb;
padding: 5px 8px 1px;
min-height: 20px;
}
......@@ -734,8 +734,8 @@ a.ygtvspacer:hover {
.fp-toolbar .fp-tb-manage,
.fp-toolbar .fp-tb-logout,
.fp-toolbar .fp-tb-refresh {
border: 1px solid #CCC;
border-bottom: 1px solid #B3B3B3;
border: 1px solid #ccc;
border-bottom: 1px solid #b3b3b3;
border-radius: 4px;
background: white;
width: 30px;
......@@ -743,12 +743,12 @@ a.ygtvspacer:hover {
}
.fp-toolbar a:hover {
background-image: radial-gradient(ellipse at center, #ffffff 60%, #dfdfdf 100%);
background-image: radial-gradient(ellipse at center, #fff 60%, #dfdfdf 100%);
background-color: #ebebeb;
}
.fp-toolbar a:active {
background-image: radial-gradient(ellipse at center, #ffffff 40%, #dfdfdf 100%);
background-image: radial-gradient(ellipse at center, #fff 40%, #dfdfdf 100%);
background-color: #dfdfdf;
}
......@@ -780,10 +780,10 @@ a.ygtvspacer:hover {
}
.filepicker-filelist,
.filemanager-container {
background: #FFFFFF;
background: #fff;
clear: both;
overflow: auto;
border: 1px solid #BBBBBB;
border: 1px solid #bbb;
min-height: 140px;
position: relative;
}
......@@ -798,7 +798,7 @@ a.ygtvspacer:hover {
}
.fitem.disabled .filepicker-filelist,
.fitem.disabled .filemanager-container {
background-color: #EBEBE4;
background-color: #ebebe4;
}
.fitem.disabled .fp-btn-choose {
.muted
......@@ -838,22 +838,22 @@ a.ygtvspacer:hover {
}
// Table view (File Manager only)
.filemanager .yui3-datatable table {
border: 0 solid #BBBBBB;
border: 0 solid #bbb;
width: 100%;
}
.filemanager .yui3-datatable-header {
background: #FFFFFF !important;
border-bottom: 1px solid #CCCCCC !important;
border-left: 0 solid #FFFFFF !important;
color: #555555 !important;
background: #fff !important;
border-bottom: 1px solid #ccc !important;
border-left: 0 solid #fff !important;
color: #555 !important;
}
.filemanager .yui3-datatable-odd .yui3-datatable-cell {
background-color: #F6F6F6 !important;
border-left: 0 solid #F6F6F6;
background-color: #f6f6f6 !important;
border-left: 0 solid #f6f6f6;
}
.filemanager .yui3-datatable-even .yui3-datatable-cell {
background-color: #FFFFFF !important;
border-left: 0 solid #FFFFFF;
background-color: #fff !important;
border-left: 0 solid #fff;
}
.filemanager .fp-filename-icon.fp-hasreferences .fp-reficons1 {
background: url('[[pix:theme|fp/link_sm]]') no-repeat 0 0;
......@@ -901,13 +901,13 @@ a.ygtvspacer:hover {
bottom: 10px;
left: 10px;
right: 10px;
border: 2px dashed #BBBBBB;
border: 2px dashed #bbb;
padding-top: 85px;
text-align: center;
}
.filepicker-filelist .dndupload-target,
.filemanager-container .dndupload-target {
background: #FFFFFF;
background: #fff;
position: absolute;
top: 10px;
bottom: 10px;
......@@ -920,7 +920,7 @@ a.ygtvspacer:hover {
}
.filepicker-filelist.dndupload-over .dndupload-target,
.filemanager-container.dndupload-over .dndupload-target {
background: #FFFFFF;
background: #fff;
position: absolute;
top: 10px;
bottom: 10px;
......@@ -1040,8 +1040,8 @@ a.ygtvspacer:hover {
display: inline;
}
.filemanager.fp-select .fp-reflist .fp-value {
background: #F9F9F9;
border: 1px solid #BBBBBB;
background: #f9f9f9;
border: 1px solid #bbb;
padding: 8px 7px;
margin: 0;
max-width: 265px;
......
......@@ -56,7 +56,7 @@
#qtypechoicecontainer {
font-size: 12px;
color: #333;
background: #F2F2F2;
background: #f2f2f2;
.border-radius(10px);
border: 1px solid #ccc;
border-top: 0 none;
......@@ -368,7 +368,7 @@ body.path-question-type .fitem_fgroup .accesshide {
background: transparent;
}
#page-mod-quiz-edit #categoryquestions > thead {
background: #FFF;
background: #fff;
}
#page-mod-quiz-edit #categoryquestions > tbody > tr:nth-of-type(even) {
background: #e4e4e4;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment