From 45a5e3d1c5b76b8d83caf3bfec730cdbab7bdae2 Mon Sep 17 00:00:00 2001 From: theworldbright Date: Sun, 31 May 2015 23:17:17 +0900 Subject: [PATCH] Change markdown-content hr style #5987 The
tag in the markdown-content was #eee, and thus almost invisible. It has been changed to $border-gray (currently #ddd) to be consistent with the other
tags. Adjust markdown-content hr style further The hr tag is now centered at 85% width. It also adds a default vertical margin that is equivalent to the 0.8em the paragraph tags provide. Refactor scss for markdown-content hr Closes #6016 --- Changelog.md | 1 + app/assets/stylesheets/stream_element.scss | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index e30e25e15..a7b339877 100644 --- a/Changelog.md +++ b/Changelog.md @@ -21,6 +21,7 @@ * Remove zip-zip workaround gem [#6001](https://github.com/diaspora/diaspora/pull/6001) * Cleanup and reorganize image assets [#6004](https://github.com/diaspora/diaspora/pull/6004) * Replace vendored assets for facebox by gem [#6005](https://github.com/diaspora/diaspora/pull/6005) +* Improve styling of horizontal ruler in posts [#6016](https://github.com/diaspora/diaspora/pull/6016) ## Bug fixes * Disable auto follow back on aspect deletion [#5846](https://github.com/diaspora/diaspora/pull/5846) diff --git a/app/assets/stylesheets/stream_element.scss b/app/assets/stylesheets/stream_element.scss index 1e43245e3..0041de0da 100644 --- a/app/assets/stylesheets/stream_element.scss +++ b/app/assets/stylesheets/stream_element.scss @@ -109,7 +109,11 @@ .collapsible { overflow: hidden; position: relative; - + .markdown-content hr { + width: 85%; + margin: 0.8em auto; + border-top: 1px solid $border-grey; + } .expander { position: absolute; bottom: 0;