From ec2f65cd0e2da62e479a7984caeea26c2bba426d Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Tue, 10 Nov 2015 16:43:19 +0100 Subject: [PATCH 1/9] datepicker: fix style when rendered inside table --- app/assets/stylesheets/zammad.scss | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index db611da8d..be1f87e5e 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -6890,6 +6890,11 @@ output { } } + +/* + datepicker resets some css it potentially inherits when its rendered inside a table +*/ + .datepicker { background: hsl(234,10%,19%); color: white; @@ -6909,6 +6914,14 @@ output { } } + th { + background: none; + } + + th, td { + border: none; + } + .next, .prev { cursor: pointer; @@ -6938,7 +6951,7 @@ output { width: 27px; height: 26px; border-radius: 100%; - padding: 1px 0 0; + padding: 1px 0 0 !important; } .month, From 7d29d62981f70971b5bd4806b15e566b924fb5c2 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 11 Nov 2015 10:22:19 +0100 Subject: [PATCH 2/9] fix line wrap in chat messages --- public/assets/chat/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/assets/chat/style.scss b/public/assets/chat/style.scss index 39be56372..78f84883f 100644 --- a/public/assets/chat/style.scss +++ b/public/assets/chat/style.scss @@ -208,7 +208,8 @@ $baseTextColor: if($luminance < 0.2, white, black); background: desaturate(lightenMax($themeColor, 50%, 97%), 50%); display: inline-block; max-width: 70%; - white-space: pre; + white-space: pre-line; + word-wrap: break-word; box-shadow: 0 2px rgba(255,255,255,.15) inset, 0 0 0 1px rgba(0,0,0,.08) inset, From 405679ad6cba87997c381d5fdd5a9ade52773476 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 11 Nov 2015 10:24:05 +0100 Subject: [PATCH 3/9] bigger line-height for chat messages --- public/assets/chat/style.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/assets/chat/style.scss b/public/assets/chat/style.scss index 78f84883f..203b06d4f 100644 --- a/public/assets/chat/style.scss +++ b/public/assets/chat/style.scss @@ -203,7 +203,8 @@ $baseTextColor: if($luminance < 0.2, white, black); } .zammad-chat-message-body { - padding: 0.6em 1em; + padding: 0.5em 1em; + line-height: 1.4; border-radius: 1em; background: desaturate(lightenMax($themeColor, 50%, 97%), 50%); display: inline-block; From ba6686ab521155473a4c4e835ecddb1d8ab943da Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 11 Nov 2015 10:37:07 +0100 Subject: [PATCH 4/9] rename chat css from style.scss to chat.scss --- public/assets/chat/{style.css => chat.css} | 6 ++++-- public/assets/chat/{style.scss => chat.scss} | 0 public/assets/chat/gulpfile.js | 4 ++-- public/assets/chat/index.html | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) rename public/assets/chat/{style.css => chat.css} (98%) rename public/assets/chat/{style.scss => chat.scss} (100%) diff --git a/public/assets/chat/style.css b/public/assets/chat/chat.css similarity index 98% rename from public/assets/chat/style.css rename to public/assets/chat/chat.css index 35d87a3f6..a4a579484 100644 --- a/public/assets/chat/style.css +++ b/public/assets/chat/chat.css @@ -170,12 +170,14 @@ margin: 0.5em 0; } .zammad-chat-message-body { - padding: 0.6em 1em; + padding: 0.5em 1em; + line-height: 1.4; border-radius: 1em; background: #f6f8f9; display: inline-block; max-width: 70%; - white-space: pre; + white-space: pre-line; + word-wrap: break-word; box-shadow: 0 2px rgba(255, 255, 255, 0.15) inset, 0 0 0 1px rgba(0, 0, 0, 0.08) inset, 0 1px rgba(0, 0, 0, 0.02); } .zammad-chat-message--customer { diff --git a/public/assets/chat/style.scss b/public/assets/chat/chat.scss similarity index 100% rename from public/assets/chat/style.scss rename to public/assets/chat/chat.scss diff --git a/public/assets/chat/gulpfile.js b/public/assets/chat/gulpfile.js index 256cb794e..60372ab40 100644 --- a/public/assets/chat/gulpfile.js +++ b/public/assets/chat/gulpfile.js @@ -11,7 +11,7 @@ var merge = require('merge-stream'); var plumber = require('gulp-plumber'); gulp.task('css', function(){ - return gulp.src('style.scss') + return gulp.src('chat.scss') .pipe(sass.sync().on('error', gutil.log)) .pipe(autoprefixer({ browsers: ['last 4 versions'], @@ -40,7 +40,7 @@ gulp.task('js', function(){ }); gulp.task('default', function(){ - var cssWatcher = gulp.watch('style.scss', ['css']); + var cssWatcher = gulp.watch('chat.scss', ['css']); cssWatcher.on('change', function(event) { console.log('File ' + event.path + ' was ' + event.type + ', running tasks...'); }); diff --git a/public/assets/chat/index.html b/public/assets/chat/index.html index 7514b78f6..e6456945c 100644 --- a/public/assets/chat/index.html +++ b/public/assets/chat/index.html @@ -1,7 +1,7 @@ Zammad Chat - +