From b2320752f89f592b3dab5ac501b2b00bc1fb4a9b Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Sun, 3 May 2015 21:16:24 -0700 Subject: [PATCH] Tweaks style of markdown tables to auto-resize --- src/coffee/controllers/markdown_section_controller.coffee | 2 -- src/scss/markdown.scss | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/coffee/controllers/markdown_section_controller.coffee b/src/coffee/controllers/markdown_section_controller.coffee index 36760ba4d..2226ab5bc 100644 --- a/src/coffee/controllers/markdown_section_controller.coffee +++ b/src/coffee/controllers/markdown_section_controller.coffee @@ -53,8 +53,6 @@ module.exports = class MarkdownSectionController extends BaseController # Private Methods ############################################################################## - _ - _convertImageLinks: (text)-> text.replace /\!\[([^\]]*)\]\(([^\)]*)\)/g, (match, altText, fileName)=> return "![#{altText}](#{@imageBase}/#{fileName})" diff --git a/src/scss/markdown.scss b/src/scss/markdown.scss index 761ff7ac1..11fb99e2e 100644 --- a/src/scss/markdown.scss +++ b/src/scss/markdown.scss @@ -36,13 +36,12 @@ All rights reserved. } table { - margin-top: 2em; - position: relative; width: 100%; + margin: 2em auto 0 auto; td { font-family: $font-family-normal; font-size: $font-size-normal; - padding: 0.1em 0.5em; + padding: 0.1em 1em; vertical-align: middle; } @@ -50,6 +49,7 @@ All rights reserved. font-family: $font-family-normal; font-size: $font-size-normal; font-weight: bold; + padding: 0.1em 1em; vertical-align: middle; text-align: center; }