Skip to content

Commit d66d4bb

Browse files
Merge pull request #83 from The-User-Python/The-User-Python-patch-12
Update index.css
2 parents 9032059 + 5d27fe6 commit d66d4bb

File tree

1 file changed

+46
-23
lines changed

1 file changed

+46
-23
lines changed

index.css

Lines changed: 46 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@
44
found in the LICENSE file.
55
*/
66

7-
/* Resetting default styles for HTML and body */
7+
/* General reset for HTML and body */
88
html, body {
9-
padding: 0;
109
margin: 0;
10+
padding: 0;
1111
width: 100%;
1212
height: 100%;
1313
font-family: 'Roboto', sans-serif;
1414
background-color: #f4f4f4;
1515
color: #333;
16+
overflow-x: hidden; /* Prevent horizontal scrolling */
1617
}
1718

18-
/* Styling for reusable icon class */
19+
/* Reusable icon class */
1920
.icon {
20-
user-select: none;
2121
display: inline-block;
22+
user-select: none;
2223
}
2324

2425
/* Utility class to hide elements */
@@ -32,36 +33,39 @@ html, body {
3233
font-size: 1.2em;
3334
line-height: 1.5;
3435
margin: 0 auto;
35-
max-width: 800px;
3636
padding-top: 100px;
3737
width: 90%;
38+
max-width: 800px;
39+
text-align: center;
3840
}
3941

40-
.offline .runner-container,
41-
.offline .runner-canvas {
42+
.offline .runner-container {
43+
position: relative;
4244
height: 120px;
45+
width: 100%;
4346
max-width: 800px;
47+
margin: 30px auto 0;
4448
overflow: hidden;
45-
position: absolute;
46-
top: 30px;
47-
width: 40px;
4849
}
4950

5051
.offline .runner-canvas {
5152
opacity: 0.9;
52-
overflow: hidden;
53+
height: 100%;
54+
width: 40px;
5355
position: absolute;
5456
top: 0;
57+
left: 50%;
58+
transform: translateX(-50%); /* Centering the canvas */
5559
z-index: 2;
5660
}
5761

5862
.offline .controller {
59-
background: rgba(247, 247, 247, 0.2);
60-
height: 100vh;
61-
left: 0;
6263
position: absolute;
6364
top: 0;
65+
left: 0;
6466
width: 100vw;
67+
height: 100vh;
68+
background: rgba(247, 247, 247, 0.2);
6569
z-index: 1;
6670
}
6771

@@ -70,28 +74,47 @@ html, body {
7074
display: block;
7175
}
7276

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 */
7491
@media (max-width: 480px) {
7592
.suggested-left > #control-buttons,
7693
.suggested-right > #control-buttons {
7794
float: left;
7895
}
96+
97+
.offline .interstitial-wrapper {
98+
padding-top: 50px;
99+
font-size: 1.1em;
100+
}
79101

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;
87105
}
88106
}
89107

90-
/* Additional styles for larger screens */
108+
/* Responsive styles for larger screens */
91109
@media (min-width: 768px) {
92110
body {
93111
background-color: #fff;
94112
}
95113

114+
/* Make interstitial-wrapper text larger for larger screens */
115+
.offline .interstitial-wrapper {
116+
font-size: 1.4em;
117+
}
118+
96119
/* Add more styles for larger screens as needed */
97120
}

0 commit comments

Comments
 (0)