Commit 23743461458373081d45722959fa4e6b7b6fdee0
1 parent
9fafa03df4
Exists in
master
- Saqué las referencias al módulo externo angular-on-screen-keyboard.
- Modifiqué la lógica para ocultar y mostrar el teclado. - Agregué estilos.
Showing
4 changed files
with
26 additions
and
20 deletions
Show diff stats
index.html
1 | <html ng-app="appWrapperDemo"> | 1 | <html ng-app="appWrapperDemo"> |
2 | <head> | 2 | <head> |
3 | <meta charset="UTF-8"/> | 3 | <meta charset="UTF-8"/> |
4 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | 4 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
5 | <base href="./"> | 5 | <base href="./"> |
6 | 6 | ||
7 | <!--CSS--> | 7 | <!--CSS--> |
8 | <link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> | 8 | <link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/> |
9 | <link href="./node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet"/> | 9 | <link href="./node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet"/> |
10 | <link rel="stylesheet" href="node_modules/angular-ui-swiper/dist/angular-ui-swiper.css"> | 10 | <link rel="stylesheet" href="node_modules/angular-ui-swiper/dist/angular-ui-swiper.css"> |
11 | <link href="./node_modules/ladda/dist/ladda-themeless.min.css" rel="stylesheet"> | 11 | <link href="./node_modules/ladda/dist/ladda-themeless.min.css" rel="stylesheet"> |
12 | <link href="./node_modules/leaflet/dist/leaflet.css" rel="stylesheet"/> | 12 | <link href="./node_modules/leaflet/dist/leaflet.css" rel="stylesheet"/> |
13 | <link href="css/general.css" rel="stylesheet"/> | 13 | <link href="css/general.css" rel="stylesheet"/> |
14 | 14 | ||
15 | <!--VENDOR JS--> | 15 | <!--VENDOR JS--> |
16 | <script src="./node_modules/jquery/dist/jquery.min.js"></script> | 16 | <script src="./node_modules/jquery/dist/jquery.min.js"></script> |
17 | <script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script> | 17 | <script src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script> |
18 | <script src="./node_modules/angular/angular.min.js"></script> | 18 | <script src="./node_modules/angular/angular.min.js"></script> |
19 | <script src="./node_modules/angular-cookies/angular-cookies.min.js"></script> | 19 | <script src="./node_modules/angular-cookies/angular-cookies.min.js"></script> |
20 | <script src="./node_modules/angular-i18n/angular-locale_es-ar.js"></script> | 20 | <script src="./node_modules/angular-i18n/angular-locale_es-ar.js"></script> |
21 | <script src="./node_modules/angular-route/angular-route.min.js"></script> | 21 | <script src="./node_modules/angular-route/angular-route.min.js"></script> |
22 | <script src="./node_modules/angular-sanitize/angular-sanitize.min.js"></script> | 22 | <script src="./node_modules/angular-sanitize/angular-sanitize.min.js"></script> |
23 | <script src="./node_modules/ui-bootstrap4/dist/ui-bootstrap-tpls.js"></script> | 23 | <script src="./node_modules/ui-bootstrap4/dist/ui-bootstrap-tpls.js"></script> |
24 | <script src="./node_modules/angular-on-screen-keyboard/dist/angular-on-screen-keyboard.min.js"></script> | ||
25 | <script src="./node_modules/angular-ui-swiper/dist/angular-ui-swiper.js"></script> | 24 | <script src="./node_modules/angular-ui-swiper/dist/angular-ui-swiper.js"></script> |
26 | <script src="./node_modules/ladda/dist/spin.min.js"></script> | 25 | <script src="./node_modules/ladda/dist/spin.min.js"></script> |
27 | <script src="./node_modules/ladda/dist/ladda.min.js"></script> | 26 | <script src="./node_modules/ladda/dist/ladda.min.js"></script> |
28 | <script src="./node_modules/angular-ladda/dist/angular-ladda.min.js"></script> | 27 | <script src="./node_modules/angular-ladda/dist/angular-ladda.min.js"></script> |
29 | <script src="./node_modules/leaflet/dist/leaflet.js"></script> | 28 | <script src="./node_modules/leaflet/dist/leaflet.js"></script> |
30 | <script src="./vendor/cordovaGeolocationModule.min.js"></script> | 29 | <script src="./vendor/cordovaGeolocationModule.min.js"></script> |
31 | 30 | ||
32 | <script src="./node_modules/foca-admin-seguimiento/dist/foca-admin-seguimiento.min.js"></script> | 31 | <script src="./node_modules/foca-admin-seguimiento/dist/foca-admin-seguimiento.min.js"></script> |
33 | <script src="./node_modules/foca-abm-plazo-pago/dist/foca-abm-plazo-pago.min.js"></script> | 32 | <script src="./node_modules/foca-abm-plazo-pago/dist/foca-abm-plazo-pago.min.js"></script> |
34 | <script src="./node_modules/foca-abm-precios-condiciones/dist/foca-abm-precios-condiciones.min.js"></script> | 33 | <script src="./node_modules/foca-abm-precios-condiciones/dist/foca-abm-precios-condiciones.min.js"></script> |
35 | <script src="./node_modules/foca-abm-sectores/dist/foca-abm-sectores.min.js"></script> | 34 | <script src="./node_modules/foca-abm-sectores/dist/foca-abm-sectores.min.js"></script> |
36 | <script src="./node_modules/foca-botonera-principal/dist/foca-botonera-principal.min.js"></script> | 35 | <script src="./node_modules/foca-botonera-principal/dist/foca-botonera-principal.min.js"></script> |
37 | <script src="./node_modules/foca-busqueda-cliente/dist/foca-busqueda-cliente.min.js"></script> | 36 | <script src="./node_modules/foca-busqueda-cliente/dist/foca-busqueda-cliente.min.js"></script> |
38 | <script src="./node_modules/foca-configuracion/dist/foca-configuracion.min.js"></script> | 37 | <script src="./node_modules/foca-configuracion/dist/foca-configuracion.min.js"></script> |
39 | <script src="./node_modules/foca-crear-nota-pedido/dist/foca-crear-nota-pedido.min.js"></script> | 38 | <script src="./node_modules/foca-crear-nota-pedido/dist/foca-crear-nota-pedido.min.js"></script> |
40 | <script src="./node_modules/foca-directivas/dist/foca-directivas.min.js"></script> | 39 | <script src="./node_modules/foca-directivas/dist/foca-directivas.min.js"></script> |
41 | <script src="./node_modules/foca-login/dist/foca-login.min.js"></script> | 40 | <script src="./node_modules/foca-login/dist/foca-login.min.js"></script> |
42 | <script src="./node_modules/foca-modal/dist/foca-modal.min.js"></script> | 41 | <script src="./node_modules/foca-modal/dist/foca-modal.min.js"></script> |
43 | <script src="./node_modules/foca-modal-busqueda-productos/dist/foca-busqueda-productos.min.js"></script> | 42 | <script src="./node_modules/foca-modal-busqueda-productos/dist/foca-busqueda-productos.min.js"></script> |
44 | <script src="./node_modules/foca-modal-cotizacion/dist/foca-modal-cotizacion.min.js"></script> | 43 | <script src="./node_modules/foca-modal-cotizacion/dist/foca-modal-cotizacion.min.js"></script> |
45 | <script src="./node_modules/foca-modal-domicilio/dist/foca-modal-domicilios.min.js"></script> | 44 | <script src="./node_modules/foca-modal-domicilio/dist/foca-modal-domicilios.min.js"></script> |
46 | <script src="./node_modules/foca-modal-flete/dist/foca-modal-flete.min.js"></script> | 45 | <script src="./node_modules/foca-modal-flete/dist/foca-modal-flete.min.js"></script> |
47 | <script src="./node_modules/foca-modal-moneda/dist/foca-modal-moneda.min.js"></script> | 46 | <script src="./node_modules/foca-modal-moneda/dist/foca-modal-moneda.min.js"></script> |
48 | <script src="./node_modules/foca-modal-precio-condiciones/dist/foca-modal-precio-condiciones.min.js"></script> | 47 | <script src="./node_modules/foca-modal-precio-condiciones/dist/foca-modal-precio-condiciones.min.js"></script> |
49 | <script src="./node_modules/foca-modal-proveedor/dist/foca-modal-proveedor.min.js"></script> | 48 | <script src="./node_modules/foca-modal-proveedor/dist/foca-modal-proveedor.min.js"></script> |
50 | <script src="./node_modules/foca-modal-vendedores/dist/foca-modal-vendedores.min.js"></script> | 49 | <script src="./node_modules/foca-modal-vendedores/dist/foca-modal-vendedores.min.js"></script> |
51 | <script src="./node_modules/foca-seguimiento/dist/foca-seguimiento.min.js"></script> | 50 | <script src="./node_modules/foca-seguimiento/dist/foca-seguimiento.min.js"></script> |
52 | <script src="./node_modules/foca-teclado/dist/foca-teclado.min.js"></script> | 51 | <script src="./node_modules/foca-teclado/dist/foca-teclado.min.js"></script> |
53 | <script src="./node_modules/foca-turno-apertura/dist/foca-turno-apertura.min.js"></script> | 52 | <script src="./node_modules/foca-turno-apertura/dist/foca-turno-apertura.min.js"></script> |
54 | <!-- <script src="cordova.js"></script> --> | 53 | <!-- <script src="cordova.js"></script> --> |
55 | 54 | ||
56 | <!-- <script src="./dist/wrapper-demo.min.js"></script> --> | 55 | <!-- <script src="./dist/wrapper-demo.min.js"></script> --> |
57 | <script src="./src/js/app.js"></script> | 56 | <script src="./src/js/app.js"></script> |
58 | <script src="./src/js/controller.js"></script> | 57 | <script src="./src/js/controller.js"></script> |
59 | <script src="./src/etc/develop.js"></script> | 58 | <script src="./src/etc/develop.js"></script> |
60 | </head> | 59 | </head> |
61 | <body> | 60 | <body> |
62 | <style> | 61 | <style> |
63 | </style> | 62 | </style> |
64 | <botonera-horizontal></botonera-horizontal> | 63 | <botonera-horizontal></botonera-horizontal> |
65 | <div ng-view class="container contenedor"></div> | 64 | <div ng-view class="container contenedor"></div> |
66 | <div ng-controller="appWrapperDemoController" class="container d-none d-md-block"> | 65 | <div ng-controller="appWrapperDemoController" class="container d-none d-md-block"> |
67 | <div | 66 | <div |
68 | class="btn-group-toggle" | 67 | class="btn-group-toggle" |
69 | data-toggle="buttons" | 68 | data-toggle="buttons" |
70 | ng-click="mostrarTeclado = !mostrarTeclado"> | 69 | ng-click="usarTeclado = !usarTeclado"> |
71 | <label | 70 | <label |
72 | class="btn btn-secondary active boton-activar-teclado" | 71 | class="btn btn-secondary active boton-activar-teclado" |
73 | ng-class="{'teclado-activar': mostrarTeclado}"> | 72 | ng-class="{'teclado-activar': usarTeclado}"> |
74 | <input | 73 | <input |
75 | type="checkbox" | 74 | type="checkbox" |
76 | autocomplete="off" | 75 | autocomplete="off" |
77 | > | 76 | > |
78 | <i class="fa fa-keyboard-o fa-3x" aria-hidden="true"></i> | 77 | <i class="fa fa-keyboard-o fa-3x" aria-hidden="true"></i> |
79 | </label> | 78 | </label> |
80 | </div> | 79 | </div> |
81 | <foca-teclado | 80 | <foca-teclado |
82 | ng-show="mostrarTeclado && hasFocus" | 81 | ng-show="usarTeclado && mostrarTeclado" |
83 | alfanumeric="true" | 82 | alfanumeric="true" |
84 | numeric="true" | 83 | numeric="true" |
85 | > | 84 | > |
86 | </foca-teclado> | 85 | </foca-teclado> |
87 | </div> | 86 | </div> |
88 | </body> | 87 | </body> |
89 | </html> | 88 | </html> |
90 | 89 |
package.json
1 | { | 1 | { |
2 | "name": "wrapper-demo", | 2 | "name": "wrapper-demo", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "", | 4 | "description": "", |
5 | "main": "main.js", | 5 | "main": "main.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "initdev": "npm install gulp --global && npm install && npm install -g jshint", | 7 | "initdev": "npm install gulp --global && npm install && npm install -g jshint", |
8 | "gulp-pre-commit": "gulp pre-commit", | 8 | "gulp-pre-commit": "gulp pre-commit", |
9 | "compile": "gulp uglify && gulp sass", | 9 | "compile": "gulp uglify && gulp sass", |
10 | "electron": "electron .", | 10 | "electron": "electron .", |
11 | "electron-build": "gulp uglify && gulp html && gulp sass && electron ." | 11 | "electron-build": "gulp uglify && gulp html && gulp sass && electron ." |
12 | }, | 12 | }, |
13 | "pre-commit": [ | 13 | "pre-commit": [ |
14 | "gulp-pre-commit" | 14 | "gulp-pre-commit" |
15 | ], | 15 | ], |
16 | "repository": { | 16 | "repository": { |
17 | "type": "git", | 17 | "type": "git", |
18 | "url": "https://debo.suite.repo/Wrappers/wrapper-demo.git" | 18 | "url": "https://debo.suite.repo/Wrappers/wrapper-demo.git" |
19 | }, | 19 | }, |
20 | "author": "Foca Software", | 20 | "author": "Foca Software", |
21 | "license": "ISC", | 21 | "license": "ISC", |
22 | "dependencies": { | 22 | "dependencies": { |
23 | "angular": "^1.7.5", | 23 | "angular": "^1.7.5", |
24 | "angular-cookies": "^1.7.5", | 24 | "angular-cookies": "^1.7.5", |
25 | "angular-i18n": "^1.7.5", | 25 | "angular-i18n": "^1.7.5", |
26 | "angular-ladda": "^0.4.3", | 26 | "angular-ladda": "^0.4.3", |
27 | "angular-on-screen-keyboard": "git+https://github.com/ericf97/angular-on-screen-keyboard.git", | ||
28 | "angular-route": "^1.7.5", | 27 | "angular-route": "^1.7.5", |
29 | "angular-sanitize": "^1.7.5", | 28 | "angular-sanitize": "^1.7.5", |
30 | "angular-ui-swiper": "^2.3.8", | 29 | "angular-ui-swiper": "^2.3.8", |
31 | "bootstrap": "^4.1.3", | 30 | "bootstrap": "^4.1.3", |
32 | "foca-abm-plazo-pago": "git+https://debo.suite.repo/modulos-npm/foca-abm-plazo-pago.git", | 31 | "foca-abm-plazo-pago": "git+https://debo.suite.repo/modulos-npm/foca-abm-plazo-pago.git", |
33 | "foca-abm-precios-condiciones": "git+https://debo.suite.repo/modulos-npm/foca-abm-precios-condiciones.git", | 32 | "foca-abm-precios-condiciones": "git+https://debo.suite.repo/modulos-npm/foca-abm-precios-condiciones.git", |
34 | "foca-abm-sectores": "git+https://debo.suite.repo/modulos-npm/foca-abm-sectores", | 33 | "foca-abm-sectores": "git+https://debo.suite.repo/modulos-npm/foca-abm-sectores", |
35 | "foca-admin-seguimiento": "git+https://debo.suite.repo/modulos-npm/foca-admin-seguimiento.git", | 34 | "foca-admin-seguimiento": "git+https://debo.suite.repo/modulos-npm/foca-admin-seguimiento.git", |
36 | "foca-botonera-principal": "git+https://debo.suite.repo/modulos-npm/foca-botonera-principal.git", | 35 | "foca-botonera-principal": "git+https://debo.suite.repo/modulos-npm/foca-botonera-principal.git", |
37 | "foca-busqueda-cliente": "git+https://debo.suite.repo/modulos-npm/foca-busqueda-cliente.git", | 36 | "foca-busqueda-cliente": "git+https://debo.suite.repo/modulos-npm/foca-busqueda-cliente.git", |
38 | "foca-configuracion": "git+https://debo.suite.repo/modulos-npm/foca-configuracion.git", | 37 | "foca-configuracion": "git+https://debo.suite.repo/modulos-npm/foca-configuracion.git", |
39 | "foca-crear-nota-pedido": "git+https://debo.suite.repo/modulos-npm/foca-crear-nota-pedido.git", | 38 | "foca-crear-nota-pedido": "git+https://debo.suite.repo/modulos-npm/foca-crear-nota-pedido.git", |
40 | "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", | 39 | "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", |
41 | "foca-login": "git+https://debo.suite.repo/modulos-npm/foca-login.git", | 40 | "foca-login": "git+https://debo.suite.repo/modulos-npm/foca-login.git", |
42 | "foca-modal": "git+https://debo.suite.repo/modulos-npm/foca-modal", | 41 | "foca-modal": "git+https://debo.suite.repo/modulos-npm/foca-modal", |
43 | "foca-modal-busqueda-productos": "git+https://debo.suite.repo/modulos-npm/foca-modal-busqueda-productos", | 42 | "foca-modal-busqueda-productos": "git+https://debo.suite.repo/modulos-npm/foca-modal-busqueda-productos", |
44 | "foca-modal-cotizacion": "git+https://debo.suite.repo/modulos-npm/foca-modal-cotizacion.git", | 43 | "foca-modal-cotizacion": "git+https://debo.suite.repo/modulos-npm/foca-modal-cotizacion.git", |
45 | "foca-modal-domicilio": "git+https://debo.suite.repo/modulos-npm/foca-modal-domicilio.git", | 44 | "foca-modal-domicilio": "git+https://debo.suite.repo/modulos-npm/foca-modal-domicilio.git", |
46 | "foca-modal-flete": "git+https://debo.suite.repo/modulos-npm/foca-modal-flete.git", | 45 | "foca-modal-flete": "git+https://debo.suite.repo/modulos-npm/foca-modal-flete.git", |
47 | "foca-modal-moneda": "git+https://debo.suite.repo/modulos-npm/foca-modal-moneda.git", | 46 | "foca-modal-moneda": "git+https://debo.suite.repo/modulos-npm/foca-modal-moneda.git", |
48 | "foca-modal-precio-condiciones": "git+https://debo.suite.repo/modulos-npm/foca-modal-precio-condiciones.git", | 47 | "foca-modal-precio-condiciones": "git+https://debo.suite.repo/modulos-npm/foca-modal-precio-condiciones.git", |
49 | "foca-modal-proveedor": "git+https://debo.suite.repo/modulos-npm/foca-modal-proveedor.git", | 48 | "foca-modal-proveedor": "git+https://debo.suite.repo/modulos-npm/foca-modal-proveedor.git", |
50 | "foca-modal-vendedores": "git+https://debo.suite.repo/modulos-npm/foca-modal-vendedores.git", | 49 | "foca-modal-vendedores": "git+https://debo.suite.repo/modulos-npm/foca-modal-vendedores.git", |
51 | "foca-seguimiento": "git+https://debo.suite.repo/modulos-npm/foca-seguimiento.git", | 50 | "foca-seguimiento": "git+https://debo.suite.repo/modulos-npm/foca-seguimiento.git", |
52 | "foca-teclado": "git+https://debo.suite.repo/modulos-npm/foca-teclado.git", | 51 | "foca-teclado": "git+https://debo.suite.repo/modulos-npm/foca-teclado.git", |
53 | "foca-turno-apertura": "git+https://debo.suite.repo/modulos-npm/foca-turno-apertura.git", | 52 | "foca-turno-apertura": "git+https://debo.suite.repo/modulos-npm/foca-turno-apertura.git", |
54 | "font-awesome": "^4.7.0", | 53 | "font-awesome": "^4.7.0", |
55 | "gulp-angular-templatecache": "^2.2.1", | 54 | "gulp-angular-templatecache": "^2.2.1", |
56 | "gulp-htmlmin": "^5.0.1", | 55 | "gulp-htmlmin": "^5.0.1", |
57 | "gulp-uglify": "^3.0.1", | 56 | "gulp-uglify": "^3.0.1", |
58 | "gulp-uglify-es": "^1.0.4", | 57 | "gulp-uglify-es": "^1.0.4", |
59 | "jquery": "^3.3.1", | 58 | "jquery": "^3.3.1", |
60 | "ladda": "1.0.6", | 59 | "ladda": "1.0.6", |
61 | "leaflet": "1.3.4", | 60 | "leaflet": "1.3.4", |
62 | "node-sass": "^4.9.4", | 61 | "node-sass": "^4.9.4", |
63 | "uglify": "^0.1.5", | 62 | "uglify": "^0.1.5", |
64 | "ui-bootstrap4": "^3.0.5" | 63 | "ui-bootstrap4": "^3.0.5" |
65 | }, | 64 | }, |
66 | "devDependencies": { | 65 | "devDependencies": { |
67 | "electron": "^3.0.2", | 66 | "electron": "^3.0.2", |
68 | "gulp": "^3.9.1", | 67 | "gulp": "^3.9.1", |
69 | "gulp-clean": "^0.4.0", | 68 | "gulp-clean": "^0.4.0", |
70 | "gulp-concat": "^2.6.1", | 69 | "gulp-concat": "^2.6.1", |
71 | "gulp-connect": "^5.6.1", | 70 | "gulp-connect": "^5.6.1", |
72 | "gulp-jshint": "^2.1.0", | 71 | "gulp-jshint": "^2.1.0", |
73 | "gulp-rename": "^1.4.0", | 72 | "gulp-rename": "^1.4.0", |
74 | "gulp-replace": "^1.0.0", | 73 | "gulp-replace": "^1.0.0", |
75 | "gulp-sass": "^4.0.1", | 74 | "gulp-sass": "^4.0.1", |
76 | "gulp-uglify": "^1.0.4", | 75 | "gulp-uglify": "^1.0.4", |
77 | "gulp-watch": "^5.0.1", | 76 | "gulp-watch": "^5.0.1", |
78 | "jasmine-core": "^3.2.1", | 77 | "jasmine-core": "^3.2.1", |
79 | "jshint": "^2.9.6", | 78 | "jshint": "^2.9.6", |
80 | "pre-commit": "^1.2.2", | 79 | "pre-commit": "^1.2.2", |
81 | "pump": "^3.0.0" | 80 | "pump": "^3.0.0" |
82 | } | 81 | } |
83 | } | 82 | } |
84 | 83 |
src/js/controller.js
1 | angular.module('appWrapperDemo') | 1 | angular.module('appWrapperDemo') |
2 | .controller('appWrapperDemoController', [ | 2 | .controller('appWrapperDemoController', [ |
3 | '$scope', | 3 | '$scope', |
4 | '$rootScope', | 4 | '$rootScope', |
5 | '$timeout', | 5 | '$timeout', |
6 | function($scope, $rootScope, $timeout) { | 6 | function($scope, $rootScope, $timeout) { |
7 | $scope.hasFocus = false; | 7 | $scope.usarTeclado = false; |
8 | var estado; | 8 | $scope.mostrarTeclado = false; |
9 | $rootScope.$on('focus', function(event, data) { | 9 | $rootScope.$on('focus', function(event) { |
10 | estado = data; | 10 | if(!$scope.usarTeclado) { |
11 | if(!data) { | 11 | return; |
12 | $timeout(function() { | ||
13 | if(!estado) { | ||
14 | $scope.hasFocus = data; | ||
15 | } | ||
16 | },200) | ||
17 | } else { | ||
18 | $scope.hasFocus = data; | ||
19 | } | 12 | } |
13 | $scope.mostrarTeclado = true; | ||
14 | $timeout.cancel($scope.timeout); | ||
15 | if(!$scope.$$phase) { | ||
16 | $scope.$apply(); | ||
17 | } | ||
18 | }); | ||
19 | $rootScope.$on('blur', function(event) { | ||
20 | $scope.timeout = $timeout(function(){ | ||
21 | $scope.mostrarTeclado = false; | ||
22 | if(!$scope.$$phase) { |
src/sass/_teclado.scss
1 | |||
2 | .keyboard { | 1 | .keyboard { |
3 | -webkit-touch-callout: none; | 2 | -webkit-touch-callout: none; |
4 | -webkit-user-select: none; | 3 | -webkit-user-select: none; |
5 | -khtml-user-select: none; | 4 | -khtml-user-select: none; |
6 | -moz-user-select: none; | 5 | -moz-user-select: none; |
7 | -ms-user-select: none; | 6 | -ms-user-select: none; |
8 | user-select: none; | 7 | user-select: none; |
9 | width: 62%; | 8 | width: 62%; |
10 | height: 60%; | 9 | height: auto; |
11 | margin-left: 13%; | 10 | margin-left: 13%; |
12 | margin-top: -19%; | 11 | margin-top: -19%; |
13 | position: absolute; | 12 | position: absolute; |
13 | border: 1px solid rgba(255, 128, 0, .4); | ||
14 | background-color: rgba(0, 0, 0, .3); | ||
15 | bottom: 5px; | ||
14 | table { | 16 | table { |
15 | border-spacing: 10px; | 17 | border-spacing: 10px; |
16 | border-collapse: separate; | 18 | border-collapse: separate; |
17 | z-index: 100000; | 19 | z-index: 100000; |
18 | td { | 20 | td { |
19 | touch-action: none; | 21 | touch-action: none; |
20 | } | 22 | } |
21 | } | 23 | } |
22 | 24 | ||
23 | .letter { | 25 | .letter { |
24 | background-color: #bdbdbd; | 26 | background-color: #bdbdbd; |
25 | box-shadow: 2px 2px 3px #555555; | 27 | box-shadow: 2px 2px 3px #555555; |
26 | width: 47px; | 28 | width: 47px; |
27 | height: 50px; | 29 | height: 50px; |
28 | text-align: center; | 30 | text-align: center; |
29 | font-family: "arial"; | 31 | font-family: "arial"; |
30 | cursor: pointer; | 32 | cursor: pointer; |
31 | color: #000; | 33 | color: #000; |
32 | font-size: 22px; | 34 | font-size: 22px; |
33 | 35 | ||
34 | &:hover { | 36 | &:hover { |
35 | background-color: #fafafa; | 37 | background-color: #fafafa; |
36 | } | 38 | } |
37 | &:active { | 39 | &:active { |
38 | background-color: #999; | 40 | background-color: #999; |
39 | color: #fff; | 41 | color: #fff; |
40 | } | 42 | } |
41 | } | 43 | } |
42 | .number { | 44 | .number { |
43 | background-color: #bdbdbd; | 45 | background-color: #bdbdbd; |
44 | box-shadow: 2px 2px 3px #555555; | 46 | box-shadow: 2px 2px 3px #555555; |
45 | width: 47px; | 47 | width: 47px; |
46 | height: 35px; | 48 | height: 35px; |
47 | text-align: center; | 49 | text-align: center; |
48 | font-family: "arial"; | 50 | font-family: "arial"; |
49 | cursor: pointer; | 51 | cursor: pointer; |
50 | color: #000; | 52 | color: #000; |
51 | font-size: 22px; | 53 | font-size: 22px; |
52 | 54 | ||
53 | &:hover { | 55 | &:hover { |
54 | background-color: #fafafa; | 56 | background-color: #fafafa; |
55 | } | 57 | } |
56 | &:active { | 58 | &:active { |
57 | background-color: #999; | 59 | background-color: #999; |
58 | color: #fff; | 60 | color: #fff; |
59 | } | 61 | } |
60 | } | 62 | } |
61 | 63 | ||
62 | .margin { | 64 | .margin { |
63 | width: 40px; | 65 | width: 40px; |
64 | height: 50px; | 66 | height: 50px; |
65 | } | 67 | } |
66 | } | 68 | } |
67 | .teclado-activar { | 69 | .teclado-activar { |
68 | background-color: #17d236; | 70 | background-color: #17d236; |
69 | } | 71 | } |
70 | .boton-activar-teclado { | 72 | .boton-activar-teclado { |
71 | margin-top: -10%; | 73 | margin-top: -10%; |
72 | position: absolute; | 74 | position: absolute; |
73 | z-index: 100000; | 75 | z-index: 100000; |
74 | } | 76 | } |