mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
pedagogy: correctly display uv infos
This commit is contained in:
parent
28748af5d3
commit
3bff09b04c
@ -30,6 +30,12 @@ $shadow-color: rgb(223, 223, 223);
|
||||
|
||||
$background-bouton-color: hsl(0, 0%, 90%);
|
||||
|
||||
/*--------------------------MEDIA QUERY HELPERS------------------------*/
|
||||
$small-devices: 576px;
|
||||
$medium-devices: 768px;
|
||||
$large-devices: 992px;
|
||||
$extra-large-devices: 1200px;
|
||||
|
||||
/*--------------------------------GENERAL------------------------------*/
|
||||
|
||||
body {
|
||||
@ -1670,6 +1676,10 @@ label {
|
||||
|
||||
/* --------------------------------------pedagogy-----------------------------------*/
|
||||
|
||||
$pedagogy-blue: #1bb9ea;
|
||||
$pedagogy-light-blue: #caf0ff;
|
||||
$pedagogy-white-text: #f0f0f0;
|
||||
|
||||
.pedagogy {
|
||||
&.star_not_checked {
|
||||
color : #f7f7f7;
|
||||
@ -1680,7 +1690,7 @@ label {
|
||||
&.stars_grade {
|
||||
display: none;
|
||||
}
|
||||
@media screen and (max-width: 992px) {
|
||||
@media screen and (max-width: $large-devices) {
|
||||
&.stars_grade {
|
||||
display: block;
|
||||
}
|
||||
@ -1698,7 +1708,7 @@ label {
|
||||
width: 100%;
|
||||
|
||||
.input_search {
|
||||
background: #caf0ff;
|
||||
background: $pedagogy-light-blue;
|
||||
width: 300px;
|
||||
height: 21px;
|
||||
}
|
||||
@ -1717,7 +1727,7 @@ label {
|
||||
}
|
||||
.radio_guide label {
|
||||
display:inline-block;
|
||||
background-color:#1bb9ea;
|
||||
background-color: $pedagogy-blue;
|
||||
padding: 10px 20px;
|
||||
font-family:Arial;
|
||||
font-size:16px;
|
||||
@ -1737,6 +1747,37 @@ label {
|
||||
#pedagogy {
|
||||
font-family: "Fira Sans";
|
||||
color: #062f38;
|
||||
|
||||
|
||||
.grid-container {
|
||||
display: grid;
|
||||
grid-template-columns: 10% 9% 1fr;
|
||||
grid-template-rows: 156px 1fr;
|
||||
grid-template-areas: "grade grade-stars uv-infos" ". . uv-infos";
|
||||
}
|
||||
|
||||
.grade {
|
||||
grid-area: grade;
|
||||
color: $pedagogy-white-text;
|
||||
background-color: $pedagogy-blue;
|
||||
padding-right: 10px;
|
||||
|
||||
> p {
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.grade-stars {
|
||||
grid-area: grade-stars;
|
||||
color: $pedagogy-white-text;
|
||||
background-color: $pedagogy-blue;
|
||||
}
|
||||
|
||||
.uv-infos {
|
||||
grid-area: uv-infos;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.comment {
|
||||
max-width: 100%;
|
||||
max-height: 200px;
|
||||
@ -1753,8 +1794,8 @@ label {
|
||||
.dif_grade {
|
||||
height: 156px;
|
||||
width: 8%;
|
||||
background-color: #1bb9ea;
|
||||
color: #f0f0f0;
|
||||
background-color: $pedagogy-blue;
|
||||
color: $pedagogy-white-text;
|
||||
height: 156px;
|
||||
float: left;
|
||||
font-weight: bold;
|
||||
@ -1772,10 +1813,10 @@ label {
|
||||
padding-right: 40px;
|
||||
padding-top: 0px;
|
||||
clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 20%, 75% 0);
|
||||
background-color: #1bb9ea;
|
||||
background-color: $pedagogy-blue;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 992px) {
|
||||
@media screen and (max-width: $large-devices) {
|
||||
.dif_grade {
|
||||
width: 11%;
|
||||
}
|
||||
@ -1787,27 +1828,32 @@ label {
|
||||
}
|
||||
|
||||
.not_rated {
|
||||
color: #f0f0f0;
|
||||
color: $pedagogy-white-text;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.info {
|
||||
background-color: #1bb9ea;
|
||||
background-color: $pedagogy-blue;
|
||||
width: 100%;
|
||||
float: left;
|
||||
|
||||
.date_info {
|
||||
color: #f0f0f0;
|
||||
color: $pedagogy-white-text;
|
||||
text-align: center;
|
||||
width : 34%;
|
||||
|
||||
padding: 5px;
|
||||
margin: 0px;
|
||||
float: left;
|
||||
|
||||
@media screen and (max-width: $large-devices) {
|
||||
width: 0%;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.author_info {
|
||||
color: #f0f0f0;
|
||||
color: $pedagogy-white-text;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
padding-right: 33%;
|
||||
@ -1824,13 +1870,18 @@ label {
|
||||
width : 33%;
|
||||
|
||||
& a {
|
||||
color: #f0f0f0;
|
||||
color: $pedagogy-white-text;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
padding: 5px;
|
||||
margin: 0px;
|
||||
float: left;
|
||||
|
||||
@media screen and (max-width: $large-devices) {
|
||||
clip-path: none;
|
||||
width : 32%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,17 +20,36 @@
|
||||
|
||||
<h1>{{ object.code }} - {{ object.title }}</h1>
|
||||
<p style = "word-spacing: 20px;">{{ object.department }} {{ object.credit_type }} {{ object.semester_translated }}</p>
|
||||
<p>{{ object.objectives|markdown }}</p>
|
||||
<p>{{ object.program|markdown }}</p>
|
||||
<p>{{ object.skills|markdown }}</p>
|
||||
<p>{{ object.key_concepts }}</p>
|
||||
<p>{% trans %}UV manager: {% endtrans %}{{ object.manager }}</p>
|
||||
|
||||
<br>
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grade">
|
||||
<p>{% trans %}global grade{% endtrans %}</p>
|
||||
<p>{% trans %}utility{% endtrans %}</p>
|
||||
<p>{% trans %}interest{% endtrans %}</p>
|
||||
<p>{% trans %}teaching{% endtrans %}</p>
|
||||
<p>{% trans %}work load{% endtrans %}</p>
|
||||
</div>
|
||||
<div class="grade-stars">
|
||||
<p>{{ display_star(object.grade_global_average) }}</p>
|
||||
<p>{{ display_star(object.grade_utility_average) }}</p>
|
||||
<p>{{ display_star(object.grade_interest_average) }}</p>
|
||||
<p>{{ display_star(object.grade_teaching_average) }}</p>
|
||||
<p>{{ display_star(object.grade_work_load_average) }}</p>
|
||||
</div>
|
||||
<div class="uv-infos">
|
||||
<p><b>{% trans %}Objectives{% endtrans %}</b></p>
|
||||
<p>{{ object.objectives|markdown }}</p>
|
||||
<p><b>{% trans %}Program{% endtrans %}</b></p>
|
||||
<p>{{ object.program|markdown }}</p>
|
||||
<p><b>{% trans %}Earned skills{% endtrans %}</b></p>
|
||||
<p>{{ object.skills|markdown }}</p>
|
||||
<p><b>{% trans %}Key concepts{% endtrans %}</b></p>
|
||||
<p>{{ object.key_concepts }}</p>
|
||||
<p><b>{% trans %}UV manager: {% endtrans %}</b>{{ object.manager }}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if object.comments.exists() %}
|
||||
<h2>{% trans %}Comments{% endtrans %}</h2>
|
||||
|
Loading…
Reference in New Issue
Block a user