17
17
* under the License.
18
18
*/
19
19
* {
20
- -webkit-tap-highlight-color : rgba (0 , 0 , 0 , 0 ); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
20
+ -webkit-tap-highlight-color : rgba (0 , 0 , 0 , 0 );
21
+ /* make transparent link selection, adjust last value opacity 0 to 1.0 */
21
22
}
22
23
23
24
body {
24
- -webkit-touch-callout : none; /* prevent callout to copy image, etc when tap to hold */
25
- -webkit-text-size-adjust : none; /* prevent webkit from resizing text to fit */
26
- -webkit-user-select : none; /* prevent copy paste, to allow, change 'none' to 'text' */
27
- background-color : # E4E4E4 ;
28
- background-image : linear-gradient (to bottom, # A7A7A7 0% , # E4E4E4 51% );
25
+ -webkit-touch-callout : none;
26
+ /* prevent callout to copy image, etc when tap to hold */
27
+ -webkit-text-size-adjust : none;
28
+ /* prevent webkit from resizing text to fit */
29
+ -webkit-user-select : none;
30
+ /* prevent copy paste, to allow, change 'none' to 'text' */
31
+ background-color : # E4E4E4 ;
32
+ background-image : linear-gradient (to bottom, # A7A7A7 0% , # E4E4E4 51% );
29
33
font-family : system-ui, -apple-system, -apple-system-font, 'Segoe UI' , 'Roboto' , sans-serif;
30
- font-size : 12px ;
31
- height : 100vh ;
32
- margin : 0px ;
33
- padding : 0px ;
34
+ font-size : 12px ;
35
+ height : 100vh ;
36
+ margin : 0px ;
37
+ padding : 0px ;
34
38
/* Padding to avoid the "unsafe" areas behind notches in the screen */
35
39
padding : env (safe-area-inset-top, 0px ) env (safe-area-inset-right, 0px ) env (safe-area-inset-bottom, 0px ) env (safe-area-inset-left, 0px );
36
- text-transform : uppercase;
37
- width : 100% ;
40
+ text-transform : uppercase;
41
+ width : 100% ;
38
42
}
39
43
40
44
/* Portrait layout (default) */
41
45
.app {
42
- background : url(../ img/logo.png) no-repeat center top; /* 170px x 200px */
43
- position : absolute; /* position in the center of the screen */
44
- left : 50% ;
45
- top : 50% ;
46
- height : 50px ; /* text area height */
47
- width : 225px ; /* text area width */
48
- text-align : center;
49
- padding : 180px 0px 0px 0px ; /* image height is 200px (bottom 20px are overlapped with text) */
50
- margin : -115px 0px 0px -112px ; /* offset vertical: half of image height and text area height */
51
- /* offset horizontal: half of text area width */
46
+ background : url(../ img/logo.png) no-repeat center top;
47
+ /* 170px x 200px */
48
+ position : absolute;
49
+ /* position in the center of the screen */
50
+ left : 50% ;
51
+ top : 50% ;
52
+ height : 50px ;
53
+ /* text area height */
54
+ width : 225px ;
55
+ /* text area width */
56
+ text-align : center;
57
+ padding : 180px 0px 0px 0px ;
58
+ /* image height is 200px (bottom 20px are overlapped with text) */
59
+ margin : -115px 0px 0px -112px ;
60
+ /* offset vertical: half of image height and text area height */
61
+ /* offset horizontal: half of text area width */
52
62
}
53
63
54
64
/* Landscape layout (with min-width) */
55
65
@media screen and (min-aspect-ratio : 1 / 1 ) and (min-width : 400px ) {
56
66
.app {
57
- background-position : left center;
58
- padding : 75px 0px 75px 170px ; /* padding-top + padding-bottom + text area = image height */
59
- margin : -90px 0px 0px -198px ; /* offset vertical: half of image height */
60
- /* offset horizontal: half of image width and text area width */
67
+ background-position : left center;
68
+ padding : 75px 0px 75px 170px ;
69
+ /* padding-top + padding-bottom + text area = image height */
70
+ margin : -90px 0px 0px -198px ;
71
+ /* offset vertical: half of image height */
72
+ /* offset horizontal: half of image width and text area width */
61
73
}
62
74
}
63
75
64
76
h1 {
65
- font-size : 24px ;
66
- font-weight : normal;
67
- margin : 0px ;
68
- overflow : visible;
69
- padding : 0px ;
70
- text-align : center;
77
+ font-size : 24px ;
78
+ font-weight : normal;
79
+ margin : 0px ;
80
+ overflow : visible;
81
+ padding : 0px ;
82
+ text-align : center;
71
83
}
72
84
73
85
.event {
74
- border-radius : 4px ;
75
- color : # FFFFFF ;
76
- font-size : 12px ;
77
- margin : 0px 30px ;
78
- padding : 2px 0px ;
86
+ border-radius : 4px ;
87
+ color : # FFFFFF ;
88
+ font-size : 12px ;
89
+ margin : 0px 30px ;
90
+ padding : 2px 0px ;
79
91
}
80
92
81
93
.event .listening {
82
- background-color : # 333333 ;
83
- display : block;
94
+ background-color : # 333333 ;
95
+ display : block;
84
96
}
85
97
86
98
.event .received {
87
- background-color : # 4B946A ;
88
- display : none;
99
+ background-color : # 4B946A ;
100
+ display : none;
89
101
}
90
102
91
- # deviceready .ready .event .listening { display : none; }
92
- # deviceready .ready .event .received { display : block; }
103
+ # deviceready .ready .event .listening {
104
+ display : none;
105
+ }
106
+
107
+ # deviceready .ready .event .received {
108
+ display : block;
109
+ }
93
110
94
111
@keyframes fade {
95
- from { opacity : 1.0 ; }
96
- 50% { opacity : 0.4 ; }
97
- to { opacity : 1.0 ; }
112
+ from {
113
+ opacity : 1.0 ;
114
+ }
115
+
116
+ 50% {
117
+ opacity : 0.4 ;
118
+ }
119
+
120
+ to {
121
+ opacity : 1.0 ;
122
+ }
98
123
}
99
124
100
125
.blink {
101
- animation : fade 3000ms infinite;
102
- -webkit-animation : fade 3000ms infinite;
126
+ animation : fade 3000ms infinite;
127
+ -webkit-animation : fade 3000ms infinite;
103
128
}
104
129
130
+ .ui-footer .ui-bar-inherit .ui-footer-fixed .slideup {
131
+ display : flex;
132
+ flex-direction : row;
133
+ justify-content : center;
134
+ padding : 10px 0 ;
135
+ }
136
+
137
+ form .add-new-element {
138
+ display : flex;
139
+ justify-content : center;
140
+ }
141
+
142
+ .ui-btn .ui-input-btn .ui-corner-all .ui-shadow {
143
+ padding : 12px ;
144
+ margin : 6px 10px ;
145
+ }
146
+
147
+ h1 .ui-title {
148
+ place-self : center;
149
+ font-weight : bold;
150
+ }
151
+
152
+ @media screen and (max-width : 500px ) {
153
+ .ui-footer .ui-bar-inherit .ui-footer-fixed .slideup {
154
+ flex-direction : column;
155
+ }
156
+ }
105
157
106
158
@media screen and (prefers-color-scheme : dark) {
107
159
body {
108
- background-image : linear-gradient (to bottom, # 585858 0% , # 1B1B1B 51% );
160
+ background-image : linear-gradient (to bottom, # 585858 0% , # 1B1B1B 51% );
109
161
}
110
- }
162
+ }
0 commit comments