From 2c855648098d6cf5fd694b77ec0372cfc3326edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20Juli=C3=A1n?= Date: Wed, 27 Aug 2014 15:15:16 +0200 Subject: [PATCH] Improved markdown styles based on example --- app/styles/components/wysiwyg.scss | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/app/styles/components/wysiwyg.scss b/app/styles/components/wysiwyg.scss index 52556031..1d585684 100644 --- a/app/styles/components/wysiwyg.scss +++ b/app/styles/components/wysiwyg.scss @@ -18,24 +18,46 @@ ul, ol { list-style-position: inside; + margin-left: 1rem; } ul { list-style-type: disc; } + dl { + dt { + font-size: 1em; + font-style: italic; + font-weight: bold; + margin-top: 16px; + padding: 0; + } + dd { + margin-bottom: 16px; + padding: 0 16px; + } + } a { color: $green-taiga; &:hover { color: $fresh-taiga; } } - pre { + p { + margin-bottom: 1rem; + } + pre, + code { background: $whitish; direction: ltr; font-family: 'courier new', 'monospace'; - padding: 1rem; + margin-bottom: 1rem; unicode-bidi: embed; white-space: pre; } + pre { + line-height: 135%; + padding: .5rem; + } table { border: $gray-light 1px solid; margin-bottom: 1rem;