willdayble

Hacker News CSS Hack

Jun 12th, 2013
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.69 KB | None | 0 0
  1. /*
  2. Horrific ugly hax for CSS, works with 'Stylebot' for Chrome:
  3. https://chrome.google.com/webstore/detail/stylebot/oiaejidbmkiecgbjeifoejpgmdaleoha?hl=en
  4. */
  5.  
  6. .comhead {
  7.     color: #aaa;
  8. }
  9.  
  10. .comment font {
  11.     color: #333;
  12.     font-size: 18px;
  13.     font-weight: 300;
  14.     line-height: 24px;
  15.     position: relative;
  16. }
  17.  
  18. .pagetop a {
  19.     font-size: 16px;
  20.     padding: 10px;
  21. }
  22.  
  23. .pagetop, td.subtext, td.title, .comhead, .comment {
  24.     font-family: 'Lato', Helvetica, Arial, sans-serif ;
  25. }
  26.  
  27. center > table > tbody > tr > td {
  28.     background: #fff;
  29. }
  30.  
  31. center > table > tbody > tr > td > table {
  32.     border: 1px solid #ddd;
  33.     border-radius: 3px;
  34.     display: block;
  35.     margin: 0px;
  36.     padding: 15px 0px;
  37.     width: 100%;
  38. }
  39.  
  40. center a[id^="up"] {
  41.     border: 1px solid #eee;
  42.     border-radius: 3px;
  43.     display: block;
  44.     height: 30px;
  45.     margin-right: 10px;
  46.     position: relative;
  47.     width: 30px;
  48. }
  49.  
  50. center a[id^="up"] img {
  51.     display: none;
  52. }
  53.  
  54. center a[id^="up"]:after {
  55.     border: 9px solid transparent;
  56.     border-bottom-color: #fff;
  57.     content: '';
  58.     display: block;
  59.     left: 2px;
  60.     margin: -10px 5px 0;
  61.     position: absolute;
  62.     top: 11px;
  63. }
  64.  
  65. center a[id^="up"]:hover {
  66.     background: #f60;
  67. }
  68.  
  69. .comment, .comment p, .comment font {
  70.     font-size: 18px;
  71.     line-height: 26px;
  72.     font-weight: 400;
  73. }
  74.  
  75. /* i want this to work for just quotes, but italics is used for quotes AND for emph. Blergh.
  76. .comment font i {
  77.     background: #fff;
  78.     border-left: 3px solid #eee;
  79.     color: #666;
  80.     display: block;
  81.     font-family: "Calluna", serif;
  82.     font-size: 18px;
  83.     margin: 5px 0;
  84.     padding-left: 15px;
  85.     z-index: 500;
  86. }
  87. */
  88.  
  89. /* target the stupid table */
  90.  
  91. html {
  92.     padding: 20px;
  93. }
  94.  
  95. html body {
  96.     background: #f9f9f7;
  97.     font-family: 'Lato', Helvetica, Arial, sans-serif ;
  98.     font-size: 16px;
  99.     font-weight: 300;
  100.     margin: 0;
  101.     padding: 0;
  102. }
  103.  
  104. table table tbody {
  105.     display: block;
  106.     padding-left: 10px;
  107. }
  108.  
  109. table table tbody tbody {
  110.     padding-left: 0;
  111. }
  112.  
  113. td.subtext {
  114.     color: #999;
  115.     display: block;
  116.     font-size: 14px;
  117.     font-weight: 200;
  118.     padding-bottom: 10px;
  119.     opacity: 0.5;
  120. }
  121.  
  122. td.subtext:hover {
  123.     opacity: 1;
  124. }
  125.  
  126. td.subtext a {
  127.     color: #666;
  128. }
  129.  
  130. td.subtext a:hover, td.title a:hover {
  131.     color: #09f;
  132. }
  133.  
  134. td.title {
  135.     font-size: 18px;
  136.     line-height: 24px;
  137. }
  138.  
  139. td.title a:visited {
  140.     text-decoration: line-through;
  141.     color: #ccc;
  142. }
  143.  
  144. td.title a:hover {
  145.     text-decoration: underline;
  146.     color: #09f;
  147. }
  148.  
  149. td.title[align=right] {
  150.     color: #ccc;
  151.     padding-right: 10px;
  152. }
  153.  
  154. /* comment view */
  155.  
  156. td.default {
  157.     max-width: 1000px;
  158. }
Add Comment
Please, Sign In to add comment