diaspora/app/assets/stylesheets/mobile/comments.scss
2023-11-13 02:27:55 +01:00

135 lines
2.3 KiB
SCSS

.bottom-bar {
z-index: 3;
padding: 8px 10px 10px;
background: $background-grey;
margin-top: 10px;
border-top: 1px solid $border-grey;
min-height: 22px;
overflow: hidden;
&,
.comment-stats {
border-bottom-left-radius: $border-radius-small;
border-bottom-right-radius: $border-radius-small;
}
.post-actions-container {
display: flex;
justify-content: space-between;
}
> a,
.show-comments,
.show-comments > [class^="entypo"] {
@include transition(color);
color: $text-grey;
font-weight: bold;
}
.show-comments {
position: relative;
top: 3px;
> [class^="entypo"] { margin-left: .5em; }
&:hover,
&:active,
&:focus {
outline: none;
text-decoration: none;
}
&.active:not(.bottom_collapse),
&.active:not(.bottom_collapse) > [class^="entypo"] {
color: $text-color;
}
}
%stats {
position: relative;
display: flex;
.count {
color: $text-color;
font-family: $font-family-base;
font-size: $font-size-base;
line-height: 24px;
margin-left: 5px;
vertical-align: text-bottom;
z-index: 2;
}
[class^="entypo"] {
color: $text-grey;
font-size: 24px;
line-height: 24px;
margin: 0;
width: 100%;
}
[class^="entypo"]:hover,
[class^="entypo"]:active,
[class^="entypo"]:focus {
text-decoration: none;
}
.entypo-reshare.active { color: $blue; }
.entypo-heart.active { color: $red; }
}
.post-stats {
@extend %stats;
}
.comment-stats {
@extend %stats;
background: $background-grey;
border-top: 1px solid $border-grey;
flex-direction: row-reverse;
padding: 3px;
}
%action {
display: flex;
margin: 0 7px;
.disabled { color: $medium-gray; }
}
.post-action {
@extend %action;
}
.comment-action {
@extend %action;
}
.add-comment-switcher { padding-top: 10px; }
&.inactive {
padding-bottom: 8px;
.comment-container {
display: none;
}
}
}
.stream-element .comments {
margin: 0;
padding: 0;
width: 100%;
.content { padding: 0; }
.comment {
background-color: $framed-background;
border: 1px solid $border-medium-grey;
border-radius: 5px;
margin-top: 10px;
.media {
padding: 6px;
}
}
}