diff --git a/css/swad16.93.css b/css/swad16.94.css
similarity index 96%
rename from css/swad16.93.css
rename to css/swad16.94.css
index 03db3f061..7c2f39797 100644
--- a/css/swad16.93.css
+++ b/css/swad16.94.css
@@ -200,6 +200,15 @@ a:hover /* Default ==> underlined */
}
}
+@media only screen and (max-width: 479px)
+ { /* For mobile phones */
+ .SEL_ROLE {width:55px;};
+ }
+@media only screen and (min-width: 480px)
+ { /* For mobile phones */
+ .SEL_ROLE {width:130px;};
+ }
+
#head_row_1_right
{
display:table-cell;
@@ -291,32 +300,73 @@ a:hover /* Default ==> underlined */
text-align:left;
vertical-align:top !important;
}
-@media only screen and (max-width: 799px)
+@media only screen and (max-width: 479px)
{ /* For mobile-phones */
#breadcrumb
{
+ display:table;
+ margin:0 auto;
+ font-size:6pt;
+ font-weight:bold;
+ white-space:nowrap;
+ }
+ .BC
+ {
+ display:table-cell;
+ max-width:28px;
+ overflow:hidden;
+ }
+ }
+@media only screen and (min-width: 480px) and (max-width: 799px)
+ { /* For mobile-phones */
+ #breadcrumb
+ {
+ display:table;
+ margin:0 auto;
font-size:8pt;
font-weight:bold;
white-space:nowrap;
}
+ .BC
+ {
+ display:table-cell;
+ max-width:60px;
+ overflow:hidden;
+ }
}
@media only screen and (min-width: 800px) and (max-width: 1023px)
{ /* For tablets */
#breadcrumb
{
+ display:table;
+ margin:0 auto;
font-size:10pt;
font-weight:bold;
white-space:nowrap;
}
+ .BC
+ {
+ display:table-cell;
+ max-width:100px;
+ overflow:hidden;
+ }
}
@media only screen and (min-width: 1024px)
{ /* For desktop */
#breadcrumb
{
+ display:table;
+ margin:0 auto;
font-size:12pt;
font-weight:bold;
white-space:nowrap;
}
+ .BC
+ {
+ display:table-cell;
+ max-width:150px;
+ overflow:hidden;
+ }
}
.BC_SEMIOFF
@@ -434,7 +484,58 @@ a:hover /* Default ==> underlined */
{
background-image:linear-gradient(#201420 0,#201420 58px,white 58px,white 100%);
}
-@media only screen and (max-width: 799px)
+@media only screen and (max-width: 479px)
+ { /* For mobile-phones */
+ #tabs
+ {
+ display:table;
+ box-sizing:border-box;
+ width:302px; /* 42px*7 + 8px */
+ height:64px;
+ margin:0 auto;
+ border-spacing:1px;
+ }
+ .TAB_OFF
+ {
+ display:table-cell;
+ box-sizing:border-box;
+ width:42px;
+ height:62px;
+ margin:0;
+ padding:0;
+ border-radius:5px 5px 0 0;
+ box-shadow:inset 0 -1px 1px 0 rgba(50,50,50,0.2);
+ text-align:center;
+ vertical-align:top;
+ overflow:hidden;
+ }
+ .TAB_ON
+ {
+ display:table-cell;
+ box-sizing:border-box;
+ width:42px;
+ height:62px;
+ margin:0;
+ padding:0;
+ border-radius:5px 5px 0 0;
+ box-shadow:inset 0 -1px 1px 0 rgba(50,50,50,0.2);
+ text-align:center;
+ vertical-align:top;
+ overflow:hidden;
+ }
+ .TAB_TXT
+ {
+ font-size:9pt;
+ font-weight:bold;
+ line-height:100%;
+ width:40px;
+ white-space:nowrap;
+ overflow:hidden;
+ text-overflow:ellipsis;
+ margin:0 auto;
+ }
+ }
+@media only screen and (min-width: 480px) and (max-width: 799px)
{ /* For mobile-phones */
#tabs
{
@@ -729,7 +830,7 @@ a:hover /* Default ==> underlined */
{
box-sizing:border-box;
width:100%;
- padding:4px 16px;
+ padding:4px 8px;
margin:0 auto;
text-align:left;
vertical-align:top;
@@ -788,7 +889,7 @@ a:hover /* Default ==> underlined */
{
box-sizing:border-box;
width:100%;
- padding:4px 16px;
+ padding:4px 8px;
margin:0 auto;
text-align:left;
vertical-align:top;
@@ -846,7 +947,7 @@ a:hover /* Default ==> underlined */
{
display:table-cell;
box-sizing:border-box;
- padding:4px 16px;
+ padding:4px 8px;
margin:0 auto;
text-align:left;
vertical-align:top;
diff --git a/swad_ID.c b/swad_ID.c
index 16eb8f321..97709c366 100644
--- a/swad_ID.c
+++ b/swad_ID.c
@@ -634,7 +634,7 @@ void ID_ShowFormChangeUsrID (const struct UsrData *UsrDat,bool ItsMe)
}
fprintf (Gbl.F.Out,"
"
""
+ " size=\"18\" maxlength=\"%u\" value=\"%s\" />"
"
",
ID_MAX_LENGTH_USR_ID,
UsrDat->IDs.Num ? UsrDat->IDs.List[UsrDat->IDs.Num - 1].ID :
diff --git a/swad_account.c b/swad_account.c
index fc8ad7a45..ef56ad93b 100644
--- a/swad_account.c
+++ b/swad_account.c
@@ -150,7 +150,7 @@ static void Acc_ShowFormCheckIfIHaveAccount (const char *Title)
"%s: "
""
"",
+ " size=\"18\" maxlength=\"%u\" value=\"\" />",
The_ClassForm[Gbl.Prefs.Theme],Txt_ID,
ID_MAX_LENGTH_USR_ID);
Lay_PutConfirmButton (Txt_Check);
@@ -326,17 +326,16 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
{
extern const char *Hlp_PROFILE_Sign_up;
extern const char *The_ClassForm[The_NUM_THEMES];
- extern const char *Txt_Create_a_new_account;
+ extern const char *Txt_Create_account;
extern const char *Txt_Nickname;
extern const char *Txt_HELP_nickname;
extern const char *Txt_HELP_email;
extern const char *Txt_Email;
- extern const char *Txt_Create_account;
char NewNicknameWithArroba[Nck_MAX_BYTES_NICKNAME_WITH_ARROBA+1];
/***** Form to enter some data of the new user *****/
Act_FormStart (ActCreUsrAcc);
- Lay_StartRoundFrameTable (NULL,Txt_Create_a_new_account,
+ Lay_StartRoundFrameTable (NULL,Txt_Create_account,
NULL,Hlp_PROFILE_Sign_up,2);
/***** Nickname *****/
@@ -350,7 +349,7 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
""
""
""
" | "
@@ -368,7 +367,7 @@ static void Acc_ShowFormRequestNewAccountWithParams (const char *NewNicknameWith
""
""
""
" | "
@@ -395,7 +394,7 @@ void Acc_ShowFormGoToRequestNewAccount (void)
{
extern const char *Hlp_PROFILE_Sign_up;
extern const char *Txt_New_on_PLATFORM_Sign_up;
- extern const char *Txt_Create_a_new_account;
+ extern const char *Txt_Create_account;
/***** Start frame *****/
sprintf (Gbl.Title,Txt_New_on_PLATFORM_Sign_up,Cfg_PLATFORM_SHORT_NAME);
@@ -403,7 +402,7 @@ void Acc_ShowFormGoToRequestNewAccount (void)
/***** Button to go to request the creation of a new account *****/
Act_FormStart (ActFrmMyAcc);
- Lay_PutCreateButton (Txt_Create_a_new_account);
+ Lay_PutCreateButton (Txt_Create_account);
Act_FormEnd ();
/***** End frame *****/
diff --git a/swad_changelog.h b/swad_changelog.h
index 6d87315b4..a8a9070cd 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -185,13 +185,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 16.93 (2016-12-10)"
-#define CSS_FILE "swad16.93.css"
+#define Log_PLATFORM_VERSION "SWAD 16.94 (2016-12-10)"
+#define CSS_FILE "swad16.94.css"
#define JS_FILE "swad16.90.2.js"
// 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 16.94: Dec 10, 2016 Changes in layout for responsive design. (210421 lines)
Version 16.93: Dec 10, 2016 Changes in layout of heading rows and tabs. (210308 lines)
Version 16.92.5: Dec 10, 2016 Contextual help on calendar. (210318 lines)
Version 16.92.4: Dec 09, 2016 Fixed bug in edition of user's agenda. (210313 lines)
diff --git a/swad_enrollment.c b/swad_enrollment.c
index 8fc886e3b..27ec49760 100644
--- a/swad_enrollment.c
+++ b/swad_enrollment.c
@@ -329,7 +329,7 @@ void Enr_WriteFormToReqAnotherUsrID (Act_Action_t NextAction)
"%s: "
""
"",
The_ClassForm[Gbl.Prefs.Theme],
Txt_nick_email_or_ID,
diff --git a/swad_mail.c b/swad_mail.c
index 0ab17e467..1c0b8a50e 100644
--- a/swad_mail.c
+++ b/swad_mail.c
@@ -1289,7 +1289,7 @@ void Mai_ShowFormChangeUsrEmail (const struct UsrData *UsrDat,bool ItsMe)
}
fprintf (Gbl.F.Out,""
""
+ " size=\"18\" maxlength=\"%u\" value=\"%s\" />"
"
",
Usr_MAX_BYTES_USR_EMAIL,
Gbl.Usrs.Me.UsrDat.Email);
diff --git a/swad_nickname.c b/swad_nickname.c
index 7818b3278..f00836a6e 100644
--- a/swad_nickname.c
+++ b/swad_nickname.c
@@ -285,7 +285,7 @@ void Nck_ShowFormChangeUsrNickname (void)
Act_FormStart (ActChgNic);
fprintf (Gbl.F.Out,""
""
+ " size=\"18\" maxlength=\"%u\" value=\"@%s\" />"
"
",
1 + Nck_MAX_LENGTH_NICKNAME_WITHOUT_ARROBA,
Gbl.Usrs.Me.UsrDat.Nickname);
diff --git a/swad_password.c b/swad_password.c
index 82a517aa0..f91128662 100644
--- a/swad_password.c
+++ b/swad_password.c
@@ -696,7 +696,7 @@ void Pwd_ShowFormChgPwd (void)
""
""
""
" | "
"",
@@ -742,7 +742,7 @@ void Pwd_PutFormToGetNewPasswordOnce (void)
""
""
""
" | "
"",
@@ -770,7 +770,7 @@ void Pwd_PutFormToGetNewPasswordTwice (void)
""
""
""
" | "
""
@@ -780,7 +780,7 @@ void Pwd_PutFormToGetNewPasswordTwice (void)
""
""
""
" | "
"",
diff --git a/swad_profile.c b/swad_profile.c
index 853e5b29f..f7e171a22 100644
--- a/swad_profile.c
+++ b/swad_profile.c
@@ -176,7 +176,7 @@ static void Prf_RequestUserProfileWithDefaultNickname (const char *DefaultNickna
"%s: "
""
"",
+ " size=\"18\" maxlength=\"%u\" value=\"@%s\" />",
The_ClassForm[Gbl.Prefs.Theme],
Txt_Nickname,
Nck_MAX_BYTES_NICKNAME_WITH_ARROBA,
diff --git a/swad_role.c b/swad_role.c
index 088381469..556e86767 100644
--- a/swad_role.c
+++ b/swad_role.c
@@ -283,16 +283,14 @@ unsigned Rol_ConvertUnsignedStrToRoles (const char *UnsignedStr)
/*********************** Put a form to change my role ************************/
/*****************************************************************************/
-void Rol_PutFormToChangeMyRole (bool FormInHead)
+void Rol_PutFormToChangeMyRole (void)
{
extern const char *Txt_ROLES_SINGUL_Abc[Rol_NUM_ROLES][Usr_NUM_SEXS];
Rol_Role_t Role;
Act_FormStart (ActChgMyRol);
- fprintf (Gbl.F.Out,"