Commit 659bff67 authored by scmoritz's avatar scmoritz Committed by Sandro Lutz
Browse files

Fix Safari rendering issue of shadow

parent f539713c
...@@ -7,7 +7,6 @@ import Spinner from 'amiv-web-ui-components/src/spinner'; ...@@ -7,7 +7,6 @@ import Spinner from 'amiv-web-ui-components/src/spinner';
import { loadLanguage, currentLanguage, isLanguageValid, i18n } from './models/language'; import { loadLanguage, currentLanguage, isLanguageValid, i18n } from './models/language';
import { Error404, Error401 } from './views/errors'; import { Error404, Error401 } from './views/errors';
import { isLoggedIn, checkLogin } from './models/auth'; import { isLoggedIn, checkLogin } from './models/auth';
import logos from './images/logos';
import layout from './views/layout'; import layout from './views/layout';
import frontpage from './views/frontpage'; import frontpage from './views/frontpage';
import about from './views/amiv/about'; import about from './views/amiv/about';
...@@ -27,24 +26,6 @@ Raven.config(sentryUrl, { ...@@ -27,24 +26,6 @@ Raven.config(sentryUrl, {
}).install(); }).install();
Raven.context(() => { Raven.context(() => {
const isSafari = /^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent);
function renderBrowserUnsupportedNotice(browser) {
document.getElementsByClassName('static-container')[0].innerHTML =
`<div id="splash-error" style="display:block;"><img src="${
logos.amiv
}" alt="AMIV an der ETH">` +
`<h1>${browser} is not supported!</h1>` +
`<p>Safari is currently not supported. Stay tuned for updates. Please use a different browser temporarily.</p>` +
`<p>If you are looking for study documents, please go to <a href="https://legacy.amiv.ethz.ch/studium/unterlagen">legacy.amiv.ethz.ch</a></p>` +
`</div>`;
}
if (isSafari) {
renderBrowserUnsupportedNotice('Safari');
return;
}
checkLogin(); checkLogin();
loadLanguage(); loadLanguage();
......
...@@ -125,7 +125,8 @@ ...@@ -125,7 +125,8 @@
} }
.list_header { .list_header {
position: sticky; position: -webkit-sticky; /* stylelint-disable-line value-no-vendor-prefix */
position: sticky; /* stylelint-disable-line declaration-block-no-duplicate-properties */
top: 24px; top: 24px;
z-index: 10; z-index: 10;
background-color: @color-grey; background-color: @color-grey;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment