Refactor tweet/timeline views

This commit is contained in:
Zed
2019-09-13 19:57:27 +02:00
parent a687188dd1
commit eeae28da0c
8 changed files with 107 additions and 136 deletions

View File

@@ -7,25 +7,17 @@
@import 'poll';
@import 'quote';
.status-el {
overflow-wrap: break-word;
border-left-width: 0;
min-width: 0;
padding: .75em;
display: flex;
.status-content {
font-family: $font_3;
line-height: 1.4em;
}
}
.status-body {
.tweet-body {
flex: 1;
min-width: 0;
margin-left: 58px;
}
.tweet-content {
font-family: $font_3;
line-height: 1.4em;
}
.tweet-header {
padding: 0;
vertical-align: bottom;
@@ -79,7 +71,6 @@
float: left;
margin-top: 3px;
margin-left: -58px;
position: absolute;
width: 48px;
height: 48px;
border-radius: 50%;

View File

@@ -10,7 +10,7 @@
background-color: $bg_panel;
}
.main-tweet .status-content {
.main-tweet .tweet-content {
font-size: 20px;
}
@@ -20,7 +20,7 @@
}
.thread-line {
.status-el::before {
.timeline-item::before {
background: $accent_dark;
content: '';
position: relative;
@@ -53,7 +53,7 @@
}
}
.thread-last .status-el::before {
.timeline-item.thread-last::before {
background: unset;
min-width: unset;
width: 0;