UI: 2024 Hero component options #103971

Merged
Márton Lente merged 66 commits from ui/2024-hero-options into main 2024-09-24 13:00:31 +02:00
2 changed files with 11 additions and 24 deletions
Showing only changes of commit c891da1436 - Show all commits

View File

@ -34,32 +34,17 @@
content: '' content: ''
details details
+padding(2, y) @extend .box
transition: background-color var(--transition-speed)
details:not([open]) +padding(3)
background-color: rgba(white, .33)
box-shadow: none
&:hover
background-color: rgba(white, .66)
.is-collapsed
opacity: 1
.is-collapsed
opacity: .5
transition: opacity var(--transition-speed)
summary summary
padding-right: 0
+fw-normal
color: var(--text-color-secondary) color: var(--text-color-secondary)
+fw-normal
padding-right: 0
.date .date
font-size: var(--fs-sm) @extend .text-muted
+margin(1, top)
opacity: .5
.event-date a .event-date a
text-decoration: none text-decoration: none

View File

@ -26,27 +26,29 @@ section
data-target="#message-{{ message.message.id }}", data-target="#message-{{ message.message.id }}",
id="message-{{ message.message.id }}") id="message-{{ message.message.id }}")
span(style="opacity: .4").mr-2 {{ forloop.counter }}. span.me-2.text-muted {{ forloop.counter }}.
span {{ message.message.user.profile }} span {{ message.message.user.profile }}
span.message-preview-content {{ message.message.content|truncatechars:80 }} span.message-preview-content {{ message.message.content|truncatechars:80 }}
span.ml-auto span.ml-auto
| {% if message.message.user.is_staff %} | {% if message.message.user.is_staff %}
span.badge.badge-admin.mr-2(title="BCON staff") span.badge.badge-admin.me-2(title="BCON staff")
i.i-bcon i.i-bcon
span Staff span Staff
| {% endif %} | {% endif %}
| {% if message.message.user.id == object.user.id %} | {% if message.message.user.id == object.user.id %}
span.badge.badge-info.mr-2(title="Proposal Author") span.badge.badge-info.me-2(title="Proposal Author")
i.i-mic i.i-mic
span Proposal Author span Proposal Author
| {% endif %} | {% endif %}
| {% if request.user.is_superuser %} | {% if request.user.is_superuser %}
a.px-3(href="{% url 'admin:conference_main_message_change' message.pk %}") a.px-3(href="{% url 'admin:conference_main_message_change' message.pk %}")
small Edit small
span.me-1 Edit
i.i-edit
| {% endif %} | {% endif %}
a.date( a.date(