diff options
| author | mrmr1993 | 2015-05-11 16:38:37 +0100 |
|---|---|---|
| committer | mrmr1993 | 2015-05-11 16:38:37 +0100 |
| commit | 638d870eeb2564e0fa268b9fab5cce1d46ff3884 (patch) | |
| tree | 64617a92c868f31de441d7c1a00174e4a4550474 /content_scripts | |
| parent | 2ecce8fb472b6a62a39f25981d20e74b39788d0c (diff) | |
| download | vimium-638d870eeb2564e0fa268b9fab5cce1d46ff3884.tar.bz2 | |
Move all HUD .style declarations into vimium.css
Diffstat (limited to 'content_scripts')
| -rw-r--r-- | content_scripts/hud.coffee | 9 | ||||
| -rw-r--r-- | content_scripts/vimium.css | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/content_scripts/hud.coffee b/content_scripts/hud.coffee index bc3befee..2f95c4fe 100644 --- a/content_scripts/hud.coffee +++ b/content_scripts/hud.coffee @@ -28,16 +28,11 @@ HUD = # # Retrieves the HUD HTML element. # - displayElement: -> - if (!@_displayElement) - @_displayElement = @createHudElement() - # Keep this far enough to the right so that it doesn't collide with the "popups blocked" chrome HUD. - @_displayElement.style.right = "150px" - @_displayElement + displayElement: -> @_displayElement ?= @createHudElement() createHudElement: -> element = document.createElement("div") - element.className = "vimiumReset vimiumHUD" + element.className = "vimiumReset vimiumHUD vimiumUIComponentHidden" document.body.appendChild(element) element diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index 5180fb22..a3ea5a70 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -237,6 +237,8 @@ div.vimiumHUD { display: block; position: fixed; bottom: 0px; + /* Keep this far enough to the right so that it doesn't collide with the "popups blocked" chrome HUD. */ + right: 150px; color: black; height: auto; min-height: 13px; |
