From a80835abb2c179d3ee7c4f9478acdb80a9c299a3 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 7 Oct 2014 14:40:21 +0200 Subject: [PATCH] give contenteditable a gray backdrop instead of the green border --- app/assets/stylesheets/zzz.css.erb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/zzz.css.erb b/app/assets/stylesheets/zzz.css.erb index 9ce04fe6f..75781630a 100644 --- a/app/assets/stylesheets/zzz.css.erb +++ b/app/assets/stylesheets/zzz.css.erb @@ -111,22 +111,20 @@ small { } [contenteditable] { - margin: -1px; display: block; white-space: pre-wrap; outline-style: none; - border: 1px solid transparent; border-radius: 3px; } [contenteditable]:hover, [contenteditable]:focus { - border-color: hsl(145,51%,45%); + background: #f8f9fa; } [contenteditable]:focus { text-overflow: clip !important; } [contenteditable].invalid { - border-color: #F92; + background: #F92; } [contenteditable] > .placeholder { color: #999; @@ -483,7 +481,7 @@ textarea, .richtext.form-control [contenteditable] { height: auto; min-height: 82px; - border: none; + background: none; margin-bottom: 28px; }