Advertisement
Guest User

Dred's HN CSS Madhackery

a guest
Dec 30th, 2022
1,205
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.21 KB | Source Code | 1 0
  1. /* Dredmorbius's HN CSS Madhackery  2022-12-30 */
  2.  
  3. /* Overall Page Colours ... swap margin / main theme */
  4.  
  5. body {
  6.     background-color: #f6f6ef;
  7. }
  8.  
  9. #hnmain {
  10.     background-color: white !important;
  11. }
  12.  
  13. /* Fonts */
  14.  
  15. /* ... change this to define *overall* font size */
  16.  
  17. body {
  18.     font-size: medium;
  19. }
  20.  
  21. /* ... derived values */
  22.  
  23. td { font-size: 1em; }
  24.  
  25. .default { font-size: 1em; }
  26. .admin {font-size: 0.85em; }
  27. .title { font-size: 1.1em; }
  28. .subtext { font-size: 0.8em; }
  29. .yclinks { font-size: 0.8em; }
  30. .pagetop { font-size: 1em; }
  31. .comhead { font-size: 0.9em; }
  32. .comment { font-size: 1em; }
  33. .morelink { font-size: 0.8em; }
  34.  
  35. input, textarea {
  36.     font-size: 1em;
  37.     font-family: courier, monospace;
  38. }
  39.  
  40.  
  41. /* 'Graphs */
  42.  
  43. .default p {
  44.     line-height: 1.4;
  45.     margin: 0.75rem 0 0 0;  
  46. }
  47.  
  48. /* Elements */
  49.  
  50. .votelinks { padding-right: 0.5em;}
  51. .votearrow {
  52.     background-size: 0.8rem;
  53.     height: 0.8rem;
  54.     width: 0.8rem;
  55. }
  56.  
  57. .title, .titleline, .title a {
  58.     color: #000 !important;
  59. }
  60.  
  61. .comhead, .comhead a {
  62.     color: #999;
  63. }
  64.  
  65. .comhead a:link {
  66.     color: #000;
  67.     color: #888;
  68. }
  69.  
  70. .toptext {
  71.     color: #000;
  72.     margin-top: 2em;
  73. }
  74.  
  75. /* Story metadata / subtext */
  76.  
  77. .subtext,
  78. .subtext a,
  79. .subtext a:visited {
  80.     color: #888;
  81. }
  82.  
  83. .comhead,
  84. .comhead a,
  85. .comhead a:link,
  86. .subtext a:visited {
  87.     color: #666;
  88. }
  89.  
  90. .comment {
  91.     padding-top: 0.75em;
  92. }
  93.  
  94. .subtext .hnuser,
  95. .subtext a.hnuser,
  96. .comhead .hnuser,
  97. .comhead a:link.hnuser {
  98.     color: #666;
  99.     font-weight: bold;
  100.     padding-right: 0.75em;
  101. }
  102.  
  103. .yclinks,
  104. .yclinks a,
  105. .yclinks a:link,
  106. .yclinks a:visited {
  107.     color: #666;
  108. }
  109.  
  110. .yclinks a:hover {
  111.     color: #000;
  112.     text-decoration: underline;
  113. }
  114.  
  115. .subtext a:hover,
  116. .comhead a:hover {
  117.     color: #000;
  118. }
  119.  
  120. [id^="unv_"] {
  121.     font-style: italic;
  122. }
  123.  
  124. .navs a[href^="flag?"] {
  125.     font-weight: bold;
  126. }
  127.  
  128. /* User page profile description */
  129. [op="user"] td {
  130.     color: #000;
  131. }
  132.  
  133.  
  134. /* The one place that hasn’t been corrupted by capitalism:   Space!!! */
  135.  
  136. #pagespace {height: 3em !important; }
  137. .spacer { height: 0.75em !important; }
  138. .subtext { padding-top: 0.3em; }
  139.  
  140.  
  141. /* Comment spacing */
  142.  
  143. .athing .default {
  144.     padding-bottom: 1.25em;
  145.     padding-top: 0.25em;
  146.     margin-top: 0.25em;
  147.     border-top: solid 1px #ddd;
  148. }
  149.  
  150.  
  151. /* Highlight current page selection in pagetop */
  152. [op="newest"] .pagetop [href="newest"],
  153. [op="threads"] .pagetop [href^="threads"],
  154. [op="front"] .pagetop [href="front"],
  155. [op="newcomments"] .pagetop [href="newcomments"],
  156. [op="ask"] .pagetop [href="ask"],
  157. [op="show"] .pagetop [href="show"],
  158. [op="jobs"] .pagetop [href="jobs"],
  159. [op="submit"] .pagetop [href="submit"],
  160. [op="user"] .pagetop [href^="user"] {
  161.     font-weight: bold;
  162.     color: #fff;
  163. }
  164.  
  165.  
  166. /* More link / button ... */
  167. .morespace + tr .title {
  168.     margin: 0.6em;
  169.     padding: 0.6em;
  170. }
  171.  
  172. .morelink {
  173.     font-size: 0.85em;
  174.     border: solid 2px #ffbbaa;  /* That's my custom titlebar colour FWIW ... */
  175.     border-radius: 0.25em;
  176.     padding: 0.2em;
  177.     margin: 0.3em;
  178.     background: #f0f0f0;
  179. }
  180.  
  181. /* Profile page ... increase spacing between elements / links to avoid misfires */
  182.  
  183. .profileform td {
  184.     padding-bottom: 1em;
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement