Skip to content
Snippets Groups Projects
Commit 39bb12ef authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Improved SCSS code for fixing flat navigation displaying bug when using different course formats.

parent ca1268aa
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ Changes ...@@ -6,6 +6,7 @@ Changes
### Unreleased ### Unreleased
* 2017-03-31 - Improved SCSS code for fixing flat navigation displaying bug when using different course formats.
* 2017-03-30 - Setting to be able to add a default Font Awesome icon in front of the block title. * 2017-03-30 - Setting to be able to add a default Font Awesome icon in front of the block title.
* 2017-03-29 - Setting to be able to hide Moodle's default links in the footer. * 2017-03-29 - Setting to be able to hide Moodle's default links in the footer.
* 2017-03-27 - Setting to be able to upload own font files. * 2017-03-27 - Setting to be able to upload own font files.
......
...@@ -135,11 +135,6 @@ body.loginbackgroundimage { ...@@ -135,11 +135,6 @@ body.loginbackgroundimage {
padding-right: 2px; padding-right: 2px;
} }
/* Hide icons of items that don't need one.*/
a.list-group-item span.media-left > img {
display: none;
}
/* /*
* General left menu. * General left menu.
*/ */
...@@ -151,6 +146,16 @@ body.loginbackgroundimage { ...@@ -151,6 +146,16 @@ body.loginbackgroundimage {
@include navdrawer-node-separator(parent); @include navdrawer-node-separator(parent);
} }
/* Remove icon from elements that does not need any. */
a.list-group-item[data-key|=coursehome] span.media-left > img,
a.list-group-item[data-key|=myhome] span.media-left > img,
a.list-group-item[data-key|=home] span.media-left > img ,
a.list-group-item[data-key|=calendar] span.media-left > img,
a.list-group-item[href*="files"] span.media-left > img,
a.list-group-item[data-key|=sitesettings] span.media-left > img{
display: none;
}
/* Menu item: my files. */ /* Menu item: my files. */
a.list-group-item[href*="files"] { a.list-group-item[href*="files"] {
border-bottom-right-radius: .25rem; border-bottom-right-radius: .25rem;
...@@ -179,9 +184,8 @@ body.loginbackgroundimage { ...@@ -179,9 +184,8 @@ body.loginbackgroundimage {
margin-left: 0px !important; margin-left: 0px !important;
} }
/* Add course icon to each course menu items. */ /* Set course icon to each course menu items. */
div.list-group-item[data-key|=mycourses] ~ a.list-group-item[href*="course/view.php?id="] span.media-left > img { div.list-group-item[data-key|=mycourses] ~ a.list-group-item[href*="course/view.php?id="] span.media-left > img {
display: inherit;
content: url([[pix:i/course]]); content: url([[pix:i/course]]);
} }
...@@ -195,36 +199,30 @@ body.loginbackgroundimage { ...@@ -195,36 +199,30 @@ body.loginbackgroundimage {
padding: .75rem 1.25rem; padding: .75rem 1.25rem;
} }
/* Menu items participants, badges and grades need dashed bottom border. */ /* Menu items participants, badges, grades and competencies need dashed bottom border. */
a.list-group-item[data-key|=participants], a.list-group-item[data-key|=participants],
a.list-group-item[data-key|=badgesview], a.list-group-item[data-key|=badgesview],
a.list-group-item[data-key|=grades] { a.list-group-item[data-key|=grades],
a.list-group-item[href*="coursecompetencies"] {
@include navdrawer-node-separator(child); @include navdrawer-node-separator(child);
} }
/* Add icons to menu items participants, badges and grades. */ /* Set icons to menu items participants, badges, grades and competencies. */
a.list-group-item[data-key|=participants] span.media-left > img { a.list-group-item[data-key|=participants] span.media-left > img {
display: inherit;
content: url([[pix:i/users]]); content: url([[pix:i/users]]);
} }
a.list-group-item[data-key|=badgesview] span.media-left > img { a.list-group-item[data-key|=badgesview] span.media-left > img {
display: inherit;
content: url([[pix:i/badge]]); content: url([[pix:i/badge]]);
} }
a.list-group-item[data-key|=grades] span.media-left > img { a.list-group-item[data-key|=grades] span.media-left > img {
display: inherit;
content: url([[pix:i/grades]]); content: url([[pix:i/grades]]);
} }
a.list-group-item[href*="coursecompetencies"] span.media-left > img {
/* Menu items: course sections. */ content: url([[pix:i/user]]);
a.list-group-item[href*="section-"] {
padding-left: 0.7rem;
border: none;
} }
/* Add and align icons before course section links */ /* Set and align icons before course section links */
a.list-group-item[href*="section-"] span.media-left > img { a.list-group-item[href*="section-"] span.media-left > img.icon {
display: inherit;
content: url([[pix:i/folder]]); content: url([[pix:i/folder]]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment