From 101285e0884ea365e9e3272e6f914fe373fa27fb Mon Sep 17 00:00:00 2001 From: Talha Mansoor Date: Thu, 5 Dec 2019 08:52:12 +0500 Subject: [PATCH] fix(typography): make headings align to the left instead of justify --- static/css/elegant.prod.css | 2 +- static/css/typography.css | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/static/css/elegant.prod.css b/static/css/elegant.prod.css index 5df01ba1..b0dfdb10 100644 --- a/static/css/elegant.prod.css +++ b/static/css/elegant.prod.css @@ -10,4 +10,4 @@ dt:hover>a.headerlink,h1:hover>a.headerlink,h2:hover>a.headerlink,h3:hover>a.hea .highlight,pre{background-color:#fdf6e3;color:#586e75}.highlight .c{color:#93a1a1}.highlight .err,.highlight .g{color:#586e75}.highlight .k{color:#859900}.highlight .l,.highlight .n{color:#586e75}.highlight .o{color:#859900}.highlight .x{color:#cb4b16}.highlight .p{color:#586e75}.highlight .cm{color:#93a1a1}.highlight .cp{color:#859900}.highlight .c1{color:#93a1a1}.highlight .cs{color:#859900}.highlight .gd{color:#2aa198}.highlight .ge{color:#586e75;font-style:italic}.highlight .gr{color:#dc322f}.highlight .gh{color:#cb4b16}.highlight .gi{color:#859900}.highlight .go,.highlight .gp{color:#586e75}.highlight .gs{color:#586e75;font-weight:700}.highlight .gu{color:#cb4b16}.highlight .gt{color:#586e75}.highlight .kc{color:#cb4b16}.highlight .kd{color:#268bd2}.highlight .kn,.highlight .kp{color:#859900}.highlight .kr{color:#268bd2}.highlight .kt{color:#dc322f}.highlight .ld{color:#586e75}.highlight .m,.highlight .s{color:#2aa198}.highlight .na{color:#586e75}.highlight .nb{color:#b58900}.highlight .nc{color:#268bd2}.highlight .no{color:#cb4b16}.highlight .nd{color:#268bd2}.highlight .ne,.highlight .ni{color:#cb4b16}.highlight .nf{color:#268bd2}.highlight .nl,.highlight .nn,.highlight .nx,.highlight .py{color:#586e75}.highlight .nt,.highlight .nv{color:#268bd2}.highlight .ow{color:#859900}.highlight .w{color:#586e75}.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:#2aa198}.highlight .sb{color:#93a1a1}.highlight .sc{color:#2aa198}.highlight .sd{color:#586e75}.highlight .s2{color:#2aa198}.highlight .se{color:#cb4b16}.highlight .sh{color:#586e75}.highlight .si,.highlight .sx{color:#2aa198}.highlight .sr{color:#dc322f}.highlight .s1,.highlight .ss{color:#2aa198}.highlight .bp,.highlight .vc,.highlight .vg,.highlight .vi{color:#268bd2}.highlight .il{color:#2aa198} div#sidebar-social-link a svg{-webkit-filter:saturate(0) brightness(.7);filter:saturate(0) brightness(.7);height:20px;width:20px;margin-right:3px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out;z-index:0;position:relative}div#sidebar-social-link a{text-decoration:none}div#sidebar-social-link a svg:hover{-webkit-filter:none;filter:none;-webkit-transform:scale(2.5);transform:scale(2.5);z-index:1} section#article-sidebar{float:right;font-size:.9em} -:root{--heading-border-bottom-width:1px;--heading-border-bottom-style:solid;--heading-others-line-height:1.3rem;--heading-others-h4-font-size:1.1rem}h1,h2,h3,h4,h5,h6{font-family:Baskerville,Garamond,Georgia,"DejaVu Serif",Times New Roman,Times,Serif;font-weight:400;margin:10px 0}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-style:italic}h1{font-size:2.5rem}h2{font-size:2.2rem}h3{font-size:2rem}h4{font-size:1.8rem}h5{font-size:1.6rem}h6{font-size:1.4rem}h1,h2,h3{line-height:1.3em;border-bottom:1px solid #d3d3d3;border-bottom:var(--heading-border-bottom-width) var(--heading-border-bottom-style) #d3d3d3}h1 code,h2 code,h3 code{font-size:80%}h1 small,h2 small,h3 small{font-size:70%}h4,h5,h6{line-height:1.1em}h4 code,h4 small,h5 code,h5 small,h6 code,h6 small{font-size:80%}h1 a,h1 a:hover,h1 small,h2 a,h2 a:hover,h2 small,h3 a,h3 a:hover,h3 small,h4 a,h4 a:hover,h4 small,h5 a,h5 a:hover,h5 small,h6 a,h6 a:hover,h6 small{color:inherit;text-decoration:none}small.subtitle{font-style:italic}div.blog-archives h2,h1#my-projects,h1#recent-posts{border:none}h1#my-projects,h1#recent-posts{font-size:2.4rem;line-height:1.3rem;line-height:var(--heading-others-line-height)}nav h4,section#article-sidebar h4{font-size:1.1rem;font-size:var(--heading-others-h4-font-size);line-height:1.3rem;line-height:var(--heading-others-line-height)} \ No newline at end of file +:root{--heading-border-bottom-width:1px;--heading-border-bottom-style:solid;--heading-others-line-height:1.3rem;--heading-others-h4-font-size:1.1rem}h1,h2,h3,h4,h5,h6{font-family:Baskerville,Garamond,Georgia,"DejaVu Serif",Times New Roman,Times,Serif;font-weight:400;margin:10px 0;text-align:left}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-style:italic}h1{font-size:2.5rem}h2{font-size:2.2rem}h3{font-size:2rem}h4{font-size:1.8rem}h5{font-size:1.6rem}h6{font-size:1.4rem}h1,h2,h3{line-height:1.3em;border-bottom:1px solid #d3d3d3;border-bottom:var(--heading-border-bottom-width) var(--heading-border-bottom-style) #d3d3d3}h1 code,h2 code,h3 code{font-size:80%}h1 small,h2 small,h3 small{font-size:70%}h4,h5,h6{line-height:1.1em}h4 code,h4 small,h5 code,h5 small,h6 code,h6 small{font-size:80%}h1 a,h1 a:hover,h1 small,h2 a,h2 a:hover,h2 small,h3 a,h3 a:hover,h3 small,h4 a,h4 a:hover,h4 small,h5 a,h5 a:hover,h5 small,h6 a,h6 a:hover,h6 small{color:inherit;text-decoration:none}small.subtitle{font-style:italic}div.blog-archives h2,h1#my-projects,h1#recent-posts{border:none}h1#my-projects,h1#recent-posts{font-size:2.4rem;line-height:1.3rem;line-height:var(--heading-others-line-height)}nav h4,section#article-sidebar h4{font-size:1.1rem;font-size:var(--heading-others-h4-font-size);line-height:1.3rem;line-height:var(--heading-others-line-height)} \ No newline at end of file diff --git a/static/css/typography.css b/static/css/typography.css index 8b7f74f1..aaffe107 100644 --- a/static/css/typography.css +++ b/static/css/typography.css @@ -15,6 +15,7 @@ h6 { Times, Serif; font-weight: normal; margin: 10px 0px; + text-align: left; & small { font-style: italic; }