Skip to content

Commit ce61b0a

Browse files
Merge pull request #79 from The-User-Python/The-User-Python-patch-9
Update index.css
2 parents d05f449 + 2c865e3 commit ce61b0a

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

index.css

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
/* Reset CSS */
1+
/* Copyright 2013 The Chromium Authors. All rights reserved.
2+
* Use of this source code is governed by a BSD-style license that can be
3+
* found in the LICENSE file. */
4+
5+
/* Resetting default styles for HTML and body */
26
html, body {
37
padding: 0;
48
margin: 0;
59
width: 100%;
610
height: 100%;
711
}
812

9-
/* Common styles for icons */
13+
/* Styling for reusable icon class */
1014
.icon {
1115
user-select: none;
1216
display: inline-block;
1317
}
1418

15-
/* Online icon */
19+
/* Online status icon with responsive image set */
1620
.icon-online {
1721
content: -webkit-image-set(
1822
url(assets/default_100_percent/100-error-online.png) 1x,
@@ -21,12 +25,13 @@ html, body {
2125
position: relative;
2226
}
2327

24-
/* Hidden class */
28+
/* Utility class to hide elements */
2529
.hidden {
2630
display: none;
2731
}
2832

29-
/* Offline page styles */
33+
/* Styling for the offline page */
34+
3035
.offline .interstitial-wrapper {
3136
color: #6b3b3b;
3237
font-size: 1.2em;
@@ -49,6 +54,9 @@ html, body {
4954

5055
.offline .runner-canvas {
5156
opacity: 0.9;
57+
overflow: hidden;
58+
position: absolute;
59+
top: 0;
5260
z-index: 2;
5361
}
5462

@@ -62,7 +70,7 @@ html, body {
6270
z-index: 1;
6371
}
6472

65-
/* Offline resources */
73+
/* Offline resources display */
6674
#offline-resources {
6775
display: block;
6876
}
@@ -74,7 +82,7 @@ html, body {
7482
float: left;
7583
}
7684

77-
/* Snackbar styles */
85+
/* Snackbar styling for mobile view */
7886
.snackbar {
7987
position: fixed;
8088
left: 0;

0 commit comments

Comments
 (0)