Commit ba2a223d816332cd025eea9ebc8f2e6605fa44de
1 parent
5287140275
Exists in
master
mejora en tabla de articulos para responsive
Showing
4 changed files
with
18 additions
and
37 deletions
Show diff stats
gulpfile.js
| ... | ... | @@ -2,7 +2,7 @@ const gulp = require('gulp'); |
| 2 | 2 | const sass = require('gulp-sass'); |
| 3 | 3 | const concat = require('gulp-concat'); |
| 4 | 4 | const rename = require('gulp-rename'); |
| 5 | -const uglify = require('gulp-uglify-es').default; | |
| 5 | +const uglify = require('gulp-uglify'); | |
| 6 | 6 | const pump = require('pump'); |
| 7 | 7 | const jshint = require('gulp-jshint'); |
| 8 | 8 | const replace = require('gulp-replace'); |
| ... | ... | @@ -66,14 +66,15 @@ gulp.task('webserver', function() { |
| 66 | 66 | connect.server( |
| 67 | 67 | { |
| 68 | 68 | port: 3000, |
| 69 | - host: '0.0.0.0' | |
| 69 | + host: '0.0.0.0', | |
| 70 | + livereload: true | |
| 70 | 71 | } |
| 71 | 72 | ) |
| 72 | 73 | ] |
| 73 | 74 | }); |
| 74 | 75 | |
| 75 | 76 | gulp.task('watch', function() { |
| 76 | - gulp.watch([paths.srcJS], ['uglify']); | |
| 77 | + //gulp.watch([paths.srcJS], ['uglify']); | |
| 77 | 78 | gulp.watch('src/sass/*.scss', ['sass']); |
| 78 | 79 | }) |
| 79 | 80 | |
| ... | ... | @@ -87,4 +88,4 @@ gulp.task('livereload', function() { |
| 87 | 88 | gulp.watch('vistas/**/*.html', ['reload']); |
| 88 | 89 | }); |
| 89 | 90 | |
| 90 | -gulp.task('default', ['webserver']); | |
| 91 | +gulp.task('default', ['webserver', 'livereload', 'watch']); |
package.json
src/sass/_panel-informativo.scss
src/sass/_tabla-articulos.scss
| 1 | 1 | .tabla-articulo { |
| 2 | 2 | max-height: 420px; |
| 3 | - display: -moz-groupbox; | |
| 4 | - width: 100%; | |
| 5 | - display: block; | |
| 6 | 3 | |
| 7 | 4 | tr { |
| 8 | - width: 100%; | |
| 9 | 5 | display: inline-table; |
| 10 | 6 | table-layout: fixed; |
| 11 | 7 | } |
| ... | ... | @@ -13,35 +9,7 @@ |
| 13 | 9 | tbody { |
| 14 | 10 | overflow-y: auto; |
| 15 | 11 | max-height: 280px; |
| 16 | - width: 100%; | |
| 17 | 12 | display: block; |
| 18 | 13 | } |
| 19 | 14 | |
| 20 | - &-numero { | |
| 21 | - width: 25px; | |
| 22 | - } | |
| 23 | - | |
| 24 | - &-codigo { | |
| 25 | - width: 70px; | |
| 26 | - } | |
| 27 | - | |
| 28 | - &-descripcion { | |
| 29 | - width: 250px; | |
| 30 | - } | |
| 31 | - | |
| 32 | - &-cantidad { | |
| 33 | - width: 100px; | |
| 34 | - } | |
| 35 | - | |
| 36 | - &-precio { | |
| 37 | - width: 130px; | |
| 38 | - } | |
| 39 | - | |
| 40 | - &-subtotal { | |
| 41 | - width: 130px; | |
| 42 | - } | |
| 43 | - | |
| 44 | - &-boton { | |
| 45 | - width: 52px; | |
| 46 | - } | |
| 47 | 15 | } |