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.
<div class="cont">
<div class="table">
<div class="table-row">
<div class="table-head">Health</div>
<div class="table-head">Status</div>
<div class="table-head">Commit</div>
<div class="table-head">Latest message</div>
<div class="table-head">Completed</div>
<div class="table-head"></div>
</div>
<div class="table-row">
<div class="table-cell">
<svg width="30px" height="30px" viewBox="0 -1 80 81" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Group-5-Copy" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<circle id="Combined-Shape-Copy-3" fill="#FFCE50" cx="40" cy="40" r="20"></circle>
<g id="Group-Copy-4" transform="translate(0.000000, 36.000000)" fill="#FFBD3E">
<rect id="Rectangle-3" x="0" y="2" width="14" height="4" rx="2"></rect>
<rect id="Rectangle-3-Copy" x="66" y="2" width="14" height="4" rx="2"></rect>
</g>
<g id="Group-Copy-5" transform="translate(39.112698, 39.112698) rotate(-315.000000) translate(-39.112698, -39.112698) translate(-0.887302, 35.112698)" fill="#FFBD3E">
<rect id="Rectangle-3" x="3.55271368e-15" y="2" width="14" height="4" rx="2"></rect>
<rect id="Rectangle-3-Copy" x="66" y="2" width="14" height="4" rx="2"></rect>
</g>
<g id="Group-Copy-6" transform="translate(40.000000, 40.000000) rotate(-270.000000) translate(-40.000000, -40.000000) translate(0.000000, 38.000000)" fill="#FFBD3E">
<rect id="Rectangle-3" x="0" y="0" width="14" height="4" rx="2"></rect>
<rect id="Rectangle-3-Copy" x="66" y="-1.42108547e-14" width="14" height="4" rx="2"></rect>
</g>
<g id="Group-Copy-7" transform="translate(39.112698, 39.112698) rotate(-225.000000) translate(-39.112698, -39.112698) translate(-0.887302, 37.112698)" fill="#FFBD3E">
<rect id="Rectangle-3" x="3.26849658e-13" y="3.12638804e-13" width="14" height="4" rx="2"></rect>
<rect id="Rectangle-3-Copy" x="66" y="5.68434189e-14" width="14" height="4" rx="2"></rect>
</g>
</g>
</svg></div>
<div class="table-cell">
<svg width="26px" height="26px" viewBox="2627 1031 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Group-38" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(2627.000000, 1031.000000)">
<ellipse id="Oval-4" fill="#46BC87" cx="16" cy="16" rx="16" ry="16"></ellipse>
<g id="ic-check-48-px" transform="translate(4.571429, 4.571429)">
<g id="Group">
<polygon id="Shape" points="0 0 22.8571429 0 22.8571429 22.8571429 0 22.8571429"></polygon>
<polygon id="Shape" fill="#FFFFFF" points="8.57142857 15.4 4.6 11.4285714 3.25238095 12.7761905 8.57142857 18.0952381 20 6.66666667 18.652381 5.31904762"></polygon>
</g>
</g>
</g>
</svg>
</div>
<div class="table-cell"><code>c818c61</code></div>
<div class="table-cell message"><div class="wrap">When there is more than 1 commit, it should be clear in the message column. pic attached.</div><div class="pill">11 commits</div></div>
<div class="table-cell">22 min ago</div>
<div class="table-cell actions">
<svg width="28px" height="28px" viewBox="919 340 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Group" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(919.000000, 340.000000)">
<polygon id="Shape" points="0 0 20 0 20 20 0 20"></polygon>
<path d="M8.33333333,13.75 L13.3333333,10 L8.33333333,6.25 L8.33333333,13.75 L8.33333333,13.75 Z M10,1.66666667 C5.4,1.66666667 1.66666667,5.4 1.66666667,10 C1.66666667,14.6 5.4,18.3333333 10,18.3333333 C14.6,18.3333333 18.3333333,14.6 18.3333333,10 C18.3333333,5.4 14.6,1.66666667 10,1.66666667 L10,1.66666667 Z M10,16.6666667 C6.325,16.6666667 3.33333333,13.675 3.33333333,10 C3.33333333,6.325 6.325,3.33333333 10,3.33333333 C13.675,3.33333333 16.6666667,6.325 16.6666667,10 C16.6666667,13.675 13.675,16.6666667 10,16.6666667 L10,16.6666667 Z" id="Shape" fill="#aaaaaa"></path>
</g>
</svg>
<svg width="28px" height="28px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Group" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M18.3333333,7.7 L12.3416667,7.18333333 L10,1.66666667 L7.65833333,7.19166667 L1.66666667,7.7 L6.21666667,11.6416667 L4.85,17.5 L10,14.3916667 L15.15,17.5 L13.7916667,11.6416667 L18.3333333,7.7 L18.3333333,7.7 Z M10,12.8333333 L6.86666667,14.725 L7.7,11.1583333 L4.93333333,8.75833333 L8.58333333,8.44166667 L10,5.08333333 L11.425,8.45 L15.075,8.76666667 L12.3083333,11.1666667 L13.1416667,14.7333333 L10,12.8333333 L10,12.8333333 Z" id="Shape" fill="#aaaaaa"></path>
<polygon id="Shape" points="0 0 20 0 20 20 0 20"></polygon>
</g>
</svg>
</div>
</div>
<div class="table-row">
<div class="table-cell">
<svg width="30px" height="30px" viewBox="-1 101 82 82" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<desc>Created with Sketch.</desc>
<defs>
<path d="M14,48 L66,48 C73.7319865,48 80,41.7319865 80,34 C80,28.3981784 76.7099213,23.564796 71.9566909,21.3267796 C71.9854132,20.8882275 72,20.4458172 72,20 C72,8.954305 63.045695,0 52,0 C44.7743667,0 38.4436875,3.83175402 34.9290946,9.57412996 C32.8325611,8.56527841 30.4822945,8 28,8 C20.5154331,8 14.2311731,13.1391246 12.4834004,20.0811934 C5.4647318,20.8372424 0,26.780443 0,34 C0,41.7319865 6.2680135,48 14,48 Z" id="path-1"></path>
<mask id="mask-2" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox" x="-1" y="-1" width="82" height="50">
<rect x="-1" y="-1" width="82" height="50" fill="white"></rect>
<use xlink:href="#path-1" fill="black"></use>
</mask>
</defs>
<g id="Group-8-Copy" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(0.000000, 102.000000)">
<rect id="Rectangle-5" fill="#25A7FF" transform="translate(10.000000, 66.000000) rotate(35.000000) translate(-10.000000, -66.000000) " x="8" y="52" width="4" height="28" rx="2"></rect>
<g id="Group-2" transform="translate(26.000000, 66.000000) rotate(35.000000) translate(-26.000000, -66.000000) translate(24.000000, 52.000000)">
<rect id="Rectangle-5-Copy-4" x="6.1817218e-13" y="3.55271368e-13" width="4" height="28" rx="2"></rect>
<rect id="Rectangle-5-Copy" fill="#25A7FF" x="6.1817218e-13" y="3.55271368e-13" width="4" height="20" rx="2"></rect>
</g>
<rect id="Rectangle-5-Copy-2" fill="#25A7FF" transform="translate(42.000000, 66.000000) rotate(35.000000) translate(-42.000000, -66.000000) " x="40" y="52" width="4" height="28" rx="2"></rect>
<g id="Group" transform="translate(58.000000, 66.000000) rotate(35.000000) translate(-58.000000, -66.000000) translate(56.000000, 52.000000)">
<rect id="Rectangle-5-Copy-5" x="1.56319402e-13" y="-1.99840144e-13" width="4" height="28" rx="2"></rect>
<rect id="Rectangle-5-Copy-3" fill="#25A7FF" x="1.56319402e-13" y="-1.99840144e-13" width="4" height="20" rx="2"></rect>
</g>
<g id="Combined-Shape-Copy">
<use fill="#CCCCCC" fill-rule="evenodd" xlink:href="#path-1"></use>
<use stroke="#FFFFFF" mask="url(#mask-2)" stroke-width="2" xlink:href="#path-1"></use>
</g>
</g>
</svg></div>
<div class="table-cell">
<svg width="26px" height="26px" viewBox="2627 1127 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Group-37" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(2627.000000, 1127.000000)">
<ellipse id="Oval-4-Copy-2" fill="#D46556" cx="16" cy="16" rx="16" ry="16"></ellipse>
<g id="Group-35" transform="translate(14.857143, 8.000000)" fill="#FFFFFF">
<polygon id="Path" points="0 13.7142857 2.28571429 13.7142857 2.28571429 16 0 16"></polygon>
<polygon id="Path" points="0 0 2.28571429 0 2.28571429 10.8571429 0 10.8571429"></polygon>
</g>
</g>
</svg>
</div>
<div class="table-cell"><code>fe2f79d</code></div>
<div class="table-cell message">Small one – Low priority 🐒</div>
<div class="table-cell">1 day ago</div>
<div class="table-cell actions">
<svg width="28px" height="28px" viewBox="919 340 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs></defs>
<g id="Group" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" transform="translate(919.000000, 340.000000)">
<polygon id="Shape" points="0 0 20 0 20 20 0 20"></polygon>
<path d="M8.33333333,13.75 L13.3333333,10 L8.33333333,6.25 L8.33333333,13.75 L8.33333333,13.75 Z M10,1.66666667 C5.4,1.66666667 1.66666667,5.4 1.66666667,10 C1.66666667,14.6 5.4,18.3333333 10,18.3333333 C14.6,18.3333333 18.3333333,14.6 18.3333333,10 C18.3333333,5.4 14.6,1.66666667 10,1.66666667 L10,1.66666667 Z M10,16.6666667 C6.325,16.6666667 3.33333333,13.675 3.33333333,10 C3.33333333,6.325 6.325,3.33333333 10,3.33333333 C13.675,3.33333333 16.6666667,6.325 16.6666667,10 C16.6666667,13.675 13.675,16.6666667 10,16.6666667 L10,16.6666667 Z" id="Shape" fill="#aaaaaa"></path>
</g>
</svg>
<svg width="28px" height="28px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41.2 (35397) - http://www.bohemiancoding.com/sketch -->
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Group" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M18.3333333,7.7 L12.3416667,7.18333333 L10,1.66666667 L7.65833333,7.19166667 L1.66666667,7.7 L6.21666667,11.6416667 L4.85,17.5 L10,14.3916667 L15.15,17.5 L13.7916667,11.6416667 L18.3333333,7.7 L18.3333333,7.7 Z M10,12.8333333 L6.86666667,14.725 L7.7,11.1583333 L4.93333333,8.75833333 L8.58333333,8.44166667 L10,5.08333333 L11.425,8.45 L15.075,8.76666667 L12.3083333,11.1666667 L13.1416667,14.7333333 L10,12.8333333 L10,12.8333333 Z" id="Shape" fill="#aaaaaa"></path>
<polygon id="Shape" points="0 0 20 0 20 20 0 20"></polygon>
</g>
</svg>
</div>
</div>
</div>
</div>
* {
font-family: Lato, sans-serif;
color: #222;
}
.cont {
width: 1000px;
margin: 50px auto;
}
.table {
display: table;
width: 100%;
}
.table-row {
display: table-row;
}
.table-head {
display: table-header-group;
}
.table-cell,
.table-head {
display: table-cell;
padding: 8px;
vertical-align: middle;
}
.table-head {
font-weight: bold;
border-bottom: 1px solid #eee;
// padding: 4px 16px;
}
code {
font-family: "Source Code Pro", monospace;
}
.message {
.wrap {
text-overflow: ellipsis;
max-width: 500px;
white-space: nowrap;
overflow: hidden;
float: left;
}
.pill {
float: left;
font-size: 12px;
color: #fff;
background-color: #bababa;
padding: 2px 6px;
border-radius: 20px;
margin-left: 5px;
}
}
.actions {
width: 62px;
padding-top: 12px;
svg {
display: inline;
opacity: .5;
&:hover {
opacity: 1;
cursor: pointer;
}
}
}
Also see: Tab Triggers