From fa078366acff3833ef40530e797b1554ccb6f8d6 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 7 Aug 2016 17:17:41 +0200 Subject: [PATCH] Editlink improvement --- tpl/default/css/shaarli.css | 17 +++++++++++------ tpl/default/editlink.html | 9 +++++++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 339ba300..0c70d630 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -605,6 +605,7 @@ pre { background: url(../img/noise.png) #1fa67a; border-radius: 5px; box-shadow: 1px 1px 2px #797979; + color: #b0ddce; } .page-form h2 { @@ -618,7 +619,9 @@ pre { border-bottom: 1px solid #797979; } -.page-form input[type="text"], .page-form input[type="password"] { +.page-form input[type="text"], +.page-form input[type="password"], +.page-form textarea { margin: 10px 0; padding: 5px 5px 3px 15px; height: 30px; @@ -630,6 +633,13 @@ pre { color: #b0ddce; } +.page-form textarea { + height: 240px; + resize: vertical; + overflow-y: auto; + word-wrap:break-word +} + /* because chrome */ .page-form input[type="text"]::-webkit-input-placeholder, .page-form input[type="password"]::-webkit-input-placeholder { @@ -659,10 +669,6 @@ pre { text-align: center; } -.page-form-light p { - color: #b0ddce; -} - /** * PAGE FORM - COMPLETE */ @@ -791,7 +797,6 @@ pre { color: #fff; } - .linklist-item-title .label-private { border: solid 1px #d0fff0; font-family: Arial, sans-serif; diff --git a/tpl/default/editlink.html b/tpl/default/editlink.html index a0ea91b2..95e60cc1 100644 --- a/tpl/default/editlink.html +++ b/tpl/default/editlink.html @@ -9,7 +9,7 @@ {/if}
-
+

{'Shaare'|t}

@@ -28,7 +28,8 @@
- +
@@ -77,6 +78,10 @@ } else { document.linkform.lf_tags.focus(); } + + function textAreaAdjust(el) { + el.style.height = (el.scrollHeight > el.clientHeight) ? (el.scrollHeight)+"px" : (el.clientHeight-8)+"px"; + } -- 2.41.0