Version 16.93

This commit is contained in:
Antonio Cañas Vargas 2016-12-10 16:12:19 +01:00
parent 4837c2aa7c
commit 67370ffc35
5 changed files with 91 additions and 98 deletions

View File

@ -56,7 +56,7 @@ table th
box-sizing:border-box; box-sizing:border-box;
padding:0; padding:0;
color:#4D88A1; color:#4D88A1;
font-size:12pt; /* font-size:12pt; */
font-weight:bold; font-weight:bold;
} }
table td table td
@ -144,7 +144,7 @@ a:hover /* Default ==> underlined */
text-align:left; text-align:left;
vertical-align:middle; vertical-align:middle;
} }
@media only screen and (max-width: 899px) @media only screen and (max-width: 799px)
{ /* For mobile-phones */ { /* For mobile-phones */
#head_row_1_logo_small #head_row_1_logo_small
{ {
@ -159,7 +159,7 @@ a:hover /* Default ==> underlined */
display:none; display:none;
} }
} }
@media only screen and (min-width: 900px) @media only screen and (min-width: 800px)
{ /* For tablets and desktop */ { /* For tablets and desktop */
#head_row_1_logo_small #head_row_1_logo_small
{ {
@ -229,7 +229,7 @@ a:hover /* Default ==> underlined */
display:table; display:table;
box-sizing:border-box; box-sizing:border-box;
width:100%; width:100%;
height:80px; height:74px;
vertical-align:top; vertical-align:top;
} }
.HEAD_ROW_2_WHITE .HEAD_ROW_2_WHITE
@ -283,7 +283,6 @@ a:hover /* Default ==> underlined */
display:table-cell; display:table-cell;
text-align:center; text-align:center;
vertical-align:middle; vertical-align:middle;
padding-top:6px;
} }
.TOP_LOGO /* Institution / Centre / Degree logo in top title */ .TOP_LOGO /* Institution / Centre / Degree logo in top title */
{ {
@ -292,20 +291,20 @@ a:hover /* Default ==> underlined */
text-align:left; text-align:left;
vertical-align:top !important; vertical-align:top !important;
} }
@media only screen and (max-width: 899px) @media only screen and (max-width: 799px)
{ /* For mobile-phones */ { /* For mobile-phones */
#breadcrumb #breadcrumb
{ {
font-size:9pt; font-size:8pt;
font-weight:bold; font-weight:bold;
white-space:nowrap; white-space:nowrap;
} }
} }
@media only screen and (min-width: 900px) and (max-width: 1023px) @media only screen and (min-width: 800px) and (max-width: 1023px)
{ /* For tablets */ { /* For tablets */
#breadcrumb #breadcrumb
{ {
font-size:12pt; font-size:10pt;
font-weight:bold; font-weight:bold;
white-space:nowrap; white-space:nowrap;
} }
@ -314,7 +313,7 @@ a:hover /* Default ==> underlined */
{ /* For desktop */ { /* For desktop */
#breadcrumb #breadcrumb
{ {
font-size:14pt; font-size:12pt;
font-weight:bold; font-weight:bold;
white-space:nowrap; white-space:nowrap;
} }
@ -425,24 +424,24 @@ a:hover /* Default ==> underlined */
} }
.HEAD_ROW_3_GREY .HEAD_ROW_3_GREY
{ {
background-image:linear-gradient(#404040 0,#404040 64px,white 64px,white 100%); background-image:linear-gradient(#404040 0,#404040 58px,white 58px,white 100%);
} }
.HEAD_ROW_3_BLUE .HEAD_ROW_3_BLUE
{ {
background-image:linear-gradient(#4f90c8 0,#4f90c8 64px,white 64px,white 100%); background-image:linear-gradient(#4f90c8 0,#4f90c8 58px,white 58px,white 100%);
} }
.HEAD_ROW_3_YELLOW .HEAD_ROW_3_YELLOW
{ {
background-image:linear-gradient(#201420 0,#201420 64px,white 64px,white 100%); background-image:linear-gradient(#201420 0,#201420 58px,white 58px,white 100%);
} }
@media only screen and (max-width: 899px) @media only screen and (max-width: 799px)
{ /* For mobile-phones */ { /* For mobile-phones */
#tabs #tabs
{ {
display:table; display:table;
box-sizing:border-box; box-sizing:border-box;
width:568px; /* 74px*7 + 8px */ width:470px; /* 66px*7 + 8px */
height:70px; height:64px;
margin:0 auto; margin:0 auto;
border-spacing:1px; border-spacing:1px;
} }
@ -450,8 +449,8 @@ a:hover /* Default ==> underlined */
{ {
display:table-cell; display:table-cell;
box-sizing:border-box; box-sizing:border-box;
width:80px; width:66px;
height:68px; height:62px;
margin:0; margin:0;
padding:0; padding:0;
border-radius:5px 5px 0 0; border-radius:5px 5px 0 0;
@ -464,8 +463,8 @@ a:hover /* Default ==> underlined */
{ {
display:table-cell; display:table-cell;
box-sizing:border-box; box-sizing:border-box;
width:80px; width:66px;
height:68px; height:62px;
margin:0; margin:0;
padding:0; padding:0;
border-radius:5px 5px 0 0; border-radius:5px 5px 0 0;
@ -479,21 +478,21 @@ a:hover /* Default ==> underlined */
font-size:9pt; font-size:9pt;
font-weight:bold; font-weight:bold;
line-height:100%; line-height:100%;
width:70px; width:60px;
white-space:nowrap; white-space:nowrap;
overflow:hidden; overflow:hidden;
text-overflow:ellipsis; text-overflow:ellipsis;
margin:0 auto; margin:0 auto;
} }
} }
@media only screen and (min-width: 900px) @media only screen and (min-width: 800px)
{ /* For tablets and desktop */ { /* For tablets and desktop */
#tabs #tabs
{ {
display:table; display:table;
box-sizing:border-box; box-sizing:border-box;
width:778px; /* 110px*7 + 8px */ width:778px; /* 110px*7 + 8px */
height:70px; height:64px;
margin:0 auto; margin:0 auto;
border-spacing:1px; border-spacing:1px;
} }
@ -502,7 +501,7 @@ a:hover /* Default ==> underlined */
display:table-cell; display:table-cell;
box-sizing:border-box; box-sizing:border-box;
width:110px; width:110px;
height:68px; height:62px;
margin:0; margin:0;
padding:0; padding:0;
border-radius:5px 5px 0 0; border-radius:5px 5px 0 0;
@ -516,7 +515,7 @@ a:hover /* Default ==> underlined */
display:table-cell; display:table-cell;
box-sizing:border-box; box-sizing:border-box;
width:110px; width:110px;
height:68px; height:62px;
margin:0; margin:0;
padding:0; padding:0;
border-radius:5px 5px 0 0; border-radius:5px 5px 0 0;
@ -559,6 +558,14 @@ a:hover /* Default ==> underlined */
.BLUE_TAB_ON {color:#4D88A1;} .BLUE_TAB_ON {color:#4D88A1;}
.YELLOW_TAB_ON {color:#BD4815;} .YELLOW_TAB_ON {color:#BD4815;}
.TAB_ICO
{
width:36px;
height:36px;
vertical-align:middle;
margin:2px;
}
/*********************** Layout (fourth row, main zone) **********************/ /*********************** Layout (fourth row, main zone) **********************/
#main_zone #main_zone
{ {
@ -643,13 +650,13 @@ a:hover /* Default ==> underlined */
} }
} }
@media only screen and (max-width: 899px) @media only screen and (max-width: 799px)
{ /* For mobile-phones */ { /* For mobile-phones */
#main_zone_central_container #main_zone_central_container
{ {
box-sizing:border-box; box-sizing:border-box;
margin:-8px 0 0 0; margin:-8px 0 0 0;
padding:8px 0; padding:4px 0;
border-radius:6px; border-radius:6px;
box-shadow:inset 0 -1px 1px 0 rgba(50,50,50,0.2); box-shadow:inset 0 -1px 1px 0 rgba(50,50,50,0.2);
text-align:center; text-align:center;
@ -657,14 +664,14 @@ a:hover /* Default ==> underlined */
position:relative; position:relative;
} }
} }
@media only screen and (min-width: 900px) @media only screen and (min-width: 800px)
{ /* For tablets and desktop */ { /* For tablets and desktop */
#main_zone_central_container #main_zone_central_container
{ {
box-sizing:border-box; box-sizing:border-box;
min-height:900px; min-height:900px;
margin:-8px 0 0 0; margin:-8px 0 0 0;
padding:8px 0; padding:4px 0;
border-radius:6px; border-radius:6px;
box-shadow:inset 0 -1px 1px 0 rgba(50,50,50,0.2); box-shadow:inset 0 -1px 1px 0 rgba(50,50,50,0.2);
text-align:center; text-align:center;
@ -708,13 +715,13 @@ a:hover /* Default ==> underlined */
#main_horizontal .MENU_OPT_OFF:hover, #main_horizontal .MENU_OPT_ON #main_horizontal .MENU_OPT_OFF:hover, #main_horizontal .MENU_OPT_ON
{ {
opacity:1; opacity:1;
transform:scale(1.25,1.25); transform:scale(1.286,1.286);
} }
#main_horizontal .MENU_ICO #main_horizontal .MENU_ICO
{ {
box-sizing:border-box; box-sizing:border-box;
padding:32px 0 0 0; padding:28px 0 0 0;
background-size:32px 32px; background-size:28px 28px;
background-repeat:no-repeat; background-repeat:no-repeat;
background-position:center top; background-position:center top;
} }
@ -722,7 +729,7 @@ a:hover /* Default ==> underlined */
{ {
box-sizing:border-box; box-sizing:border-box;
width:100%; width:100%;
padding:8px 16px; padding:4px 16px;
margin:0 auto; margin:0 auto;
text-align:left; text-align:left;
vertical-align:top; vertical-align:top;
@ -767,13 +774,13 @@ a:hover /* Default ==> underlined */
#main_vertical .MENU_OPT_OFF:hover, #main_vertical .MENU_OPT_ON #main_vertical .MENU_OPT_OFF:hover, #main_vertical .MENU_OPT_ON
{ {
opacity:1; opacity:1;
transform:scale(1.2,1.2); transform:scale(1.286,1.286);
} }
#main_vertical .MENU_ICO #main_vertical .MENU_ICO
{ {
box-sizing:border-box; box-sizing:border-box;
padding:32px 0 0 0; padding:28px 0 0 0;
background-size:32px 32px; background-size:28px 28px;
background-repeat:no-repeat; background-repeat:no-repeat;
background-position:center top; background-position:center top;
} }
@ -781,7 +788,7 @@ a:hover /* Default ==> underlined */
{ {
box-sizing:border-box; box-sizing:border-box;
width:100%; width:100%;
padding:8px 16px; padding:4px 16px;
margin:0 auto; margin:0 auto;
text-align:left; text-align:left;
vertical-align:top; vertical-align:top;
@ -804,7 +811,7 @@ a:hover /* Default ==> underlined */
{ {
display:table-cell; display:table-cell;
box-sizing:border-box; box-sizing:border-box;
width:180px; width:170px;
} }
#main_vertical .MENU_LIST #main_vertical .MENU_LIST
{ {
@ -828,10 +835,10 @@ a:hover /* Default ==> underlined */
#main_vertical .MENU_ICO #main_vertical .MENU_ICO
{ {
display:table-cell; display:table-cell;
height:42px; height:40px;
vertical-align:middle; vertical-align:middle;
padding:2px 2px 2px 50px; padding:2px 2px 2px 46px;
background-size:40px 40px; background-size:36px 36px;
background-repeat:no-repeat; background-repeat:no-repeat;
background-position:2px 2px; background-position:2px 2px;
} }
@ -839,7 +846,7 @@ a:hover /* Default ==> underlined */
{ {
display:table-cell; display:table-cell;
box-sizing:border-box; box-sizing:border-box;
padding:8px 16px; padding:4px 16px;
margin:0 auto; margin:0 auto;
text-align:left; text-align:left;
vertical-align:top; vertical-align:top;
@ -848,20 +855,20 @@ a:hover /* Default ==> underlined */
{ {
box-sizing:border-box; box-sizing:border-box;
width:400px; width:400px;
min-height:70px; min-height:64px;
clear:both; clear:both;
margin:0 auto; margin:0 auto;
text-align:left; text-align:left;
background-size:64px 64px; background-size:60px 60px;
background-position:0 0; background-position:0 0;
background-repeat:no-repeat; background-repeat:no-repeat;
padding:4px 12px 12px 70px; padding:4px 0 8px 70px;
overflow:hidden; overflow:hidden;
} }
} }
/********************************* Menu fonts ********************************/ /********************************* Menu fonts ********************************/
@media only screen and (max-width: 899px) @media only screen and (max-width: 799px)
{ /* For mobile-phones */ { /* For mobile-phones */
.MENU_TEXT .MENU_TEXT
{ {
@ -870,11 +877,11 @@ a:hover /* Default ==> underlined */
line-height:110%; line-height:110%;
white-space:nowrap; white-space:nowrap;
overflow:hidden; overflow:hidden;
width:48px; width:30px;
margin:0 auto; margin:0 auto;
} }
} }
@media only screen and (min-width: 900px) @media only screen and (min-width: 800px)
{ /* For tablets and desktop */ { /* For tablets and desktop */
.MENU_TEXT .MENU_TEXT
{ {
@ -1298,7 +1305,7 @@ a:hover /* Default ==> underlined */
/****** Contextual links with small icons and text to go to some action ******/ /****** Contextual links with small icons and text to go to some action ******/
.CONTEXT_MENU .CONTEXT_MENU
{ {
margin:6px auto 8px auto; margin:4px auto 6px auto;
text-align:center; text-align:center;
} }
.CONTEXT_OPT .CONTEXT_OPT
@ -1573,7 +1580,7 @@ a:hover img.CENTRE_PHOTO_SHOW
} }
.ICO_HIGHLIGHT, .CHECKBOX_UNCHECKED .ICO_HIGHLIGHT, .CHECKBOX_UNCHECKED
{ {
opacity:0.67; opacity:0.6;
} }
.ICO_HIGHLIGHT:hover, .CHECKBOX_CHECKED .ICO_HIGHLIGHT:hover, .CHECKBOX_CHECKED
{ {
@ -1582,7 +1589,7 @@ a:hover img.CENTRE_PHOTO_SHOW
.HLP_HIGHLIGHT .HLP_HIGHLIGHT
{ {
opacity:0.33; opacity:0.3;
} }
.HLP_HIGHLIGHT:hover .HLP_HIGHLIGHT:hover
{ {
@ -2621,14 +2628,14 @@ a:hover img.CENTRE_PHOTO_SHOW
} }
/********************************* Page foot *********************************/ /********************************* Page foot *********************************/
@media only screen and (max-width: 899px) @media only screen and (max-width: 799px)
{ /* For mobile-phones */ { /* For mobile-phones */
#foot_zone, #about_zone #foot_zone, #about_zone
{ {
display:none; display:none;
} }
} }
@media only screen and (min-width: 900px) @media only screen and (min-width: 800px)
{ /* For tablets and desktop */ { /* For tablets and desktop */
#foot_zone #foot_zone
{ {

View File

@ -185,13 +185,14 @@
/****************************** Public constants *****************************/ /****************************** Public constants *****************************/
/*****************************************************************************/ /*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 16.92.5 (2016-12-10)" #define Log_PLATFORM_VERSION "SWAD 16.93 (2016-12-10)"
#define CSS_FILE "swad16.86.5.css" #define CSS_FILE "swad16.93.css"
#define JS_FILE "swad16.90.2.js" #define JS_FILE "swad16.90.2.js"
// Number of lines (includes comments but not blank lines) has been got with the following command: // 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 // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/* /*
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.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) Version 16.92.4: Dec 09, 2016 Fixed bug in edition of user's agenda. (210313 lines)
Version 16.92.3: Dec 09, 2016 Contextual help on user's public profile. (210310 lines) Version 16.92.3: Dec 09, 2016 Contextual help on user's public profile. (210310 lines)

View File

@ -590,8 +590,7 @@ void Sta_AskShowGblHits (void)
Sta_ClicksGroupedBy_t ClicksGroupedBy; Sta_ClicksGroupedBy_t ClicksGroupedBy;
/***** Contextual links *****/ /***** Contextual links *****/
fprintf (Gbl.F.Out,"<div class=\"CENTER_MIDDLE\"" fprintf (Gbl.F.Out,"<div class=\"CONTEXT_MENU\">");
" style=\"padding-bottom:12px;\">");
/* Put form to go to test edition and configuration */ /* Put form to go to test edition and configuration */
if (Gbl.CurrentCrs.Crs.CrsCod > 0 && // Course selected if (Gbl.CurrentCrs.Crs.CrsCod > 0 && // Course selected

View File

@ -107,7 +107,7 @@ void Tab_DrawTabs (void)
Tab_DisableIncompatibleTabs (); Tab_DisableIncompatibleTabs ();
} }
if (ICanViewTab || NumTab > TabCrs) // Don't show the first hidden tabs if (ICanViewTab) // Don't show the first hidden tabs
{ {
/* Form, icon (at top) and text (at bottom) of the tab */ /* Form, icon (at top) and text (at bottom) of the tab */
fprintf (Gbl.F.Out,"<li class=\"%s %s\">", fprintf (Gbl.F.Out,"<li class=\"%s %s\">",
@ -115,20 +115,19 @@ void Tab_DrawTabs (void)
"TAB_OFF", "TAB_OFF",
NumTab == Gbl.Action.Tab ? The_TabOnBgColors[Gbl.Prefs.Theme] : NumTab == Gbl.Action.Tab ? The_TabOnBgColors[Gbl.Prefs.Theme] :
The_TabOffBgColors[Gbl.Prefs.Theme]); The_TabOffBgColors[Gbl.Prefs.Theme]);
if (ICanViewTab)
{
fprintf (Gbl.F.Out,"<div"); // This div must be present even in current tab in order to render properly the tab fprintf (Gbl.F.Out,"<div"); // This div must be present even in current tab in order to render properly the tab
if (NumTab != Gbl.Action.Tab) if (NumTab != Gbl.Action.Tab)
fprintf (Gbl.F.Out," class=\"ICO_HIGHLIGHT\""); fprintf (Gbl.F.Out," class=\"ICO_HIGHLIGHT\"");
fprintf (Gbl.F.Out,">"); fprintf (Gbl.F.Out,">");
Act_FormStart (ActMnu); Act_FormStart (ActMnu);
Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) NumTab); Par_PutHiddenParamUnsigned ("NxtTab",(unsigned) NumTab);
Act_LinkFormSubmit (Txt_TABS_FULL_TXT[NumTab], Act_LinkFormSubmit (Txt_TABS_FULL_TXT[NumTab],
NumTab == Gbl.Action.Tab ? The_ClassTxtTabOn[Gbl.Prefs.Theme] : NumTab == Gbl.Action.Tab ? The_ClassTxtTabOn[Gbl.Prefs.Theme] :
The_ClassTxtTabOff[Gbl.Prefs.Theme],NULL); The_ClassTxtTabOff[Gbl.Prefs.Theme],NULL);
fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s\"" fprintf (Gbl.F.Out,"<img src=\"%s/%s/%s\" alt=\"%s\" title=\"%s\""
" alt=\"%s\" title=\"%s\"" " class=\"TAB_ICO\" />"
" class=\"ICO40x40\" style=\"margin:3px;\" />"
"<div class=\"TAB_TXT %s\">%s</div>" "<div class=\"TAB_TXT %s\">%s</div>"
"</a>", "</a>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION, Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
@ -139,19 +138,6 @@ void Tab_DrawTabs (void)
The_ClassTxtTabOff[Gbl.Prefs.Theme], The_ClassTxtTabOff[Gbl.Prefs.Theme],
Txt_TABS_SHORT_TXT[NumTab]); Txt_TABS_SHORT_TXT[NumTab]);
Act_FormEnd (); Act_FormEnd ();
}
else
fprintf (Gbl.F.Out,"<div class=\"ICO_HIDDEN\">"
"<img src=\"%s/%s/%s\""
" alt=\"%s\" title=\"%s\""
" class=\"ICO40x40\" style=\"margin:3px;\" />"
"<div class=\"TAB_TXT %s\">%s</div>",
Gbl.Prefs.PathIconSet,Cfg_ICON_ACTION,
Tab_TabIcons[NumTab],
Txt_TABS_FULL_TXT[NumTab],
Txt_TABS_FULL_TXT[NumTab],
The_ClassTxtTabOff[Gbl.Prefs.Theme],
Txt_TABS_SHORT_TXT[NumTab]);
fprintf (Gbl.F.Out,"</div>" fprintf (Gbl.F.Out,"</div>"
"</li>"); "</li>");

View File

@ -21121,19 +21121,19 @@ const char *Txt_MENU_SUBTITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] =
// ActSeePhoDeg // ActSeePhoDeg
#if L==1 #if L==1
"Estad&iacute;stiques del nombre d'estudiants en cada titulaci&oacute;" "Estad&iacute;stiques del nombre d'estudiants en cada titulaci&oacute;"
" representades per les fotos mitjana dels estudiants de cada titulaci&oacute;" " representades per les fotos mitjana dels estudiants"
#elif L==2 #elif L==2
"Mischbilder der Studieng&auml;nge" "Mischbilder der Studieng&auml;nge"
#elif L==3 #elif L==3
"Photos of degrees" "Photos of degrees"
#elif L==4 #elif L==4
"Estad&iacute;sticas del n&uacute;mero de estudiantes en cada titulaci&oacute;n" "Estad&iacute;sticas del n&uacute;mero de estudiantes en cada titulaci&oacute;n"
" representadas por las fotos promedio de los estudiantes de cada titulaci&oacute;n" " representadas por las fotos promedio de los estudiantes"
#elif L==5 #elif L==5
"Photographie &eacute;tudes" "Photographie &eacute;tudes"
#elif L==6 #elif L==6
"Estad&iacute;sticas del n&uacute;mero de estudiantes en cada titulaci&oacute;n" "Estad&iacute;sticas del n&uacute;mero de estudiantes en cada titulaci&oacute;n"
" representadas por las fotos promedio de los estudiantes de cada titulaci&oacute;n"// Okoteve traducción " representadas por las fotos promedio de los estudiantes"// Okoteve traducción
#elif L==7 #elif L==7
"Foto di lauree" "Foto di lauree"
#elif L==8 #elif L==8