From 47aab71e6b62c01ae66389aec39bec7fb2a0435f Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 23 Sep 2015 23:37:36 +0500 Subject: Markdown UI improvements with small description height fix --- web/sass-files/sass/partials/_headers.scss | 1 + web/sass-files/sass/partials/_markdown.scss | 28 ++++++++++++++++++++++++++++ web/sass-files/sass/styles.scss | 1 + 3 files changed, 30 insertions(+) create mode 100644 web/sass-files/sass/partials/_markdown.scss (limited to 'web/sass-files') diff --git a/web/sass-files/sass/partials/_headers.scss b/web/sass-files/sass/partials/_headers.scss index 702f0fd60..eaa31c8ed 100644 --- a/web/sass-files/sass/partials/_headers.scss +++ b/web/sass-files/sass/partials/_headers.scss @@ -39,6 +39,7 @@ text-overflow: ellipsis; color: #888; margin-top: 2px; + max-height: 45px; } &.popover { white-space: normal; diff --git a/web/sass-files/sass/partials/_markdown.scss b/web/sass-files/sass/partials/_markdown.scss new file mode 100644 index 000000000..c09e9d7b4 --- /dev/null +++ b/web/sass-files/sass/partials/_markdown.scss @@ -0,0 +1,28 @@ +.markdown__heading { + font-weight: bold; +} +.markdown__table { + background: #fff; + margin: 5px 0 10px; + th, td { + padding: 6px 13px; + border: 1px solid #ddd; + } + tbody tr { + background: #fff; + &:nth-child(2n) { + background-color: #f8f8f8; + } + } +} +pre { + border: none; + background-color: #f7f7f7; + margin: 5px 0; + .current--user & { + background: #fff; + } + code { + color: #c7254e; + } +} \ No newline at end of file diff --git a/web/sass-files/sass/styles.scss b/web/sass-files/sass/styles.scss index de1db57e8..be6641870 100644 --- a/web/sass-files/sass/styles.scss +++ b/web/sass-files/sass/styles.scss @@ -36,6 +36,7 @@ @import "partials/error-bar"; @import "partials/loading"; @import "partials/get-link"; +@import "partials/markdown"; // Responsive Css @import "partials/responsive"; -- cgit v1.2.3-1-g7c22