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 esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM 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.
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,300,600,700' rel='stylesheet'>
<ol class="timeline">
<li class="event rit">
<p class="title">Student</p>
<p class="dates">Sept 2011 - Present</p>
<p class="company">Rochester Institute of Technology (RIT)</p>
<ul class="description">
<li>B.S. in Management Information Systems</li>
<li>Minor in Computer Science</li>
<li>Expected Graduation: Dec 2013</li>
<li>GPA: 3.32</li>
</ul>
<p class="details">
In my time out of class, I'm an active member of <a href='https://csh.rit.edu'>Computer Science House </a> (CSH). My first year I was elected Freshman Project President and my second year I was elected as Social Director. My second year I also became webmaster for CSH, creating and maintaing the current website with a friend.
</p>
<span class="button more">View Details</span>
</li>
<li class="event csh">
<p class="title">Web Master</p>
<p class="dates">March 2013 - Present</p>
<p class="company">Computer Science House</p>
<p class="description">
An organization that I am an active participant of, this is the largest website project that I have created to date. The website can be viewed at <a href="https://csh.rit.edu">csh.rit.edu</a>.
</p>
<p class="details">
A lot of time has been invested by a partner and I in making this website work flawlessly on any device. In our testing, the site is fully responsive spanning all resolutions and pixel densities as well as it is fully functional on every major, modern (IE9+) desktop and mobile browser. Progress can be monitored on <a href="https://github.com/myasonik/CSHPublicSite">GitHub</a>.
</p>
<span class="button more">View Details</span>
</li>
<li class="event pdp">
<p class="title">Web Master</p>
<p class="dates">March 2013 - Present</p>
<p class="company">RIT NTID DAS PDP</p>
<p class="description">
To much text to fit in the title: I work for RIT, National Institute for the Deaf, Department of Access Services, Professional Development Program. And there, to put it shortly, I'm leading the development for their up and coming website.
</p>
<p class="details">
But really my job is much more far reaching. My secondary tasks are assisting with the maitenance of <a href='https://ntid.rit.edu'>the greater NTID website</a> and redesigning <a href='https://myaccess.rit.edu'>a sister website</a> (that is currently finished but held up in RIT IT bureaucracy). But my main task is managing and developing the front-end of the PDP website. After two years of development in a Drupal environment, I made the executive decision to scrap that whole project and start afresh. Now, I'm developing it with <a href="http://jade-lang.com/">Jade</a>, <a href="http://sass-lang.com/">SASS</a> and JavaScript. (A partner is doing the backend in Pyramid.) After 6 months of work, the project is drastically farther than the Drupal version.
</p>
<span class="button more">View Details</span>
</li>
<li class='event prog'>
<p class='title'>App Dev & Web Experience Intern</p>
<p class='dates'>Summer 2013</p>
<p class='company'>Progressive Insurance</p>
<p class='description'>
Starting as an software development intern, the project I was assigned to elevated early so I switched to the web experience team working on <a href='http://progressive.com'>Progressive's website</a>.
</p>
<p class='details'>
The project I was assigned to in the beginning was ensuring tablet compatibility for some aging insurance agent web apps. All that was remaining to do when I joined the team was a handful of cross-browser JavaScript (JS) problems. After elevating the project, I spent some time in flux which I filled with creating a art gallery web-app. Through the process of creating it, I made sure to learn as much as I could, focusing on test-driven, C#.NET code and behavior driven, JS code. Following that, I switched to the web experience team where I spent my time fixing responsive issues across <a href='http://progressive.com'>Progressive's website</a>, researching and prototyping different responsive image solutions and starting a re-architecture of <a href='http://progressiveprogressivecommercial.com'>Progressive Commercial</a> from the old web forms architecture to the new Model-View-Controller (MVC) architecture.
</p>
<span class="button more">View Details</span>
</li>
</ol>
@import "compass/css3";
$orange:#DD4124;
$blue:#00c;
$charcoal:#222;
$grey:#bbb;
$gray:#bbb; // because I never remember which to use so I end up using both/either
$break-one:500px;
@mixin transition($property) {
-webkit-transition:$property .5s;
transition:$property .5s;
}
* { margin:0; padding:0; }
body {
color:$charcoal;
font:16px/1.5 'Open Sans', sans-serif;
width:80%;
margin:0 auto;
}
a {
color:$blue;
text-decoration:none;
&:hover { text-decoration:underline; }
}
.timeline {
list-style:none;
position:relative;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAABCAYAAAAMwoR9AAAAEElEQVQIW2O866jyn4EAAABN6AJDG4v3ZAAAAABJRU5ErkJggg==);
background-size:.5em 100%;
background-repeat:repeat-y;
background-position:1.5em;
padding-left:4em;
margin:3em 0;
&:before,
&:after {
content:'';
background-color:$orange;
height:0.5rem;
width:0.5rem;
position:absolute;
left:1.5em;
}
&:before {
top:-0.5em;
border-radius:50% 50% 0 0;
}
&:after {
bottom:-0.5em;
border-radius:0 0 50% 50%;
}
@media (min-width: 1000px) {
background-position:center;
padding-left:0;
&:before,
&:after {
left:calc(50% - .25rem);
}
> .event {
width:calc(50% - 3rem);
position:relative;
&:nth-child(odd) {
&:before {
left:calc(100% + 1.25rem);
}
}
&:nth-child(even) {
position:absolute;
right:0;
margin-top:-8rem;
&:before {
left:-4.75rem;
}
}
}
}
}
.event {
padding-bottom:2em;
&:before {
content:'';
border:.25em solid $orange;
border-radius:50%;
position:absolute;
left:0;
width:1.5em;
height:1.5em;
padding:.75em;
background-color:white;
background-origin:content-box;
background-position:center;
background-size:contain;
background-repeat:no-repeat;
}
}
.prog:before { @extend %imgProg; }
.rit:before { @extend %imgRIT; }
.pdp:before { @extend %imgPDP; }
.csh:before { @extend %imgCSH; }
.title { font-weight:600; }
.company {
font-style:italic;
border-bottom:1px solid $grey;
&:before { content:'at '; } // not sure if I want to include this here or in the HTML
}
.dates {
font-size:80%;
line-height:1.5rem;
float:right;
}
.description {
@media (min-width:$break-one) { // not working?
margin-top:.5em;
}
}
.button {
display:block;
text-align:center;
margin-top:.5em;
background:$grey;
color:white;
background:$orange;
padding:.25em 0;
border-radius:5px;
position:relative;
cursor:pointer;
@include transition(all);
-webkit-backface-visibility:hidden; // webkit bug fix to prevent screen flicker on scale transforms
&:before,
&:after {
content:'\25B2'; // up arrow
position:absolute;
}
&:before { left:2em; }
&:after { right:2em; }
&:hover { // not sure if I like this effect
-webkit-transform:scale(.97);
-ms-transform:scale(.97);
transform:scale(.97);
background-color:#A64E3E;
}
}
.details {
font-size:0;
text-indent:2em;
@include transition(font-size);
}
%imgProg {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAUCAYAAABiS3YzAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBR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9ss4Uvy7Lv+0Xg6/VKNWZr73keD7xCxDw3hmfxwPtYlEk1ehU55Nm4RjD8L8/zhRMQBo4AiqKAvciC4U1N00yaSDUsgGlcKoBBnYzFtm2/UWNWSZLQPp5kQjsYB3TxWGRrMWs4K49F/60N5jHah/VkOo7pAtPSsOU0TSePsCF5e4ELxg94+1j+YKWWamQMm5hOrPILqdrZcbZamIAbvEkQm/Wa/W1xB89IYJnG7XbTRMUhUHAefQkwAJTwtPqrCPc8AAAAAElFTkSuQmCC);
}
var viewMoreButtons = document.querySelectorAll('.more');
var toggleVisibile = function(el) {
if (el.style.fontSize === '0px' || el.style.fontSize === '')
el.style.fontSize = '1rem';
else
el.style.fontSize = '0px';
};
var toggleText = function(el) {
if (el.innerHTML === 'View Details')
el.innerHTML = 'View Less';
else
el.innerHTML = 'View Details';
};
var viewMoreButtonClickHandler = function(currBtn) {
var details = currBtn.previousSibling;
while(details.nodeType !== 1) details = details.previousSibling;
toggleVisibile(details);
toggleText(currBtn);
};
var moveDown = function(btnToMove) {
};
var addEventListenerPlus = function(i) {
viewMoreButtons.item(i).addEventListener('click',
function(e) {
var nextI;
viewMoreButtonClickHandler(this);
if (i%2 !== 0 && (i + 2) < viewMoreButtons.length) {
moveDown(viewMoreButtons.item(i+2));
}
}, false);
};
for(var i=0; i < viewMoreButtons.length; i++) {
addEventListenerPlus(i);
}
Also see: Tab Triggers