Files
astuto/app/assets/stylesheets/components/Post.scss

183 lines
3.1 KiB
SCSS
Raw Normal View History

.postContainer {
@extend .twoColumnsContainer;
2019-09-30 16:54:37 +02:00
@include media-breakpoint-down(sm) {
flex-direction: column;
.postAndCommentsContainer { width: 100%; }
}
.sidebar {
2019-10-01 19:15:03 +02:00
.postUpdateListContainer {
.postUpdateList {
@extend
.scroll-shadows,
.w-100;
2019-10-01 19:15:03 +02:00
max-height: 250px;
overflow-y: scroll;
.postUpdateListItem {
@extend
.d-flex,
.flex-column,
.p-2;
&:after { // displays the little centered border under each post update
content: "";
display: block;
margin: 0 auto;
width: 25%;
padding-top: 16px;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
2019-10-01 19:15:03 +02:00
.postUpdateListItemHeader {
@extend .d-flex;
span {
@extend
.ml-2;
font-weight: 600;
vertical-align: middle;
}
}
.postUpdateListItemBody {
@extend .my-1;
2019-10-01 19:15:03 +02:00
font-size: 15px;
2022-06-06 20:20:03 +02:00
p { margin: 0; } // <p> tag generated by ReactMarkdown component
2019-10-01 19:15:03 +02:00
}
}
}
}
2019-09-30 18:10:51 +02:00
.likeListContainer {
.likeList {
@extend
.scroll-shadows,
.w-100;
2019-09-30 18:10:51 +02:00
max-height: 170px;
overflow-y: scroll;
overflow-x: hidden;
2019-09-30 18:10:51 +02:00
.likeListItem {
@extend
.d-flex,
2019-09-30 18:10:51 +02:00
.p-2,
.my-1;
.gravatar {
@extend .align-self-center;
}
.likeListItemUserInfo {
@extend
.d-flex,
.flex-column,
.ml-3;
}
.likeListItemEmail {
@extend .mutedText;
font-size: 13px;
2019-09-30 18:10:51 +02:00
}
}
}
}
.actionBoxContainer {
@extend .text-center;
.checkboxSwitch {
@extend
.mt-1,
.mb-2;
}
}
2019-09-30 16:54:37 +02:00
}
.postAndCommentsContainer {
@extend
.card,
.flex-grow-1,
2020-01-05 11:25:38 +01:00
.p-3,
.mb-3;
2019-09-21 12:54:57 +02:00
.postInfo {
2024-07-12 20:38:46 +02:00
@extend
.d-flex,
.mb-2;
2019-09-21 12:54:57 +02:00
span {
@extend .mr-2;
}
}
2019-09-25 11:50:23 +02:00
.postHeader {
@extend
.d-flex,
.mb-3;
2019-09-25 11:50:23 +02:00
a {
@extend
.ml-1;
line-height: 1em;
}
}
2019-09-21 12:54:57 +02:00
.postSettings {
@extend
.d-flex,
.justify-content-between;
}
.postDescription {
@extend
.my-4;
2024-01-23 18:50:42 +01:00
color: var(--astuto-black);
p:last-child {
@extend .mb-0;
}
}
.postFooter {
.postAuthor {
@extend
.mutedText,
.mb-2;
.postAuthorAvatar { @extend .gravatar; }
}
2022-08-22 10:38:03 +02:00
.postFooterActions { @extend .d-flex; }
}
.postEditForm {
.form-control {
@extend .my-3;
}
.postDescription {
height: 150px;
min-height: 150px;
resize: vertical;
}
.postEditFormButtons {
2022-08-22 10:38:03 +02:00
@extend .d-flex, .justify-content-end;
}
2024-03-02 18:36:22 +01:00
#selectPickerBoard { margin-right: 4px !important; }
#selectPickerStatus { margin-left: 4px !important; }
}
}
}