1. 16 Jan, 2015 4 commits
  2. 15 Jan, 2015 11 commits
  3. 13 Jan, 2015 2 commits
  4. 09 Jan, 2015 3 commits
  5. 08 Jan, 2015 5 commits
  6. 07 Jan, 2015 2 commits
  7. 23 Dec, 2014 4 commits
  8. 22 Dec, 2014 6 commits
  9. 19 Dec, 2014 3 commits
    • Randall Leeds's avatar
      Merge pull request #1822 from hypothesis/websocket-csrf · 278bf6e5
      Randall Leeds authored
      Check cross site request token for WebSocket
      278bf6e5
    • Randall Leeds's avatar
    • Randall Leeds's avatar
      Use opaque focus highlights and tweak the rules · 3c7ed7c9
      Randall Leeds authored
      It may or may not be possible to change, but the way the current
      highlighter slices the DOM when highlights overlap doesn't always
      produce a structure where segments of larger highlights nest outside
      segments of highlights that are entirely within their bounds. For
      instance, structures like this may result:
      
          Spans boundaries:       [   ][[ ]][   ]
          Associated annotation:  A   ABA ABA   A
      
      In this example, the range of A completely spans the range of B yet the
      inner-most A span is completely wrapped by the B span, with no A span
      wrapping them both. If A is the highlight with focus, it is not the
      case that a CSS rule can simply neutralize the background color of B.
      Therefore, the background color of the inner A span blends with the
      background color of B, making the focus highlight less prominent than
      it should be.
      
      In this situation, the focus highlight can be guaranteed to be shown
      in a clearly visible color by making it opaque. There may be colors
      on which this is too low contrast, but until we can investigate other
      options this PR makes the focus highlight color opaque to address this
      issue.
      
      Additionally, factor out a highlight mixin that makes it all a bit
      more readable and consistent.
      
      Fix #1766
      Fix #1816
      3c7ed7c9