.js/lobste.rs.js

Fri, 10 Feb 2017 02:00:00 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 10 Feb 2017 02:00:00 -0500
changeset 508
b4f827c47130
parent 397
466b95c31b1e
child 510
809d4a3da079
permissions
-rw-r--r--

Actually, drop xfce4-p-m

// If story previews are enabled, set regular spacing and place byline below
// title.
if (document.querySelector('div.story_content')) {
  var sheet = document.createElement('style')
  sheet.innerHTML = "\
    ol.list li.story { height: 7.5em; } \
    li.story div.byline { color: #777; } \
    li.story div.byline a { color: #777; } \
    li.story div.story_content { color: #999; font-size: 95%; }"
  document.body.appendChild(sheet)

  var bylines = document.querySelectorAll('div.story_content + div.byline')
  for (var e of bylines) {
    e.parentNode.insertBefore(e, e.previousElementSibling)
  }
}

mercurial