4
4
found in the LICENSE file.
5
5
*/
6
6
7
- /* Resetting default styles for HTML and body */
7
+ /* General reset for HTML and body */
8
8
html , body {
9
- padding : 0 ;
10
9
margin : 0 ;
10
+ padding : 0 ;
11
11
width : 100% ;
12
12
height : 100% ;
13
13
font-family : 'Roboto' , sans-serif;
14
14
background-color : # f4f4f4 ;
15
15
color : # 333 ;
16
+ overflow-x : hidden; /* Prevent horizontal scrolling */
16
17
}
17
18
18
- /* Styling for reusable icon class */
19
+ /* Reusable icon class */
19
20
.icon {
20
- user-select : none;
21
21
display : inline-block;
22
+ user-select : none;
22
23
}
23
24
24
25
/* Utility class to hide elements */
@@ -32,36 +33,39 @@ html, body {
32
33
font-size : 1.2em ;
33
34
line-height : 1.5 ;
34
35
margin : 0 auto;
35
- max-width : 800px ;
36
36
padding-top : 100px ;
37
37
width : 90% ;
38
+ max-width : 800px ;
39
+ text-align : center;
38
40
}
39
41
40
- .offline .runner-container ,
41
- . offline . runner-canvas {
42
+ .offline .runner-container {
43
+ position : relative;
42
44
height : 120px ;
45
+ width : 100% ;
43
46
max-width : 800px ;
47
+ margin : 30px auto 0 ;
44
48
overflow : hidden;
45
- position : absolute;
46
- top : 30px ;
47
- width : 40px ;
48
49
}
49
50
50
51
.offline .runner-canvas {
51
52
opacity : 0.9 ;
52
- overflow : hidden;
53
+ height : 100% ;
54
+ width : 40px ;
53
55
position : absolute;
54
56
top : 0 ;
57
+ left : 50% ;
58
+ transform : translateX (-50% ); /* Centering the canvas */
55
59
z-index : 2 ;
56
60
}
57
61
58
62
.offline .controller {
59
- background : rgba (247 , 247 , 247 , 0.2 );
60
- height : 100vh ;
61
- left : 0 ;
62
63
position : absolute;
63
64
top : 0 ;
65
+ left : 0 ;
64
66
width : 100vw ;
67
+ height : 100vh ;
68
+ background : rgba (247 , 247 , 247 , 0.2 );
65
69
z-index : 1 ;
66
70
}
67
71
@@ -70,28 +74,47 @@ html, body {
70
74
display : block;
71
75
}
72
76
73
- /* Responsive styles for small screens */
77
+ /* Snackbar styling for mobile view */
78
+ .snackbar {
79
+ position : fixed;
80
+ left : 0 ;
81
+ bottom : 10px ;
82
+ width : 100% ;
83
+ border-radius : 5px ;
84
+ background-color : # 333 ;
85
+ color : # fff ;
86
+ padding : 10px ;
87
+ text-align : center;
88
+ }
89
+
90
+ /* Responsive styles for mobile screens */
74
91
@media (max-width : 480px ) {
75
92
.suggested-left > # control-buttons ,
76
93
.suggested-right > # control-buttons {
77
94
float : left;
78
95
}
96
+
97
+ .offline .interstitial-wrapper {
98
+ padding-top : 50px ;
99
+ font-size : 1.1em ;
100
+ }
79
101
80
- /* Snackbar styling for mobile view */
81
- .snackbar {
82
- position : fixed;
83
- left : 0 ;
84
- bottom : 10px ;
85
- width : 100% ;
86
- border-radius : 5px ;
102
+ /* Reducing height for mobile */
103
+ .offline .runner-container {
104
+ height : 100px ;
87
105
}
88
106
}
89
107
90
- /* Additional styles for larger screens */
108
+ /* Responsive styles for larger screens */
91
109
@media (min-width : 768px ) {
92
110
body {
93
111
background-color : # fff ;
94
112
}
95
113
114
+ /* Make interstitial-wrapper text larger for larger screens */
115
+ .offline .interstitial-wrapper {
116
+ font-size : 1.4em ;
117
+ }
118
+
96
119
/* Add more styles for larger screens as needed */
97
120
}
0 commit comments