mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 13:56:22 -04:00
IE11 compat fixes 🙄 (closes #94)
This commit is contained in:
parent
736cc775e3
commit
3200509ffd
@ -37,8 +37,8 @@ if (!pref) {
|
|||||||
// real-time switching if supported by OS/browser
|
// real-time switching if supported by OS/browser
|
||||||
// TODO: stop listening when the parent condition becomes false,
|
// TODO: stop listening when the parent condition becomes false,
|
||||||
// right now these keep listening even if pref is set.
|
// right now these keep listening even if pref is set.
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').addListener(e => e.matches && activateDarkMode());
|
window.matchMedia('(prefers-color-scheme: dark)').addListener(function(e) { if (e.matches) activateDarkMode(); });
|
||||||
window.matchMedia('(prefers-color-scheme: light)').addListener(e => e.matches && activateLightMode());
|
window.matchMedia('(prefers-color-scheme: light)').addListener(function(e) { if (e.matches) activateLightMode(); });
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle lightbulb click
|
// handle lightbulb click
|
||||||
|
@ -17,6 +17,7 @@ main {
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-left: 1.5em;
|
padding-left: 1.5em;
|
||||||
padding-right: 1.5em;
|
padding-right: 1.5em;
|
||||||
|
display: block; // https://stackoverflow.com/questions/28794718/max-width-not-working-for-ie-11
|
||||||
|
|
||||||
@include themed() {
|
@include themed() {
|
||||||
color: t(color-text);
|
color: t(color-text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user