Просмотр исходного кода

rename chat css from style.scss to chat.scss

Felix Niklas 9 лет назад
Родитель
Сommit
ba6686ab52

+ 4 - 2
public/assets/chat/style.css → 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 {

+ 0 - 0
public/assets/chat/style.scss → public/assets/chat/chat.scss


+ 2 - 2
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...');
   });

+ 1 - 1
public/assets/chat/index.html

@@ -1,7 +1,7 @@
 <!doctype html>
 <meta charset="utf-8">
 <title>Zammad Chat</title>
-<link rel="stylesheet" href="style.css">
+<link rel="stylesheet" href="chat.css">
 <meta name="viewport" content="width=device-width">
 <script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
 <style>