From 8b85c15271257cadecf4761060b0cbd067144842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Fri, 27 Nov 2015 18:41:44 +0100 Subject: [PATCH] Version 15.47.4 --- css/swad.css | 88 ++++++++++++++++++++++++++---------------------- swad_changelog.h | 3 +- swad_layout.c | 4 +-- 3 files changed, 52 insertions(+), 43 deletions(-) diff --git a/css/swad.css b/css/swad.css index 1100ccef3..71b133eda 100644 --- a/css/swad.css +++ b/css/swad.css @@ -351,23 +351,13 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} display:table; width:100%; } -.LEFT_COL +.LEFT_RIGHT_COL { display:table-cell; width:160px; text-align:center; vertical-align:top; position:absolute; - left:0; - } -.RIGHT_COL - { - display:table-cell; - width:160px; - text-align:center; - vertical-align:top; - position:absolute; - right:0; } .LEFT_RIGHT_CELL { @@ -382,41 +372,59 @@ hr.YELLOW_SEPARA {height:0; border-top:0; border-bottom:#BD4815 dotted 1px;} @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; - text-align:center; - vertical-align:top; - } + { + display:table-cell; + text-align:center; + vertical-align:top; + } + #left_col + { + left:0; + visibility:hidden; + } + #right_col + { + right:0; + visibility:hidden; + } } @media only screen and (min-width: 1280px) { /* For desktop */ #main_zone_central_none /* Hide left and right columns */ - { - display:table-cell; - text-align:center; - vertical-align:top; - } + { + display:table-cell; + text-align:center; + vertical-align:top; + } #main_zone_central_left /* Show left column, hide right column */ - { - display:table-cell; - text-align:center; - vertical-align:top; - padding-left:160px; - } + { + display:table-cell; + text-align:center; + vertical-align:top; + padding-left:160px; + } #main_zone_central_right /* Hide left column, show right column */ - { - display:table-cell; - text-align:center; - vertical-align:top; - padding-right:160px; - } + { + display:table-cell; + text-align:center; + vertical-align:top; + padding-right:160px; + } #main_zone_central_both /* Show both columns */ - { - display:table-cell; - text-align:center; - vertical-align:top; - padding-left:160px; - padding-right:160px; - } + { + display:table-cell; + text-align:center; + vertical-align:top; + padding-left:160px; + padding-right:160px; + } + #left_col + { + left:0; + } + #right_col + { + right:0; + } } #main_zone_central_container diff --git a/swad_changelog.h b/swad_changelog.h index 8ad60983e..697c6c816 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -115,11 +115,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.47.3 (2015/11/27)" +#define Log_PLATFORM_VERSION "SWAD 15.47.4 (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.47.4: Nov 27, 2015 Fixed CSS problem in layout. (? lines) Version 15.47.3: Nov 27, 2015 Responsive design in notifications. (186365 lines) Version 15.47.2: Nov 27, 2015 Responsive design in current local date and time. (? lines) Version 15.47.1: Nov 27, 2015 swad_desktop.css is renamed to swad.css. diff --git a/swad_layout.c b/swad_layout.c index a785b24e7..23dc7d1e7 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -263,7 +263,7 @@ void Lay_WriteStartOfPage (void) /* Left column */ if (Gbl.Prefs.SideCols & Lay_SHOW_LEFT_COLUMN) // Left column visible { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out,"
"); Lay_ShowLeftColumn (); fprintf (Gbl.F.Out,"
"); } @@ -271,7 +271,7 @@ void Lay_WriteStartOfPage (void) /* Right column */ if (Gbl.Prefs.SideCols & Lay_SHOW_RIGHT_COLUMN) // Right column visible { - fprintf (Gbl.F.Out,"
"); + fprintf (Gbl.F.Out,"
"); Lay_ShowRightColumn (); fprintf (Gbl.F.Out,"
"); }