Skip to content

Commit 2d10701

Browse files
committed
Review changes
1 parent 96fc2df commit 2d10701

File tree

2 files changed

+36
-35
lines changed

2 files changed

+36
-35
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* Snippet Title: Move course search box to top on site home
3+
* Scope: sitehome
4+
* Goal: easeofuse
5+
* Description: The course search box on site home is very important to many users. But when existing content on site home is very long, it is positioned quite unprominent. This snippet always puts the course search box on top on site home.
6+
* Creator: André Menrath
7+
* Tested on: Moodle 5.0, Firefox for Mac
8+
* Usage note: For this snippet to have any effect, 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+
/* Make all site home content a flex container. This allows us to order the elements inside the container. */
16+
#page-site-index #region-main > div {
17+
display: flex;
18+
flex-direction: column;
19+
width: 100%;
20+
flex-wrap: nowrap;
21+
}
22+
23+
/* The course search box */
24+
#page-site-index #region-main > div > div.box:has(.simplesearchform) {
25+
order: 1;
26+
}
27+
28+
/* The course content*/
29+
#page-site-index #region-main > div > div.course-content {
30+
order: 2;
31+
}
32+
33+
/* All other stuff */
34+
#page-site-index #region-main > div > * {
35+
order: 3;
36+
}

snippets/easeofuse/course_search_above_startpage_content.scss

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)