styles update for container and some html elements; example content post updated
authorMark Otto <otto@github.com>
Mon, 30 Dec 2013 23:19:57 +0000 (15:19 -0800)
committerMark Otto <otto@github.com>
Mon, 30 Dec 2013 23:19:57 +0000 (15:19 -0800)
_posts/2014-01-01-example-content.md
public/css/poole.css

index 08642144d0f610cbef6ed76436a20e8496863d39..81e474879a34cd391c9a9387c9d234eb7bfb5f8d 100644 (file)
@@ -3,9 +3,10 @@ layout: post
 title: Example content\r
 ---\r
 \r
-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.\r
 \r
------\r
+<div class="message">\r
+  Howdy! This is an example blog post that shows several types of HTML content supported in this theme.\r
+</div>\r
 \r
 Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, 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.\r
 \r
@@ -13,11 +14,24 @@ Cum sociis natoque penatibus et magnis <a href="#">dis parturient montes</a>, na
 \r
 Etiam porta **sem malesuada magna** mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.\r
 \r
+## Inline HTML elements\r
+\r
+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).\r
+\r
+- **To bold text**, use `<strong>`.\r
+- *To italicize text*, use `<em>`.\r
+- Abbreviations, like <abbr title="HyperText Markup Langage">HTML</abbr> should use `<abbr>`, with an optional `title` attribute for the full phrase.\r
+- Citations, like <cite>&mdash; Mark otto</cite>, should use `<cite>`.\r
+- <del>Deleted</del> text should use `<del>` and <ins>inserted</ins> text should use `<ins>`.\r
+- Superscript <sup>text</sup> uses `<sup>` and subscript <sub>text</sub> uses `<sub>`.\r
+\r
+Most of these elements are styled by browsers with few modifications on our part.\r
+\r
 ## Heading\r
 \r
 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.\r
 \r
-### Sub-heading\r
+### Code\r
 \r
 Cum sociis natoque penatibus et magnis dis `code element` montes, nascetur ridiculus mus.\r
 \r
@@ -34,7 +48,7 @@ adder(2, 6);
 \r
 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.\r
 \r
-### Sub-heading\r
+### Lists\r
 \r
 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.\r
 \r
@@ -50,6 +64,59 @@ Donec ullamcorper nulla non metus auctor fringilla. Nulla vitae elit libero, a p
 \r
 Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis.\r
 \r
+<dl>\r
+  <dt>HyperText Markup Language (HTML)</dt>\r
+  <dd>The language used to describe and define the content of a Web page</dd>\r
+\r
+  <dt>Cascading Style Sheets (CSS)</dt>\r
+  <dd>Used to describe the appearance of Web content</dd>\r
+\r
+  <dt>JavaScript (JS)</dt>\r
+  <dd>The programming language used to build advanced Web sites and applications</dd>\r
+</dl>\r
+\r
+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.\r
+\r
+### Tables\r
+\r
+Aenean lacinia bibendum nulla sed consectetur. Lorem ipsum dolor sit amet, consectetur adipiscing elit.\r
+\r
+<table>\r
+  <thead>\r
+    <tr>\r
+      <th>Name</th>\r
+      <th>Upvotes</th>\r
+      <th>Downvotes</th>\r
+    </tr>\r
+  </thead>\r
+  <tfoot>\r
+    <tr>\r
+      <td>Totals</td>\r
+      <td>21</td>\r
+      <td>23</td>\r
+    </tr>\r
+  </tfoot>\r
+  <tbody>\r
+    <tr>\r
+      <td>Alice</td>\r
+      <td>10</td>\r
+      <td>11</td>\r
+    </tr>\r
+    <tr>\r
+      <td>Bob</td>\r
+      <td>4</td>\r
+      <td>3</td>\r
+    </tr>\r
+    <tr>\r
+      <td>Charlie</td>\r
+      <td>7</td>\r
+      <td>9</td>\r
+    </tr>\r
+  </tbody>\r
+</table>\r
+\r
+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.\r
+\r
 -----\r
 \r
-Want to see something else added? <a href="https://github.com/mdo/hyde/issues/new">Open an issue.</a>
\ No newline at end of file
+Want to see something else added? <a href="https://github.com/poole/poole/issues/new">Open an issue.</a>\r
index a6718316d01f3b67f7288dc18810804faeb5f5fa..44c937a199c4621e4f0c8fb4881c8a682817b6cf 100644 (file)
@@ -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;
-  }
-}
 
 
 /*