Skip to content

Instantly share code, notes, and snippets.

@gujiaxi
Created March 10, 2017 06:13
Show Gist options
  • Save gujiaxi/e7959cf13452e610a0f9344d84f9bc36 to your computer and use it in GitHub Desktop.
Save gujiaxi/e7959cf13452e610a0f9344d84f9bc36 to your computer and use it in GitHub Desktop.
@media (min-width: 800px) {
.centered {
margin: 0 auto;
max-width: 800px !important;
width: 800px !important;
}
}
body {
font-family: Helvetica, sans-serif;
line-height: 1.5;
font-size: 18px;
background: #fff;
color: #666;
}
@media (max-width: 799px) {
body {
margin: 15px;
font-size: .95em;
}
}
body h1,
body h2,
body h3,
body h4 {
font-weight: normal;
margin: 0;
padding: 0;
color: #444;
}
body h1 b,
body h2 b,
body h3 b,
body h4 b {
display: block;
line-height: 1;
font-size: 150%;
}
body h1 img,
body h2 img,
body h3 img,
body h4 img {
vertical-align: middle;
border: 0 none;
}
body h1 {
font-size: 42px;
margin-top: 40px;
}
body h1.title {
display: none;
}
body h2 {
margin-top: 60px;
position: relative;
font-size: 32px;
border-bottom: 1px solid #bbb;
}
body h3 {
font-size: 26px;
margin-top: 20px;
}
body p {
text-align: justify;
}
body a {
text-decoration: none;
color: #1692cc;
}
body a:hover {
color: #0c5070;
text-decoration: underline;
}
body pre {
background: white;
}
body pre.src {
overflow-y: auto !important;
font-size: 16px;
}
body code {
background: #eee;
border: 1px solid #ccc;
padding: 0px 4px;
color: #666;
overflow-x: auto;
font-size: .9em;
}
body img {
border: 1px solid #ccc;
height: auto;
max-width: 70%;
}
@media (max-width: 800px) {
body img {
max-width: 100%;
}
}
body img.no-border {
border: none;
}
body .tag {
background: transparent;
font-size: 0.6em;
}
body .tag span {
background: #1692cc;
color: white;
padding: 2px 5px;
border-radius: 4px;
}
body .pubdate {
color: #aaa;
font-size: 18px;
margin-bottom: 20px;
text-align: right;
}
body .pubdate p {
display: inline;
margin-right: 10px;
}
body .nav-blog {
text-align: right;
}
body .org-info-js_info-navigation {
background: #bbb;
}
@media (min-width: 800px) {
body #content,
body #postamble {
margin: 0 auto;
max-width: 800px !important;
width: 800px !important;
}
}
body #content {
margin-top: 10px;
}
body #postamble {
font-size: 0.8em;
margin-top: 50px;
text-align: right;
color: #aaa;
}
body #postamble a {
color: #5bbfed;
}
@media (min-width: 800px) {
body #preamble {
width: 800px;
margin: 0px auto;
position: relative;
}
}
body .intro {
padding-top: 20px;
color: #BBB;
}
body .intro h1 {
font-size: 42px;
color: #BBB;
margin: 0;
padding: 0;
}
body .intro p {
color: #aaa;
font-size: 14px !important;
}
body .nav {
text-align: left;
margin-top: 8px;
}
@media (min-width: 800px) {
body .nav {
font-size: 16px;
position: absolute;
right: 0;
top: 0;
}
}
@media (max-width: 800px) {
body .nav {
font-size: 14px;
}
}
body .nav ul {
list-style: none;
padding: 0;
}
body .nav ul li {
color: #999;
display: inline-block;
margin: 0;
}
body .nav ul li a {
display: inline-block;
padding-right: 6px;
border-radius: 0;
text-decoration: underline;
font-weight: normal;
}
body #disqus_thread {
margin-top: 40px;
}
body .clearfix {
clear: both;
}
@media (min-width: 800px) {
body .contact {
-moz-column-count: 2;
-webkit-column-count: 2;
-moz-column-gap: 3em;
-webkit-column-gap: 3em;
column-count: 2;
column-gap: 3em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment