From a518cef3429f71a0e6feb0dda8b1e3f571fb9660 Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 7 May 2011 17:50:05 -0700 Subject: [PATCH] better autohide css --- 4chan_x.js | 9 +++------ script.coffee | 8 +++----- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index d29a6b5db..86df50450 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -7,7 +7,6 @@ // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* // @include http://sys.4chan.org/* -// @include file://* // @updateURL http://userscripts.org/scripts/source/51412.meta.js // ==/UserScript== @@ -2282,9 +2281,6 @@ #qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */\ display: none;\ }\ - #qr {\ - width: 302px;\ - }\ #qr form, #qr #com_submit, #qr input[type="file"] {\ margin: 0;\ }\ @@ -2295,8 +2291,9 @@ #qr *:not(input):not(textarea) {\ padding: 0 !important;\ }\ - #qr.auto:not(:hover) form {\ - display: none;\ + #qr.auto:not(:hover) > form {\ + height: 0px;\ + overflow: hidden;\ }\ /* http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css */\ #qr input:-webkit-input-placeholder {\ diff --git a/script.coffee b/script.coffee index c6a368a00..aab0c30e0 100644 --- a/script.coffee +++ b/script.coffee @@ -1804,9 +1804,6 @@ main = #qr #recaptcha_table td:nth-of-type(3) {/* captcha logos */ display: none; } - #qr { - width: 302px; - } #qr form, #qr #com_submit, #qr input[type="file"] { margin: 0; } @@ -1817,8 +1814,9 @@ main = #qr *:not(input):not(textarea) { padding: 0 !important; } - #qr.auto:not(:hover) form { - display: none; + #qr.auto:not(:hover) > form { + height: 0px; + overflow: hidden; } /* http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css */ #qr input:-webkit-input-placeholder {