Skip to content

Commit 36f8a9c

Browse files
authored
Merge pull request #117 from radian628/main
Disable Soon-to-be-Implemented iOS CDN Bug Warning Message when Sigma is Loaded
2 parents 56863ea + 024d5be commit 36f8a9c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

sigma.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,3 +1371,25 @@ div#u-adult-warning > .error-block {
13711371
padding: 3px;
13721372
margin: 5px;
13731373
}
1374+
1375+
/*
1376+
As of writing this, there is a bug in the SCP Wiki CDN causing the
1377+
Sigma theme to occasionally not load on iOS devices. This bug can
1378+
be fixed by clearing the browser's cache.
1379+
1380+
As a consequence, an element will likely be added to the SCP Wiki's sidebar
1381+
informing users of this bug and directing them to fix it. In fact, by
1382+
the time you are reading this, it may have already been added.
1383+
1384+
However, we don't want this element to display if Sigma theme has loaded,
1385+
because if Sigma has loaded, then the user has fixed the bug on their device.
1386+
1387+
As such, the following CSS rule hides it. Specificity has been artificially
1388+
increased with an id selector and !important to counteract weird cases.
1389+
(e.g. an obscure SCP Wiki theme that applies 'display: block'
1390+
to everything in the sidebar)
1391+
*/
1392+
1393+
#side-bar .ios-cache-issue-notification {
1394+
display: none !important;
1395+
}

0 commit comments

Comments
 (0)