mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-01 22:35:28 +02:00
Version 21.70.6: Dec 20, 2021 Working on design of dark theme.
This commit is contained in:
parent
88fdeb096d
commit
1512f002cb
|
@ -1850,10 +1850,17 @@ a:hover img.CENTER_PHOTO_SHOW
|
|||
box-sizing:border-box;
|
||||
margin:8px auto;
|
||||
padding:12px;
|
||||
background-color:#fff8e5;
|
||||
border-radius:2px;
|
||||
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 2px 1px -2px rgba(0,0,0,0.2), 0 1px 5px 0 rgba(0,0,0,0.12);
|
||||
}
|
||||
.ALERT_BG_WHITE {background-color:#fff8e5;}
|
||||
.ALERT_BG_GREY {background-color:#fff8e5;}
|
||||
.ALERT_BG_PURPLE {background-color:#fff8e5;}
|
||||
.ALERT_BG_BLUE {background-color:#fff8e5;}
|
||||
.ALERT_BG_YELLOW {background-color:#fff8e5;}
|
||||
.ALERT_BG_PINK {background-color:#fff8e5;}
|
||||
.ALERT_BG_DARK {background-color:#a0a0a0;}
|
||||
|
||||
.ALERT_CLOSE
|
||||
{
|
||||
float:right;
|
||||
|
|
10
swad_alert.c
10
swad_alert.c
|
@ -359,6 +359,7 @@ void Ale_ShowAlertAndButton1 (Ale_AlertType_t AlertType,const char *fmt,...)
|
|||
|
||||
static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Txt)
|
||||
{
|
||||
extern const char *The_ClassAlertBackground[The_NUM_THEMES];
|
||||
extern const char *Txt_Close;
|
||||
char IdAlert[Frm_MAX_BYTES_ID + 1];
|
||||
static const bool AlertClosable[Ale_NUM_ALERT_TYPES] =
|
||||
|
@ -386,7 +387,7 @@ static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Tx
|
|||
if (!Gbl.Layout.HTMLStartWritten)
|
||||
Lay_WriteStartOfPage ();
|
||||
|
||||
/***** Begin box *****/
|
||||
/***** Begin container *****/
|
||||
if (AlertClosable[AlertType])
|
||||
{
|
||||
/* Create unique id for alert */
|
||||
|
@ -395,7 +396,10 @@ static void Ale_ShowFixAlertAndButton1 (Ale_AlertType_t AlertType,const char *Tx
|
|||
}
|
||||
else
|
||||
HTM_DIV_Begin ("class=\"CM\"");
|
||||
HTM_DIV_Begin ("class=\"ALERT\"");
|
||||
|
||||
/***** Begin box *****/
|
||||
HTM_DIV_Begin ("class=\"ALERT %s\"",
|
||||
The_ClassAlertBackground[Gbl.Prefs.Theme]);
|
||||
|
||||
/***** Icon to close the alert *****/
|
||||
if (AlertClosable[AlertType])
|
||||
|
@ -448,6 +452,8 @@ void Ale_ShowAlertAndButton2 (Act_Action_t NextAction,const char *Anchor,const c
|
|||
|
||||
/***** End box *****/
|
||||
HTM_DIV_End ();
|
||||
|
||||
/***** End container *****/
|
||||
HTM_DIV_End ();
|
||||
}
|
||||
|
||||
|
|
|
@ -602,7 +602,7 @@ 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.70.4 (2021-12-18)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 21.70.6 (2021-12-20)"
|
||||
#define CSS_FILE "swad21.70.1.css"
|
||||
#define JS_FILE "swad21.67.4.js"
|
||||
/*
|
||||
|
|
11
swad_theme.c
11
swad_theme.c
|
@ -393,6 +393,17 @@ const char *The_ClassFrameTitleColor[The_NUM_THEMES] =
|
|||
[The_THEME_DARK ] = "FRAME_TITLE_DARK",
|
||||
};
|
||||
|
||||
const char *The_ClassAlertBackground[The_NUM_THEMES] =
|
||||
{
|
||||
[The_THEME_WHITE ] = "ALERT_BG_WHITE",
|
||||
[The_THEME_GREY ] = "ALERT_BG_GREY",
|
||||
[The_THEME_PURPLE] = "ALERT_BG_PURPLE",
|
||||
[The_THEME_BLUE ] = "ALERT_BG_BLUE",
|
||||
[The_THEME_YELLOW] = "ALERT_BG_YELLOW",
|
||||
[The_THEME_PINK ] = "ALERT_BG_PINK",
|
||||
[The_THEME_DARK ] = "ALERT_BG_DARK",
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/****************************** Private prototypes ***************************/
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Reference in New Issue
Block a user