From 1d3248839081da0623af9022547ee6cafd3204f8 Mon Sep 17 00:00:00 2001 From: acanas Date: Mon, 29 Jan 2024 00:11:10 +0100 Subject: [PATCH] Version 23.61: Jan 28, 2024 Responsive design. --- css/{swad23.58.1.css => swad23.61.css} | 33 +++++++++++++++++++++++++- swad_ID.c | 2 +- swad_changelog.h | 5 ++-- swad_mail.c | 6 ++--- swad_message.c | 15 +++++++----- swad_network.c | 2 +- swad_nickname.c | 2 +- swad_password.c | 2 +- swad_program_resource.c | 4 ++-- swad_record.c | 6 ++--- swad_rubric.c | 2 +- swad_statistic.c | 4 ++-- 12 files changed, 59 insertions(+), 24 deletions(-) rename css/{swad23.58.1.css => swad23.61.css} (99%) diff --git a/css/swad23.58.1.css b/css/swad23.61.css similarity index 99% rename from css/swad23.58.1.css rename to css/swad23.61.css index 15c3ccfe4..0b4b1282b 100644 --- a/css/swad23.58.1.css +++ b/css/swad23.61.css @@ -5234,7 +5234,38 @@ button.PAG_DARK:hover, .PAG_CUR_DARK {background-color:#707070;} } } -.TBL_SCROLL tbody +@media only screen and (max-width: 480px) + { /* For mobile-phones */ + .TBL_SCROLL_C2 + { + display: block; + overflow-x: auto; + width: 186px; + margin: 0 auto; + } + } +@media only screen and (min-width: 480px) and (max-width: 600px) + { /* For mobile-phones */ + .TBL_SCROLL_C2 + { + display: block; + overflow-x: auto; + width: 278px; + margin: 0 auto; + } + } +@media only screen and (min-width: 600px) + { /* For desktop */ + .TBL_SCROLL_C2 + { + display: block; + overflow-x: auto; + width: 384px; + margin: 0 auto; + } + } + +.TBL_SCROLL tbody,.TBL_SCROLL_C2 tbody { display: table; width: 100%; diff --git a/swad_ID.c b/swad_ID.c index 93308f25a..0ceb4525e 100644 --- a/swad_ID.c +++ b/swad_ID.c @@ -555,7 +555,7 @@ static void ID_ShowFormChangeUsrID (Usr_MeOrOther_t MeOrOther,bool IShouldFillIn Ale_ShowAlert (Ale_WARNING,Txt_Please_fill_in_your_ID); /***** Begin table *****/ - HTM_TABLE_BeginWidePadding (2); + HTM_TABLE_BeginPadding (2); /***** List existing user's IDs *****/ for (NumID = 0; diff --git a/swad_changelog.h b/swad_changelog.h index 879ddc43e..8b25c12ff 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -633,10 +633,11 @@ Me sale este error, no s "can npt create received message (duplicated entry '243218-2160773' for key 'UsrCod_MsgCod') */ -#define Log_PLATFORM_VERSION "SWAD 23.60.3 (2024-01-26)" -#define CSS_FILE "swad23.58.1.css" +#define Log_PLATFORM_VERSION "SWAD 23.61 (2024-01-28)" +#define CSS_FILE "swad23.61.css" #define JS_FILE "swad23.53.6.js" /* + Version 23.61: Jan 28, 2024 Responsive design. (335753 lines) Version 23.60.3: Jan 26, 2024 Responsive design in figures about institutions. (335720 lines) Version 23.60.2: Jan 26, 2024 Responsive design in search for users. (335714 lines) Version 23.60.1: Jan 26, 2024 Code refactoring in my groups. (335713 lines) diff --git a/swad_mail.c b/swad_mail.c index 58373ff90..fa83f8030 100644 --- a/swad_mail.c +++ b/swad_mail.c @@ -1025,7 +1025,7 @@ void Mai_ShowFormChangeMyEmail (bool IMustFillInEmail,bool IShouldConfirmEmail) HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID); /***** Begin box *****/ - Box_BoxBegin ("100%",Txt_Email, + Box_BoxBegin (NULL,Txt_Email, Acc_PutLinkToRemoveMyAccount,NULL, Hlp_PROFILE_Account,Box_NOT_CLOSABLE); @@ -1054,7 +1054,7 @@ void Mai_ShowFormChangeOtherUsrEmail (void) HTM_SECTION_Begin (Mai_EMAIL_SECTION_ID); /***** Begin box *****/ - Box_BoxBegin ("100%",Txt_Email, + Box_BoxBegin (NULL,Txt_Email, NULL,NULL, Hlp_PROFILE_Account,Box_NOT_CLOSABLE); @@ -1147,7 +1147,7 @@ static void Mai_ShowFormChangeUsrEmail (Usr_MeOrOther_t MeOrOther, NumEmails = Mai_DB_GetMyEmails (&mysql_res,UsrDat[MeOrOther]->UsrCod); /***** Begin table *****/ - HTM_TABLE_BeginWidePadding (2); + HTM_TABLE_BeginPadding (2); /***** List emails *****/ for (NumEmail = 1; diff --git a/swad_message.c b/swad_message.c index 0707d825c..e4672bbb9 100644 --- a/swad_message.c +++ b/swad_message.c @@ -332,15 +332,18 @@ static void Msg_PutFormMsgUsrs (struct Msg_Messages *Messages, /***** "To:" section (recipients) *****/ HTM_TR_Begin (NULL); - HTM_TD_TxtColon (Txt_MSG_To); - HTM_TD_Begin ("class=\"LT\""); + /* Label */ + Frm_LabelColumn ("REC_C1_BOT RT","",Txt_MSG_To); + + /* Data */ + HTM_TD_Begin ("class=\"REC_C2_BOT LT\""); if (Messages->ShowOnlyOneRecipient) /***** Show only one user as recipient *****/ Msg_ShowOneUniqueRecipient (); else { /***** Show potential recipients *****/ - HTM_TABLE_Begin ("TBL_SCROLL"); + HTM_TABLE_Begin ("TBL_SCROLL_C2"); if (ShowUsrsInCrs) { Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected); // All teachers in course @@ -591,9 +594,9 @@ static void Msg_WriteFormSubjectAndContentMsgToUsrs (struct Msg_Messages *Messag /* Data */ HTM_TD_Begin ("class=\"REC_C2_BOT LT\""); - HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\"" - " class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"", - The_GetSuffix ()); + HTM_TEXTAREA_Begin ("id=\"MsgSubject\" name=\"Subject\"" + " class=\"REC_C2_BOT_INPUT INPUT_%s\" rows=\"2\"", + The_GetSuffix ()); /* If message is a reply ==> get original message */ if (MsgCod > 0) // It's a reply diff --git a/swad_network.c b/swad_network.c index 928d768df..93c9617bf 100644 --- a/swad_network.c +++ b/swad_network.c @@ -204,7 +204,7 @@ void Net_ShowFormMyWebsAndSocialNets (void) /***** Begin box *****/ HTM_DIV_Begin ("class=\"REC_CONT\""); - Box_BoxBegin ("100%",Txt_Webs_social_networks, + Box_BoxBegin (NULL,Txt_Webs_social_networks, Net_PutIconsWebsSocialNetworks,NULL, Hlp_PROFILE_Webs,Box_NOT_CLOSABLE); diff --git a/swad_nickname.c b/swad_nickname.c index 4fc937ef4..9661fd7fb 100644 --- a/swad_nickname.c +++ b/swad_nickname.c @@ -223,7 +223,7 @@ static void Nck_ShowFormChangeUsrNickname (Usr_MeOrOther_t MeOrOther, Ale_ShowAlert (Ale_WARNING,Txt_Before_going_to_any_other_option_you_must_fill_your_nickname); /***** Begin table *****/ - HTM_TABLE_BeginWidePadding (2); + HTM_TABLE_BeginPadding (2); /***** List nicknames *****/ for (NumNick = 1; diff --git a/swad_password.c b/swad_password.c index 97387b357..3cd3e1f14 100644 --- a/swad_password.c +++ b/swad_password.c @@ -755,7 +755,7 @@ void Pwd_ShowFormChgOtherUsrPwd (void) Usr_PutParOtherUsrCodEncrypted (Gbl.Usrs.Other.UsrDat.EnUsrCod); /* New password */ - HTM_TABLE_BeginWidePadding (2); + HTM_TABLE_BeginPadding (2); Pwd_PutFormToGetNewPasswordTwice (); HTM_TABLE_End (); diff --git a/swad_program_resource.c b/swad_program_resource.c index 8f9fec3b9..4982633e8 100644 --- a/swad_program_resource.c +++ b/swad_program_resource.c @@ -226,14 +226,14 @@ void PrgRsc_ListItemResources (Prg_ListingType_t ListingType, switch (ViewingOrEditing[ListingType]) { case Vie_VIEW: - Box_BoxBegin ("100%",NULL, + Box_BoxBegin (NULL,NULL, NULL,NULL, NULL,Box_NOT_CLOSABLE); break; case Vie_EDIT: if (asprintf (&Title,Txt_Resources_of_X,Item->Title) < 0) Err_NotEnoughMemoryExit (); - Box_BoxBegin ("100%",Title, + Box_BoxBegin (NULL,Title, PrgRsc_PutIconsResources[ViewingOrEditingResourcesOfThisItem], &Item->Hierarchy.ItmCod, Hlp_COURSE_Program,Box_NOT_CLOSABLE); diff --git a/swad_record.c b/swad_record.c index 3200de77d..edcf0997c 100644 --- a/swad_record.c +++ b/swad_record.c @@ -1246,7 +1246,7 @@ static void Rec_ShowRecordOneTchCrs (void) { HTM_DIV_Begin ("class=\"REC_RIGHT\""); Timetable.Type = Tmt_TUTORING_TIMETABLE; - Box_BoxBegin ("100%",Txt_TIMETABLE_TYPES[Timetable.Type], + Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], NULL,NULL, Hlp_USERS_Teachers_timetable,Box_NOT_CLOSABLE); Tmt_ShowTimeTable (&Timetable,Gbl.Usrs.Other.UsrDat.UsrCod); @@ -1362,7 +1362,7 @@ static void Rec_ListRecordsTchs (Rec_SharedRecordViewType_t TypeOfView) { HTM_DIV_Begin ("class=\"REC_RIGHT\""); Timetable.Type = Tmt_TUTORING_TIMETABLE; - Box_BoxBegin ("100%",Txt_TIMETABLE_TYPES[Timetable.Type], + Box_BoxBegin (NULL,Txt_TIMETABLE_TYPES[Timetable.Type], NULL,NULL, Gbl.Action.Act == ActSeeRecSevTch ? Hlp_USERS_Teachers_timetable : NULL, @@ -1644,7 +1644,7 @@ static void Rec_ShowCrsRecord (Rec_CourseRecordViewType_t TypeOfView, } /***** Begin box and table *****/ - Box_BoxTableBegin ("100%",NULL, + Box_BoxTableBegin (NULL,NULL, NULL,NULL, Rec_RecordHelp[TypeOfView],Box_NOT_CLOSABLE,2); diff --git a/swad_rubric.c b/swad_rubric.c index 0e7c7d948..1ed5bbb9a 100644 --- a/swad_rubric.c +++ b/swad_rubric.c @@ -167,7 +167,7 @@ void Rub_ListAllRubrics (struct Rub_Rubrics *Rubrics) Rubrics->CurrentPage = (unsigned) Pagination.CurrentPage; /***** Begin box *****/ - Box_BoxBegin ("100%",Txt_Rubrics, + Box_BoxBegin (NULL,Txt_Rubrics, Rub_PutIconsListRubrics,Rubrics, Hlp_ASSESSMENT_Rubrics,Box_NOT_CLOSABLE); diff --git a/swad_statistic.c b/swad_statistic.c index 130ac2c10..0d4d9d762 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -308,7 +308,7 @@ static void Sta_PutFormCrsHits (struct Sta_Stats *Stats) /* Data */ HTM_TD_Begin ("class=\"REC_C2_BOT LT FORM_IN_%s\"", The_GetSuffix ()); - HTM_TABLE_Begin ("TBL_SCROLL"); + HTM_TABLE_Begin ("TBL_SCROLL_C2"); Usr_ListUsersToSelect (Rol_TCH,&Gbl.Usrs.Selected); Usr_ListUsersToSelect (Rol_NET,&Gbl.Usrs.Selected); Usr_ListUsersToSelect (Rol_STD,&Gbl.Usrs.Selected); @@ -933,7 +933,7 @@ static void Sta_ShowHits (Sta_GlobalOrCourseAccesses_t GlobalOrCourse) { /***** Put the table with the clicks *****/ if (Stats.ClicksGroupedBy == Sta_CLICKS_CRS_DETAILED_LIST) - Box_BoxBegin ("100%",Txt_List_of_detailed_clicks, + Box_BoxBegin (NULL,Txt_List_of_detailed_clicks, NULL,NULL, NULL,Box_NOT_CLOSABLE); else