philomena/assets/css/views/communication.css
2024-05-07 19:33:56 +02:00

145 lines
3.2 KiB
CSS

.communication__toolbar {
font-size: var(--font-size);
background: var(--secondary-color);
padding: 0 var(--padding-small);
line-height: var(--block-header-height);
border: 1px solid var(--secondary-border-color);
border-bottom: 0;
box-sizing: border-box;
}
.communication__toolbar__button {
color: var(--text-color);
background: 0;
border: 0;
padding: var(--padding-small);
}
.communication__toolbar__button:hover {
background: var(--secondary-muted-color);
}
.communication-edit__actions {
display: flex;
flex-direction: row;
line-height: var(--block-header-height);
border: 0;
margin: var(--padding-normal);
margin-top: 0;
gap: var(--padding-normal);
}
.communication__anonymous {
display: flex;
flex-direction: row;
line-height: ar(--block-header-height);
background: var(--secondary-color);
border: 1px solid var(--secondary-border-color);
}
.communication__anonymous--checkbox {
padding: 0 var(--padding-small);
border-right: 1px solid var(--secondary-border-color);
}
.communication__anonymous--label {
padding: 0 var(--padding-small);
}
.communication > .block__content:first-of-type {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.communication > .block__content:last-of-type {
background: var(--primary-muted-color);
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.communication__body {
display: block;
overflow: hidden;
}
.communication__body__text {
border-radius: var(--border-radius-inner);
word-wrap: break-word;
}
.communication__sender-name {
display: flex;
align-items: center;
gap: var(--padding-normal);
}
.communication__sender-block {
display: flex;
flex-direction: column;
background: var(--primary-muted-color);
border-radius: var(--border-radius-inner);
padding: var(--padding-small);
}
@mixin if-mobile {
.communication__body__text {
margin-top: var(--padding-normal);
}
.communication__sender-block {
flex-direction: row;
gap: var(--padding-normal);
align-items: center;
}
.communication__sender-block > .image-constrained {
min-height: var(--avatar-small-size);
min-width: var(--avatar-small-size);
}
}
.communication__interaction {
display: inline-block;
background: var(--secondary-muted-color);
color: var(--secondary-link-color) !important;
padding: var(--padding-tiny);
border-radius: var(--border-radius-inner);
margin-left: var(--padding-small);
}
.communication__interaction:first-child {
margin: 0;
}
.communication__info {
display: inline-block;
background: var(--information-muted-color);
padding: var(--padding-tiny);
border-radius: var(--border-radius-inner);
margin-left: var(--padding-small);
}
.communication__info > a {
color: var(--information-link-color);
}
.togglable-delete-form, .togglable-delete-form-link {
margin-top: var(--padding-small) !important;
}
.togglable-delete-form-link {
background: var(--danger-muted-color);
color: var(--danger-link-color) !important;
}
.owner-options {
margin-left: var(--padding-small);
}
@mixin if-mobile {
.communication__options > *:first-child {
display: flex;
flex-direction: column;
gap: var(--padding-small);
}
}