HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<html lang="en" class="no-js">
<body class="">
<div id="page-wrapper">
<aside id="page-aside">
<div class="menu-offscreen">
<div class="inner">
<nav id="page-nav">
<ul>
<li><a href="http://www.chrisbakergrafik.com">home</a></li>
<li class="active"><a href="http://www.chrisbakergrafik.com/portfolio/">portfolio</a></li>
<li><a href="http://www.chrisbakergrafik.com/about/">about</a></li>
<li><a href="http://www.chrisbakergrafik.com/contact/">contact</a></li>
</ul>
</nav>
<ul class="quick-links">
<li><a href="https://instagram.com/annualhangouts/">Instagram</a></li>
<li><a href="mailto:[email protected]">[email protected]</a></li>
<li><a href="tel:+447753213924">+44 (0)775 321 3924</a></li>
</ul>
</div>
</div>
<div class="menu-bar">
<div class="menu-rotated">
<ul class="inner">
<li class="menu-toggle">Menu</li>
<li class="menu-close">×</li>
</ul>
</div>
</div>
</aside>
<main id="page-content">
<div class="inner">
<div class="[ grid__item palm-one-whole lap-one-half desk-one-quarter ]">
<section class="[ preview-item-project__body ]">
</div>
<section class="[ component ] [ projects ]" id="" data-autoload="1">
<div class="[ grid ] [ js-projects-grid ]">
<div id='title'> <a href="http://www.chrisbakergrafik.com/home/">chris baker </div>
<div id='subtitle'>graphic design </a>
</div>
</div>
<section>
<div class="[ grid ] [ media-grid__one-up ]">
<div class="[ grid__item one-whole ]">
<a href="http://www.chrisbakergrafik.com/portfolio/theplatinumstandard/">
<img id="previous" src="http://www.chrisbakergrafik.com/images/previousproject.png"style="width:15%;"align="left"
</div></a>
<a href="http://www.chrisbakergrafik.com/portfolio/heatofthemoment/">
<img id="next" src="http://www.chrisbakergrafik.com/images/nextproject.png"style="width:15%;"align="right"</div></a>
</div>
</section>
<section class="[ component ] [ media-grid ]">
<div class="[ grid ] [ media-grid__one-up ]">
<div class="[ grid__item one-whole ]">
<img src="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-top.png" data-srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-top.png" data-sizes="auto" alt="" class="media-grid__h-img lazyautosizes lazyloaded" style="" sizes="852px" srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-top.png">
</div>
</div>
</section>
<div class="[ grid ] [ media-grid__two-up ]">
<div class="[ grid__item palm-one-whole lap-and-up-one-half ]">
<h1 class="[ project-title ]">Cothill magazine</h1>
<h3 class="[ project-subtitle ]">Annual magazine for Cothill School</h3>
<p>An annual school magazine for current and prospective students. Cothill is a public school with a strong history and tradition. They wanted to keep the design simple and classic, but also slightly modern and easy to read so it appeals to the students as well as their parents. All pictures and articles were supplied by the client. I helped see the job from design through to print, through to finished bound book.
</p>
</div>
<div class="[ grid__item palm-one-whole lap-and-up-one-half ]">
<h1 class="[ project-title ]"><br></h1>
<h3 class="[ project-subtitle ]"><br></h3>
<div class="[ wysiwyg-wrapper ]">
<h5 class="[ body-subheading ]">Specification</h5>
<p>216 x 280mm<br>
Perfect bound (section sewn)<br>
96 pages + cover<br>
<br>
<h5 class="[ body-subheading ]">Cover</h5>
Magno Satin 300gsm<br>
Litho printed in CMYK<br>
Machine varnish<br>
<br>
<p>
<h5 class="[ body-subheading ]">Text</h5>
Magno Satin 130gsm<br>
Litho printed in CMYK<br>
</p>
</div>
</section>
<div class="[ grid ] [ media-grid__three-up-horizontal ]">
<div class="[ grid__item palm-one-whole lap-one-whole desk-one-third ]">
<div class="grid">
<div class="grid__item palm-one-whole lap-one-half desk-one-whole">
<img src="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle1.png" data-srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle1.png" data-sizes="auto" alt="" class="media-grid__h-img lazyautosizes lazyloaded" style="" sizes="50%" srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle1.png"> </div>
<div class="grid__item palm-one-whole lap-one-half desk-one-whole">
<img src="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle2.png" data-srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle2.png" srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle2.png"> </div>
</div>
</div>
<div class="[ grid__item palm-one-whole lap-one-whole desk-two-thirds ]">
<div class="media-grid__h-img-wrapper">
<img src="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle3.png" data-srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle3.png" srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-middle3.png"> </div>
</div>
<div class="[ grid ] [ media-grid__two-up ]">
<div class="[ grid__item palm-one-whole lap-and-up-one-half ]">
<img src="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-bottom1" data-srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-bottom1.png" data-sizes="auto" alt="" class="media-grid__v-img lazyautosizes lazyloaded" style="" sizes="411px" srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-bottom1.png"> </div>
<div class="[ grid__item palm-one-whole lap-and-up-one-half ]">
<img src="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-bottom2.png" data-srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-bottom2.png" data-sizes="auto" alt="" class="media-grid__v-img lazyautosizes lazyloaded" style="" sizes="411px" srcset="http://www.chrisbakergrafik.com/images/singleprojects/cothillmagazine-bottom2.png"> </div>
</div>
</section>
<script type="text/javascript" charset="utf-8"></script>
</body>
</html>
@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:400,200,200italic,300,300italic,400italic,600,600italic,700,700italic,900,900italic);
@font-face {
font-family: 'AkkuratLight';
src: url('http://www.chrisbakergrafik.com/fonts/Akkurat-Light.otf');
src: url('http://www.chrisbakergrafik.com/fonts/Akkurat-Light.eot');
src: url('http://www.chrisbakergrafik.com/fonts/Akkurat-Light?#iefix') format('embedded-opentype'),
url('http://www.chrisbakergrafik.com/fonts/Akkurat-Light.woff') format('woff'),
url('http://www.chrisbakergrafik.com/fonts/Akkurat-Light.ttf') format('truetype'),
url('http://www.chrisbakergrafik.com/fonts/Akkurat-Light.svg#svgFontName') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'AkkuratBold';
src: url('http://www.chrisbakergrafik.com/fonts/Akkurat-Bold.otf');
src: url('http://www.chrisbakergrafik.com/fonts/Akkurat-Bold.eot');
src: url('http://www.chrisbakergrafik.com/fonts/Akkurat-Bold?#iefix') format('embedded-opentype'),
url('http://www.chrisbakergrafik.com/fonts/Akkurat-Bold.woff') format('woff'),
url('http://www.chrisbakergrafik.com/fonts/Akkurat-Bold.ttf') format('truetype'),
url('http://www.chrisbakergrafik.com/fonts/Akkurat-Bold.svg#svgFontName') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'AkkuratMono';
src: url('http://www.chrisbakergrafik.com/fonts/akkurat-mono.eot');
src: url('http://www.chrisbakergrafik.com/fonts/akkurat-mono.eot') format('embedded-opentype'),
url('http://www.chrisbakergrafik.com/fonts/akkurat-mono.woff') format('woff'),
url('http://www.chrisbakergrafik.com/fonts/akkurat-mono.ttf') format('truetype'),
url('http://www.chrisbakergrafik.com/fonts/akkurat-mono.svg#AkkuratMonoMono') format('svg');
}
/*#page-aside .menu-offscreen {background:#ffffff;}*/
body {
background:#ffffff;
font-family: 'AkkuratLight','Source Code Pro', sans-serif;
color:#000000;
}
body a:link{
border-bottom: none;
text-decoration: none;
color:#000000;
}
body a:visited{
border-bottom: none;
text-decoration: none;
color:#000000;
}
#page-aside #page-nav a{color:#000000;
font-family: 'AkkuratBold', 'Source Code Pro', sans-serif;
font-weight: 400;
font-size:20px;
line-height:-10px;
border-bottom: none;
text-transform: lowercase;
text-decoration: none;
}
#page-aside #page-nav a:hover{color:#8c8c8c;
border-bottom: 0px solid;
text-decoration: none;
}
#page-aside #page-nav .active a, #page-aside #page-nav a:active {
border-bottom: 0px solid;
color:#a7e0ee;
}
#page-aside .menu-offscreen .quick-links a{color:#000000;
font-family: 'AkkuratLight', 'Source Code Pro', sans-serif;
font-weight: 300;
font-size:14px;
line-height:16px;
border-bottom: 0px solid;
text-decoration: none;
text-transform: lowercase;
}
#page-aside .menu-rotated .menu-toggle{color:#000000;
font-family: 'AkkuratMono', 'Source Code Pro', sans-serif;
font-size:30px;
border-bottom: 0px solid;
text-transform: uppercase;
float: left;
margin-right: 10px;
margin-left: -10px;}
#page-aside .menu-rotated .menu-close{margin-left: 0px;
font-family: 'AkkuratMono';
margin-top: 7px;
margin-right: 0px;
margin-bottom: 0px;}
#title {
color:#000000;
font-family: 'AkkuratBold';
font-size: 5vw;
margin-left:30px;
margin-top:100px;}
#subtitle {
color:#8c8c8c;
font-family: 'AkkuratLight';
font-size: 3vw;
margin-left:30px;
padding-bottom:100px;
line-height:10px;
}
#subtitle a:link{
border-bottom: none;
text-decoration: none;
color:#8c8c8c;
}
#subtitle a:visited{
border-bottom: none;
text-decoration: none;
color:#8c8c8c;
}
.media-grid {
background-color: #fff;
margin-bottom: 30px;
padding-right: 30px;
padding-left: 30px;
padding-top: 20px;
}
.component {
padding-right: 00px;
margin-bottom: 30px;
padding-left: 00px;
}
.project-content-wrapper {
display: table;
table-layout: fixed;
padding-right: 30px;
padding-left: 30px;
margin-bottom: 0px;
}
.project-title{
color:#000000;
font-family: 'AkkuratBold', 'Source Code Pro';
font-weight: normal;
font-size: 40px;
}
.project-subtitle{
color:#000000;
font-family: 'AkkuratLight', 'Source Code Pro';
font-weight: normal;
font-size: 32px;
}
.body-subheading{
color:#000000;
font-family: 'AkkuratBold', 'Source Code Pro';
font-weight: normal;
font-size: 20px;
}
.grid--center>*, .grid--full>*, .grid--rev>*, .grid>* {
font-size: 20px;
}
p {
max-width: 100%;
}
.preview-item-project__title a{color:#000000;font-family: 'AkkuratBold', 'Source Code Pro', sans-serif;
font-weight: normal;
font-size:20px;
line-height:30px;
padding-top:20px;
}
.preview-item-project__title a:hover {color:#000000;font-family: 'AkkuratBold', 'Source Code Pro', sans-serif;
font-weight: normal;
font-size:20px;
line-height:30px;
padding-top:20px;
text-decoration: none;
}
.preview-item-project__hover-layer {
position: absolute;
background-color: #00f;
width: 100%;
height: 100%;
top: 0;
-webkit-transform: translateX(-101%);
-ms-transform: translateX(-101%);
transform: translateX(-101%);
transition: -webkit-transform 0.8s ease-in;
transition: transform 0.8s ease-in;
opacity:1;
}
.preview-item-project__punchline {color:#ffffff;font-family: 'AkkuratBold','Source Code Pro', sans-serif;
font-size:2.8vh;
font-weight: normal;
padding-top:20px;
opacity:1;
overflow: hidden;}
.preview-item-project__date {color: #8c8c8c;font-family: 'AkkuratMono', 'Source Code Pro', sans-serif;
font-weight: normal;
font-size:20px;
line-height:30px;
padding-top:20px;
border-bottom: 0px solid;
text-decoration: none;
}
.project-bottom-nav {margin-top: -20px;
margin-bottom: 10px;
height: 5pc;
}
.project-bottom-nav__icon {
font-size: 1pc;
display: inline-block;
padding-top: 15px;
}
.project-bottom-nav__link-txt {color:#00000;font-family: 'Source Code Pro', sans-serif;
font-weight: 200;
font-size:15px;
line-height:10px;
padding-top:10px;
text-decoration: none;
margin-top: 10px;
display: inline-block;
}
.project-bottom-nav__link-txt a:hover {color:#a7e0ee;font-family: 'Source Code Pro', sans-serif;
font-weight: 400;
font-size:20px;
line-height:30px;
padding-top:20px;
text-decoration: none;}
Also see: Tab Triggers