Files
cocoa-eh-hugo-theme/markdown.less
Nishanth Shanmugham 3e847e7817 Fill example site with general content
Fix markdown for italic and other font styles
Improve sample pages and posts in example site
Update example site config

Resolves #5 :)
2015-12-21 04:43:07 -06:00

189 lines
2.6 KiB
Plaintext

.section.main .content {
.markdown {
@background-gray: #f7f7f7;
//
// Heading
//
h1, h2, h3, h4, h5, h6 {
.heading();
}
h1 {
font-size: 1.75rem;
margin-bottom: 2rem;
}
h2 {
font-size: 1.5rem;
margin-bottom: 1.5rem;
}
h3 {
font-size: 1em;
margin-bottom: 1rem;
}
h4, h5, h6 {
font-size: 1rem;
margin-bottom: 1rem;
letter-spacing: none;
text-transform: none;
}
//
// Code
//
code, pre {
font-family: @monospace-font-stack;
font-size: 0.98rem;
background-color: @background-gray;
}
code {
/* enclosed by single backtick (`) */
padding: .15em .5em;
color: darken(#d01040, 10%);
border-radius: 2px;
}
pre {
/* Hugo specific: consider using the 'highlight' shortcode */
display: block;
margin-top: 1rem;
margin-bottom: 2rem;
padding: 1rem;
line-height: 1.5em;
white-space: pre;
white-space: pre-wrap;
word-break: break-all;
word-wrap: break-word;
}
pre code {
/* enclosed by 4 backticks (````) */
padding: 0;
font-size: 0.9rem;
}
//
// Body text
//
p {
/* Invoked by line break */
font-size: 1rem;
margin-top: 0;
margin-bottom: 1em;
}
// TODO: Try out and adjust properties for selectors below
// Lists
ul, ol, dl {
margin-top: 1rem;
margin-bottom: 2rem;
}
dt {
font-weight: bold;
}
dd {
margin-bottom: .5rem;
}
ul {
margin-bottom: 1.25rem;
}
li {
list-style-type: disc;
list-style-position: inside;
}
// Miscenllaneous
em {
font-style: italic;
}
strong {
font-weight: 700;
}
hr {
position: relative;
margin: 1.75rem 0;
border: 0;
border-top: 1px solid lighten(@gray, 10%);
border-top: 1px solid lighten(@gray, 20%);
}
abbr {
font-size: 0.85rem;
font-weight: bold;
color: lighten(@black, 20%);
text-transform: uppercase;
}
abbr[title] {
cursor: help;
border-bottom: 1px dotted lighten(@gray, 10%);
}
// Quotes
blockquote {
padding: .5rem 1rem;
margin: .8rem 0;
color: #7a7a7a;
border-left: .25rem solid #e5e5e5;
}
blockquote p:last-child {
margin-bottom: 0;
}
@media (min-width: 550px) {
blockquote {
padding-right: 5rem;
padding-left: 1.25rem;
}
}
// Images and tables
img {
margin: 1rem 0;
max-width: 100%;
}
table {
margin-bottom: 1rem;
width: 100%;
border: 1px solid #e5e5e5;
border-collapse: collapse;
}
td,
th {
padding: .25rem .5rem;
border: 1px solid #e5e5e5;
}
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th {
background-color: @background-gray;
}
} // end .markdown
} // end .section.main .content