From 8923598a6d4a1980fb6c42b3890488928dd65a7b Mon Sep 17 00:00:00 2001 From: KLuka Date: Fri, 22 May 2015 21:26:01 +0200 Subject: [PATCH] Improved terminal cursor style * Changed "dim" cursor visibility from invisible to almost transparent and in the same color as default background. This improves visibility of cursor, if we are usign application (like vim for example) with dark background and the "Black on White" user CSS is set. --- shellinabox/styles.css | 5 ++++- shellinabox/white-on-black.css | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/shellinabox/styles.css b/shellinabox/styles.css index 6bb823d..4d3b8df 100755 --- a/shellinabox/styles.css +++ b/shellinabox/styles.css @@ -67,7 +67,10 @@ } #vt100 #cursor.dim { - visibility: hidden; + background-color: white; + opacity: 0.2; + -moz-opacity: 0.2; + filter: alpha(opacity=20); } #vt100 #cursor.inactive { diff --git a/shellinabox/white-on-black.css b/shellinabox/white-on-black.css index a2e2b79..2482f1d 100755 --- a/shellinabox/white-on-black.css +++ b/shellinabox/white-on-black.css @@ -3,6 +3,13 @@ color: black; } +#vt100 #cursor.dim { + background-color: black; + opacity: 0.2; + -moz-opacity: 0.2; + filter: alpha(opacity=20); +} + #vt100 #scrollable { color: #ffffff; background-color: #000000;