-
Notifications
You must be signed in to change notification settings - Fork 60
/
styles_boost.css
59 lines (51 loc) · 2.17 KB
/
styles_boost.css
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
/**
* Collapsed Topics Information
*
* A topic based format that solves the issue of the 'Scroll of Death' when a course has many topics. All topics
* except zero have a toggle that displays that topic. One or more topics can be displayed at any given time.
* Toggles are persistent on a per browser session per course basis but can be made to persist longer by a small
* code change. Full installation instructions, code adaptions and credits are included in the 'Readme.txt' file.
*
* @package format_topcoll
* @version See the value of '$plugin->version' in version.php.
* @copyright © 2017-onwards G J Barnard in respect to modifications of standard topics format.
* @author G J Barnard - gjbarnard at gmail dot com and {@link http://moodle.org/user/profile.php?id=442195}
* @link http://docs.moodle.org/en/Collapsed_Topics_course_format
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
ul.ctopics .content .summary ul,
ul.ctopics .content .section ul {
margin: 0 0 10px 10px;
}
/* Half the navbar height */
ul.ctopics :target {
scroll-margin-top: 30px;
}
.course-content ul.ctopics .current::before {
height: auto;
left: 0;
margin-top: 0;
}
.format-topcoll.path-course-view.editing #region-main > .card-block {
overflow-x: visible;
}
/* Activity padding */
.format-topcoll .ctopics .activity-item:not(.activityinline) {
padding: 1rem 0.5rem;
}
@media (min-width: 768px) {
.format-topcoll .ctopics .activity-item:not(.activityinline) {
padding: 0.5rem 0.25rem;
}
}