Version 21.93.7: Apr 25, 2022 Working on design of dark theme.

This commit is contained in:
acanas 2022-04-25 11:03:02 +02:00
parent f82a510dde
commit 72d536fe6c
5 changed files with 107 additions and 27 deletions

View File

@ -799,7 +799,7 @@ a:hover /* Default ==> underlined */
.TAB_ON_BLUE {background-color:#e8f3f6;}
.TAB_ON_YELLOW {background-color:#faf0da;}
.TAB_ON_PINK {background-color:#faf0e8;}
.TAB_ON_DARK {background-color:#585858;}
.TAB_ON_DARK {background-color:#505050;}
.TAB_OFF_WHITE {background-color:#d4d4d4;}
.TAB_OFF_GREY {background-color:#aea79f;}
@ -807,7 +807,7 @@ a:hover /* Default ==> underlined */
.TAB_OFF_BLUE {background-color:#cae1e8;}
.TAB_OFF_YELLOW {background-color:#f4dfb2;}
.TAB_OFF_PINK {background-color:#f3dcca;}
.TAB_OFF_DARK {background-color:#484848;}
.TAB_OFF_DARK {background-color:#404040;}
.TAB_OFF_TXT_WHITE {color:#707070;}
.TAB_OFF_TXT_GREY {color:#505050;}
@ -1695,13 +1695,54 @@ a:hover img.CENTER_PHOTO_SHOW
vertical-align:top;
}
.PRG_TIT_1 {color:#24292e; font-size:24pt; font-weight:bold;}
.PRG_TIT_2 {color:#24292e; font-size:20pt; font-weight:bold;}
.PRG_TIT_3 {color:#24292e; font-size:18pt; font-weight:bold;}
.PRG_TIT_4 {color:#24292e; font-size:16pt; font-weight:bold;}
.PRG_TIT_5 {color:#24292e; font-size:14pt; font-weight:bold;}
.PRG_TXT {color:#24292e; font-size:12pt; line-height:1.5;}
.PRG_TIT_1_WHITE,
.PRG_TIT_1_GREY,
.PRG_TIT_1_PURPLE,
.PRG_TIT_1_BLUE,
.PRG_TIT_1_YELLOW,
.PRG_TIT_1_PINK {color:#202020; font-size:24pt; font-weight:bold;}
.PRG_TIT_1_DARK {color:#e0e0e0; font-size:24pt; font-weight:bold;}
.PRG_TIT_2_WHITE,
.PRG_TIT_2_GREY,
.PRG_TIT_2_PURPLE,
.PRG_TIT_2_BLUE,
.PRG_TIT_2_YELLOW,
.PRG_TIT_2_PINK {color:#202020; font-size:20pt; font-weight:bold;}
.PRG_TIT_2_DARK {color:#e0e0e0; font-size:20pt; font-weight:bold;}
.PRG_TIT_3_WHITE,
.PRG_TIT_3_GREY,
.PRG_TIT_3_PURPLE,
.PRG_TIT_3_BLUE,
.PRG_TIT_3_YELLOW,
.PRG_TIT_3_PINK {color:#202020; font-size:18pt; font-weight:bold;}
.PRG_TIT_3_DARK {color:#e0e0e0; font-size:18pt; font-weight:bold;}
.PRG_TIT_4_WHITE,
.PRG_TIT_4_GREY,
.PRG_TIT_4_PURPLE,
.PRG_TIT_4_BLUE,
.PRG_TIT_4_YELLOW,
.PRG_TIT_4_PINK {color:#202020; font-size:16pt; font-weight:bold;}
.PRG_TIT_4_DARK {color:#e0e0e0; font-size:16pt; font-weight:bold;}
.PRG_TIT_5_WHITE,
.PRG_TIT_5_GREY,
.PRG_TIT_5_PURPLE,
.PRG_TIT_5_BLUE,
.PRG_TIT_5_YELLOW,
.PRG_TIT_5_PINK {color:#202020; font-size:14pt; font-weight:bold;}
.PRG_TIT_5_DARK {color:#e0e0e0; font-size:14pt; font-weight:bold;}
.PRG_TXT_WHITE,
.PRG_TXT_GREY,
.PRG_TXT_PURPLE,
.PRG_TXT_BLUE,
.PRG_TXT_YELLOW,
.PRG_TXT_PINK {color:#202020; font-size:12pt; line-height:1.5;}
.PRG_TXT_DARK {color:#e0e0e0; font-size:12pt; line-height:1.5;}
.PRG_DATE
{
@ -2041,7 +2082,7 @@ a:hover img.CENTER_PHOTO_SHOW
.FRAME_BLUE,
.FRAME_YELLOW,
.FRAME_PINK {background-color:white;}
.FRAME_DARK {background-color:#444444;}
.FRAME_DARK {background-color:#383838;}
.FRAME_SHADOW
{
@ -2459,7 +2500,6 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
{
margin:0;
padding:0 12px;
color:inherit;
}
#crs_info table
{
@ -2477,6 +2517,14 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
padding:6px;
}
.CRS_INFO_WHITE,
.CRS_INFO_GREY,
.CRS_INFO_PURPLE,
.CRS_INFO_BLUE,
.CRS_INFO_YELLOW,
.CRS_INFO_PINK {color:#202020;}
.CRS_INFO_DARK {color:#e0e0e0;}
/************************ Help for the text editor ***************************/
.HELP_EDIT
{
@ -2793,8 +2841,22 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
/******************************** User's IDs *********************************/
.USR_ID {font-size:18pt; font-weight:bold;}
.USR_ID_C {color:#408020}
.USR_ID_NC {color:#A02020}
.USR_ID_C_WHITE,
.USR_ID_C_GREY,
.USR_ID_C_PURPLE,
.USR_ID_C_BLUE,
.USR_ID_C_YELLOW,
.USR_ID_C_PINK {color:#246600}
.USR_ID_C_DARK {color:#80c040}
.USR_ID_NC_WHITE,
.USR_ID_NC_GREY,
.USR_ID_NC_PURPLE,
.USR_ID_NC_BLUE,
.USR_ID_NC_YELLOW,
.USR_ID_NC_PINK {color:#660000}
.USR_ID_NC_DARK {color:#f98a8a}
/******************************* Record card *********************************/
.REC_USR
@ -3049,8 +3111,21 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
.DATE_BLUE_LIGHT_PINK {color:rgba( 77,136,161,0.3); font-size:13pt;}
.DATE_BLUE_LIGHT_DARK {color:rgba(175,196,204,0.3); font-size:13pt;}
.ASG_LST_DATE_GREEN {color:#246600; font-size:11pt; white-space:nowrap;}
.ASG_LST_DATE_RED {color:#660000; font-size:11pt; white-space:nowrap;}
.ASG_LST_DATE_GREEN_WHITE,
.ASG_LST_DATE_GREEN_GREY,
.ASG_LST_DATE_GREEN_PURPLE,
.ASG_LST_DATE_GREEN_BLUE,
.ASG_LST_DATE_GREEN_YELLOW,
.ASG_LST_DATE_GREEN_PINK {color:#246600; font-size:11pt; white-space:nowrap;}
.ASG_LST_DATE_GREEN_DARK {color:#80c040; font-size:11pt; white-space:nowrap;}
.ASG_LST_DATE_RED_WHITE,
.ASG_LST_DATE_RED_GREY,
.ASG_LST_DATE_RED_PURPLE,
.ASG_LST_DATE_RED_BLUE,
.ASG_LST_DATE_RED_YELLOW,
.ASG_LST_DATE_RED_PINK {color:#660000; font-size:11pt; white-space:nowrap;}
.ASG_LST_DATE_RED_DARK {color:#ff8080; font-size:11pt; white-space:nowrap;}
.STATUS_GREEN_WHITE,
.STATUS_GREEN_GREY,

View File

@ -322,13 +322,14 @@ void ID_WriteUsrIDs (struct UsrData *UsrDat,const char *Anchor)
if (NumID)
HTM_BR ();
HTM_SPAN_Begin ("class=\"%s\"",
HTM_SPAN_Begin ("class=\"%s_%s\"",
UsrDat->IDs.List[NumID].Confirmed ? "USR_ID_C" :
"USR_ID_NC");
if (ICanSeeUsrID)
HTM_Txt (UsrDat->IDs.List[NumID].ID);
else
HTM_Txt ("********");
"USR_ID_NC",
The_GetSuffix ());
if (ICanSeeUsrID)
HTM_Txt (UsrDat->IDs.List[NumID].ID);
else
HTM_Txt ("********");
HTM_SPAN_End ();
if (ICanConfirmUsrID &&

View File

@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
TODO: Attach pdf files in multimedia.
*/
#define Log_PLATFORM_VERSION "SWAD 21.93.6 (2022-04-25)"
#define CSS_FILE "swad21.93.6.css"
#define Log_PLATFORM_VERSION "SWAD 21.93.7 (2022-04-25)"
#define CSS_FILE "swad21.93.7.css"
#define JS_FILE "swad21.92.js"
/*
Version 21.93.7: Apr 25, 2022 Working on design of dark theme. (323432 lines)
Version 21.93.6: Apr 25, 2022 Working on design of dark theme. (323358 lines)
Copy the following icons to icon public directory:
sudo cp icon/info-circle-blue.svg.svg /var/www/html/swad/icon/

View File

@ -1570,7 +1570,8 @@ static bool Inf_CheckAndShowRichTxt (void)
Gbl.Crs.Info.Type == Inf_TEACHING_GUIDE)
Lay_WriteHeaderClassPhoto (false,false,Gbl.Hierarchy.Ins.InsCod,Gbl.Hierarchy.Deg.DegCod,Gbl.Hierarchy.Crs.CrsCod);
HTM_DIV_Begin ("id=\"crs_info\" class=\"LM\"");
HTM_DIV_Begin ("id=\"crs_info\" class=\"LM CRS_INFO_%s\"",
The_GetSuffix ());
/***** Store text into a temporary .md file in HTML output directory *****/
// TODO: change to another directory?

View File

@ -441,8 +441,9 @@ static void Prg_WriteRowItem (unsigned NumItem,struct Prg_Item *Item,
Str_ChangeFormat (Str_FROM_HTML,Str_TO_RIGOROUS_HTML,
Txt,Cns_MAX_BYTES_TEXT,false); // Convert from HTML to recpectful HTML
ALn_InsertLinks (Txt,Cns_MAX_BYTES_TEXT,60); // Insert links
HTM_DIV_Begin ("class=\"PAR PRG_TXT%s\"",
LightStyle ? "PRG_HIDDEN" :
HTM_DIV_Begin ("class=\"PAR PRG_TXT_%s%s\"",
The_GetSuffix (),
LightStyle ? " PRG_HIDDEN" :
"");
HTM_Txt (Txt);
HTM_DIV_End ();
@ -563,10 +564,11 @@ static void Prg_WriteRowWithItemForm (Prg_CreateOrChangeItem_t CreateOrChangeIte
static void Prg_SetTitleClass (char **TitleClass,unsigned Level,bool LightStyle)
{
if (asprintf (TitleClass,"PRG_TIT_%u%s",
if (asprintf (TitleClass,"PRG_TIT_%u_%s%s",
Level < 5 ? Level :
5,
LightStyle ? "PRG_HIDDEN" :
The_GetSuffix (),
LightStyle ? " PRG_HIDDEN" :
"") < 0)
Err_NotEnoughMemoryExit ();
}