summaryrefslogtreecommitdiffstats
path: root/webapp/sass/layout/_post.scss
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmood@users.noreply.github.com>2017-01-27 20:15:14 +0500
committerCorey Hulen <corey@hulen.com>2017-01-27 10:15:14 -0500
commit28124d8476e456b32dd9ed14435170edd979b38d (patch)
tree3f799ca9ab05b19a25e232ff24d6519d6d9ad975 /webapp/sass/layout/_post.scss
parente07e9937e0e0ae4fcb2a51553238a7566d1e4c67 (diff)
downloadchat-28124d8476e456b32dd9ed14435170edd979b38d.tar.gz
chat-28124d8476e456b32dd9ed14435170edd979b38d.tar.bz2
chat-28124d8476e456b32dd9ed14435170edd979b38d.zip
Fixing various issues with markdown spacing (#5203)
Diffstat (limited to 'webapp/sass/layout/_post.scss')
-rw-r--r--webapp/sass/layout/_post.scss44
1 files changed, 23 insertions, 21 deletions
diff --git a/webapp/sass/layout/_post.scss b/webapp/sass/layout/_post.scss
index 9448ad767..fd839a0dd 100644
--- a/webapp/sass/layout/_post.scss
+++ b/webapp/sass/layout/_post.scss
@@ -440,7 +440,7 @@
&.btn-file__disabled {
@include opacity(.1);
-
+
&:hover,
&:active {
@include opacity(.1);
@@ -613,10 +613,12 @@
p + p {
margin: 1em 0;
+
&:last-of-type {
margin-bottom: 0;
}
}
+
span {
> p:first-child {
margin-bottom: 1em;
@@ -706,6 +708,14 @@
position: relative;
}
+ .post--edited {
+ p {
+ &:last-child {
+ display: inline;
+ }
+ }
+ }
+
p {
font-size: .97em;
line-height: 1.6em;
@@ -1005,27 +1015,13 @@
}
p + p {
- margin: 1.4em 0;
+ margin: 1.2em 0;
+
&:last-of-type {
margin-bottom: 0;
}
}
- span {
- > p:last-child {
- display: inline;
- }
- > p:first-child {
- margin-bottom: 1.4em;
- }
- }
-
- li {
- > p {
- margin-top: 10px;
- }
- }
-
img {
max-height: 400px;
}
@@ -1083,6 +1079,11 @@
}
}
+ ul + p,
+ ol + p {
+ margin-top: 1.2em;
+ }
+
.pending-post-actions {
background: alpha-property($black, .7);
color: $white;
@@ -1098,10 +1099,11 @@
}
}
- span.edited {
- color: #A3A3A3;
- font-size: 0.87em;
- opacity: 0.6;
+ span {
+ &.edited {
+ @include opacity(.6);
+ font-size: .87em;
+ }
}
}