Guest User

Untitled

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