From 8c1449d023cdd25581a5cb95c7197829c752b318 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 29 Sep 2014 13:08:08 +0200 Subject: [PATCH] contenteditable refactor --- app/assets/stylesheets/zzz.css.erb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/assets/stylesheets/zzz.css.erb b/app/assets/stylesheets/zzz.css.erb index dd04568c9..cd9ff81c6 100644 --- a/app/assets/stylesheets/zzz.css.erb +++ b/app/assets/stylesheets/zzz.css.erb @@ -3440,19 +3440,19 @@ footer { } [contenteditable] { + margin: -1px; display: block; white-space: pre-wrap; outline-style: none; -} -[contenteditable]:hover, [contenteditable]:focus { - margin: -1px; - border: 1px dotted hsl(145,51%,45%); + border: 1px solid transparent; border-radius: 3px; } +[contenteditable]:hover, +[contenteditable]:focus { + border-color: hsl(145,51%,45%); +} [contenteditable].invalid { - margin: -1px; - border: 1px dotted #F92; - border-radius: 3px; + border-color: #F92; } [contenteditable] > .placeholder { color: #999;