virtual-keypad 5.13.0 → 5.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/keypad.css CHANGED
@@ -1,109 +1,109 @@
1
- /* REMOTE KEYPAD STYLING */
2
- #keypad {
3
- position: absolute;
4
- width: 100%;
5
- height: 100vh;
6
- height: 100dvh;
7
-
8
- display: grid;
9
- grid-template-columns: 1fr;
10
- /* Make header text as big as the text, keys take up as much space as needed, and control keys take up bottom space */
11
- grid-template-rows: max-content auto;
12
-
13
- align-items: center;
14
- justify-content: center;
15
-
16
- font-family: sans-serif;
17
- }
18
- #keypad-header {
19
- height: 100%;
20
- font-size: 1.5rem;
21
- font-weight: 700;
22
- text-align: center;
23
-
24
- grid-row: 1;
25
- overflow-y: auto;
26
-
27
- border-radius: 0.5em;
28
-
29
- box-shadow: inset 2px 2px 4px #888888,
30
- inset -2px -2px 4px #fff;
31
- }
32
- #keypad-footer {
33
- position: absolute;
34
- font-size: smaller;
35
- width: 100%;
36
- bottom: 0;
37
- right: 0;
38
- }
39
-
40
- /* Grid of main keys themselves */
41
- #keypad-keys {
42
- /* Second row, within the keypad grid (ie whole page) */
43
- grid-row: 2;
44
- }
45
- /* Hide scrollbar */
46
- /* #keypad-keys::-webkit-scrollbar {
47
- display: none;
48
- } */
49
-
50
- .response-button {
51
- /* border: 1px solid red; */
52
- cursor: pointer;
53
-
54
- /* Center text within button */
55
- display: flex;
56
- align-items: center;
57
- justify-content: center;
58
-
59
- /* Curve corners of buttons */
60
- border-radius: min(25px, 15%);
61
-
62
- /* Style button text */
63
- /* font-size: 3rem; */
64
- font-size: xx-large;
65
- font-weight: 700;
66
-
67
- padding: 0;
68
- margin: 0;
69
-
70
- box-shadow: 1px 1px 2px #888888,
71
- -1px -1px 2px #fff;
72
- }
73
- .response-button:active {
74
- box-shadow: 1px 2px 2px 1px #999;
75
- background-color: #aaa;
76
- }
77
-
78
- /* Only do on a hover-enabled device, ie not a phone/tablet */
79
- @media (hover: hover) {
80
- .response-button:hover {
81
- box-shadow: inset 1px 1px 2px #888888,
82
- inset -1px -1px 2px #fff;
83
- }
84
- }
85
-
86
-
87
- .response-button-label {
88
- text-align: center;
89
- /* color: #eeeeee; */
90
- }
91
-
92
- .noselect {
93
- -webkit-touch-callout: none; /* iOS Safari */
94
- -webkit-user-select: none; /* Safari */
95
- -khtml-user-select: none; /* Konqueror HTML */
96
- -moz-user-select: none; /* Old versions of Firefox */
97
- -ms-user-select: none; /* Internet Explorer/Edge */
98
- user-select: none; /* Non-prefixed version, currently
99
- supported by Chrome, Edge, Opera and Firefox */
100
- touch-action: none;
101
- }
102
-
103
- .unpressable {
104
- background-color: #aaaaaa;
105
- box-shadow: inset 1px 1px 2px #888888,
106
- inset -1px -1px 2px #fff;
107
- pointer-events: none;
108
- user-select: none;
1
+ /* REMOTE KEYPAD STYLING */
2
+ #keypad {
3
+ position: absolute;
4
+ width: 100%;
5
+ height: 100vh;
6
+ height: 100dvh;
7
+
8
+ display: grid;
9
+ grid-template-columns: 1fr;
10
+ /* Make header text as big as the text, keys take up as much space as needed, and control keys take up bottom space */
11
+ grid-template-rows: max-content auto;
12
+
13
+ align-items: center;
14
+ justify-content: center;
15
+
16
+ font-family: sans-serif;
17
+ }
18
+ #keypad-header {
19
+ height: 100%;
20
+ font-size: 1.5rem;
21
+ font-weight: 700;
22
+ text-align: center;
23
+
24
+ grid-row: 1;
25
+ overflow-y: auto;
26
+
27
+ border-radius: 0.5em;
28
+
29
+ box-shadow: inset 2px 2px 4px #888888,
30
+ inset -2px -2px 4px #fff;
31
+ }
32
+ #keypad-footer {
33
+ position: absolute;
34
+ font-size: smaller;
35
+ width: 100%;
36
+ bottom: 0;
37
+ right: 0;
38
+ }
39
+
40
+ /* Grid of main keys themselves */
41
+ #keypad-keys {
42
+ /* Second row, within the keypad grid (ie whole page) */
43
+ grid-row: 2;
44
+ }
45
+ /* Hide scrollbar */
46
+ /* #keypad-keys::-webkit-scrollbar {
47
+ display: none;
48
+ } */
49
+
50
+ .response-button {
51
+ /* border: 1px solid red; */
52
+ cursor: pointer;
53
+
54
+ /* Center text within button */
55
+ display: flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+
59
+ /* Curve corners of buttons */
60
+ border-radius: min(25px, 15%);
61
+
62
+ /* Style button text */
63
+ /* font-size: 3rem; */
64
+ font-size: xx-large;
65
+ font-weight: 700;
66
+
67
+ padding: 0;
68
+ margin: 0;
69
+
70
+ box-shadow: 1px 1px 2px #888888,
71
+ -1px -1px 2px #fff;
72
+ }
73
+ .response-button:active {
74
+ box-shadow: 1px 2px 2px 1px #999;
75
+ background-color: #aaa;
76
+ }
77
+
78
+ /* Only do on a hover-enabled device, ie not a phone/tablet */
79
+ @media (hover: hover) {
80
+ .response-button:hover {
81
+ box-shadow: inset 1px 1px 2px #888888,
82
+ inset -1px -1px 2px #fff;
83
+ }
84
+ }
85
+
86
+
87
+ .response-button-label {
88
+ text-align: center;
89
+ /* color: #eeeeee; */
90
+ }
91
+
92
+ .noselect {
93
+ -webkit-touch-callout: none; /* iOS Safari */
94
+ -webkit-user-select: none; /* Safari */
95
+ -khtml-user-select: none; /* Konqueror HTML */
96
+ -moz-user-select: none; /* Old versions of Firefox */
97
+ -ms-user-select: none; /* Internet Explorer/Edge */
98
+ user-select: none; /* Non-prefixed version, currently
99
+ supported by Chrome, Edge, Opera and Firefox */
100
+ touch-action: none;
101
+ }
102
+
103
+ .unpressable {
104
+ background-color: #aaaaaa;
105
+ box-shadow: inset 1px 1px 2px #888888,
106
+ inset -1px -1px 2px #fff;
107
+ pointer-events: none;
108
+ user-select: none;
109
109
  }