diff options
| author | Phil Crosby | 2014-12-05 09:59:53 -0800 | 
|---|---|---|
| committer | Phil Crosby | 2014-12-05 10:01:03 -0800 | 
| commit | b6125a2b13d6927c10f381f51b207445fd3f049b (patch) | |
| tree | bbd51a0be041ad776b35b646725c23963bf5abde | |
| parent | 1faac7079cb88dd113c2d7bf0578f85380e40f07 (diff) | |
| download | vimium-b6125a2b13d6927c10f381f51b207445fd3f049b.tar.bz2 | |
Make the z-indices a little bit smaller
| -rw-r--r-- | content_scripts/vimium.css | 19 | 
1 files changed, 11 insertions, 8 deletions
| diff --git a/content_scripts/vimium.css b/content_scripts/vimium.css index b52c5c2b..a8ae5583 100644 --- a/content_scripts/vimium.css +++ b/content_scripts/vimium.css @@ -2,6 +2,10 @@   * Many CSS class names in this file use the verbose "vimiumXYZ" as the class name. This is so we don't   * use the same CSS class names that the page is using, so the page's CSS doesn't mess with the style of our   * Vimium dialogs. + * + * The z-indexes of Vimium elements are very large, because we always want them to show on top. Chrome may + * support up to Number.MAX_VALUE, which is approximately 1.7976e+308. We're using 2**31, which is the max value of a singed 32 bit int. + * Let's use try larger valeus if 2**31 empirically isn't large enough.   */  /* @@ -54,8 +58,7 @@ tr.vimiumReset {    vertical-align: baseline;    white-space: normal;    width: auto; -  /* The maximum acceptable value is Number.MAX_VALUE, approximately 1.7976e+308. */ -  z-index: 179759999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; +  z-index: 2147483648;  }  /* Linkhints CSS */ @@ -123,7 +126,8 @@ div#vimiumHelpDialog {    top:50px;    -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 6px;    overflow-y: auto; -  z-index: 179758999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; +  /* One less than vimiumReset */ +  z-index: 2147483647;  }  div#vimiumHelpDialog a { color:blue; } @@ -234,8 +238,8 @@ div.vimiumHUD {    border-radius: 4px 4px 0 0;    font-family: "Lucida Grande", "Arial", "Sans";    font-size: 12px; -  /* One less than vimium's hint markers, so link hints can be shown e.g. for the panel's close button. */ -  z-index: 179757999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; +  /* One less than vimium's hint markers, so link hints can be shown e.g. for the HUD panel's close button. */ +  z-index: 2147483646;    text-shadow: 0px 1px 2px #FFF;    line-height: 1.0;    opacity: 0; @@ -292,7 +296,7 @@ body.vimiumFindMode ::selection {    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.8);    border: 1px solid #aaa;    /* One less than hint markers and the help dialog. */ -  z-index: 179756999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; +  z-index: 2147483645;  }  #vomnibar input { @@ -402,6 +406,5 @@ div#vimiumFlash {    padding: 1px;    background-color: transparent;    position: absolute; -  /* The maximum acceptable value is Number.MAX_VALUE, approximately 1.7976e+308. */ -  z-index: 179759999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999; +  z-index: 2147483648;  } | 
