From f7204b88d498347fb9a3811f27c2b4f74738034d Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 6 Sep 2014 19:11:51 -0500 Subject: [PATCH] Fix chain table spacing. --- static/style.css | 14 +++++++++++++- templates/index.mako | 14 ++++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/static/style.css b/static/style.css index c21d18d..331705e 100644 --- a/static/style.css +++ b/static/style.css @@ -76,6 +76,10 @@ div#cv-additional { display: none; } +div#cv-chain-container { + margin: 0 4px; +} + table#heading { width: 100%; } @@ -109,7 +113,7 @@ table#cv-result-sources tr:nth-child(even) { table#cv-chain-table { width: 100%; margin-bottom: 10px; - border-spacing: 10px 0; + border-spacing: 0; } tr#source-row-selected { @@ -208,6 +212,14 @@ td.cv-chain-cell { vertical-align: top; } +td.cv-chain-cell:first-child { + padding-right: 5px; +} + +td.cv-chain-cell:last-child { + padding-left: 5px; +} + input.cv-text { width: 100%; } diff --git a/templates/index.mako b/templates/index.mako index 6e6764b..a3aa9ec 100644 --- a/templates/index.mako +++ b/templates/index.mako @@ -224,11 +224,13 @@
  • Results generated in ${round(result.time, 3)} seconds using ${result.queries} queries.
  • % endif - - - - - -
    Article:

    ${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)}

    Source:

    ${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""}

    +
    + + + + + +
    Article:

    ${highlight_delta(result.article_chain, result.best.chains[1] if result.best else None)}

    Source:

    ${highlight_delta(result.best.chains[0], result.best.chains[1]) if result.best else ""}

    +
    % endif <%include file="/support/footer.mako"/>