Cosmétique: variable sco-deep-blue, liens formsemestre_status.

This commit is contained in:
ilona 2024-10-23 11:16:48 +02:00
parent ec82d27e1f
commit 0d2471ce8d
6 changed files with 28 additions and 15 deletions

View File

@ -1309,6 +1309,11 @@ def formsemestre_tableau_modules(
tr_classes += " modimpl_non_conforme"
if etat["nb_evals_blocked"] > 0:
tr_classes += " modimpl_has_blocked"
classes = "formsemestre_status_link"
if current_user.id == modimpl.responsable_id or current_user.id in (
u.id for u in modimpl.enseignants
):
classes += " enseignant"
H.append(
f"""
<tr class="{tr_classes}">
@ -1316,7 +1321,7 @@ def formsemestre_tableau_modules(
href="{moduleimpl_status_url}"
title="{mod_descr}" class="stdlink">{mod.code}</a></td>
<td class="scotext"><a href="{moduleimpl_status_url}" title="{mod_descr}"
class="formsemestre_status_link">{mod.abbrev or mod.titre or ""}</a>
class="{classes}">{mod.abbrev or mod.titre or ""}</a>
</td>
<td class="formsemestre_status_inscrits">{mod_nb_inscrits}</td>
<td class="resp scotext">

View File

@ -4,13 +4,14 @@
:root {
--sco-content-min-width: 600px;
--sco-content-max-width: 1024px;
--sco-color-explication: rgb(10, 58, 140);
--sco-deep-blue: rgb(4, 16, 159);
--sco-color-explication: rgb(4, 16, 159);
--sco-color-background: rgb(242, 242, 238);
--sco-color-box-bg: rgb(243, 240, 228);
--sco-color-mod-std: #afafc2;
--sco-color-ressources: #f8c844;
--sco-color-saes: #c6ffab;
--sco-color-ues: #0051a9;
--sco-color-mod-std: rgb(175, 175, 194);
--sco-color-ressources: rgb(248, 200, 68);
--sco-color-saes: rgb(198, 255, 171);
--sco-color-ues: rgb(0, 81, 169);
}
html,
@ -41,7 +42,7 @@ h3 {
}
body a {
color: rgb(4, 16, 159);
color: var(--sco-deep-blue);
}
details>summary:first-of-type {
@ -182,7 +183,7 @@ div#gtrcontent {
.gtrcontent a,
.gtrcontent a:visited {
color: rgb(4, 16, 159);
color: var(--sco-deep-blue);
text-decoration: none;
}
@ -1083,7 +1084,7 @@ span.linktitresem a:visited {
a.stdlink,
a.stdlink:visited {
color: blue;
color: var(--sco-deep-blue);
text-decoration: underline;
}
@ -1532,7 +1533,7 @@ table.notes_evaluation tr td.tdlink a.discretelink:hover {
table.notes_evaluation tr td.tdlink a.discretelink,
table.notes_evaluation tr td.tdlink a.discretelink:visited {
color: blue;
color: var(--sco-deep-blue);
text-decoration: underline;
}
@ -1989,7 +1990,8 @@ table.formsemestre_status td.malus a {
color: red;
}
a.formsemestre_status_link {
a.formsemestre_status_link,
a.formsemestre_status_link:visited {
text-decoration: none;
color: black;
}
@ -1999,6 +2001,12 @@ a.formsemestre_status_link:hover {
text-decoration: underline;
}
a.formsemestre_status_link.enseignant,
a.formsemestre_status_link.enseignant:visited {
color: var(--sco-deep-blue);
}
td.formsemestre_status_inscrits {
text-align: center;
}

View File

@ -83,7 +83,7 @@
.scodoc-index a {
font-size: 14pt;
display: flex;
color: rgb(4, 16, 159);
color: var(--sco-deep-blue);
width: 100%;
}

View File

@ -114,7 +114,7 @@
{{ sco.SCOVERSION }}
</div>
{% if DEBUG %}
<div style="color:gold; background-color:navy; margin-top: 8px;">DEBUG</div>
<div style="color:gold; background-color: var(--sco-deep-blue); margin-top: 8px;">DEBUG</div>
{% endif %}
</div>
<!-- end of sidebar -->

View File

@ -976,7 +976,7 @@ def edit_enseignants_form(moduleimpl_id):
allowed_user_names = list(uid2display.values())
H = [
f"""<ul><li><b>{
f"""<ul class="sco-links"><li><b>{
uid2display.get(modimpl.responsable_id, modimpl.responsable_id)
}</b> (responsable)</li>"""
]

View File

@ -3,7 +3,7 @@
"Infos sur version ScoDoc"
SCOVERSION = "9.7.33"
SCOVERSION = "9.7.34"
SCONAME = "ScoDoc"