This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fakeWindowLocalStorage = { | |
localStorage: { | |
data: {}, | |
length: 0, | |
setItem(name, value) { | |
this.data[name] = value.toString(); | |
this.length = Object.keys(this.data).length; | |
}, | |
getItem(name) { | |
return this.data[name]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<title>I'm in the mode</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="Sometimes I ran…"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://fonts.googleapis.com/css?family=Big+Shoulders+Text&display=swap" rel="stylesheet"> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="de"> | |
<head> | |
<title>I'm in the mode</title> | |
<meta charset="utf-8"> | |
<meta name="description" content="Sometimes I ran…"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link href="https://fonts.googleapis.com/css?family=Big+Shoulders+Text&display=swap" rel="stylesheet"> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin bg-url($url, $url2x: false, $webp1x: false, $webp2x: false) { | |
background-image: url($url); | |
@if $webp1x { | |
.webp & { | |
background-image: url($webp1x); | |
} | |
} | |
@if $url2x { | |
@media | |
screen and (-webkit-min-device-pixel-ratio: 2), |