discourse-calendar/assets/stylesheets/common/discourse-post-event.scss

284 lines
4.8 KiB
SCSS

.discourse-post-event {
display: flex;
.discourse-post-event-widget {
border: 5px solid $primary-low;
display: flex;
background: $secondary;
margin: 5px 0;
flex-direction: column;
flex: 1 0 auto;
.widget-dropdown {
margin: 0;
.widget-dropdown-header.disabled {
pointer-events: none;
}
.widget-dropdown-item {
.d-icon + span {
margin-left: 0.5em;
}
}
}
}
&.is-loading {
align-items: center;
justify-content: center;
}
&.has-event {
display: flex;
flex-direction: column;
}
.event-header {
display: flex;
align-items: center;
padding: 0 1em;
height: 75px;
.more-dropdown {
margin-left: auto;
align-self: flex-start;
margin-top: 1em;
.widget-dropdown {
.widget-dropdown-header {
.d-icon {
margin: 0;
}
.label {
display: none;
}
}
}
}
}
.event-date {
display: flex;
flex-direction: column;
width: auto;
margin-right: 1em;
.month {
text-align: center;
color: red;
font-size: $font-down-1;
text-transform: uppercase;
}
.day {
text-align: center;
font-weight: 500;
font-size: $font-up-2;
}
}
.event-info {
display: flex;
flex-direction: column;
.name {
font-weight: 700;
@include ellipsis;
max-width: 45vw;
}
.status-and-creators {
display: inline-flex;
align-items: center;
margin-bottom: 0.25em;
}
.status-and-creators {
color: $primary-medium;
font-size: $font-down-1;
.separator {
margin: 0 0.25em;
}
.status {
&.expired {
color: $danger-medium;
}
.d-icon {
margin-right: 0.5em;
}
}
}
}
.event-actions {
display: flex;
justify-content: space-between;
align-items: center;
height: 60px;
padding: 0 1em;
.event-status {
margin: 0;
&.status-going {
.widget-dropdown-header {
.d-icon-check {
color: $success;
}
}
.item-going {
font-weight: 700;
}
}
&.status-interested {
.item-interested {
font-weight: 700;
}
.widget-dropdown-header {
.d-icon-star {
color: $tertiary;
}
}
}
&.status-not_going {
.item-not_going {
font-weight: 700;
}
}
}
}
.event-creator {
.username {
margin-left: 0.25em;
}
}
.event-invitees {
display: flex;
height: 110px;
padding: 0 1em;
align-items: flex-start;
justify-content: center;
overflow-y: auto;
flex-direction: column;
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1em;
width: 100%;
.show-all {
margin-left: 0.5em;
}
.event-invitees-status {
font-weight: 700;
.invited {
font-weight: 500;
color: $primary-medium;
}
}
}
.event-invitees-avatars {
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
width: 100%;
.event-invitee {
list-style: none;
margin-right: 0.5em;
margin-bottom: 0.5em;
opacity: 0.25;
&.status-going,
&.status-not_going,
&.status-interested {
opacity: 1;
}
}
.topic-invitee-avatar {
position: relative;
display: flex;
.avatar-flair {
position: absolute;
right: 0;
bottom: 0;
background: $secondary;
border-radius: 50%;
height: 16px;
width: 16px;
display: flex;
align-items: center;
justify-content: center;
color: $primary-medium;
border: 1px solid $primary-low;
&.avatar-flair-status-going {
color: $success;
}
&.avatar-flair-status-not_going {
color: $danger;
}
.d-icon {
font-size: $font-down-3;
}
}
}
}
}
hr {
margin: 0;
}
.event-dates {
display: flex;
align-items: center;
padding: 0 1em;
height: 50px;
.participants {
margin-left: 0.5em;
color: $primary-medium;
}
.d-icon {
color: $primary-high;
}
.date {
color: $primary-high;
margin-left: 1em;
.discourse-local-date {
.d-icon {
display: none;
}
}
}
.separator {
color: $primary-high;
margin: 0 0.5em;
text-align: center;
}
}
}