forked from open-lms-open-source/moodle-theme_snap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_coursemanagement.scss
More file actions
141 lines (130 loc) · 3.41 KB
/
_coursemanagement.scss
File metadata and controls
141 lines (130 loc) · 3.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
// -------------------------
// Course management page.
// -------------------------
#page-course-management {
// View selector.
.view-mode-selector {
float: right;
font-family: $font-family-system;
&.action-menu {
display: inline-block;
padding-left: 0.5em;
}
}
i.icon.fa-search {
color: unset;
}
.tertiary-navigation .navitem {
margin-right: 20px;
margin-bottom: 25px;
select {
border-radius: .25rem;
}
}
// Links inside the course management page with unnecessary box shadow added by core in 3.9.
a {
box-shadow: none;
}
// We need to specify the exact elements that needs to have a transparent background,
// since core create some buttons as anchors and that may cause a problem.
// Had to separate this in two otherwise it won't work.
#category-listing ul.ms-1.list-unstyled a.categoryname {
&:hover,
&:active,
&:focus {
background-color: transparent !important;
}
}
#course-listing ul.ml.course-list a.coursename {
&:hover,
&:active,
&:focus {
background-color: transparent !important;
}
}
#course-category-listings .listitem[data-visible="0"] > div > a {
color: var(--gray);
}
.list-group-item-action:hover {
z-index: inherit;
}
}
// Wrapper around the 3 colums of data.
#course-category-listings {
@extend .row;
padding-top: 1em;
.categoryname {
margin: 0 0.5rem;
}
// Two or three cols of data.
.category-listing,
.course-listing {
.listing-actions {
padding: 0.5em 0;
}
// Lists of content.
ul {
list-style: none;
padding-left: 0;
}
li ul {
padding-left: 4%;
}
li.collapsed ul {
display: none;
}
// Hide and show eye icons.
.listitem[data-visible="1"] {
> div {
.item-actions {
.action-show {
display: none;
}
.action-hide {
display: inline;
}
}
}
}
.listitem[data-visible="0"] {
> div {
.item-actions {
.action-show {
display: inline;
}
.action-hide {
display: none;
}
}
}
}
// Hide move up/down actions on first/last iteams.
.listitem:last-child > div .item-actions .action-movedown,
.listitem:first-child > div .item-actions .action-moveup {
display: none;
}
// Actions for catagory.
.category-item-actions {
float: left;
padding-right: 0.5em;
}
// Dropdown edit menu.
.dropdown-menu-right {
right: auto;
left: 0;
}
// Number of courses in catagory.
.course-count {
width: 3em;
float: right;
text-align: right;
}
}
// Course listing section.
#course-listing {
// Sort/filer options.
.moodle-actionmenu {
display: inline-block;
}
}
}