mirror of
https://github.com/acanas/swad-core.git
synced 2024-05-31 22:05:23 +02:00
Version 21.93.1: Apr 21, 2022 Working on design of dark theme.
This commit is contained in:
parent
c61bef9a97
commit
1267dcc9d4
|
@ -2293,14 +2293,29 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
||||||
left:-300px;
|
left:-300px;
|
||||||
top:-400px;
|
top:-400px;
|
||||||
padding:6px;
|
padding:6px;
|
||||||
background-color:rgba(255,255,255,0.95);
|
|
||||||
border-width:1px;
|
border-width:1px;
|
||||||
border-style:solid;
|
border-style:solid;
|
||||||
border-color:#C0C0C0;
|
|
||||||
border-radius:4px;
|
border-radius:4px;
|
||||||
|
}
|
||||||
|
.ZOOM_WHITE,
|
||||||
|
.ZOOM_GREY,
|
||||||
|
.ZOOM_PURPLE,
|
||||||
|
.ZOOM_BLUE,
|
||||||
|
.ZOOM_YELLOW,
|
||||||
|
.ZOOM_PINK
|
||||||
|
{
|
||||||
|
background-color:rgba(255,255,255,0.95);
|
||||||
|
border-color:#c0c0c0;
|
||||||
box-shadow:2px 5px 15px #888;
|
box-shadow:2px 5px 15px #888;
|
||||||
}
|
}
|
||||||
.ZOOM_TXT_LINE
|
.ZOOM_DARK
|
||||||
|
{
|
||||||
|
background-color:rgba(0,0,0,0.95);
|
||||||
|
border-color:#c0c0c0;
|
||||||
|
box-shadow:2px 5px 15px #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ZOOM_TXT
|
||||||
{
|
{
|
||||||
box-sizing:border-box;
|
box-sizing:border-box;
|
||||||
display:block;
|
display:block;
|
||||||
|
@ -2310,15 +2325,24 @@ table.CELLS_PAD_10 > tbody > tr > td {padding:10px;}
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
text-overflow:ellipsis;
|
text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ZOOM_DEG
|
.ZOOM_DEG
|
||||||
{
|
{
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
margin:0 auto;
|
margin:0 auto;
|
||||||
padding:0 0 0 20px;
|
/*padding:0 0 0 20px;*/
|
||||||
|
width:16px;
|
||||||
background-size:16px 16px;
|
background-size:16px 16px;
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
background-position:left center;
|
background-position:left center;
|
||||||
}
|
}
|
||||||
|
.ZOOM_ICO_WHITE,
|
||||||
|
.ZOOM_ICO_GREY,
|
||||||
|
.ZOOM_ICO_PURPLE,
|
||||||
|
.ZOOM_ICO_BLUE,
|
||||||
|
.ZOOM_ICO_YELLOW,
|
||||||
|
.ZOOM_ICO_PINK {}
|
||||||
|
.ZOOM_ICO_DARK {filter:invert(1);}
|
||||||
|
|
||||||
.NO_BR {white-space:nowrap;}
|
.NO_BR {white-space:nowrap;}
|
||||||
|
|
|
@ -606,10 +606,11 @@ TODO: Fix bug: error al enviar un mensaje a dos recipientes, error on duplicate
|
||||||
|
|
||||||
TODO: Attach pdf files in multimedia.
|
TODO: Attach pdf files in multimedia.
|
||||||
*/
|
*/
|
||||||
#define Log_PLATFORM_VERSION "SWAD 21.93 (2022-04-21)"
|
#define Log_PLATFORM_VERSION "SWAD 21.93.1 (2022-04-21)"
|
||||||
#define CSS_FILE "swad21.92.css"
|
#define CSS_FILE "swad21.93.1.css"
|
||||||
#define JS_FILE "swad21.92.js"
|
#define JS_FILE "swad21.92.js"
|
||||||
/*
|
/*
|
||||||
|
Version 21.93.1: Apr 21, 2022 Working on design of dark theme. (323269 lines)
|
||||||
Version 21.93: Apr 21, 2022 Homogenization of lists in forums, chat and my courses. (323245 lines)
|
Version 21.93: Apr 21, 2022 Homogenization of lists in forums, chat and my courses. (323245 lines)
|
||||||
Version 21.92: Apr 20, 2022 Default theme is white when printing. (323246 lines)
|
Version 21.92: Apr 20, 2022 Default theme is white when printing. (323246 lines)
|
||||||
Version 21.91.6: Apr 07, 2022 Working on design of dark theme. (323347 lines)
|
Version 21.91.6: Apr 07, 2022 Working on design of dark theme. (323347 lines)
|
||||||
|
|
|
@ -262,7 +262,8 @@ void Lay_WriteStartOfPage (void)
|
||||||
case Act_BRW_1ST_TAB:
|
case Act_BRW_1ST_TAB:
|
||||||
HTM_TxtF ("<body class=\"BODY_BG_%s\" onload=\"init();\">\n",
|
HTM_TxtF ("<body class=\"BODY_BG_%s\" onload=\"init();\">\n",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
HTM_DIV_Begin ("id=\"zoomLyr\" class=\"ZOOM\"");
|
HTM_DIV_Begin ("id=\"zoomLyr\" class=\"ZOOM ZOOM_%s\"",
|
||||||
|
The_GetSuffix ());
|
||||||
HTM_IMG (Cfg_URL_ICON_PUBLIC,"usr_bl.jpg",NULL,
|
HTM_IMG (Cfg_URL_ICON_PUBLIC,"usr_bl.jpg",NULL,
|
||||||
"class=\"IMG_USR\" id=\"zoomImg\"");
|
"class=\"IMG_USR\" id=\"zoomImg\"");
|
||||||
HTM_DIV_Begin ("id=\"zoomTxt\" class=\"CM\"");
|
HTM_DIV_Begin ("id=\"zoomTxt\" class=\"CM\"");
|
||||||
|
|
22
swad_photo.c
22
swad_photo.c
|
@ -1088,7 +1088,7 @@ void Pho_BuildHTMLUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
if (PutZoomCode)
|
if (PutZoomCode)
|
||||||
{
|
{
|
||||||
/* First name and surnames */
|
/* First name and surnames */
|
||||||
if (asprintf (&Caption.Name,"<div class=\"ZOOM_TXT_LINE DAT_STRONG_%s BOLD\">" // Limited width
|
if (asprintf (&Caption.Name,"<div class=\"ZOOM_TXT DAT_STRONG_%s BOLD\">" // Limited width
|
||||||
"%s<br />"
|
"%s<br />"
|
||||||
"%s%s%s"
|
"%s%s%s"
|
||||||
"</div>",
|
"</div>",
|
||||||
|
@ -1104,7 +1104,7 @@ void Pho_BuildHTMLUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
/* Nickname */
|
/* Nickname */
|
||||||
if (UsrDat->Nickname[0])
|
if (UsrDat->Nickname[0])
|
||||||
{
|
{
|
||||||
if (asprintf (&Caption.Nick,"<div class=\"ZOOM_TXT_LINE DAT_SMALL_STRONG_%s\">"
|
if (asprintf (&Caption.Nick,"<div class=\"ZOOM_TXT DAT_SMALL_STRONG_%s\">"
|
||||||
"@%s"
|
"@%s"
|
||||||
"</div>",
|
"</div>",
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
|
@ -1122,7 +1122,7 @@ void Pho_BuildHTMLUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
Ins_GetShrtNameAndCtyOfInstitution (&Ins,CtyName);
|
Ins_GetShrtNameAndCtyOfInstitution (&Ins,CtyName);
|
||||||
|
|
||||||
/* Write institution short name and country name */
|
/* Write institution short name and country name */
|
||||||
if (asprintf (&Caption.InsCty,"<div class=\"ZOOM_TXT_LINE DAT_SMALL_%s\">"
|
if (asprintf (&Caption.InsCty,"<div class=\"ZOOM_TXT DAT_SMALL_%s\">"
|
||||||
"%s (%s)"
|
"%s (%s)"
|
||||||
"</div>",
|
"</div>",
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
|
@ -1135,7 +1135,7 @@ void Pho_BuildHTMLUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
Cty_GetCountryName (UsrDat->CtyCod,Gbl.Prefs.Language,CtyName);
|
Cty_GetCountryName (UsrDat->CtyCod,Gbl.Prefs.Language,CtyName);
|
||||||
|
|
||||||
/* Write country name */
|
/* Write country name */
|
||||||
if (asprintf (&Caption.InsCty,"<div class=\"ZOOM_TXT_LINE DAT_SMALL_%s\">"
|
if (asprintf (&Caption.InsCty,"<div class=\"ZOOM_TXT DAT_SMALL_%s\">"
|
||||||
"%s"
|
"%s"
|
||||||
"</div>",
|
"</div>",
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
|
@ -1149,14 +1149,14 @@ void Pho_BuildHTMLUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
Deg_GetUsrMainDeg (UsrDat->UsrCod,MainDegreeShrtName,&MaxRole);
|
Deg_GetUsrMainDeg (UsrDat->UsrCod,MainDegreeShrtName,&MaxRole);
|
||||||
if (MainDegreeShrtName[0])
|
if (MainDegreeShrtName[0])
|
||||||
{
|
{
|
||||||
if (asprintf (&Caption.MainDeg,"<div class=\"ZOOM_TXT_LINE DAT_SMALL_%s\">"
|
if (asprintf (&Caption.MainDeg,"<div class=\"ZOOM_TXT DAT_SMALL_%s\">"
|
||||||
"<div class=\"ZOOM_DEG\""
|
"<img src=\"%s/%s\" alt=\"\""
|
||||||
" style=\"background-image:url('%s/%s');\">"
|
" class=\"ICO16x16 ICO_BLACK_%s\" />"
|
||||||
"%s"
|
" %s"
|
||||||
"</div>"
|
|
||||||
"</div>",
|
"</div>",
|
||||||
The_GetSuffix (),
|
The_GetSuffix (),
|
||||||
Cfg_URL_ICON_PUBLIC,Rol_Icons[MaxRole],
|
Cfg_URL_ICON_PUBLIC,Rol_Icons[MaxRole],
|
||||||
|
The_GetSuffix (),
|
||||||
MainDegreeShrtName) < 0)
|
MainDegreeShrtName) < 0)
|
||||||
Err_NotEnoughMemoryExit ();
|
Err_NotEnoughMemoryExit ();
|
||||||
}
|
}
|
||||||
|
@ -1167,7 +1167,7 @@ void Pho_BuildHTMLUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
|
||||||
if (UsrDat->Nickname[0]) // Get social data only if nickname is retrieved (in some actions)
|
if (UsrDat->Nickname[0]) // Get social data only if nickname is retrieved (in some actions)
|
||||||
{
|
{
|
||||||
Fol_GetNumFollow (UsrDat->UsrCod,&NumFollowing,&NumFollowers);
|
Fol_GetNumFollow (UsrDat->UsrCod,&NumFollowing,&NumFollowers);
|
||||||
if (asprintf (&Caption.Follow,"<div class=\"ZOOM_TXT_LINE\">"
|
if (asprintf (&Caption.Follow,"<div class=\"ZOOM_TXT\">"
|
||||||
"<span class=\"DAT_STRONG_%s BOLD\">"
|
"<span class=\"DAT_STRONG_%s BOLD\">"
|
||||||
"%u"
|
"%u"
|
||||||
"</span>"
|
"</span>"
|
||||||
|
@ -2417,7 +2417,7 @@ static void Pho_ShowDegreeAvgPhotoAndStat (const struct Deg_Degree *Deg,
|
||||||
0);
|
0);
|
||||||
Frm_SetUniqueId (IdCaption);
|
Frm_SetUniqueId (IdCaption);
|
||||||
HTM_DIV_Begin ("id=\"%s\" class=\"NOT_SHOWN\"",IdCaption);
|
HTM_DIV_Begin ("id=\"%s\" class=\"NOT_SHOWN\"",IdCaption);
|
||||||
HTM_DIV_Begin ("class=\"ZOOM_TXT_LINE DAT_STRONG_%s\"",
|
HTM_DIV_Begin ("class=\"ZOOM_TXT DAT_STRONG_%s\"",
|
||||||
The_GetSuffix ());
|
The_GetSuffix ());
|
||||||
HTM_Txt (PhotoCaption);
|
HTM_Txt (PhotoCaption);
|
||||||
HTM_DIV_End ();
|
HTM_DIV_End ();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user