PLT-5868 - Redesigning compact view (#5821)

* PLT-5868 - Redesigning compact view

* Improvements to compact view

* Updating compact view

* Updating webhook styles
Этот коммит содержится в:
Asaad Mahmood
2017-03-27 18:16:08 +05:00
коммит произвёл Christopher Speller
родитель b489a5bb01
Коммит 84dc60a640
4 изменённых файлов: 50 добавлений и 13 удалений

Просмотреть файл

@@ -677,6 +677,18 @@
.status { .status {
visibility: hidden; visibility: hidden;
} }
> div {
margin-bottom: 0;
}
}
&.same--root {
&.same--user {
.post__header {
height: 0;
}
}
} }
.post__img { .post__img {
@@ -728,19 +740,20 @@
} }
.markdown__heading { .markdown__heading {
clear: both; font-size: 1em;
margin: 7px 0; margin: 0;
} }
.post__header { .post__header {
height: 22px; height: 22px;
margin-bottom: 0;
} }
.post__body { .post__body {
background: transparent !important; background: transparent !important;
line-height: 1.6; line-height: 1.5;
margin-top: -1px; margin-top: -1px;
padding: 3px 0; padding: 3px 0 0;
.img-div { .img-div {
max-height: 150px; max-height: 150px;
@@ -761,6 +774,14 @@
clear: both; clear: both;
padding-left: 20px; padding-left: 20px;
} }
div {
margin-bottom: 0;
}
.post-image__column {
margin: 3px 0;
}
} }
.post-image__column { .post-image__column {
@@ -853,6 +874,7 @@
line-height: 1.6em; line-height: 1.6em;
margin: 0; margin: 0;
white-space: pre-wrap; white-space: pre-wrap;
width: 100%;
word-break: break-word; word-break: break-word;
} }

Просмотреть файл

@@ -74,12 +74,13 @@
} }
&.attachment__container--opengraph { &.attachment__container--opengraph {
padding-left: 5px;
border-left-style: none;
border-left-color: transparent; border-left-color: transparent;
border-left-style: none;
display: table; display: table;
margin: 0; margin: 0;
padding-bottom: 13px; padding-bottom: 13px;
padding-left: 5px;
table-layout: fixed;
width: 100%; width: 100%;
div { div {
@@ -125,9 +126,10 @@
.attachment__image__container--openraph { .attachment__image__container--openraph {
display: table-cell; display: table-cell;
vertical-align: top;
padding-top: 3px;
padding-left: 15px; padding-left: 15px;
padding-top: 3px;
vertical-align: top;
width: 95px;
} }
.attachment__image { .attachment__image {

Просмотреть файл

@@ -257,6 +257,18 @@
} }
&.post--compact { &.post--compact {
.post__img {
padding-top: 0;
}
&.same--root {
&.same--user {
.post__header {
height: auto;
}
}
}
.status-wrapper { .status-wrapper {
&:after { &:after {
bottom: 3px; bottom: 3px;

Просмотреть файл

@@ -242,7 +242,7 @@
left: -79px; left: -79px;
position: absolute; position: absolute;
text-align: right; text-align: right;
top: 6px; top: 3px;
width: 60px; width: 60px;
} }
@@ -261,7 +261,7 @@
} }
&:not(.post--thread) { &:not(.post--thread) {
padding: 5px .5em 0 77px; padding: 0 .5em 0 77px;
.post__link { .post__link {
margin: 4px 0 7px; margin: 4px 0 7px;
@@ -271,7 +271,7 @@
span { span {
p { p {
&:last-child { &:last-child {
margin-bottom: .3em; margin-bottom: 0;
} }
} }
} }
@@ -336,7 +336,7 @@
.flag-icon__container { .flag-icon__container {
left: -21px; left: -21px;
position: absolute; position: absolute;
top: 7px; top: 4px;
} }
.sidebar--right & .flag-icon__container { .sidebar--right & .flag-icon__container {
@@ -353,7 +353,7 @@
.flag-icon__container { .flag-icon__container {
left: -19px; left: -19px;
position: absolute; position: absolute;
top: 7px; top: 4px;
} }
.post__header { .post__header {
@@ -429,6 +429,7 @@
text-rendering: auto; text-rendering: auto;
top: -2px; top: -2px;
width: 51px; width: 51px;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }