1
Fork 0

Some layout adjustements

This commit is contained in:
Jan-Erik Rediger 2015-07-14 23:55:43 +02:00
parent f4962bac1f
commit 0908608089
2 changed files with 19 additions and 5 deletions

View file

@ -18,6 +18,7 @@ h1 a:hover { text-decoration: none; }
.post p.date:before { content: "/* "; } .post p.date:before { content: "/* "; }
.post p.date:after { content: " */"; } .post p.date:after { content: " */"; }
.post p { .post p {
line-height: 1.5em;
word-wrap: break-word; word-wrap: break-word;
} }
.footer { padding-top: 0px; } .footer { padding-top: 0px; }
@ -32,13 +33,18 @@ blockquote p { margin: 0; }
pre { pre {
margin-left: 10px; margin-left: 10px;
background-color: #ddd; background-color: #ddd;
padding: 5px;
} }
p code, li code { p code, li code {
background-color: ghostWhite; background-color: rgba(0,0,0,0.04);
margin: 0;
color: black; color: black;
padding: 0 .2em; padding: .2em 0;
border: 1px solid #DEDEDE; border-radius: 3px;
font-size: 95%;
}
p code::before, li.code::before, p code::after, li.code::after {
letter-spacing: -0.2em;
content: "\00a0";
} }
.post { .post {
margin-bottom: 15px; margin-bottom: 15px;
@ -90,5 +96,6 @@ table thead tr, table tbody tr:nth-child(even) {
background-color: #eee; background-color: #eee;
} }
code, pre { code, pre {
font-family: Inconsolata, monospace, sans-serif !important; background-color: #f8f8f8;
font-family: Inconsolata, monospace, sans-serif;
} }

View file

@ -1,5 +1,12 @@
div.highlight { overflow-x: auto; border: 1px solid silver; background-color: #ddd; margin-bottom: 10px; } div.highlight { overflow-x: auto; border: 1px solid silver; background-color: #ddd; margin-bottom: 10px; }
div.highlight pre { margin: 0; } div.highlight pre { margin: 0; }
div.highlight code {
display: block;
overflow-x: auto;
padding: 0.5em;
color: #333;
background: #f8f8f8;
}
.highlight .hll { background-color: #ffffcc } .highlight .hll { background-color: #ffffcc }
.highlight { background: #f8f8f8; } .highlight { background: #f8f8f8; }
.highlight .c { color: #408080; font-style: italic } /* Comment */ .highlight .c { color: #408080; font-style: italic } /* Comment */