JS: ES6 Reference
by kyllle
HTML
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.css">
<h2 class="pg-heading">Learning ES6</h2>
<h3></h3>
<p></p>
<pre>
</pre>
<br>
<!-- <h3></h3>
<p></p>
<pre>
</pre>
<br> -->
SCSS
@import url(http://fonts.googleapis.com/css?family=Roboto:300,400,500);
* {
-webkit-font-smoothing: antialiased;
}
body {
font-family: Roboto;
padding: 16px;
line-height: 1.5;
font-weight: normal;
color: #ccc;
background: #292929;
font-size: 18px;
}
h1, h2, h3 {
font-weight: normal;
}
h3 ~ p {
margin-top: 0;
}
p {
opacity: 0.86;
}
.pg-heading {
margin-bottom: 0;
}
a {
color: #95baf6;
transition: opacity .3s;
}
a:hover {
opacity: 0.75;
}
pre {
display: block;
padding: 9.5px;
margin: 0 0 10px;
font-size: 13px;
line-height: 1.428571429;
color: #333;
word-break: break-all;
word-wrap: break-word;
background-color: #f5f5f5;
/* border: 1px solid #ccc; */
border-radius: 4px;
}
pre.app {
opacity: 0.35;
transition: opacity .3s;
position: relative;
}
pre.app:after {
content: 'App Example';
padding: 3px 8px;
background: #95baf6;
position: absolute;
top: 0;
right: 0;
border-radius: 0 4px 0 0;
}
pre.app:hover {
opacity: 1;
}
Babel + JSX
console.clear();