Skip to content

Commit

Permalink
MDL-54671 css: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jul 8, 2016
1 parent c5ec7b6 commit d7f2176
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 95 deletions.
2 changes: 1 addition & 1 deletion .csslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
--errors=errors,duplicate-properties
--warnings=known-properties,display-property-grouping,empty-rules,important
--exclude-list=vendor/,lib/editor/tinymce/,lib/yuilib/,theme/bootstrapbase/style/
--exclude-list=vendor/,node_modules/,lib/editor/tinymce/,lib/yuilib/,theme/bootstrapbase/style/,lib/jquery/,lib/htmlpurifier,theme/clean/style/custom.css,theme/more/style/custom.css,
1 change: 0 additions & 1 deletion enrol/yui/rolemanager/assets/skins/sam/rolemanager.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
.enrolpanel .container .header {border-bottom:1px solid #999;}
.enrolpanel .container .header h2 {font-size:90%;text-align:center;margin:5px;}
.enrolpanel .container .header .close {width:25px;height:15px;position:absolute;top:5px;right:1em;cursor:pointer;background:url("sprite.png") no-repeat scroll 0 0 transparent;}
.enrolpanel .container .content {}
.enrolpanel .container .content input {margin:5px;font-size:10px;}
.enrolpanel.roleassign.visible .container {width:auto;}
1 change: 0 additions & 1 deletion lib/editor/atto/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ div.editor_atto_toolbar button {
margin: 0;
border-radius: 0;
cursor: pointer;
line-height: initial;
}

div.editor_atto_toolbar button + button {
Expand Down
1 change: 0 additions & 1 deletion report/progress/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
}
#page-report-progress-index .completion_pagingbar p {
display: inline;
margin: 0;
}
#page-report-progress-index .completion_next {
display: inline;
Expand Down
1 change: 0 additions & 1 deletion theme/base/style/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,6 @@
}

#adminsettings .form-item .form-setting .form-htmlarea {
width: 640px;
display: inline;
}

Expand Down
1 change: 0 additions & 1 deletion theme/base/style/autocomplete.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
}

.form-autocomplete-selection [role=listitem].label {
color: #333;
background-color: #00E;
border: 4px solid #00E;
color: #FFF;
Expand Down
3 changes: 0 additions & 3 deletions theme/base/style/calendar.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@
text-align: right;
}

.path-calendar {
}

.path-calendar .maincalendar {
vertical-align: top;
padding: 0;
Expand Down
30 changes: 5 additions & 25 deletions theme/base/style/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,6 @@ div.hide {
display: inline;
border-width: 0;
padding: 0;
margin: 0;
}
/*Accessibility: Skip block link, for keyboard-only users. */
a.skip-block,
Expand Down Expand Up @@ -517,12 +516,6 @@ a.skip:active {
/**
* User menu
*/
.usermenu {
}

.usermenu .moodle-actionmenu {
}

.usermenu .moodle-actionmenu .toggle-display {
display: block;
opacity: 1;
Expand Down Expand Up @@ -2063,9 +2056,6 @@ tr.flagged-tag a {
color: inherit;
}

.path-backup .backup_progress .backup_stage.backup_stage_next {
}

.path-backup .backup_progress span.backup_stage.backup_stage_complete {
color: inherit;
}
Expand Down Expand Up @@ -2506,7 +2496,7 @@ x#fitem_id_availabilityconditionsjson input[type=text] {
}

.yui3-menu .yui3-menuitem.divider a {
visibility: invisible;
visibility: hidden;
}

/**
Expand Down Expand Up @@ -2732,8 +2722,6 @@ x#fitem_id_availabilityconditionsjson input[type=text] {
display: inline;
float: none;
clear: none;
width: auto;
margin: 0;
line-height: 2;
}

Expand Down Expand Up @@ -2886,9 +2874,6 @@ x#fitem_id_availabilityconditionsjson input[type=text] {
width: 50px;
}

.backup-restore .detail-pair {
}

.backup-restore .detail-pair-label {
display: inline-block;
width: 25%;
Expand Down Expand Up @@ -3414,7 +3399,6 @@ sup {
margin: 0;
line-height: 20px;
}

.moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd,
.moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd.yui3-widget-hd {
margin: 0;
Expand All @@ -3428,7 +3412,8 @@ sup {
border-radius: 10px 10px 0px 0px;
border-bottom: 1px solid #BBBBBB;
background-color: #CCCCCC;
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#CCCCCC')!important;
/*csslint important:false */
-ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#CCCCCC') !important;
-ms-filter: dropshadow(color=#FFFFFF, offx=1, offy=1);
background-image: -webkit-linear-gradient(top, #FFFFFF, #CCCCCC);
/* For Chrome and Safari */
Expand All @@ -3443,7 +3428,6 @@ sup {
}

.moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd h1 {
margin: 0;
padding: 0;
display: inline;
font-size: 100%;
Expand All @@ -3457,7 +3441,6 @@ sup {
.moodle-dialogue-base .closebutton {
width: 25px;
height: 15px;
float: right;
vertical-align: middle;
display: inline-block;
cursor: pointer;
Expand Down Expand Up @@ -3876,8 +3859,6 @@ table.flexible .emptyrow {
min-height: 225px;
}

.formlistingradiocontent {}

.formlisting {
position: relative;
margin: 15px 0;
Expand Down Expand Up @@ -4330,7 +4311,7 @@ div#dateselector-calendar-panel {

.jsenabled.dir-rtl .moodle-actionmenu[data-enhance] .toggle-display.textmenu {
margin-right: 4px;
margin-left: initial;
margin-left: inherit;
}

.jsenabled .moodle-actionmenu[data-enhance] .toggle-display.textmenu .iconsmall {
Expand All @@ -4344,7 +4325,7 @@ div#dateselector-calendar-panel {

.jsenabled.dir-rtl .moodle-actionmenu[data-enhance] .toggle-display.textmenu .caret {
margin-right: 2px;
margin-left: initial;
margin-left: inherit;
}

.jsenabled .moodle-actionmenu[data-enhanced] .toggle-display {
Expand Down Expand Up @@ -4870,7 +4851,6 @@ body.lockscroll {

.editor_atto_menu .moodle-dialogue-content {
padding: 0;
border: inherit;
}

.well {
Expand Down
63 changes: 36 additions & 27 deletions theme/base/style/course.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
}

.dir-rtl .section .activity .mod-indent-outer {
padding-left: auto;
padding-right: 24px;
}

Expand Down Expand Up @@ -158,7 +157,7 @@
.dir-rtl.editing .sitetopic .section .activity .contentwithoutlink,
.dir-rtl.editing .course-content .section .activity .contentwithoutlink {
padding-left: 200px;
padding-right: initial;
padding-right: inherit;
}

.sitetopic .section .activity .activityinstance,
Expand All @@ -184,7 +183,7 @@
.dir-rtl .sitetopic .section .activity .contentwithoutlink,
.dir-rtl .course-content .section .activity .contentwithoutlink {
padding-left: 32px;
padding-right: initial;
padding-right: inherit;
}

.sitetopic .section .activity .filler,
Expand Down Expand Up @@ -633,13 +632,13 @@ li.section.hidden span.commands a.editing_show {
.course_category_tree .category > .info > .categoryname {
background-image: url([[pix:moodle|t/collapsed_empty]]);
background-repeat: no-repeat;
background-position: center left;
background-position: center;
margin: 0.5em 5px;
}

.dir-rtl .course_category_tree .category > .info > .categoryname {
background-image: url([[pix:moodle|t/collapsed_empty_rtl]]);
background-position: center right;
background-position: center;
margin: 0.5em 5px;
}

Expand Down Expand Up @@ -752,11 +751,11 @@ input.titleeditor {
}

.editing .course-content .section .activity.editor_displayed .activityinstance {
padding-right: initial;
padding-right: inherit;
}

.dir-rtl.editing .course-content .section .activity.editor_displayed .activityinstance {
padding-left: initial;
padding-left: inherit;
}

/* Course drag and drop upload styles */
Expand Down Expand Up @@ -809,7 +808,6 @@ input.titleeditor {
display: inline-block;
margin: 0;
padding: 0;
float: left;
box-shadow: 0 0 4px #229b15;
border-radius: 2px;
background-repeat: repeat-x;
Expand Down Expand Up @@ -1027,13 +1025,11 @@ input.titleeditor {
#course-category-listings .item-actions {
margin-right: 1em;
display: inline-block;
display: initial;
}

#course-category-listings .item-actions .menubar img,
#course-category-listings .item-actions > a img {
margin: 0 4px;
vertical-align: inherit;
}

#course-category-listings .item-actions .menu img {
Expand Down Expand Up @@ -1293,7 +1289,6 @@ input.titleeditor {

.coursecat-management-header > div {
display: inline-block;
float: right;
}

.coursecat-management-header > div > div {
Expand Down Expand Up @@ -1428,6 +1423,8 @@ input.titleeditor {
}

/** Custom YUI grid CSS **/
/*csslint duplicate-properties:false */


.grid-col {
display: inline-block;
Expand Down Expand Up @@ -1642,13 +1639,18 @@ input.titleeditor {
word-spacing: -0.43em;
}

@media (min-width:980px) {
.grid-visible-phone { display: none; }
.grid-visible-tablet { display: none; }
.grid-visible-desktop { }
.grid-hidden-phone { }
.grid-hidden-tablet { }
.grid-hidden-desktop { display: none; }
@media (min-width: 980px) {
.grid-visible-phone {
display: none;
}

.grid-visible-tablet {
display: none;
}

.grid-hidden-desktop {
display: none;
}
}

@media (min-width: 980px) {
Expand Down Expand Up @@ -1683,15 +1685,22 @@ input.titleeditor {
.grid-visible-desktop {
display: none;
}
.grid-visible-phone { }
.grid-hidden-phone { display: none; }
.grid-hidden-desktop { }
.grid-visible-desktop { display: none; }

.grid-hidden-phone {
display: none;
}

.grid-visible-desktop {
display: none;
}
}

@media (min-width:768px) and (max-width:979px) {
.grid-visible-tablet {}
.grid-hidden-tablet { display: none; }
.grid-hidden-desktop {}
.grid-visible-desktop { display: none; }
@media (min-width: 768px) and (max-width: 979px) {
.grid-hidden-tablet {
display: none;
}

.grid-visible-desktop {
display: none;
}
}
4 changes: 2 additions & 2 deletions theme/base/style/filemanager.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* We do nasty things in this stylesheet, disable some lints */
/*csslint important:false,duplicate-properties:false */
/**
* File Picker and File Manager
*/
Expand Down Expand Up @@ -460,7 +462,6 @@

.dir-rtl .fp-pathbar span {
display: inline-block;
float: right;
margin-left: 32px;
}

Expand Down Expand Up @@ -1700,7 +1701,6 @@ a.ygtvspacer:hover {
width: 100%;
height: auto;
max-height: 220px;
y-scroll: auto;
float: none;
border: 0px;
}
Expand Down
3 changes: 0 additions & 3 deletions theme/base/style/grade.css
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,6 @@
padding: 1em;
}

#page-grade-grading-pick .templatesearchform {
}

#page-grade-grading-pick .template-name {
clear: both;
padding: 3px;
Expand Down
3 changes: 0 additions & 3 deletions theme/base/style/message.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
font-style: italic;
}

.message .text {
}

#page-message-user .commands span {
font-size: 0.7em;
}
Expand Down
15 changes: 0 additions & 15 deletions theme/base/style/pagelayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -216,21 +216,6 @@ body {
background-image: none;
}

/** Stabalise some IE6 behaviour **/
.ie6 #region-pre .region-content,
.ie6 #region-post .region-content {
padding: 0 !important;
width: 100%;
float: none;
}

.ie6 #region-pre .region-content .block,
.ie6 #region-post .region-content .block {
width: auto;
padding: 0;
margin: 10px;
}

/** Report layout **/
.pagelayout-report #page {
width: auto;
Expand Down
Loading

0 comments on commit d7f2176

Please sign in to comment.