~sirn/fanboi2

9f07aeb87bd58843568b5d120c6ed883ee62d013 — Kridsada Thanabulpong 4 years ago 572ca87
Styling for pages.
M assets/app/stylesheets/app.scss => assets/app/stylesheets/app.scss +21 -0
@@ 448,3 448,24 @@ textarea.input {
    word-break: break-all;
    word-wrap: break-word;
}

/* Content
 * ------------------------------------------------------------------------ */

.content {
    font-size: $font-size;
    line-height: $line-height-content;

    h1 { font-size: $font-size-larger; }
    h2 { font-size: $font-size-large; }
    h3, h4, h5 { font-size: $font-size; }

    h1, h2, h3, h4, h5, p, ul, ol {
        margin: 0 0 $spacing-vertical;
        padding: 0;
    }

    ul, ol {
        padding: 0 $spacing-horizontal-larger 0;
    }
}

M assets/app/stylesheets/themes/obsidian.scss => assets/app/stylesheets/themes/obsidian.scss +4 -0
@@ 205,6 205,10 @@ $color-text:             #cfcfcf;
        color: $color-gray-light;
    }

    .content {
        h1, h2, h3, h4, h5 { color: $color-brand; }
    }

    /* api.scss
     * -------------------------------------------------------------------- */


M assets/app/stylesheets/themes/topaz.scss => assets/app/stylesheets/themes/topaz.scss +4 -0
@@ 222,6 222,10 @@ $color-text:             #333;
        color: $color-gray-darker;
    }

    .content {
        h1, h2, h3, h4, h5 { color: $color-brand; }
    }

    /* api.scss
     * -------------------------------------------------------------------- */


M fanboi2/templates/pages/show.mako => fanboi2/templates/pages/show.mako +1 -1
@@ 4,7 4,7 @@
<%def name='title()'>${page.title}</%def>
<div class="sheet">
    <div class="container">
         <div class="sheet-body">
         <div class="sheet-body content">
              ${formatters.format_page(request, page)}
         </div>
    </div>