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

265 lines
6.0 KiB
SCSS
Raw Normal View History

2018-09-19 07:03:07 +02:00
@import "variables";
2019-04-14 05:04:19 +02:00
@import "commons";
2019-07-07 23:22:48 +02:00
.status-wrapper {
position: relative;
}
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;
}
}
2019-07-04 06:03:12 +02:00
.direct-message {
background-color: $direct-message-background;
}
2019-08-14 05:56:47 +02:00
.status-selected {
background-color: #0f111a;
background-color: desaturate(lighten(#0f111a, 5%), 4%);
2019-08-15 03:11:22 +02:00
background-color: #0a0a10;
2019-08-16 01:14:14 +02:00
background-color: #1e2734;
2020-04-18 06:45:27 +02:00
background-color: $selected-status;
2019-08-14 05:56:47 +02:00
}
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
}
}
2019-02-24 20:49:02 +01:00
&__labels {
position: absolute;
top: 65px;
left: 10px;
width: 50px;
cursor: default;
&--label {
text-transform: uppercase;
text-align: center;
font-size: 7px;
margin-bottom: 3px; // color: #000;
border-radius: 2px; //border: 1px solid greenyellow;
padding-top: 1px;
}
&--bot {
background-color: rgb(0, 225, 255);
background-color: rgb(0, 159, 180);
background-color: rgb(0, 114, 129);
}
&--xpost {
background-color: rgb(255, 153, 0);
background-color: rgb(189, 113, 0);
background-color: rgb(156, 94, 0);
}
2019-02-24 20:49:02 +01:00
&--thread {
background-color: rgb(0, 187, 84);
background-color: rgb(0, 136, 61);
background-color: rgb(0, 114, 51);
}
2019-03-01 06:59:12 +01:00
&--discuss {
background-color: rgb(90, 0, 143);
}
2019-06-18 03:49:18 +02:00
&--old {
background-color: rgb(150, 0, 0);
}
2020-04-07 03:54:31 +02:00
&--remote {
background-color: rgb(161, 64, 140);
background-color: rgb(33, 69, 136);
background-color: rgb(38, 77, 148);
}
}
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 {
2018-09-27 06:50:42 +02:00
word-wrap: break-word;
margin: 0 10px 0 $avatar-column-space;
display: block;
2019-02-24 20:34:15 +01:00
}
2019-05-02 12:26:12 +02:00
&__card {
word-wrap: break-word;
2019-06-04 08:31:51 +02:00
margin: 10px 10px 0 $avatar-column-space;
display: block;
}
&__poll {
word-wrap: break-word;
2019-05-02 12:26:12 +02:00
margin: 10px 10px 0 $avatar-column-space;
display: block;
}
2019-02-24 20:34:15 +01:00
&__content-warning {
2019-02-24 21:44:02 +01:00
min-height: 80px;
display: block;
2019-02-24 20:34:15 +01:00
margin: 0 10px 0 $avatar-column-space;
2021-01-21 03:59:14 +01:00
padding: 3px 5px 14px 5px;
overflow-wrap: break-word;
2019-03-02 07:16:37 +01:00
2019-02-24 20:34:15 +01:00
text-decoration: none;
text-align: center;
2019-03-02 07:16:37 +01:00
text-align: left;
2019-02-24 20:34:15 +01:00
position: relative;
2019-03-02 07:16:37 +01:00
border: 3px solid $status-secondary-color;
color: whitesmoke;
2019-02-24 20:34:15 +01:00
&--title {
2019-03-02 07:16:37 +01:00
color: $content-warning-font-color;
2019-02-24 20:34:15 +01:00
font-size: 11px;
display: block;
width: calc(100%);
text-align: center;
2019-03-02 07:16:37 +01:00
text-align: right;
position: absolute;
bottom: 0px;
right: 4px;
2019-02-24 20:34:15 +01:00
}
}
&__created-at {
2018-09-19 07:03:07 +02:00
position: absolute;
2018-09-21 03:52:04 +02:00
top: 7px;
right: 5px;
&--link {
color: $status-secondary-color;
text-decoration: none;
&:hover {
color: lighten($status-secondary-color, 20);
}
}
2018-09-19 07:03:07 +02:00
}
&__navigation{
display: block;
position: absolute;
top:65px;
bottom: 40px;
width: 65px;
min-height: 40px;
// outline: 1px solid greenyellow;
}
}
2018-09-27 06:50:42 +02:00
.attachments {
display: block; // width: calc(100% - 80px);
margin: 10px 10px 0 $avatar-column-space;
}
.notification {
position: relative;
&--icon {
position: absolute;
top: 5px;
left: 43px;
text-align: center;
width: 20px;
// outline: 1px dotted greenyellow;
}
&--label {
margin: 0 10px 0 $avatar-column-space;
padding-top: 5px;
}
&--link {
color: $status-links-color;
}
&--status:not(.reply-section) {
opacity: 0.65;
}
&--avatar {
position: absolute;
top: 35px;
left: 30px;
width: 30px;
height: 30px;
border-radius: 2px;
z-index: 10;
}
// &:not(:last-child) {
// border: solid #06070b;
// border-width: 0 0 1px 0;
// }
}
.boost {
color: $boost-color;
}
.favorite {
color: $favorite-color;
}
2019-07-07 23:45:17 +02:00
.pinned {
&__icon{
position: absolute;
top: 2px;
color: $status-secondary-color;
font-size: 12px;
}
&__label{
color: $status-secondary-color;
}
}