Skip to content

Commit a3664a6

Browse files
committed
add: snippet course search box to above content on startpage
1 parent 18d8866 commit a3664a6

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Snippet Title: Move course search box to top on startpage.
3+
* Scope: startpage
4+
* Goal: easeofuse
5+
* Description: The course search box on the start page is very important to many, but when the content of the start page course is very long it is positioned quite unprominent. This snippet alawys puts it on top.
6+
* Creator: André Menrath
7+
* Tested on: Moodle 4.4+
8+
* Usage note: The course search box has to be enabled in the frontpageloggedin site admin setting.
9+
*
10+
* @copyright 2025 University of Graz
11+
* @author André Menrath <andre.menrath@uni-graz.at>
12+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
13+
*/
14+
15+
#page-site-index #region-main > div {
16+
display: flex;
17+
flex-direction: column;
18+
width: 100%;
19+
flex-wrap: nowrap;
20+
}
21+
22+
/** The course search box */
23+
#page-site-index #region-main > div > div.box.py-3.d-flex.justify-content-center {
24+
order: 1;
25+
}
26+
27+
/** The course content*/
28+
#page-site-index #region-main > div > div.course-content {
29+
order: 2;
30+
}
31+
32+
/** All other stuff */
33+
#page-site-index #region-main > div > * {
34+
order: 3;
35+
}

0 commit comments

Comments
 (0)