diff --git a/css/swad_desktop.css b/css/swad_desktop.css index 0ee73f2ac..38b17ca77 100644 --- a/css/swad_desktop.css +++ b/css/swad_desktop.css @@ -135,6 +135,18 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} text-align:left; vertical-align:middle; } +@media only screen and (max-width: 1279px) { /* For mobile phones and tablets */ + #head_search_text + { + display:none; + } +} +@media only screen and (min-width: 1280px) { /* For desktop */ + #head_search_text + { + display:initial; + } +} #head_row_1_usr_lang { display:table-cell; @@ -331,7 +343,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} width:138px; } -@media only screen and (max-width: 1280px) { /* For mobile phones: */ +@media only screen and (max-width: 1279px) { /* For mobile phones and tablets */ #main_zone_central_none, #main_zone_central_left, #main_zone_central_right, #main_zone_central_both { display:table-cell; @@ -339,7 +351,7 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} vertical-align:top; } } -@media only screen and (min-width: 1280px) { /* For desktop: */ +@media only screen and (min-width: 1280px) { /* For desktop */ #main_zone_central_none /* Hide left and right columns */ { display:table-cell; diff --git a/swad_changelog.h b/swad_changelog.h index b427f6970..de12edcda 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -115,11 +115,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.46 (2015/11/27)" +#define Log_PLATFORM_VERSION "SWAD 15.46.1 (2015/11/27)" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*.h sql/swad*.sql | tail -1 /* + Version 15.46.1: Nov 27, 2015 Responsive design in search box (top of the page). (188094 lines) Version 15.46: Nov 27, 2015 First version with responsive design: both side columns are hidden when screen size is small. (188078 lines) Version 15.45.15: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188021 lines) Version 15.45.14: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188037 lines) diff --git a/swad_layout.c b/swad_layout.c index 18a35caeb..be2048661 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -760,7 +760,7 @@ static void Lay_WritePageTopHeadingDesktop (void) (Gbl.CurrentCty.Cty.CtyCod > 0 ? ActCtySch : ActSysSch))))); Sco_PutParamScope (Sco_SCOPE_SYS); - Sch_PutFormToSearch (Gbl.Prefs.PathTheme); + Sch_PutFormToSearch (Gbl.Prefs.PathTheme,"head_search_text"); Act_FormEnd (); fprintf (Gbl.F.Out,""); diff --git a/swad_search.c b/swad_search.c index f4213de5c..1e3396fac 100644 --- a/swad_search.c +++ b/swad_search.c @@ -266,7 +266,7 @@ static void Sch_PutFormToSearchWithWhatToSearchAndScope (Act_Action_t Action,Sco fprintf (Gbl.F.Out,""); /***** String to find *****/ - Sch_PutFormToSearch (Gbl.Prefs.IconsURL); + Sch_PutFormToSearch (Gbl.Prefs.IconsURL,NULL); /***** Send button and end frame *****/ Lay_EndRoundFrameWithButton (Lay_CONFIRM_BUTTON,Txt_Search); @@ -304,12 +304,15 @@ static bool Sch_CheckIfIHavePermissionToSearch (Sch_WhatToSearch_t WhatToSearch) /*********** Put form to search courses, teachers, documents... **************/ /*****************************************************************************/ -void Sch_PutFormToSearch (const char *IconURL) +void Sch_PutFormToSearch (const char *IconURL,const char *IdInputText) { extern const char *Txt_Search; /***** String to find *****/ - fprintf (Gbl.F.Out,"