From 4858801a8f625404bfaf9834b6d44b4e7c151f9b Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Fri, 3 Feb 2017 06:45:47 +0100 Subject: [PATCH] apply height workaround to page info only --- LCARStrek/browser/pageInfo.css | 12 +++++++----- LCARStrek/global/textbox.css | 9 --------- 2 files changed, 7 insertions(+), 14 deletions(-) diff --git a/LCARStrek/browser/pageInfo.css b/LCARStrek/browser/pageInfo.css index 99be8a0d..8e95be04 100644 --- a/LCARStrek/browser/pageInfo.css +++ b/LCARStrek/browser/pageInfo.css @@ -108,15 +108,17 @@ textbox { -moz-appearance: none; } +/* This would be ideal but doesn't work */ +/* html|*.textbox-input > .anonymous-div, -html|*.textbox-input > html|*.anonymous-div, -html|div.anonymous-div, -.anonymous-div, -div, -html|*.textbox-input, html|*.textbox-input::placeholder { line-height: 1em !important; } +*/ + +textbox[readonly="true"] html|*.textbox-input { + max-height: 1em; /* work around the above rule that does not work */ +} textbox.header { margin-inline-start: 0; diff --git a/LCARStrek/global/textbox.css b/LCARStrek/global/textbox.css index 104c1416..5929e7a4 100644 --- a/LCARStrek/global/textbox.css +++ b/LCARStrek/global/textbox.css @@ -41,15 +41,6 @@ html|*.textbox-textarea::placeholder { opacity: 1.0; } -html|*.textbox-input > .anonymous-div, -html|*.textbox-input::placeholder { - line-height: 1em; /* This would be ideal but doesn't work */ -} - -html|*.textbox-input { - /* max-height: 1em; work around the above rule that does not work */ -} - .textbox-input-box menupopup { cursor: default; } -- 2.35.3