]> git.gir.st - VimFx.git/commit
Put markers in the browser chrome
authorSimon Lydell <simon.lydell@gmail.com>
Fri, 23 Jan 2015 22:36:35 +0000 (23:36 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Fri, 23 Jan 2015 23:08:13 +0000 (00:08 +0100)
commit37261e32cddd95b2da9512bfc3d0ecb13ae406f0
tree5dc1b4cf8d574ddaa50532f9a3e3e02a1caebc37
parentb69bef86342f5f72149c0154d7a421d14d0ebcc3
Put markers in the browser chrome

Instead of inside the current page. Specifically, the markers are now inserted
at the same place as `alert()` dialogs are. This has a number of advantages:

- We don't need to fight the `z-index`es of the page. The markers will now
  always be on top.
- We don't need to fight any other styling of the page. No reset rules needed.
  The markers will look the same regardless of what page you view.
- The above point means that we can drop `!important` from all declarations.
  This makes it easier to change the styling of the markers using userChrome.css
  or Stylish.
- Just like you cannot interact with the page (such as scrolling) while an
  `alert()` dialog is visible, you cannot interact with the page when hints are
  visible. For example you can no longer scroll, making the hints out of place.
extension/lib/hints.coffee
extension/lib/marker.coffee
extension/lib/modes.coffee
extension/resources/style.css
Imprint / Impressum