Version 21.76.4: Dec 28, 2021 Working on design of dark theme.

This commit is contained in:
acanas 2021-12-28 23:02:03 +01:00
parent 2fc02ed33a
commit 0a94332663
4 changed files with 57 additions and 44 deletions

View File

@ -69,7 +69,7 @@ table th
{
box-sizing:border-box;
padding:0;
color:#4D88A1;
color:#4d88a1;
font-weight:bold;
}
table td
@ -1286,7 +1286,6 @@ a:hover /* Default ==> underlined */
padding:5px;
border-radius:2px;
font-size:11pt;
color:#4d88a1;
}
#MFU_actions ul
{
@ -1294,7 +1293,7 @@ a:hover /* Default ==> underlined */
box-sizing:border-box;
width:138px;
margin:2px 0;
padding:2px 0 0 0;
padding:6px 0 0 0;
border-style:solid;
border-width:1px 0 0 0;
border-color:rgba(140,188,206,0.2);
@ -1807,17 +1806,20 @@ a:hover img.CENTER_PHOTO_SHOW
padding:5px;
border-radius:2px;
font-size:11pt;
color:#4D88A1;
}
#institutional_links ul
{
display:inline-block;
box-sizing:border-box;
width:138px;
margin-top:2px;
padding-top:2px;
margin:2px 0;
padding:6px 0 0 0;
border-style:solid;
border-width:1px 0 0 0;
border-color:rgba(140,188,206,0.2);
list-style-type:none;
text-align:left;
vertical-align:middle;
}
#institutional_links li
{
@ -1829,8 +1831,6 @@ a:hover img.CENTER_PHOTO_SHOW
.INS_LNK
{
padding:1px;
font-size:11pt;
color:#4D88A1;
}
/*********************************** Alerts **********************************/
@ -2311,7 +2311,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
.TITLE_WHITE {color:#505050; font-size:18pt;}
.TITLE_GREY {color:#505050; font-size:18pt;}
.TITLE_PURPLE {color:#573c4d; font-size:18pt;}
.TITLE_BLUE {color:#4D88A1; font-size:18pt;}
.TITLE_BLUE {color:#4d88a1; font-size:18pt;}
.TITLE_YELLOW {color:#7c4d2a; font-size:18pt;}
.TITLE_PINK {color:#63474e; font-size:18pt;}
.TITLE_DARK {color:#505050; font-size:18pt;}
@ -2725,26 +2725,32 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
.CLASSPHOTO_DARK {color:#d0d0d0;}
/************************** Left column menu *********************************/
.LINK_TITLE, .MFU_TITLE {color:#4D88A1;}
.INS_LNK_WHITE, .MFU_WHITE {color:#4d88a1;}
.INS_LNK_GREY, .MFU_GREY {color:#4d88a1;}
.INS_LNK_PURPLE, .MFU_PURPLE {color:#4d88a1;}
.INS_LNK_BLUE, .MFU_BLUE {color:#4d88a1;}
.INS_LNK_YELLOW, .MFU_YELLOW {color:#4d88a1;}
.INS_LNK_PINK, .MFU_PINK {color:#4d88a1;}
.INS_LNK_DARK, .MFU_DARK {color:#a6c4d0;}
/*****************************************************************************/
.MSJ_AVISO {color:#632921; font-size:12pt;}
.TIT_TBL {color:#4D88A1; font-size:12pt; font-weight:bold;}
.TIT_TBL {color:#4d88a1; font-size:12pt; font-weight:bold;}
.GRP_TITLE {color:#4D88A1; font-size:15pt; font-weight:bold;}
.GRP_TITLE {color:#4d88a1; font-size:15pt; font-weight:bold;}
.ASG_TITLE {color:#4D88A1; font-size:15pt; font-weight:bold;}
.ASG_TITLE {color:#4d88a1; font-size:15pt; font-weight:bold;}
.ASG_TITLE_LIGHT {color:#AFC4CC; font-size:15pt; font-weight:bold;}
.ASG_LABEL {color:#4D88A1; font-size:13pt;}
.ASG_LABEL {color:#4d88a1; font-size:13pt;}
.ASG_LABEL_LIGHT {color:#AFC4CC; font-size:13pt;}
.ASG_GRP {color:#4D88A1; font-size:12pt;}
.ASG_GRP {color:#4d88a1; font-size:12pt;}
.ASG_GRP_LIGHT {color:#AFC4CC; font-size:12pt;}
.DATE_RED {color:#660000; font-size:13pt;}
.DATE_RED_LIGHT {color:#f98a8a; font-size:13pt;}
.DATE_GREEN {color:#008000; font-size:13pt;}
.DATE_GREEN_LIGHT {color:#89BE87; font-size:13pt;}
.DATE_BLUE {color:#4D88A1; font-size:13pt;}
.DATE_BLUE {color:#4d88a1; font-size:13pt;}
.DATE_BLUE_LIGHT {color:#AFC4CC; font-size:13pt;}
.ASG_LST_DATE_GREEN {color:#008000; font-size:11pt; white-space:nowrap;}
@ -2781,7 +2787,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
{
text-align:left;
vertical-align:middle;
color:#4D88A1;
color:#4d88a1;
font-size:11pt;
}
@ -3535,9 +3541,9 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
overflow:hidden;
text-overflow:ellipsis;
}
.AUTHOR_TXT {color:#4D88A1; font-size:11pt;}
.AUTHOR_TXT {color:#4d88a1; font-size:11pt;}
.AUTHOR_TXT_LIGHT {color:#AFC4CC; font-size:11pt;}
.AUTHOR_TXT_NEW {color:#4D88A1; font-size:11pt; font-weight:bold;}
.AUTHOR_TXT_NEW {color:#4d88a1; font-size:11pt; font-weight:bold;}
/************************** Owner of assignments and works *******************/
.OWNER_WORKS_PHOTO
@ -3969,15 +3975,15 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
font-size:13pt;
line-height:1.4;
}
.MSG_TIT {color:#4D88A1; font-size:13pt;}
.MSG_TIT_NEW {color:#4D88A1; font-size:13pt; font-weight:bold;}
.MSG_TIT {color:#4d88a1; font-size:13pt;}
.MSG_TIT_NEW {color:#4d88a1; font-size:13pt; font-weight:bold;}
.MSG_TIT_REM {color:#AFC4CC; font-size:13pt;}
.MSG_TIT_BG
{
background-image:-webkit-linear-gradient(#eaf3f6 0,#eaf3f6 80%,white 100%); /* Safari */
background-image:linear-gradient(#eaf3f6 0,#eaf3f6 80%,white 100%);
background-repeat:no-repeat;
color:#4D88A1;
color:#4d88a1;
font-size:13pt;
}
.MSG_TIT_BG_NEW
@ -3985,7 +3991,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
background-image:-webkit-linear-gradient(#f5ffd7 0,#f5ffd7 80%,white 100%); /* Safari */
background-image:linear-gradient(#f5ffd7 0,#f5ffd7 80%,white 100%);
background-repeat:no-repeat;
color:#4D88A1;
color:#4d88a1;
font-size:13pt;
font-weight:bold;
}
@ -4002,7 +4008,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
background-image:-webkit-linear-gradient(#eaf3f6 0,#eaf3f6 80%,white 100%); /* Safari */
background-image:linear-gradient(#eaf3f6 0,#eaf3f6 80%,white 100%);
background-repeat:no-repeat;
color:#4D88A1;
color:#4d88a1;
font-size:11pt;
}
.MSG_AUT_BG_NEW
@ -4010,7 +4016,7 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
background-image:-webkit-linear-gradient(#f5ffd7 0,#f5ffd7 80%,white 100%); /* Safari */
background-image:linear-gradient(#f5ffd7 0,#f5ffd7 80%,white 100%);
background-repeat:no-repeat;
color:#4D88A1;
color:#4d88a1;
font-size:11pt;
font-weight:bold;
}
@ -4022,8 +4028,8 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
color:#AFC4CC;
font-size:11pt;
}
.MSG_DATE {color:#4D88A1; font-size:11pt;}
.MSG_DATE_NEW {color:#4D88A1; font-size:11pt; font-weight:bold;}
.MSG_DATE {color:#4d88a1; font-size:11pt;}
.MSG_DATE_NEW {color:#4d88a1; font-size:11pt; font-weight:bold;}
.BT {width:20px; text-align:center; vertical-align:top;}
.BT0 {width:20px; text-align:center; vertical-align:top; background-color:#F4F2EA;}
@ -4064,7 +4070,7 @@ a.PAG:hover, .PAG_CUR
{
font-size:13pt;
font-weight:bold;
color:#4D88A1;
color:#4d88a1;
}
/***************************** Calls for exams *******************************/
@ -4253,7 +4259,7 @@ a.PAG:hover, .PAG_CUR
}
.INDICATORS th
{
color:#4D88A1;
color:#4d88a1;
font-size:12pt;
font-weight:bold;
}

View File

@ -249,6 +249,7 @@ void MFU_WriteBigMFUActions (struct MFU_ListMFUActions *ListMFUActions)
void MFU_WriteSmallMFUActions (struct MFU_ListMFUActions *ListMFUActions)
{
extern const char *Ico_ClassColor[Ico_NUM_COLORS][The_NUM_THEMES];
extern const char *The_Colors[The_NUM_THEMES];
extern const char *Txt_My_frequent_actions;
extern const char *Txt_Frequent_ACTIONS;
extern const char *Txt_TABS_TXT[Tab_NUM_TABS];
@ -260,11 +261,11 @@ void MFU_WriteSmallMFUActions (struct MFU_ListMFUActions *ListMFUActions)
char TabMenuStr[MFU_MAX_BYTES_TAB + 6 + MFU_MAX_BYTES_MENU + 1];
/***** Begin div and link *****/
HTM_DIV_Begin ("id=\"MFU_actions\"");
HTM_DIV_Begin ("id=\"MFU_actions\" class=\"MFU_%s\"",
The_Colors[Gbl.Prefs.Theme]);
Frm_BeginForm (ActMFUAct);
HTM_BUTTON_OnSubmit_Begin (Txt_My_frequent_actions,
"BT_LINK MFU_TITLE",NULL);
HTM_BUTTON_OnSubmit_Begin (Txt_My_frequent_actions,"BT_LINK",NULL);
HTM_TxtF ("%s",Txt_Frequent_ACTIONS);
HTM_BUTTON_End ();
Frm_EndForm ();

View File

@ -602,10 +602,11 @@ TODO: FIX BUG, URGENT! En las fechas como par
TODO: En las encuestas, que los estudiantes no puedan ver los resultados hasta que no finalice el plazo.
*/
#define Log_PLATFORM_VERSION "SWAD 21.76.3 (2021-12-28)"
#define CSS_FILE "swad21.76.3.css"
#define Log_PLATFORM_VERSION "SWAD 21.76.4 (2021-12-28)"
#define CSS_FILE "swad21.76.4.css"
#define JS_FILE "swad21.67.4.js"
/*
Version 21.76.4: Dec 28, 2021 Working on design of dark theme. (322306 lines)
Version 21.76.3: Dec 28, 2021 Working on design of dark theme. (322293 lines)
Version 21.76.2: Dec 27, 2021 Working on design of dark theme. (322282 lines)
Copy the following icons to icon public directory:

View File

@ -60,7 +60,7 @@ static struct Lnk_Link *Lnk_EditingLnk = NULL; // Static variable to keep the li
static void Lnk_PutIconsListingLinks (__attribute__((unused)) void *Args);
static void Lnk_PutIconToEditLinks (void);
static void Lnk_WriteListOfLinks (void);
static void Lnk_WriteListOfLinks (const char *Class);
static void Lnk_EditLinksInternal (void);
static void Lnk_PutIconsEditingLinks (__attribute__((unused)) void *Args);
@ -99,7 +99,7 @@ void Lnk_SeeLinks (void)
/***** Write all links *****/
if (Gbl.Links.Num) // There are links
Lnk_WriteListOfLinks ();
Lnk_WriteListOfLinks ("class=\"LIST_LEFT\"");
else // No links created
Ale_ShowAlert (Ale_INFO,Txt_No_links);
@ -148,6 +148,7 @@ static void Lnk_PutIconToEditLinks (void)
void Lnk_WriteMenuWithInstitutionalLinks (void)
{
extern const char *The_Colors[The_NUM_THEMES];
extern const char *Txt_Links;
/***** Get list of links *****/
@ -156,15 +157,16 @@ void Lnk_WriteMenuWithInstitutionalLinks (void)
/***** Write all links *****/
if (Gbl.Links.Num)
{
HTM_DIV_Begin ("id=\"institutional_links\"");
HTM_DIV_Begin ("id=\"institutional_links\" class=\"INS_LNK_%s\"",
The_Colors[Gbl.Prefs.Theme]);
Frm_BeginForm (ActSeeLnk);
HTM_BUTTON_OnSubmit_Begin (Txt_Links,"BT_LINK LINK_TITLE",NULL);
HTM_BUTTON_OnSubmit_Begin (Txt_Links,"BT_LINK",NULL);
HTM_TxtF ("%s",Txt_Links);
HTM_BUTTON_End ();
Frm_EndForm ();
Lnk_WriteListOfLinks ();
Lnk_WriteListOfLinks (NULL);
HTM_DIV_End ();
}
@ -177,12 +179,13 @@ void Lnk_WriteMenuWithInstitutionalLinks (void)
/*************************** Write list of links *****************************/
/*****************************************************************************/
static void Lnk_WriteListOfLinks (void)
static void Lnk_WriteListOfLinks (const char *Class)
{
extern const char *The_Colors[The_NUM_THEMES];
unsigned NumLnk;
/***** List start *****/
HTM_UL_Begin ("class=\"LIST_LEFT\"");
HTM_UL_Begin (Class);
/***** Write all links *****/
for (NumLnk = 0;
@ -190,10 +193,12 @@ static void Lnk_WriteListOfLinks (void)
NumLnk++)
{
/* Write data of this link */
HTM_LI_Begin ("class=\"INS_LNK\"");
HTM_A_Begin ("href=\"%s\" title=\"%s\" class=\"INS_LNK\" target=\"_blank\"",
HTM_LI_Begin ("class=\"ICO_HIGHLIGHT INS_LNK\"");
HTM_A_Begin ("href=\"%s\" title=\"%s\""
" class=\"INS_LNK_%s\" target=\"_blank\"",
Gbl.Links.Lst[NumLnk].WWW,
Gbl.Links.Lst[NumLnk].FullName);
Gbl.Links.Lst[NumLnk].FullName,
The_Colors[Gbl.Prefs.Theme]);
HTM_Txt (Gbl.Links.Lst[NumLnk].ShrtName);
HTM_A_End ();
HTM_LI_End ();