From: Mark Otto Date: Mon, 30 Dec 2013 23:19:57 +0000 (-0800) Subject: styles update for container and some html elements; example content post updated X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=2bbb0937fa014db0ce9e0a6520f4f1e22d247d51;p=blog styles update for container and some html elements; example content post updated --- diff --git a/_posts/2014-01-01-example-content.md b/_posts/2014-01-01-example-content.md index 0864214..81e4748 100644 --- a/_posts/2014-01-01-example-content.md +++ b/_posts/2014-01-01-example-content.md @@ -3,9 +3,10 @@ layout: post title: Example content --- -This blog post shows a few different types of content that's supported and styled with Hyde. Basic typography, images, and code are all supported. ------ +
+ Howdy! This is an example blog post that shows several types of HTML content supported in this theme. +
Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. *Aenean eu leo quam.* Pellentesque ornare sem lacinia quam venenatis vestibulum. Sed posuere consectetur est at lobortis. Cras mattis consectetur purus sit amet fermentum. @@ -13,11 +14,24 @@ Cum sociis natoque penatibus et magnis dis parturient montes, na Etiam porta **sem malesuada magna** mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur. +## Inline HTML elements + +HTML defines a long list of available inline tags, a complete list of which can be found on the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/HTML/Element). + +- **To bold text**, use ``. +- *To italicize text*, use ``. +- Abbreviations, like HTML should use ``, with an optional `title` attribute for the full phrase. +- Citations, like — Mark otto, should use ``. +- Deleted text should use `` and inserted text should use ``. +- Superscript text uses `` and subscript text uses ``. + +Most of these elements are styled by browsers with few modifications on our part. + ## Heading Vivamus sagittis lacus vel augue rutrum faucibus dolor auctor. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. -### Sub-heading +### Code Cum sociis natoque penatibus et magnis dis `code element` montes, nascetur ridiculus mus. @@ -34,7 +48,7 @@ adder(2, 6); Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa. -### Sub-heading +### Lists Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean lacinia bibendum nulla sed consectetur. Etiam porta sem malesuada magna mollis euismod. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. @@ -50,6 +64,59 @@ Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a p Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis. +
+
HyperText Markup Language (HTML)
+
The language used to describe and define the content of a Web page
+ +
Cascading Style Sheets (CSS)
+
Used to describe the appearance of Web content
+ +
JavaScript (JS)
+
The programming language used to build advanced Web sites and applications
+
+ +Integer posuere erat a ante venenatis dapibus posuere velit aliquet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Nullam quis risus eget urna mollis ornare vel eu leo. + +### Tables + +Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameUpvotesDownvotes
Totals2123
Alice1011
Bob43
Charlie79
+ +Nullam id dolor id nibh ultricies vehicula ut id elit. Sed posuere consectetur est at lobortis. Nullam quis risus eget urna mollis ornare vel eu leo. + ----- -Want to see something else added? Open an issue. \ No newline at end of file +Want to see something else added? Open an issue. diff --git a/public/css/poole.css b/public/css/poole.css index a671831..44c937a 100644 --- a/public/css/poole.css +++ b/public/css/poole.css @@ -27,7 +27,6 @@ * Messages * Container * Masthead - * Sidebar * Posts and pages * Pagination * Reverse layout @@ -58,7 +57,7 @@ html { font-size: 16px; line-height: 1.5; } -@media (min-width: 48rem) { +@media (min-width: 38rem) { html { font-size: 20px; } @@ -67,6 +66,8 @@ html { body { color: #515151; background-color: #fff; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; } /* No `:visited` state is required by default (browsers will use `a`) */ @@ -83,7 +84,7 @@ a:focus { /* Headings */ h1, h2, h3, h4, h5, h6 { margin-bottom: .5rem; - font-weight: normal; + font-weight: bold; line-height: 1.25; color: #313131; text-rendering: optimizeLegibility; @@ -104,16 +105,31 @@ h4, h5, h6 { font-size: 1rem; } +/* Body text */ p { margin-top: 0; margin-bottom: 1rem; } -ul, ol { +strong { + color: #303030; +} + + +/* Lists */ +ul, ol, dl { margin-top: 0; margin-bottom: 1rem; } +dt { + font-weight: bold; +} +dd { + margin-bottom: .5rem; +} + +/* Misc */ hr { position: relative; margin: 1.5rem 0; @@ -122,22 +138,18 @@ hr { border-bottom: 1px solid #fff; } -strong { - color: #303030; -} - abbr { - background-color: #eee; - display: inline-block; - padding: .25em; font-size: 85%; font-weight: bold; color: #555; - text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5); text-transform: uppercase; - border-radius: 3px; +} +abbr[title] { + cursor: help; + border-bottom: 1px dotted #e5e5e5; } +/* Code */ code, pre { font-family: Menlo, Monaco, "Courier New", monospace; @@ -181,7 +193,7 @@ blockquote { padding: .5rem 1rem; margin: .8rem 0; color: #7a7a7a; - border-left: .25rem solid #eee; + border-left: .25rem solid #e5e5e5; } blockquote p:last-child { margin-bottom: 0; @@ -199,6 +211,23 @@ img { border-radius: 5px; } +/* Tables */ +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: #f9f9f9; +} + /* * Custom type @@ -234,17 +263,12 @@ img { */ .container { - max-width: 32rem; + max-width: 38rem; padding-left: 1rem; padding-right: 1rem; margin-left: auto; margin-right: auto; } -@media (min-width: 800px) { - .container { - max-width: 38rem; - } -} /* @@ -256,8 +280,7 @@ img { .masthead { padding-top: 1rem; padding-bottom: 1rem; - margin-bottom: 2rem; - border-bottom: 1px solid #eee; + margin-bottom: 3rem; } .masthead-title { margin-top: 0; @@ -273,11 +296,6 @@ img { color: #c0c0c0; letter-spacing: 0; } -@media (min-width: 48rem) { - .masthead { - margin-bottom: 3rem; - } -} /*