Created
September 24, 2019 14:19
-
-
Save ericorruption/fafbdc0c9e465d616452ddb1c02a0588 to your computer and use it in GitHub Desktop.
editable page
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="en"> | |
<!-- contenteditable="true" --> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
<title>Document</title> | |
<link rel="stylesheet" href="style.css" /> | |
<style> | |
/* Write your rules here */ | |
</style> | |
</head> | |
<body> | |
<h1>Lorem ipsum dolor sit amet.</h1> | |
<script> | |
document.designMode = "on"; | |
// alert("tap"); | |
</script> | |
</body> | |
</html> |
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
* { | |
display: block; | |
} | |
head, | |
body, | |
head > *, | |
body > * { | |
padding-left: 1em; | |
} | |
/* TODO write snippet for the before and after */ | |
html:before { | |
content: "<html>"; | |
} | |
html:after { | |
content: "</html>"; | |
} | |
title:before { | |
content: "<title>"; | |
} | |
title:after { | |
content: "</title>"; | |
} | |
style:before { | |
display: block; | |
content: "<style>"; | |
} | |
style:after { | |
display: block; | |
content: "<\/style>"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment