Commits

Anonymous committed 64628fe

updating table stylesheets, adding toc

  • Participants
  • Parent commits 15fb6b2

Comments (0)

Files changed (2)

   :strikethrough => true,
   :space_after_headers => true,
   :superscript => true,
-  :smartypants => true
+  :smartypants => true,
+  :with_toc_data => true
 activate :syntax
 
 

File source/stylesheets/style.css.sass

   font-weight: 300
   line-height: 27px
 
+
+// hacking tables from bootstrap
+table
+  width: 100%
+  margin-bottom: 20px
+
+  th, td
+    padding: 8px
+    line-height: 20px
+    vertical-align: top
+    border-top: 1px solid #dddddd
+
+  th
+    font-weight: bold
+
+  thead th
+    vertical-align: bottom
+
+  caption + thead tr:first-child th,
+  caption + thead tr:first-child td,
+  colgroup + thead tr:first-child th,
+  colgroup + thead tr:first-child td,
+  thead:first-child tr:first-child th,
+  thead:first-child tr:first-child td
+    border-top: 0
+
+  tbody + tbody
+    border-top: 2px solid #dddddd
+
+  // adding striped odd children
+  tbody tr:nth-child(odd) td,
+  tbody tr:nth-child(odd) th 
+    background-color: #f9f9f9
+
+  // adding in hover effect
+  tbody tr:hover td,
+  tbody tr:hover th
+    background-color: rgb(252, 225, 236)
+
+
 #header
   margin-bottom: 30px
   background-color: rgb(250, 37, 115)
       color: #333
     date
       font-size: 16px
+  h2
+    margin-top: 1em
 
   .row.post
     border-bottom: 1px solid #C8C8C8