MDL-64172 block_myoverview: use .text-primary to colour star icons
authorBas Brands <bas@moodle.com>
Sun, 25 Nov 2018 11:44:04 +0000 (12:44 +0100)
committerBas Brands <bas@moodle.com>
Sun, 25 Nov 2018 11:44:04 +0000 (12:44 +0100)
Using the .text-primary class allows colour to be overridden easily
This will back the dashboard icons look consistent with the messaging icons.

blocks/myoverview/templates/course-action-menu.mustache
course/templates/favouriteicon.mustache
theme/boost/scss/moodle/blocks.scss
theme/boost/style/moodle.css

index b1afa75..1ce2d5a 100644 (file)
@@ -41,7 +41,7 @@
             data-course-id="{{id}}"
             aria-controls="favorite-icon-{{ id }}"
             >
-            {{#pix}} i/star, core, {{#str}} favourites, block_myoverview {{/str}} {{/pix}}
+            <span class="text-primary">{{#pix}} i/star, core, {{#str}} favourites, block_myoverview {{/str}} {{/pix}}</span>
             {{#str}} addtofavourites, block_myoverview {{/str}}
             <div class="sr-only">
                 {{#str}} aria:addtofavourites, block_myoverview {{/str}} {{{fullname}}}
index 8aa8e6e..31292a8 100644 (file)
@@ -30,7 +30,7 @@
     data-course-id="{{id}}"
     >
     <span
-        class="{{^isfavourite}}hidden{{/isfavourite}}"
+        class="text-primary {{^isfavourite}}hidden{{/isfavourite}}"
         data-region="is-favourite"
         aria-hidden="{{^isfavourite}}true{{/isfavourite}}{{#isfavourite}}false{{/isfavourite}}"
         >
index fe36274..8661198 100644 (file)
@@ -94,9 +94,6 @@ $card-gutter : $card-deck-margin * 2;
     }
     .icon {
         margin-right: 0;
-        &.fa-star {
-            color: $blue;
-        }
     }
     .card .coursemenubtn {
         margin-top: -0.5rem;
index fac82ca..8296af2 100644 (file)
@@ -11224,8 +11224,6 @@ div.editor_atto_toolbar button .icon {
 
 .block .block-cards .icon {
   margin-right: 0; }
-  .block .block-cards .icon.fa-star {
-    color: #1177d1; }
 
 .block .block-cards .card .coursemenubtn, .block .block-cards #page-enrol-users #filterform .coursemenubtn, #page-enrol-users .block .block-cards #filterform .coursemenubtn, .block .block-cards .que .history .coursemenubtn, .que .block .block-cards .history .coursemenubtn, .block .block-cards .userprofile .profile_tree section .coursemenubtn, .userprofile .profile_tree .block .block-cards section .coursemenubtn, .block .block-cards .groupinfobox .coursemenubtn, .block .block-cards .well .coursemenubtn {
   margin-top: -0.5rem; }