The blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

90 lines
1.3 KiB

  1. /*
  2. * override some tufte options
  3. */
  4. html {
  5. font-size: 13px;
  6. }
  7. /*
  8. * override some w3.css options
  9. */
  10. @media (min-width:993px){.w3-sidebar.w3-collapse{display:none}}
  11. /* not entirely happy w/ this adjustment to get the side bar icon visible */
  12. .w3-top {
  13. left: 0;
  14. width: 100% - 5em;
  15. }
  16. .w3-sidebar {
  17. font-size: 1.2rem;
  18. width: 22em;
  19. right: 0;
  20. display: block;
  21. top: 0;
  22. bottom: 0;
  23. overflow-y: scroll;
  24. }
  25. ul.posts > li {
  26. padding-left: 1.5em;
  27. text-indent: -1em;
  28. }
  29. .small {
  30. font-size: 80%;
  31. }
  32. .prevnext {
  33. text-align: center;
  34. }
  35. p.posted {
  36. margin-top: .5em;
  37. margin-bottom: .5em;
  38. }
  39. a.headerlink {
  40. /* give some space to para links */
  41. margin-left: .2em;
  42. /* hide until hover */
  43. display: none;
  44. }
  45. *:hover > .headerlink {
  46. display: unset;
  47. }
  48. ul.tags {
  49. list-style-type: none;
  50. margin-top: .2em;
  51. margin-bottom: .2em;
  52. }
  53. ul.tags li {
  54. padding-left: .5em;
  55. padding-right: .5em;
  56. display: inline-block;
  57. }
  58. ul.footer {
  59. padding-left: 0;
  60. }
  61. pre {
  62. white-space: pre-wrap;
  63. }
  64. pre.showlines::before {
  65. counter-reset: listing;
  66. }
  67. pre.showlines code {
  68. counter-increment: listing;
  69. }
  70. pre.showlines code::before {
  71. content: counter(listing) ". ";
  72. display: inline-block;
  73. width: 3em; /* now works */
  74. text-align: right; /* now works */
  75. }