diff options
| author | Jez Ng | 2012-01-09 17:07:51 +0800 | 
|---|---|---|
| committer | Jez Ng | 2012-01-09 17:14:55 +0800 | 
| commit | d71706a07bec1056faefeb8ee7aa8b41548189ad (patch) | |
| tree | f56b8ffd8524d36c3847c3bb2367f1c1da55c954 | |
| parent | 34bc211a866e3623bdc461d4cf183b08bf229822 (diff) | |
| download | vimium-d71706a07bec1056faefeb8ee7aa8b41548189ad.tar.bz2 | |
Prevent help dialog from overflowing the screen.
Uses media queries.
Closes #419.
| -rw-r--r-- | helpDialog.html | 16 | 
1 files changed, 16 insertions, 0 deletions
| diff --git a/helpDialog.html b/helpDialog.html index e6977951..5ded51f2 100644 --- a/helpDialog.html +++ b/helpDialog.html @@ -28,6 +28,22 @@        top:50px;        -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 6px;        z-index:99999998; +      overflow-y: scroll; +    } +    @media screen and (max-height: 600px) { +        #vimiumHelpDialog { +            height: 430px; +        } +    } +    @media screen and (max-height: 500px) { +        #vimiumHelpDialog { +            height: 330px; +        } +    } +    @media screen and (max-height: 400px) { +        #vimiumHelpDialog { +            height: 230px; +        }      }      #vimiumHelpDialog a { color:blue; }      #vimiumTitle, #vimiumTitle * { font-size:20px; } | 
