Commit 58be81a70ed3413caa1c507ad5973cf853ad67a4
1 parent
e6b4fff80c
Exists in
master
- Apliqué cambios de estilo para achicar elementos.
- Añadí task watch.
Showing
2 changed files
with
29 additions
and
20 deletions
Show diff stats
gulpfile.js
| ... | ... | @@ -17,7 +17,12 @@ var paths = { |
| 17 | 17 | dist: 'dist/' |
| 18 | 18 | }; |
| 19 | 19 | |
| 20 | -gulp.task('templates', function() { | |
| 20 | +gulp.task('clean', function(){ | |
| 21 | + return gulp.src(['tmp', 'dist'], {read: false}) | |
| 22 | + .pipe(clean()); | |
| 23 | +}); | |
| 24 | + | |
| 25 | +gulp.task('templates', ['clean'], function() { | |
| 21 | 26 | return pump( |
| 22 | 27 | [ |
| 23 | 28 | gulp.src(paths.srcViews), |
| ... | ... | @@ -73,3 +78,7 @@ gulp.task('clean-post-install', function(){ |
| 73 | 78 | }); |
| 74 | 79 | |
| 75 | 80 | gulp.task('default', ['webserver']); |
| 81 | + | |
| 82 | +gulp.task('watch', function() { | |
| 83 | + gulp.watch([paths.srcJS, paths.srcViews], ['uglify']) | |
| 84 | +}); |
src/views/modal-precio-condicion.html
| 1 | -<div class="modal-header"> | |
| 2 | - <h3 class="modal-title">Busqueda de Precio-Condición</h3> | |
| 1 | +<div class="modal-header py-1"> | |
| 2 | + <h5 class="modal-title">Busqueda de Precio-Condición</h5> | |
| 3 | 3 | </div> |
| 4 | 4 | <div class="modal-body" id="modal-body"> |
| 5 | - <div class="input-group mb-3"> | |
| 6 | - <input | |
| 7 | - type="text" | |
| 8 | - class="form-control" | |
| 9 | - placeholder="Busqueda" | |
| 10 | - ng-model="filters" | |
| 11 | - ng-change="search()" | |
| 5 | + <div class="input-group"> | |
| 6 | + <input | |
| 7 | + type="text" | |
| 8 | + class="form-control form-control-sm" | |
| 9 | + placeholder="Busqueda" | |
| 10 | + ng-model="filters" | |
| 11 | + ng-change="search()" | |
| 12 | 12 | ng-keydown="busquedaDown($event.keyCode)" |
| 13 | 13 | ng-keypress="busquedaPress($event.keyCode)" |
| 14 | 14 | foca-focus="selectedPrecioCondicion == -1" |
| ... | ... | @@ -16,7 +16,7 @@ |
| 16 | 16 | > |
| 17 | 17 | <table class="table table-striped table-sm"> |
| 18 | 18 | <thead> |
| 19 | - <tr> | |
| 19 | + <tr> | |
| 20 | 20 | <th>Cod.</th> |
| 21 | 21 | <th>Nombre</th> |
| 22 | 22 | <th>Vigencia</th> |
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | <td> |
| 34 | 34 | <button |
| 35 | 35 | type="button" |
| 36 | - class="btn p-2 float-right" | |
| 36 | + class="btn btn-sm p-1 float-right" | |
| 37 | 37 | ng-class="{ |
| 38 | 38 | 'btn-secondary': selectedPrecioCondicion != key, |
| 39 | 39 | 'btn-primary': selectedPrecioCondicion == key |
| ... | ... | @@ -48,7 +48,7 @@ |
| 48 | 48 | </tbody> |
| 49 | 49 | </table> |
| 50 | 50 | <nav> |
| 51 | - <ul class="pagination justify-content-end"> | |
| 51 | + <ul class="pagination pagination-sm justify-content-end mb-0"> | |
| 52 | 52 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
| 53 | 53 | <a class="page-link" href="#" ng-click="selectPage(currentPage - 1)"> |
| 54 | 54 | <span aria-hidden="true">«</span> |
| ... | ... | @@ -56,13 +56,13 @@ |
| 56 | 56 | </a> |
| 57 | 57 | </li> |
| 58 | 58 | <li |
| 59 | - class="page-item" | |
| 60 | - ng-repeat="pagina in paginas" | |
| 59 | + class="page-item" | |
| 60 | + ng-repeat="pagina in paginas" | |
| 61 | 61 | ng-class="{'active': pagina == currentPage}" |
| 62 | 62 | > |
| 63 | - <a | |
| 64 | - class="page-link" | |
| 65 | - href="#" | |
| 63 | + <a | |
| 64 | + class="page-link" | |
| 65 | + href="#" | |
| 66 | 66 | ng-click="selectPage(pagina)" |
| 67 | 67 | ng-bind="pagina" |
| 68 | 68 | ></a> |
| ... | ... | @@ -77,6 +77,6 @@ |
| 77 | 77 | </nav> |
| 78 | 78 | </div> |
| 79 | 79 | </div> |
| 80 | -<div class="modal-footer"> | |
| 81 | - <button class="btn btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | |
| 80 | +<div class="modal-footer py-1"> | |
| 81 | + <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | |
| 82 | 82 | </div> |