Sengi-Windows-MacOS-Linux/src/app/components/stream/status/status.component.scss

124 lines
2.8 KiB
SCSS
Raw Normal View History

2018-09-19 07:03:07 +02:00
@import "variables";
2018-09-27 06:50:42 +02:00
$avatar-column-space: 70px;
2018-09-21 04:51:18 +02:00
.reblog {
position: relative;
margin: 5px 0 0 10px;
font-size: 12px;
color: $status-secondary-color;
&__profile-link {
2018-09-27 06:50:42 +02:00
color: $status-secondary-color; // margin: 7px 0 0 70px;
2018-09-21 04:51:18 +02:00
// display: block;
2018-09-27 06:50:42 +02:00
text-decoration: none; // overflow: hidden;
2018-09-21 04:51:18 +02:00
&:hover {
color: lighten($status-secondary-color, 20);
}
}
2018-09-27 06:50:42 +02:00
&__avatar {
2018-09-21 04:51:18 +02:00
position: absolute;
top: 50px;
2018-09-27 06:50:42 +02:00
left: 20px;
2018-09-21 04:51:18 +02:00
width: 30px;
height: 30px;
border-radius: 2px;
z-index: 10;
}
}
2018-09-19 07:03:07 +02:00
.status {
margin: 0;
padding: 0;
width: calc(100%);
min-height: 70px;
overflow: hidden;
2018-09-19 07:03:07 +02:00
position: relative;
&__avatar {
2018-09-19 07:03:07 +02:00
position: absolute;
top: 10px;
left: 10px; // margin: 10px 0 0 10px;
/* margin: 0; */
width: 50px;
2018-09-19 07:03:07 +02:00
height: 50px; // float: left;
border-radius: 2px;
2018-09-27 06:50:42 +02:00
&--boosted {
2018-09-21 04:51:18 +02:00
position: absolute;
top: 10px;
2018-09-27 06:50:42 +02:00
left: 10px;
2018-09-21 04:51:18 +02:00
width: 40px;
height: 40px;
border-radius: 2px;
2018-09-27 06:50:42 +02:00
}
}
2018-09-21 04:51:18 +02:00
&__name {
2018-09-21 03:52:04 +02:00
display: inline-block;
width: calc(100% - 40px);
white-space: nowrap;
2018-09-21 04:51:18 +02:00
overflow: hidden; // border: 1px dotted greenyellow;
2018-09-21 03:52:04 +02:00
&--displayname {
display: inline-block;
color: $status-primary-color;
}
&--username {
display: inline-block;
2018-09-21 04:51:18 +02:00
margin-left: 5px; // position: relative;
2018-09-21 03:52:04 +02:00
// top: 1px;
}
}
&__profile-link {
2018-09-19 07:03:07 +02:00
color: $status-secondary-color;
2018-09-27 06:50:42 +02:00
margin: 7px 0 0 $avatar-column-space;
display: block;
2018-09-19 07:03:07 +02:00
text-decoration: none;
overflow: hidden;
2018-09-21 04:51:18 +02:00
&:hover {
color: lighten($status-secondary-color, 20);
}
}
&__content {
/*width: calc(100% - 50px);*/
2018-09-27 06:50:42 +02:00
word-wrap: break-word;
margin: 0px 10px 10px $avatar-column-space;
}
&__content p {
margin: 0;
font-size: 0.85em;
}
2018-09-19 07:03:07 +02:00
&__created-at {
color: $status-secondary-color;
position: absolute;
2018-09-21 03:52:04 +02:00
top: 7px;
right: 5px;
2018-09-19 07:03:07 +02:00
}
}
2018-09-19 07:03:07 +02:00
//Mastodon styling
:host ::ng-deep .status__content {
color: $status-primary-color;
& a,
.mention,
.ellipsis {
color: $status-links-color;
}
& .invisible {
display: none;
}
2018-09-21 05:27:04 +02:00
}
2018-09-27 06:50:42 +02:00
.attachments {
2018-09-21 05:27:04 +02:00
width: calc(100% - 80px);
2018-09-27 06:50:42 +02:00
margin: 0px 10px 10px $avatar-column-space;
}
.action-bar {
// outline: 1px solid greenyellow; // height: 20px;
margin: 0px 10px 10px $avatar-column-space;
font-size: 24px;
&__link {
color: $status-secondary-color;
&:hover {
color: $status-links-color;
}
&:not(:last-child) {
margin-right: 15px;
}
}
2018-09-19 07:03:07 +02:00
}