Add css layout for badges for accompanying period work, activity and calendar

This commit is contained in:
Julien Fastré 2025-04-10 15:33:02 +02:00
parent 5858e05a42
commit d58acff541
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
6 changed files with 110 additions and 2 deletions

View File

@ -0,0 +1,6 @@
kind: DX
body: Add new chill-col style for displaying title and aside in a flex table
time: 2025-04-10T15:34:26.052138894+02:00
custom:
Issue: ""
SchemaChange: No schema change

View File

@ -120,3 +120,34 @@ li.document-list-item {
vertical-align: baseline; vertical-align: baseline;
} }
} }
.badge-activity-type-simple {
@extend .badge;
display: inline-block;
margin: 0.2rem 0;
padding-left: 0;
padding-right: 0.5rem;
border-left: 20px groove #9acd32;
border-radius: $badge-border-radius;
color: black;
font-weight: normal;
font-size: unset;
max-width: 100%;
background-color: $gray-100;
overflow: hidden;
text-overflow: ellipsis;
text-indent: 5px hanging;
text-align: left;
&::before {
margin-right: 3px;
position: relative;
left: -0.5px;
font-family: ForkAwesome;
content: '\f04b';
color: #9acd32;
}
}

View File

@ -1,5 +1,6 @@
@import '~ChillPersonAssets/chill/scss/mixins.scss';
@import '~ChillMainAssets/module/bootstrap/shared'; @import '~ChillMainAssets/module/bootstrap/shared';
@import '~ChillPersonAssets/chill/scss/mixins.scss';
@import 'bootstrap/scss/_badge.scss';
.badge-calendar { .badge-calendar {
display: inline-block; display: inline-block;
@ -23,3 +24,35 @@
} }
} }
.badge-calendar-simple {
@extend .badge;
display: inline-block;
margin: 0.2rem 0;
padding-left: 0;
padding-right: 0.5rem;
border-left: 20px groove $chill-l-gray;
border-radius: $badge-border-radius;
max-width: 100%;
background-color: $gray-100;
color: black;
font-weight: normal;
overflow: hidden;
font-weight: normal;
font-size: unset;
text-overflow: ellipsis;
text-indent: 5px hanging;
text-align: left;
&::before {
margin-right: 3px;
position: relative;
left: -0.5px;
font-family: ForkAwesome;
content: '\f04b';
color: $chill-l-gray;
}
}

View File

@ -16,7 +16,7 @@ div.calendar-list {
} }
& > a.calendar-list__global { & > a.calendar-list__global {
display: inline-block;; display: inline-block;
padding: 0.2rem; padding: 0.2rem;
min-width: 2rem; min-width: 2rem;
border: 1px solid var(--bs-chill-blue); border: 1px solid var(--bs-chill-blue);

View File

@ -392,4 +392,12 @@ Toutes les classes btn-* de bootstrap sont fonctionnelles
</div> </div>
</div> </div>
<div class="row">
<h1>Badges</h1>
<span class="badge-accompanying-work-type-simple">Action d'accompagnement</span>
<span class="badge-activity-type-simple">Type d'échange</span>
<span class="badge-calendar-simple">Rendez-vous</span>
</div>
{% endblock %} {% endblock %}

View File

@ -20,6 +20,36 @@
} }
} }
.badge-accompanying-work-type-simple {
@extend .badge;
display: inline-block;
margin: 0.2rem 0;
padding-left: 0;
padding-right: 0.5rem;
border-left: 20px groove $orange;
border-radius: $badge-border-radius;
max-width: 100%;
background-color: $gray-100;
color: black;
font-weight: normal;
overflow: hidden;
text-overflow: ellipsis;
text-indent: 5px hanging;
text-align: left;
&::before {
margin-right: 3px;
position: relative;
left: -0.5px;
font-family: ForkAwesome;
content: '\f04b';
color: #e2793d;
}
}
/// AccompanyingCourse Work Pages /// AccompanyingCourse Work Pages
div.accompanying-course-work { div.accompanying-course-work {