2019-09-18 15:32:37 +00:00
|
|
|
<template>
|
2021-11-02 18:47:54 +00:00
|
|
|
<article class="box mb-5 mt-4">
|
2021-11-07 13:59:20 +00:00
|
|
|
<div class="identity-header" dir="auto">
|
2020-12-01 16:32:07 +00:00
|
|
|
<figure class="image is-24x24" v-if="participation.actor.avatar">
|
2021-06-18 17:25:47 +00:00
|
|
|
<img
|
|
|
|
class="is-rounded"
|
|
|
|
:src="participation.actor.avatar.url"
|
|
|
|
alt=""
|
|
|
|
height="24"
|
|
|
|
width="24"
|
|
|
|
/>
|
2020-12-01 16:32:07 +00:00
|
|
|
</figure>
|
2021-11-02 18:47:54 +00:00
|
|
|
<b-icon v-else icon="account-circle" />
|
2020-12-01 16:32:07 +00:00
|
|
|
{{ displayNameAndUsername(participation.actor) }}
|
|
|
|
</div>
|
|
|
|
<div class="list-card">
|
2021-06-11 16:31:24 +00:00
|
|
|
<div class="content-and-actions">
|
2021-11-02 18:47:54 +00:00
|
|
|
<div class="event-preview mr-0 ml-0">
|
|
|
|
<div>
|
|
|
|
<div class="date-component">
|
|
|
|
<date-calendar-icon
|
|
|
|
:date="participation.event.beginsOn"
|
|
|
|
:small="true"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<router-link
|
|
|
|
:to="{
|
|
|
|
name: RouteName.EVENT,
|
|
|
|
params: { uuid: participation.event.uuid },
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
<lazy-image-wrapper
|
|
|
|
:rounded="true"
|
|
|
|
:picture="participation.event.picture"
|
|
|
|
style="
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-07 20:02:06 +00:00
|
|
|
<div class="list-card-content">
|
|
|
|
<div class="title-wrapper" dir="auto">
|
2021-06-11 16:31:24 +00:00
|
|
|
<router-link
|
|
|
|
:to="{
|
|
|
|
name: RouteName.EVENT,
|
|
|
|
params: { uuid: participation.event.uuid },
|
|
|
|
}"
|
|
|
|
>
|
2021-11-13 14:58:54 +00:00
|
|
|
<h3 class="title" :lang="participation.event.language">
|
|
|
|
{{ participation.event.title }}
|
|
|
|
</h3>
|
2021-06-11 16:31:24 +00:00
|
|
|
</router-link>
|
|
|
|
</div>
|
2021-11-06 10:15:16 +00:00
|
|
|
<inline-address
|
2021-11-02 18:47:54 +00:00
|
|
|
v-if="participation.event.physicalAddress"
|
|
|
|
class="event-subtitle"
|
|
|
|
:physical-address="participation.event.physicalAddress"
|
|
|
|
/>
|
|
|
|
<div
|
|
|
|
class="event-subtitle"
|
|
|
|
v-else-if="
|
|
|
|
participation.event.options &&
|
|
|
|
participation.event.options.isOnline
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<b-icon icon="video" />
|
|
|
|
<span>{{ $t("Online") }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="event-subtitle event-organizer">
|
|
|
|
<figure
|
|
|
|
class="image is-24x24"
|
2021-06-11 16:31:24 +00:00
|
|
|
v-if="
|
2021-11-02 18:47:54 +00:00
|
|
|
organizer(participation.event) &&
|
|
|
|
organizer(participation.event).avatar
|
2020-11-30 09:24:11 +00:00
|
|
|
"
|
2021-06-10 08:33:16 +00:00
|
|
|
>
|
2021-11-02 18:47:54 +00:00
|
|
|
<img
|
|
|
|
class="is-rounded"
|
|
|
|
:src="organizer(participation.event).avatar.url"
|
|
|
|
alt=""
|
|
|
|
/>
|
|
|
|
</figure>
|
|
|
|
<b-icon v-else icon="account-circle" />
|
|
|
|
<span class="organizer-name">
|
|
|
|
{{ organizerDisplayName(participation.event) }}
|
|
|
|
</span>
|
2021-06-11 16:31:24 +00:00
|
|
|
</div>
|
2021-11-02 18:47:54 +00:00
|
|
|
<div class="event-subtitle event-participants">
|
|
|
|
<b-icon
|
|
|
|
:class="{ 'has-text-danger': lastSeatsLeft }"
|
|
|
|
icon="account-group"
|
|
|
|
/>
|
2020-11-30 09:24:11 +00:00
|
|
|
<span
|
2021-06-11 16:31:24 +00:00
|
|
|
class="participant-stats"
|
2021-11-02 18:47:54 +00:00
|
|
|
v-if="participation.role !== ParticipantRole.NOT_APPROVED"
|
2020-11-30 09:24:11 +00:00
|
|
|
>
|
2021-11-02 18:47:54 +00:00
|
|
|
<!-- Less than 10 seats left -->
|
|
|
|
<span class="has-text-danger" v-if="lastSeatsLeft">
|
|
|
|
{{
|
|
|
|
$t("{number} seats left", {
|
|
|
|
number: seatsLeft,
|
|
|
|
})
|
|
|
|
}}
|
|
|
|
</span>
|
2021-06-11 16:31:24 +00:00
|
|
|
<span
|
2021-11-02 18:47:54 +00:00
|
|
|
v-else-if="
|
|
|
|
participation.event.options.maximumAttendeeCapacity !== 0
|
|
|
|
"
|
2020-02-18 07:57:00 +00:00
|
|
|
>
|
|
|
|
{{
|
|
|
|
$tc(
|
2021-06-11 16:31:24 +00:00
|
|
|
"{available}/{capacity} available places",
|
|
|
|
participation.event.options.maximumAttendeeCapacity -
|
|
|
|
participation.event.participantStats.participant,
|
|
|
|
{
|
|
|
|
available:
|
|
|
|
participation.event.options.maximumAttendeeCapacity -
|
|
|
|
participation.event.participantStats.participant,
|
|
|
|
capacity:
|
|
|
|
participation.event.options.maximumAttendeeCapacity,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
</span>
|
|
|
|
<span v-else>
|
|
|
|
{{
|
|
|
|
$tc(
|
|
|
|
"{count} participants",
|
|
|
|
participation.event.participantStats.participant,
|
2021-06-10 08:33:16 +00:00
|
|
|
{
|
2021-06-11 16:31:24 +00:00
|
|
|
count: participation.event.participantStats.participant,
|
2021-06-10 08:33:16 +00:00
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
)
|
|
|
|
}}
|
2021-06-11 16:31:24 +00:00
|
|
|
</span>
|
2021-11-02 18:47:54 +00:00
|
|
|
<b-button
|
|
|
|
v-if="participation.event.participantStats.notApproved > 0"
|
|
|
|
type="is-text"
|
|
|
|
@click="
|
|
|
|
gotToWithCheck(participation, {
|
|
|
|
name: RouteName.PARTICIPATIONS,
|
|
|
|
query: { role: ParticipantRole.NOT_APPROVED },
|
|
|
|
params: { eventId: participation.event.uuid },
|
|
|
|
})
|
|
|
|
"
|
|
|
|
>
|
|
|
|
{{
|
|
|
|
$tc(
|
|
|
|
"{count} requests waiting",
|
|
|
|
participation.event.participantStats.notApproved,
|
|
|
|
{
|
|
|
|
count: participation.event.participantStats.notApproved,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}}
|
|
|
|
</b-button>
|
2019-09-26 14:38:58 +00:00
|
|
|
</span>
|
2021-06-11 16:31:24 +00:00
|
|
|
</div>
|
2019-09-26 14:38:58 +00:00
|
|
|
</div>
|
2021-06-11 16:31:24 +00:00
|
|
|
<div class="actions">
|
|
|
|
<b-dropdown aria-role="list" position="is-bottom-left">
|
|
|
|
<b-button slot="trigger" role="button" icon-right="dots-horizontal">
|
|
|
|
{{ $t("Actions") }}
|
|
|
|
</b-button>
|
|
|
|
|
|
|
|
<b-dropdown-item
|
|
|
|
v-if="
|
|
|
|
![
|
|
|
|
ParticipantRole.PARTICIPANT,
|
|
|
|
ParticipantRole.NOT_APPROVED,
|
|
|
|
].includes(participation.role)
|
|
|
|
"
|
|
|
|
aria-role="listitem"
|
|
|
|
@click="
|
|
|
|
gotToWithCheck(participation, {
|
|
|
|
name: RouteName.EDIT_EVENT,
|
|
|
|
params: { eventId: participation.event.uuid },
|
|
|
|
})
|
|
|
|
"
|
2020-02-18 07:57:00 +00:00
|
|
|
>
|
2021-06-11 16:31:24 +00:00
|
|
|
<b-icon icon="pencil" />
|
|
|
|
{{ $t("Edit") }}
|
|
|
|
</b-dropdown-item>
|
|
|
|
|
|
|
|
<b-dropdown-item
|
|
|
|
v-if="participation.role === ParticipantRole.CREATOR"
|
|
|
|
aria-role="listitem"
|
|
|
|
@click="
|
|
|
|
gotToWithCheck(participation, {
|
|
|
|
name: RouteName.DUPLICATE_EVENT,
|
|
|
|
params: { eventId: participation.event.uuid },
|
|
|
|
})
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<b-icon icon="content-duplicate" />
|
|
|
|
{{ $t("Duplicate") }}
|
|
|
|
</b-dropdown-item>
|
|
|
|
|
|
|
|
<b-dropdown-item
|
|
|
|
v-if="
|
|
|
|
![
|
|
|
|
ParticipantRole.PARTICIPANT,
|
|
|
|
ParticipantRole.NOT_APPROVED,
|
|
|
|
].includes(participation.role)
|
|
|
|
"
|
|
|
|
aria-role="listitem"
|
|
|
|
@click="openDeleteEventModalWrapper"
|
|
|
|
>
|
|
|
|
<b-icon icon="delete" />
|
|
|
|
{{ $t("Delete") }}
|
|
|
|
</b-dropdown-item>
|
|
|
|
|
|
|
|
<b-dropdown-item
|
|
|
|
v-if="
|
|
|
|
![
|
|
|
|
ParticipantRole.PARTICIPANT,
|
|
|
|
ParticipantRole.NOT_APPROVED,
|
|
|
|
].includes(participation.role)
|
|
|
|
"
|
|
|
|
aria-role="listitem"
|
|
|
|
@click="
|
|
|
|
gotToWithCheck(participation, {
|
|
|
|
name: RouteName.PARTICIPATIONS,
|
|
|
|
params: { eventId: participation.event.uuid },
|
|
|
|
})
|
|
|
|
"
|
|
|
|
>
|
|
|
|
<b-icon icon="account-multiple-plus" />
|
|
|
|
{{ $t("Manage participations") }}
|
|
|
|
</b-dropdown-item>
|
|
|
|
|
|
|
|
<b-dropdown-item aria-role="listitem" has-link>
|
|
|
|
<router-link
|
|
|
|
:to="{
|
|
|
|
name: RouteName.EVENT,
|
|
|
|
params: { uuid: participation.event.uuid },
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
<b-icon icon="view-compact" />
|
|
|
|
{{ $t("View event page") }}
|
|
|
|
</router-link>
|
|
|
|
</b-dropdown-item>
|
|
|
|
</b-dropdown>
|
|
|
|
</div>
|
2019-09-18 15:32:37 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-02-18 07:57:00 +00:00
|
|
|
</article>
|
2019-09-18 15:32:37 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2020-02-18 07:57:00 +00:00
|
|
|
import { Component, Prop } from "vue-property-decorator";
|
|
|
|
import DateCalendarIcon from "@/components/Event/DateCalendarIcon.vue";
|
|
|
|
import { mixins } from "vue-class-component";
|
2020-08-31 10:40:30 +00:00
|
|
|
import { RawLocation, Route } from "vue-router";
|
2020-11-27 18:27:44 +00:00
|
|
|
import { EventVisibility, ParticipantRole } from "@/types/enums";
|
|
|
|
import { IParticipant } from "../../types/participant.model";
|
2021-11-02 18:47:54 +00:00
|
|
|
import {
|
|
|
|
IEventCardOptions,
|
|
|
|
organizer,
|
|
|
|
organizerDisplayName,
|
|
|
|
} from "../../types/event.model";
|
2020-12-01 16:32:07 +00:00
|
|
|
import { displayNameAndUsername, IActor, IPerson } from "../../types/actor";
|
2020-02-18 07:57:00 +00:00
|
|
|
import ActorMixin from "../../mixins/actor";
|
|
|
|
import { CURRENT_ACTOR_CLIENT } from "../../graphql/actor";
|
|
|
|
import EventMixin from "../../mixins/event";
|
|
|
|
import RouteName from "../../router/name";
|
|
|
|
import { changeIdentity } from "../../utils/auth";
|
2020-06-15 17:41:11 +00:00
|
|
|
import PopoverActorCard from "../Account/PopoverActorCard.vue";
|
2021-11-02 18:47:54 +00:00
|
|
|
import LazyImageWrapper from "@/components/Image/LazyImageWrapper.vue";
|
2021-11-06 10:15:16 +00:00
|
|
|
import InlineAddress from "@/components/Address/InlineAddress.vue";
|
2021-11-02 18:47:54 +00:00
|
|
|
import { PropType } from "vue";
|
2019-09-18 15:32:37 +00:00
|
|
|
|
2019-10-05 19:17:18 +00:00
|
|
|
const defaultOptions: IEventCardOptions = {
|
|
|
|
hideDate: true,
|
|
|
|
loggedPerson: false,
|
|
|
|
hideDetails: false,
|
|
|
|
organizerActor: null,
|
2020-10-01 14:13:07 +00:00
|
|
|
memberofGroup: false,
|
2019-10-05 19:17:18 +00:00
|
|
|
};
|
|
|
|
|
2019-09-18 15:32:37 +00:00
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
DateCalendarIcon,
|
2020-06-15 17:41:11 +00:00
|
|
|
PopoverActorCard,
|
2021-11-02 18:47:54 +00:00
|
|
|
LazyImageWrapper,
|
2021-11-06 10:15:16 +00:00
|
|
|
InlineAddress,
|
2019-09-18 15:32:37 +00:00
|
|
|
},
|
|
|
|
apollo: {
|
|
|
|
currentActor: {
|
|
|
|
query: CURRENT_ACTOR_CLIENT,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
2021-11-02 18:47:54 +00:00
|
|
|
export default class EventParticipationCard extends mixins(
|
|
|
|
ActorMixin,
|
|
|
|
EventMixin
|
|
|
|
) {
|
2019-10-05 19:17:18 +00:00
|
|
|
/**
|
|
|
|
* The participation associated
|
|
|
|
*/
|
2021-11-02 18:47:54 +00:00
|
|
|
@Prop({ required: true, type: Object as PropType<IParticipant> })
|
|
|
|
participation!: IParticipant;
|
2020-02-18 07:57:00 +00:00
|
|
|
|
2019-10-05 19:17:18 +00:00
|
|
|
/**
|
|
|
|
* Options are merged with default options
|
|
|
|
*/
|
2020-02-18 07:57:00 +00:00
|
|
|
@Prop({ required: false, default: () => defaultOptions })
|
|
|
|
options!: IEventCardOptions;
|
2019-09-18 15:32:37 +00:00
|
|
|
|
|
|
|
currentActor!: IPerson;
|
|
|
|
|
|
|
|
ParticipantRole = ParticipantRole;
|
2020-02-18 07:57:00 +00:00
|
|
|
|
2019-09-18 15:32:37 +00:00
|
|
|
EventVisibility = EventVisibility;
|
2020-02-18 07:57:00 +00:00
|
|
|
|
2020-12-01 16:32:07 +00:00
|
|
|
displayNameAndUsername = displayNameAndUsername;
|
|
|
|
|
2021-11-02 18:47:54 +00:00
|
|
|
organizerDisplayName = organizerDisplayName;
|
|
|
|
|
|
|
|
organizer = organizer;
|
|
|
|
|
2019-10-03 10:32:20 +00:00
|
|
|
RouteName = RouteName;
|
2019-09-18 15:32:37 +00:00
|
|
|
|
|
|
|
get mergedOptions(): IEventCardOptions {
|
2019-10-05 19:17:18 +00:00
|
|
|
return { ...defaultOptions, ...this.options };
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Delete the event
|
|
|
|
*/
|
2020-08-31 10:40:30 +00:00
|
|
|
async openDeleteEventModalWrapper(): Promise<void> {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
2020-07-09 15:24:28 +00:00
|
|
|
// @ts-ignore
|
2020-11-19 16:06:28 +00:00
|
|
|
await this.openDeleteEventModal(this.participation.event);
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
|
|
|
|
2020-11-30 09:24:11 +00:00
|
|
|
async gotToWithCheck(
|
|
|
|
participation: IParticipant,
|
|
|
|
route: RawLocation
|
|
|
|
): Promise<Route> {
|
|
|
|
if (
|
|
|
|
participation.actor.id !== this.currentActor.id &&
|
|
|
|
participation.event.organizerActor
|
|
|
|
) {
|
2021-11-02 18:47:54 +00:00
|
|
|
const organizerActor = participation.event.organizerActor as IPerson;
|
|
|
|
await changeIdentity(this.$apollo.provider.defaultClient, organizerActor);
|
2019-10-13 14:24:43 +00:00
|
|
|
this.$buefy.notification.open({
|
2020-02-18 07:57:00 +00:00
|
|
|
message: this.$t(
|
|
|
|
"Current identity has been changed to {identityName} in order to manage this event.",
|
|
|
|
{
|
2021-11-02 18:47:54 +00:00
|
|
|
identityName: organizerActor.preferredUsername,
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
|
|
|
) as string,
|
|
|
|
type: "is-info",
|
|
|
|
position: "is-bottom-right",
|
2019-10-13 14:24:43 +00:00
|
|
|
duration: 5000,
|
|
|
|
});
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
return this.$router.push(route);
|
2019-10-13 14:24:43 +00:00
|
|
|
}
|
2020-12-01 16:32:07 +00:00
|
|
|
|
|
|
|
get organizerActor(): IActor | undefined {
|
|
|
|
if (
|
|
|
|
this.participation.event.attributedTo &&
|
|
|
|
this.participation.event.attributedTo.id
|
|
|
|
) {
|
|
|
|
return this.participation.event.attributedTo;
|
|
|
|
}
|
|
|
|
return this.participation.event.organizerActor;
|
|
|
|
}
|
2021-11-02 18:47:54 +00:00
|
|
|
|
|
|
|
get seatsLeft(): number | null {
|
|
|
|
if (this.participation.event.options.maximumAttendeeCapacity > 0) {
|
|
|
|
return (
|
|
|
|
this.participation.event.options.maximumAttendeeCapacity -
|
|
|
|
this.participation.event.participantStats.participant
|
|
|
|
);
|
|
|
|
}
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
get lastSeatsLeft(): boolean {
|
|
|
|
if (this.seatsLeft) {
|
|
|
|
return this.seatsLeft < 10;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2019-10-13 14:24:43 +00:00
|
|
|
<style lang="scss" scoped>
|
2021-11-04 17:14:36 +00:00
|
|
|
@use "@/styles/_mixins" as *;
|
2021-11-02 18:47:54 +00:00
|
|
|
@use "@/styles/_event-card";
|
|
|
|
@import "~bulma/sass/utilities/mixins.sass";
|
|
|
|
|
2020-02-18 07:57:00 +00:00
|
|
|
article.box {
|
|
|
|
div.tag-container {
|
|
|
|
position: absolute;
|
|
|
|
top: 10px;
|
|
|
|
right: 0;
|
2021-11-04 17:14:36 +00:00
|
|
|
@include margin-left(-5px);
|
2020-02-18 07:57:00 +00:00
|
|
|
z-index: 10;
|
|
|
|
max-width: 40%;
|
2019-09-18 15:32:37 +00:00
|
|
|
|
2020-02-18 07:57:00 +00:00
|
|
|
span.tag {
|
|
|
|
margin: 5px auto;
|
|
|
|
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 1);
|
|
|
|
/*word-break: break-all;*/
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow: hidden;
|
|
|
|
display: block;
|
|
|
|
/*text-align: right;*/
|
|
|
|
font-size: 1em;
|
|
|
|
/*padding: 0 1px;*/
|
|
|
|
line-height: 1.75em;
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2019-09-18 15:32:37 +00:00
|
|
|
|
2020-12-01 16:32:07 +00:00
|
|
|
.list-card {
|
|
|
|
display: flex;
|
2021-11-02 18:47:54 +00:00
|
|
|
padding: 0 6px 0 0;
|
2021-06-11 16:31:24 +00:00
|
|
|
position: relative;
|
|
|
|
flex-direction: column;
|
2019-10-13 14:24:43 +00:00
|
|
|
|
2021-06-11 16:31:24 +00:00
|
|
|
.content-and-actions {
|
2021-11-02 18:47:54 +00:00
|
|
|
display: grid;
|
|
|
|
grid-gap: 5px 10px;
|
|
|
|
grid-template-areas: "preview" "body" "actions";
|
|
|
|
|
|
|
|
@include tablet {
|
|
|
|
grid-template-columns: 1fr 3fr;
|
|
|
|
grid-template-areas: "preview body" "actions actions";
|
|
|
|
}
|
|
|
|
|
|
|
|
@include desktop {
|
|
|
|
grid-template-columns: 1fr 3fr 1fr;
|
|
|
|
grid-template-areas: "preview body actions";
|
|
|
|
}
|
|
|
|
|
|
|
|
.event-preview {
|
|
|
|
grid-area: preview;
|
|
|
|
|
|
|
|
& > div {
|
|
|
|
height: 128px;
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
div.date-component {
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 5px;
|
|
|
|
left: 5px;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
width: 100%;
|
|
|
|
object-position: center;
|
|
|
|
object-fit: cover;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-17 13:54:24 +00:00
|
|
|
|
2021-06-11 16:31:24 +00:00
|
|
|
.actions {
|
2021-11-02 18:47:54 +00:00
|
|
|
padding: 7px;
|
2021-06-11 16:31:24 +00:00
|
|
|
cursor: pointer;
|
2021-11-02 18:47:54 +00:00
|
|
|
align-self: center;
|
|
|
|
justify-self: center;
|
|
|
|
grid-area: actions;
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2019-10-13 14:24:43 +00:00
|
|
|
|
2021-06-11 16:31:24 +00:00
|
|
|
div.list-card-content {
|
|
|
|
flex: 1;
|
|
|
|
padding: 5px;
|
2021-11-02 18:47:54 +00:00
|
|
|
grid-area: body;
|
2019-10-13 14:24:43 +00:00
|
|
|
|
2021-11-02 18:47:54 +00:00
|
|
|
.participant-stats {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-06-11 16:31:24 +00:00
|
|
|
padding: 0 5px;
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
2020-06-17 13:54:24 +00:00
|
|
|
|
2021-06-11 16:31:24 +00:00
|
|
|
div.title-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding-top: 5px;
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
padding-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-line-clamp: 3;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
overflow: hidden;
|
2021-11-02 18:47:54 +00:00
|
|
|
font-size: 18px;
|
|
|
|
line-height: 24px;
|
2021-06-11 16:31:24 +00:00
|
|
|
margin: auto 0;
|
2021-11-02 18:47:54 +00:00
|
|
|
font-weight: bold;
|
|
|
|
color: $title-color;
|
2021-06-11 16:31:24 +00:00
|
|
|
}
|
2020-06-17 13:54:24 +00:00
|
|
|
}
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
2020-12-01 16:32:07 +00:00
|
|
|
}
|
|
|
|
}
|
2020-02-18 07:57:00 +00:00
|
|
|
|
2020-12-01 16:32:07 +00:00
|
|
|
.identity-header {
|
|
|
|
background: $yellow-2;
|
|
|
|
display: flex;
|
|
|
|
padding: 5px;
|
|
|
|
|
2021-11-02 18:47:54 +00:00
|
|
|
figure,
|
|
|
|
span.icon {
|
2021-11-04 17:14:36 +00:00
|
|
|
@include padding-right(3px);
|
2019-09-18 15:32:37 +00:00
|
|
|
}
|
|
|
|
}
|
2020-12-01 16:32:07 +00:00
|
|
|
|
|
|
|
& > .columns {
|
|
|
|
padding: 1.25rem;
|
|
|
|
}
|
|
|
|
padding: 0;
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2019-09-18 15:32:37 +00:00
|
|
|
</style>
|