From 0f354fb682c54c856341d28642f510b3768bdfc0 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 2 Feb 2011 10:48:29 -0600 Subject: [PATCH] Fix CSS sizes with HTML5 doctype. Using HTML5 doctype means CSS pixels sizes must have "px" suffix which many of them did not. Fix that. --- include/black.css | 22 ++++++++++++---------- include/plain.css | 18 +++++++++--------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/include/black.css b/include/black.css index 4cc195ef..3f95b88d 100644 --- a/include/black.css +++ b/include/black.css @@ -1,5 +1,5 @@ body { - margin: 0; + margin: 0px; font-size: 13px; color: #111; font-family: "Helvetica"; @@ -16,12 +16,12 @@ body { #VNC_controls ul { list-style:none; list-style-position: outside; - margin: 0; - padding: 0; + margin: 0px; + padding: 0px; } #VNC_controls li { margin-right: 15px; - padding: 2px 0; + padding: 2px 0px; float: left; } #VNC_controls li input[type=text], @@ -30,13 +30,13 @@ body { } #VNC_host { - width: 100; + width: 100px; } #VNC_port { - width: 50; + width: 50px; } #VNC_password { - width: 80; + width: 80px; } #VNC_encrypt { } @@ -66,8 +66,10 @@ body { #VNC_settings_menu { display: none; position: absolute; - width: 12em; + width: 13em; border: 1px solid #888; + color: #111; + font-weight: normal; background-color: #f0f2f6; padding: 5px; margin: 3px; z-index: 100; opacity: 1; @@ -75,8 +77,8 @@ body { } #VNC_settings_menu ul { list-style: none; - margin: 0; - padding: 0; + margin: 0px; + padding: 0px; } .VNC_buttons_right { diff --git a/include/plain.css b/include/plain.css index d8ee9427..fa768fac 100644 --- a/include/plain.css +++ b/include/plain.css @@ -3,8 +3,8 @@ } #VNC_controls ul { list-style: none; - margin: 0; - padding: 0; + margin: 0px; + padding: 0px; } #VNC_controls li { float: left; @@ -12,18 +12,18 @@ } #VNC_host { - width: 100; + width: 100px; } #VNC_port { - width: 50; + width: 50px; } #VNC_password { - width: 80; + width: 80px; } #VNC_encrypt { } #VNC_connectTimeout { - width: 30; + width: 30px; } #VNC_connect_button { width: 110px; @@ -59,8 +59,8 @@ } #VNC_settings_menu ul { list-style: none; - margin: 0; - padding: 0; + margin: 0px; + padding: 0px; } .VNC_buttons_right { @@ -92,6 +92,6 @@ #VNC_clipboard_clear_button { } #VNC_clipboard_text { - font-size: 9; + font-size: 9px; }