From 4040c8b35e89ea6c3e7760480c54e90c253767b4 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Fri, 19 Feb 2016 14:34:43 +0800 Subject: [PATCH] MDL-31989 theme: Global search styles --- theme/base/config.php | 3 +- theme/base/style/search.css | 14 +++++ theme/bootstrapbase/layout/columns1.php | 1 + theme/bootstrapbase/layout/columns2.php | 1 + theme/bootstrapbase/layout/columns3.php | 1 + theme/bootstrapbase/less/moodle.less | 1 + theme/bootstrapbase/less/moodle/search.less | 58 +++++++++++++++++++++ theme/bootstrapbase/style/moodle.css | 2 +- theme/clean/layout/columns1.php | 1 + theme/clean/layout/columns2.php | 1 + theme/clean/layout/columns3.php | 1 + theme/upgrade.txt | 6 +++ 12 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 theme/base/style/search.css create mode 100644 theme/bootstrapbase/less/moodle/search.less diff --git a/theme/base/config.php b/theme/base/config.php index 210dd329e01..5dd2f12e417 100644 --- a/theme/base/config.php +++ b/theme/base/config.php @@ -51,7 +51,8 @@ $THEME->sheets = array( 'tabs', 'filemanager', 'templates', - 'autocomplete' + 'autocomplete', + 'search' ); $THEME->editor_sheets = array('editor'); diff --git a/theme/base/style/search.css b/theme/base/style/search.css new file mode 100644 index 00000000000..baae4cda101 --- /dev/null +++ b/theme/base/style/search.css @@ -0,0 +1,14 @@ +.search-results .result { + margin-left: 0; + margin-right: 0; +} + +.dir-rtl .search-results .result { + margin-right: 15px; + margin-left: 0; +} + +.search-results .result .result-content { + margin: 7px 0; +} + diff --git a/theme/bootstrapbase/layout/columns1.php b/theme/bootstrapbase/layout/columns1.php index 7c9a8b39e7a..97b9672a3c1 100644 --- a/theme/bootstrapbase/layout/columns1.php +++ b/theme/bootstrapbase/layout/columns1.php @@ -43,6 +43,7 @@ echo $OUTPUT->doctype() ?> ?> navbar_button(); ?> user_menu(); ?> + search_box(); ?>