Version 15.45.11

This commit is contained in:
Antonio Cañas Vargas 2015-11-25 14:54:46 +01:00
parent 17fbfd629f
commit cc917009e5
4 changed files with 34 additions and 7 deletions

View File

@ -296,6 +296,27 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;}
overflow:hidden;
}
/*********************** Layout (fourth row, main zone) **********************/
#main_zone
{
display:table;
width:100%;
}
#main_zone_left
{
display:table-cell;
width:160px;
text-align:center;
vertical-align:top;
}
#main_zone_right
{
display:table-cell;
width:160px;
text-align:center;
vertical-align:top;
}
/****************************** Main zone ************************************/
#CENTRAL_ZONE
{

View File

@ -206,6 +206,13 @@ form {margin:0; display:inline;}
white-space:nowrap;
}
/*********************** Layout (fourth row, main zone) **********************/
#main_zone
{
display:table;
width:100%;
}
/****************************** Main zone ************************************/
#CENTRAL_ZONE
{

View File

@ -111,11 +111,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.45.10 (2015/11/25)"
#define Log_PLATFORM_VERSION "SWAD 15.45.11 (2015/11/25)"
// 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.45.11: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188017 lines)
Version 15.45.10: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (187992 lines)
Version 15.45.9: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188020 lines)
Version 15.45.8: Nov 25, 2015 Some CSS styles related to layout are moved to CSS file. (188018 lines)

View File

@ -283,15 +283,14 @@ void Lay_WriteStartOfPage (void)
break;
}
/***** Main zone *****/
fprintf (Gbl.F.Out,"<div style=\"display:table; width:100%%;\">");
/***** 4th row: main zone *****/
fprintf (Gbl.F.Out,"<div id=\"main_zone\">");
/* Left column */
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP)
if (Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) // Left column visible
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_TOP\""
" style=\"display:table-cell; width:160px;\">");
fprintf (Gbl.F.Out,"<div id=\"main_zone_left\">");
Lay_ShowLeftColumn ();
fprintf (Gbl.F.Out,"</div>");
}
@ -408,8 +407,7 @@ static void Lay_WriteEndOfPage (void)
if (Gbl.Prefs.Layout == Lay_LAYOUT_DESKTOP)
if (Gbl.Prefs.SideCols & Lay_SHOW_RIGHT_COLUMN) // Right column visible
{
fprintf (Gbl.F.Out,"<div class=\"CENTER_TOP\""
" style=\"display:table-cell; width:160px;\">");
fprintf (Gbl.F.Out,"<div id=\"main_zone_right\">");
Lay_ShowRightColumn ();
fprintf (Gbl.F.Out,"</div>");
}