From 873c12d722ec70d503dda7a091c26398e6b5396c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 28 May 2020 18:23:04 +0200 Subject: [PATCH] LSmail: fix default & light blue CSS --- src/css/default/LSmail.css | 36 +++++++++++++++++++++++--------- src/css/light-blue.css | 17 +++++++-------- src/templates/default/LSmail.tpl | 14 ++++++------- 3 files changed, 40 insertions(+), 27 deletions(-) diff --git a/src/css/default/LSmail.css b/src/css/default/LSmail.css index 851c2446..9efabf3a 100644 --- a/src/css/default/LSmail.css +++ b/src/css/default/LSmail.css @@ -1,16 +1,32 @@ -#LSmail_msg { - height: 22em; - width: 50em; -} - -dl.LSmail dd { - margin-left: 7em; +dl.LSmail { + margin: 0 10px; + padding: 0; } dl.LSmail dt { - width: 7em; + width: 158px; + box-sizing: border-box; + position: relative; + left: 0.2em; + top: 1.2em; + font-weight: bold; + font-size: 0.9em; + color: #0072b8; } -#LSmail_mail, #LSmail_subject { - width: 50.3em; + +dl.LSmail dd { + margin-left: 158px; + padding: 0; +} + +dl.LSmail input, dl.LSmail textarea { + border: 1px solid #ccc; + width: 600px; + background-color: #b5e4f6; + box-sizing: border-box; +} + +dl.LSmail textarea { + height: 254px; } diff --git a/src/css/light-blue.css b/src/css/light-blue.css index 0d18fafa..c88da7e2 100644 --- a/src/css/light-blue.css +++ b/src/css/light-blue.css @@ -79,14 +79,6 @@ td.LSobject-list, tr.LSobject-list { } /* ---- LSsmoothbox / LSconfirmbox ---- */ -#frame-LSsmoothbox .LSform dt { - width: 11em; -} - -#frame-LSsmoothbox .LSform dd { - margin-left: 11em; -} - #win-LSsmoothbox, #box-LSconfirmBox { border: 1px solid var(--dark-grey); border-radius: 0px; @@ -226,7 +218,7 @@ ul.LSformElement_select_object_edit, li.LSformElement_select_object, table.LSobj border-color: var(--light-color); } -tr.LSobject-list-bis, .LSform input[type=text], .LSform input[type=password], .LSform textarea, li.LSformElement_select_object_addBtn, div.LSinfosBox { +tr.LSobject-list-bis, .LSform input[type=text], .LSform input[type=password], .LSform textarea, li.LSformElement_select_object_addBtn, div.LSinfosBox, dl.LSmail input, dl.LSmail textarea { background-color: var(--light-color); } @@ -253,12 +245,17 @@ input[type='submit'].LSview_search, input[type='text'].LSview_search, div.LSacce } /* ---- Light grey ---- */ +.LSform input[type=text], .LSform input[type=password], .LSform textarea, dl.LSmail input, dl.LSmail textarea { + border-color: var(--light-grey); +} + +/* ---- Medium grey ---- */ a.LSsession_recoverPassword, a.LSobject-list-page, a.LSobject-list-nb-by-page, h2 { color: var(--medium-grey); } /* ---- Dark grey ---- */ -#status, th.LSobject-list, input[type='text'].LSview_search, th.LSobject-list a, .LSform dt, a, div.LSinfosBox, strong.LSobject-list-page, strong.LSobject-list-nb-by-page, a.LSobject-list-page:hover, a.LSobject-list-nb-by-page:hover, ul.LSformElement_jsonCompositeAttribute div label { +#status, th.LSobject-list, input[type='text'].LSview_search, th.LSobject-list a, .LSform dt, dl.LSmail dt, a, div.LSinfosBox, strong.LSobject-list-page, strong.LSobject-list-nb-by-page, a.LSobject-list-page:hover, a.LSobject-list-nb-by-page:hover, ul.LSformElement_jsonCompositeAttribute div label { color: var(--dark-grey); } diff --git a/src/templates/default/LSmail.tpl b/src/templates/default/LSmail.tpl index ae5e3978..a62eff8c 100644 --- a/src/templates/default/LSmail.tpl +++ b/src/templates/default/LSmail.tpl @@ -1,7 +1,7 @@ -
+
{if $LSmail_options.display_mail_field} -
{$LSmail_mail_label|escape:"htmlall"}
-
+
{$LSmail_mail_label|escape:"htmlall"}
+
{if $LSmail_mails != ""} {if $LSmail_mails|@count==1} @@ -18,15 +18,15 @@ {/if} {if $LSmail_options.display_subject_field} -
{$LSmail_subject_label|escape:"htmlall"}
-
+
{$LSmail_subject_label|escape:"htmlall"}
+
{else} {/if} -
{$LSmail_msg_label|escape:"htmlall"}
-
+
{$LSmail_msg_label|escape:"htmlall"}
+