MDL-42711 theme port from LM: vertical alignment of the course icon
authorDavid Mudrák <david@moodle.com>
Wed, 13 Nov 2013 01:32:05 +0000 (02:32 +0100)
committerDavid Mudrák <david@moodle.com>
Wed, 13 Nov 2013 01:32:05 +0000 (02:32 +0100)
When the course name spans over multiple lines, vertically centered icon does
not look nice (or at least our beloved Benevolent Dictator for Life does not
like it ;-). This hack alignes the icon vertically with the first line of the
course name all the time (or at least it tries to).

theme/bootstrapbase/less/moodle/course.less

index a1afe8b..2647095 100644 (file)
@@ -399,7 +399,7 @@ span.editinstructions {
     background-image:url([[pix:moodle|i/course]]);
     background-repeat: no-repeat;
     padding-left:21px;
-    background-position: center left;
+    background-position: left 0.5em;
 }
 .coursebox.remotehost > .info > .categoryname a {
     background-image:url([[pix:moodle|i/mnethost]]);