Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
3-line CSS to make Hacker News narrow for Safari's custom style sheet
1 point by jhrmnn on Feb 19, 2021 | hide | past | favorite | 2 comments

  table#hnmain {
      padding: 0 -webkit-calc(42.5% - 21em);
  }
Preferences > Advanced > Style sheet


Better yet:

  table#hnmain {
      padding: 0 -webkit-calc(42.5% - 23em);
  }
  
  table#hnmain > tbody > tr:not(:first-child) > td {
      padding: 0 7.5em;
  }


Another iteration:

  table#hnmain {
      padding: 0 -webkit-calc(42.5% - 25em);
  }
  
  table#hnmain > tbody > tr:not(:first-child) > td > table {
      padding: 0 7.5em;
  }
  
  table#hnmain div.comment {
      word-break: break-word;
  }




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: