Skip to content

Instantly share code, notes, and snippets.

@brandonaaron
Last active August 27, 2018 16:47
Show Gist options
  • Save brandonaaron/eda9710e6c570f55f45f513a9565ed5d to your computer and use it in GitHub Desktop.
Save brandonaaron/eda9710e6c570f55f45f513a9565ed5d to your computer and use it in GitHub Desktop.
uncss #385 example
I'm in your CSS
/*** uncss> filename: test.css ***/
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,
body,
h1 {
margin: 0;
padding: 0;
}
h1 {
font-size: 100%;
font-weight: normal;
}
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
{
"name": "uncss-385",
"private": true,
"scripts": {
"build": "uncss test.html > out.css"
},
"dependencies": {
"uncss": "^0.16.2"
}
}
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
ul {
list-style: none;
}
button,
input,
select,
textarea {
margin: 0;
}
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
img,
embed,
iframe,
object,
audio,
video {
height: auto;
max-width: 100%;
}
iframe {
border: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
text-align: left;
}
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<title>uncss #385 example</title>
<link rel="stylesheet" href="test.css">
<script>
console.log('I\'m in your CSS')
</script>
</head>
<body>
<h1>uncss #385 example</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment