Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-theme_boost_campus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-theme_boost_campus
Commits
39bb12ef
Commit
39bb12ef
authored
8 years ago
by
Kathrin Osswald
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGES.md
+1
-0
1 addition, 0 deletions
CHANGES.md
scss/post.scss
+19
-21
19 additions, 21 deletions
scss/post.scss
with
20 additions
and
21 deletions
CHANGES.md
+
1
−
0
View file @
39bb12ef
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
scss/post.scss
+
19
−
21
View file @
39bb12ef
...
@@ -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 grad
es need dashed bottom border. */
/* Menu items participants, badges
, grades and competenci
es 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 grad
es. */
/*
Set
icons to menu items participants, badges
, grades and competenci
es. */
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]])
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment