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 id="scrollview"> -->
<header id="header">
<div id="container">
<span id="name">Spencer Johnson</span>
<ul id="nav">
<a href="#home">
<li id="nav-home" class="nav-option">Home</li>
</a>|
<a href="#about">
<li id="nav-about" class="nav-option">About</li>
</a><span id="divider2">|</span>
<a href="#portfolio">
<li id="nav-portfolio" class="nav-option">Portfolio</li>
</a><span id="divider3">|</span>
<a href="#contact">
<li id="nav-Contact" class="nav-option">Contact</li>
</a>
</ul>
</container>
</header>
<section id="home">
<h1>Spekachu <span>Development</span> Studios</h1>
<p>Where Dreams Are <span class="highlight">Electrically</span> Charged Into Reality.</p>
</section>
<section id="about">
<h1>About Me</h1>
<span class="container">
<img title="That's my face." id="main-photo" src="https://avatars0.githubusercontent.com/u/13248014?v=3&s=460" />
<span class="text-container">
<p>I'm a <span class="highlight">self-taught</span> web designer, developer, entrepeneur, athlete, musician, and futurist from California.</p>
<p>I am currently working with <a class="highlight" href="http://www.scorpion.co" target="_blank">Scorpion</a> and enjoy building beautiful sites for our clients!</p>
<p>My passion and dream is to use technology in a way that benefits everyone. I love designing web pages and making them responsive for any screen size. I love solving programming challenges; there's always a way!</p>
<div class='highlight-div'>
<p class=highlight>Dev Skills:</p>
<p>HTML5, CSS3 and SCSS/SASS, JavaScript, JQuery, Jasmine, Bootstrap, Git, Responsive, Mobile-First Design<br/>(Go ahead and resize the window!)</p>
</div>
<p>I've been using <a class="green" href="https://www.freecodecamp.com/spekachu" target="_blank">Free Code Camp</a>, <a class="green" href="http://www.theodinproject.com/users/25400" target="_blank">The Odin Project</a>, <a class="green" href="https://www.codecademy.com/spekachu"
target="_blank">Codecademy</a>, and other free resources for my education.</p>
</span>
</span>
</section>
<section id="portfolio">
<h1>My Portfolio</h1>
<!-- Lone Tank, The Flappy Bat, GraceIngland, Drawing Grid, Rails Blogger -->
<div class="items-container">
<div class="item reverse" id="tictactoe"> <!-- item -- >
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://codepen.io/Spekachu/full/adKprJ/"><img class="item-image" src='https://lh3.googleusercontent.com/shMiHxOovwJN2ir3VJ9tW9QygFUN5OW72IlP2-4xL4suVSlEKBAhddvdGU7JpmT6NLvH3i-4n21w6DY4CLzzS_mkth7EyvKoOXPCFS0A2LKdEnWfahjJSZl0JM0KY75bqQxNiOARRPNPZwXuJBjtTsouc7asnGXPaJutr-o_spsf-SxNQla1VXaRueEQWcqBBnAWqq4pN4TyCigwsh5UIyVZxIQ8O6yLRwqO7FOeqD86UIKIKWE1DxFjIrI-prn-dYQkQh7LMcDBWRWv0vgIVXcFlYvKo4OicZMKrgGrCiSnD34WB9GoarLtLL96LwLcNl7EqDQQYemGC_6O_nbyKoeLkYspprBQDIR7UK3mcwVY_0jB132RzekIFgxNQ2sFlDWZQmxLHiX_TSV3vn2sbLI0xVCxV1plUre-Cqzb1CSqYM9Xls56gU5yrHMyS95iFoFBr6G7-73JdT0HOdVEQTayoDXBHGYaKQIOJexx_CBla8k0Q1Stkx44fdBoszCuegKv5u9qY_nV7S-qh1qCIAIaPpJhUbD-ofK7H4hHhmtrISZWRVEoFch7buJMbsUVTAnbeA=w619-h717-no'
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://codepen.io/Spekachu/full/adKprJ/"><h3 class="item-title">Tic-Tac-Toe!</h3></a>
<p class="item-description">Jade, SCSS, JavaScript, JQuery, AI, game logic</p>
</div>
</div> <!-- end item -->
<div class="item" id="calculator"> <!-- item -- >
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://codepen.io/Spekachu/full/jWwEpW/"><img class="item-image" src='https://lh3.googleusercontent.com/1cZay3aiyijIWwpD9LGJ4HWOeQZBfb8ohgXzLj8tIP7Re0-v3oj0gtEZjMK9ZM1JLlbHgKZYbcsPI6rDWVZ9U6JzRH5NY-JhpL9ZHCkqBDjFSwqKhVxEfWbarLwea2Hp61F2Nh_51On9KWSGjr-puuFfGjGiMhw--LaRK2baZqo3vcWC7KpufAM4c7v8zrq8hVpz6IEXph5y9O6hmhVDGreVDAEdyNuBDiXJWLvBWC8dFHG-98O7n8zhIPPwZnQzh33ytEPQ1HfD4lzGJvUodn0VxOY95FDdVAdjn-QsKVweQhMaEZewq1G57hRO4QezXoUzqyICeRmnCmDqz9G4fNd26skP6iHWlrVQ5OrdRWb39X2n-v_iYqDBe0j3kJGESxKSZCvfq7aEJBL2Yt_UytZ0CtNpdrIZmw2lL4zohT2raPOW7n-QcaojQHWXKFzd-h25X4fjeGF9DginK_3iqORxFyjFXyb0_N6aDZ9bAH-3KYP8Qn9lt6lqdt82vMpcRt2vlRRC6QS0BqkQHufFM0EMYiOqtinp2GLkALBwju8pj4gphAvnZvhadUSNRgryq84pAQ=w361-h493-no'
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://codepen.io/Spekachu/full/jWwEpW/"><h3 class="item-title">Awesome JavaScript Calculator</h3></a>
<p class="item-description">Jade, SCSS, JavaScript, JQuery</p>
</div>
</div> <!-- end item -->
<div class="item reverse" id="design-builder"> <!-- item -->
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://codepen.io/Spekachu/full/avJLaj/"><img class="item-image wider" src="https://lh3.googleusercontent.com/_LeyO_DP7novKpvrdmbgbVGGsXjdsQtGO-QVrIaCL_fIAuZyOVxHXaKvE_g1gZFeQB0Ui8iSIbUkopcCrP898njOH_bY5bmvTnlE1H0dc880QNxN6g-KHsWbouRRY0jQuVN6rTRqRHNIQtzVi-gJgVqIoa50oIDBWf4zp1YjTVD3fkq51hB9PKYfXaCCIxRFnPu1Fi4xwNM0p--KVsFmgsFyTL6sdJ5EINDkuh6VnvVNKahxKf3239d1CA7jDa2ne7_z4Ia6RqaJya9TMUZaRZVzg6JV_H__62hAE4l4GQ6GzQJrkUVXlPNo7jF0Neo0V6fa10G4hQAk8JsPSdwRDjk5BQzoOrPr74ePe2_mIXOYghniqQIBWj_-r-bNrm3i7F88i7LnLuZH4abFCHUg69T8q1eHpMH0mqCMXeqJGoouj8qNNMBLagfWSjLW8RjkT3czI3JGcnCFWvEVKEyn9AxmN4HgaVGp4euEt2s8Uxow2KWWteYSvgpoWQGXqZ74LjW0sZh19pmTVgn5-gx5lJ_ePtHK8tNQx1h468tHYhTW=w830-h835-no"
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://codepen.io/Spekachu/full/avJLaj/"><h3 class="item-title">Custom Design Builder</h3></a>
<p class="item-description">HTML, CSS, JavaScript, Jquery, Custom Color Picker and Gallery Viewer</p>
</div>
</div> <!-- end of item -->
<div class="item" id="random-quotes"> <!-- item -->
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://codepen.io/Spekachu/full/ojZxjy/"><img class="item-image wider" src="https://lh3.googleusercontent.com/aCPmuN5thQYxXWqH8skUEh1gre2ksZCun39QYDHS12ef8pwqOiBwJnGfeWmTMwmhJ5P33Qu2y3dNhD1xZSyurISoJdZddJcIZUusbUa0E9qCHu4RNG3SiiEq7wSixDVz3-ElgcdEnuTOgqtF6lfNvgG_I1zXkJzEhzFvkm7IVGW0oz-5LOd19qIaE4kmDc33v_GrnMwyUlnaTDba7nic9OA-KARmBaz6wCLN_pNSkYcfXjYqUx4ZfifuzKR29VYXr-cOeO88o5Wh6RZmDuHMXuOWYh_CHm7VILh0GPUBb56N1HbU7XUJWnvhzmLytA1NNNxUJrMV9h-kxTzw3WgeJ5V8RxJXjhvPngD0qTpjQ7vksf-vLPgx9mGi-CgwoMBvORuLtGJQhK8EEVsjrCK6jsHIQ6ANobuW-P-ujgb5l_VTgFyiXY1hFBy4XC5jIAiJdQskptlqHj_AQOglIRHVt5b2nh8JKhmlM1B27mW2NKRemrgemt4DgjuoP3zuy6Beokk65dgzZqbQup3aXCGXygPNV40e4QyAsoFfHrHiwfoV=w671-h588-no"
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://codepen.io/Spekachu/full/ojZxjy/"><h3 class="item-title">Random Quote Generator</h3></a>
<p class="item-description">HTML, CSS, JQuery</p>
</div>
</div> <!-- end of item -->
<div class="item reverse" id="drawing-grid"> <!-- item -->
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://spekachu.github.io/DrawingGrid/"><img class="item-image wider" src="https://lh3.googleusercontent.com/RtXtiy9mmpnteUgj0kvWgBM-EUv8g8XgrY6CZ2So5r_2TuLCsA-t2RB69my8FLTsSO9CdI77gapzGV7eOUdbctRxP53yIMYvvtK09vLwBMkSIfiawvkbxWWzG5BFl3_OAItLUimCp5ygVr5tgoHlr4HNfTi-tAMMASK2JiMltGPDsw49qGqyT9u-WxKQGALaCQyEGllMH1GWfj-eOabiveGwjYrgXvva9AW9bVFA06GlBHfTin6-mTm36Rhj-4UiQ2wbRt9zjK6ye_U56-O1UIseitEuD19-UjZcbSRbg6O5ljumTe5Mqy1mRxw2la_oGq9wT64LMYQUzE4zKLMBzcbKwcdp1ugBZGRji6YGN0gyLX4Wu7Famunn2O5cB4dVLzLAJEpIgoG7_nwGhw0ajCDsV7Ye-8h-iZoIrMABjgnsyaXxd1gMQaQxCTenxhHrk4pWYr1YlQ_PYoxAYPK7j_ecB7NdH4tCDjXJEZSs27-4CZ9vtaN3siK01E1QzQJnF_i_hwyB-lczHifoMzFSfyLozQmpTj91aXLoQV_1eUaN=w800-h850-no"
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://spekachu.github.io/DrawingGrid/"><h3 class="item-title">Drawing Grid</h3></a>
<p class="item-description">Learning Project - HTML, CSS, JQuery</p>
</div>
</div> <!-- end of item -->
<div class="item" id="lone-tank"> <!-- item -- >
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.swick.tankerfree"><img class="item-image" src='https://lh3.googleusercontent.com/uAoKO4pwclaVrmzFxwW8nkjkoEijvJUBEy2CWAupZvs4m75J6RAdcwV73X2I52aOiX78f7cHxHq4d0km771hDYAUCru2sbRhhhqEQuiCJZ_7N-ZjFsdibm43YVFcNNR7Paximv-VcEsECu9PA8bgPucfCrmOzJRKziYiobOlt3xzrCyJ8GoXHFrdFE-Y9XcS5hh2uw70_UjuxAqxc3awRasDTQLD8KZmNvPT2Hp5oSPUOYx-ooKLtowSEeCk7Hkb96sUy-tiiexPN-SbCCXYWeiEygBUY3L8f3ezH5wdXwbZIrHOIz_Ha92uZ-L1kbmwk8ynjnSN7F5MUDKPenG70s9OgMvri7txTk_cgpcQCBsqfm5mxNWY7iMRwwLkxD3lWfo18tP2mvLBC8uEqM3pxrHvT8-BpQV8MRTzPy1dWPHelWHlw8LT4ZAf9M9zFx3mlumKHQZfFjhmgFvV_HUYGsBRj0VY5OyYie03KdIwmW0aNl_bFJ7VQ5Uei99hiIe5JaIHbtjuu8j2m0o9wW884u3I3JsIOioOOH9HWHLanpIo=s512-no'
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.swick.tankerfree"><h3 class="item-title">Lone Tank</h3></a>
<p class="item-description">Android Game - LibGDX, Java, Eclipse</p>
</div>
</div> <!-- end item -->
<div class="item reverse" id="flappy-bat"> <!-- item -->
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.swick.bat"><img class="item-image" src='https://lh3.googleusercontent.com/njJ9eGW5_mplZYYeqeibSqnRGv-eAdmUf2wE4fC3JCUrJePE9ySEjW0-3etvH4Bm-R8V8MoyLAhZYoJNb58h1B_h-caep7i1QgHV5koCCkQKdKpLUNpuHweHFLmb_EPV8ny1GqmJlmibtgkysLzSF2oO57TpoD2YFJ3caviS1w7zdzg7378MU20G9NN_yd5R9MqspBNb4JktVlpL_Wo24K5J_zfRx0II696iI7Ji20ZIYEnHNltaUBqhmJCQBiIMptFhK1q__2XoyI2YoLwczJ_NOSW5tbNaVf5FZexUVKZWfm_Nn50UBzXGq-V3n2dtu_eIEHEO73Si6DFZnKOZq_UlE9CsvXxwmfh7xYMYiOE584K5Hu9JU9r0ld_X-L4t3Qn3qqCUcpCxh2npF8wm-1zdUoI-15WlHZdC7LfYc_NADfGHiVuVnSkfWbmhfY6WVwoHEUprSTFjIwwICwJlFRRt8tHzDKIz_1gYmHF7yofJTmv3eAIFPBuk_xMaKla1vdjsqIAWiSZI7DrR36agAKJ6k0JtK1bBWLoQhj7NOJMv=s512-no'
/></a>
</div>
<div class="item-text">
<a target="_blank" href="https://play.google.com/store/apps/details?id=com.swick.bat"><h3 class="item-title">Flappy Bat</h3></a>
<p class="item-description">Android Game - Unity3D, C#, MonoDevelop</p>
</div>
</div> <!-- end item -->
<div class="item" id="grace-ingland"> <!-- item -->
<!-- each item has an image, title, and description -->
<div class="img-container">
<a target="_blank" href="http://graceingland.com/"><img class="item-image" src='http://graceingland.com/wp-content/uploads/2015/08/11744_l_1401304665_grace_ingland.jpg' /></a>
</div>
<div class="item-text">
<a target="_blank" href="http://graceingland.com/"><h3 class="item-title">Grace Ingland</h3></a>
<p class="item-description">Actress Portfolio Website - HTML, CSS, WordPress</p>
</div>
</div> <!-- end item -->
</div>
</section>
<section id="contact">
<!-- github, facebok, linkedin, instagram, twitter, -->
<h1>Contact Spekachu</h1>
<ul class="social-links">
<a target="_blank" title="Facebook" href="https://www.facebook.com/spencerj921" class="facebook">
<li><span class="fontawesome-facebook"></span></li>
</a>
<a target="_blank" title="GitHub" href="https://github.com/Spekachu" class="github">
<li><span class="fontawesome-github"></span></li>
</a>
<a target="_blank" title="Instagram" href="https://instagram.com/spekachu" class="instagram">
<li><span class="fontawesome-camera"></span></li>
</a>
<a target="_blank" title="LinkedIn" href="https://www.linkedin.com/pub/spencer-johnson/92/624/26" class="linkedin">
<li><span class="fontawesome-linkedin"></span></li>
</a>
<a target="_blank" title="Twitter" href="https://twitter.com/spekachu" class="twitter">
<li><span class="fontawesome-twitter"></span></li>
</a>
</ul>
</section>
<section id="music" class="black-bg">
<!-- github, facebok, linkedin, instagram, twitter, -->
<h1>while you're here...</h1>
<h2>...enjoy the positive message in my song! <span class='highlight'>A New Era</span>.</h2>
<div class='holder'>
<div class="videoWrapper">
<iframe width="1280" height="720" src="https://www.youtube.com/embed/LDraJoME7t4" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</section>
<footer id="footer">
<a href="#header">- Back To Top -</a>
<span>Copyright © Spekachu 2015. All Rights Reserved.</span>
</footer>
<!-- </div>-->
@import url(http://weloveiconfonts.com/api/?family=fontawesome);
$header-color: #cc4100;
$home-color: #000000;
$about-color: #ffffe0;
$font-color: #FAFAF8;
$alt-font-color: $about-color;
$alt2-font-color: #575757;
$highlight: #FFFF00;
$general-font-family: "Slabo 27px", sans-serif;
$name-font-family: "Lobster", "Slabo 27px", sans-serif;
$gen-letter-spacing: .05em;
header, section, footer {
position:relative;
}
html,body {
height:auto;
overflow: auto;
}
html {
font-family: $general-font-family;
letter-spacing: $gen-letter-spacing;
color: $font-color;
}
@mixin basic-section($color, $url, $percent) {
text-align: center;
background: $color $url fixed center center;
border-bottom: solid 5px darken($color, $percent);
min-height: 50px;
}
@mixin animate($duration) {
-webkit-transition: all $duration ease-in-out;
transition: all $duration ease-in-out;
}
@mixin text-shadow {
text-shadow: 0px -1px 1px darken($home-color, 30%),
0px 1px 0px darken($home-color, 20%);
}
.highlight {
color: $highlight;
}
header {
@include basic-section($header-color, url(http://www.transparenttextures.com/patterns/egg-shell.png), 10%);
min-height: 0;
}
#home, #music {
@include basic-section($home-color, url(http://www.transparenttextures.com/patterns/binding-light.png), 5%);
background-attachment: scroll;
}
#about {
@include basic-section($about-color, url(http://www.transparenttextures.com/patterns/binding-dark.png), 5%);
}
#portfolio {
@include basic-section($home-color, url(http://www.transparenttextures.com/patterns/binding-light.png), 5%);
background-attachment: scroll;
}
#contact {
@include basic-section($about-color, url(http://www.transparenttextures.com/patterns/binding-dark.png), 5%);
}
footer {
@include basic-section($header-color, url(http://www.transparenttextures.com/patterns/egg-shell.png), 10%);
}
section {
padding: 30px 5px 15px;
}
header #container {
padding: 30px 5px 0px;
#name {
font-size: 2.35em;
letter-spacing: 0.1em;
font-family: $name-font-family;
color: $font-color;
text-shadow: 0px -2px 1px darken($header-color, 20%),
0px 1px 1px darken($header-color, 10%);
}
#nav {
display:flex;
justify-content: space-between;
align-items:center;
flex-shrink:0;
flex-wrap:wrap;
width: 95%;
margin: 25px auto 0;
color: $font-color;
font-family: $general-font-family;
font-weight: bold;
text-shadow: 0px -2px 0px darken($header-color, 10%);
line-height: 1.5em;
letter-spacing: $gen-letter-spacing;
padding-top: .25em;
padding-bottom: .25em;
font-size: 1.2em;
max-width: 500px;
a {
padding: .3em;
}
#menu-button{
display: none;
}
}
ul {
padding: 0;
}
}
h1 {
margin-top: 30px;
margin-bottom: 30px;
font-size: 1.75em;
font-family: $name-font-family;
letter-spacing: $gen-letter-spacing;
}
h2 {
margin-bottom: 15px;
}
.videoWrapper {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
height: 0;
max-height: 360px;
margin:auto;
}
.videoWrapper iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.holder {
max-height: 360px;
max-width: 640px;
position: relative;
margin: auto;
margin-bottom:50px;
}
#home {
@include text-shadow;
padding: 15px 10px 30px;
line-height:2em;
p {
font-size: 1.2em;
line-height:1.2em;
font-weight: bold;
color: $font-color;
}
}
#home, #portfolio, #music {
border-bottom:solid 5px lighten($home-color, 15%);
}
.highlight-div {
padding: 10px;
margin: 20px auto;
box-shadow: 0 0 10px 5px rgba(green, .75);
max-width: 650px;
}
#about {
color: $alt2-font-color;
text-shadow: 0px -1px 0px darken($about-color, 5%),
0px 1px 0px darken($about-color, 5%);
padding: 20px 10px 30px;
h1 {
font-size: 2.5em;
margin-top:20px;
}
.highlight {
color: #222222;
text-decoration: none;
}
.green {
color:#007700;
text-decoration: none;
}
p {
font-size: 1.2em;
font-weight: bold;
margin:auto;
margin-bottom:10px;
max-width: 700px;
}
img {
max-width: 300px;
width: 90%;
border-radius: 50%;
border: $about-color solid 3px;
margin-bottom: 20px;
}
}
#portfolio {
padding: 20px 10px 30px;
text-shadow: 0px -1px 1px darken($home-color, 30%),
0px 1px 0px darken($home-color, 20%);
h1 {
margin-top:20px;
font-size: 2.5em;
}
}
.items-container {
display:flex;
flex:column wrap;
flex-direction:column;
flex-wrap:wrap;
justify-content:space-between;
}
.item {
display: flex;
justify-content:space-between;
width:80%;
margin:auto;
max-width: 420px;
min-width:315px;
flex-shrink:0;
}
.reverse {
flex-direction:row-reverse;
}
a, a:visited {
text-decoration: none;
color: $font-color;
}
.item-text {
padding-top:30px;
max-width: 200px;
p {
padding:5px;
}
}
.img-container {
flex-shrink: 0;
width: 150px;
height: 150px;
border: solid 3px lighten($home-color, 15%);
border-radius: 50%;
text-align: center;
display:flex;
justify-content:center;
overflow:hidden;
align-items:center;
background: $about-color url(http://www.transparenttextures.com/patterns/binding-dark.png) fixed center center;
&:hover .item-image {
max-width: 100%;
}
}
#grace-ingland .img-container {
align-items:stretch;
}
.item-title {
font-size: 1.3em;
font-weight:bold;
margin-bottom:10px;
}
.item-image {
@include animate(.3s);
max-width: 70%;
}
.wider {
max-width: 90%;
}
#contact {
font-family: 'FontAwesome', sans-serif;
color: $alt2-font-color;
text-shadow: 0px -1px 0px darken($about-color, 5%),
0px 1px 0px darken($about-color, 5%);
padding: 30px 10px 40px;
h1 {
font-size: 2.5em;
margin-top:10px;
}
.social-links {
display: flex!important;
justify-content: space-between;
max-width: 480px;
margin:auto;
flex-wrap:wrap;
align-items:center;
}
li {
display:flex;
justify-content:center;
align-items:center;
border:solid lighten($home-color, 20%);
border-radius: 50%;
background: $home-color url(http://www.transparenttextures.com/patterns/binding-light.png) scroll center center;
width: 50px;
height: 50px;
font-weight: normal;
text-shadow:none;
font-size: 1.75em;
margin:5px;
}
}
footer {
display:flex;
justify-content:center;
flex-direction:column;
line-height:2.25em;
align-items:center;
text-shadow: 0px -2px 1px darken($header-color, 10%),
0px 1px 0px darken($header-color, 10%);
font-size:.9em;
padding: 10px 5px;
a {
font-size:1.05em;
}
}
@media all and (max-width: 360px) {
#nav, .social-links {
justify-content:center !important;
text-align:center;
}
.item {
flex-direction: column-reverse !important;
width: auto;
min-width:initial;
justify-content:center;
align-items:center;
margin:auto;
}
.img-container {
margin-top:20px;
}
}
@media all and (max-width: 350px) {
#divider3 {
display:none;
}
}
@media all and (max-width: 260px) {
#divider3 {
display:inline-block;
}
#divider2 {
display:none;
}
}
@media all and (min-width: 540px) {
.img-container {
width: 200px;
height: 200px;
}
.item-text {
padding-top:60px;
max-width: 200px;
}
#home h1 {
font-size: 2.25em;
}
}
@media all and (min-width: 720px) {
.item {
flex-direction: column-reverse !important;
width: auto;
min-width:initial;
margin: 25px;
}
.items-container {
flex-direction: row;
flex-wrap: wrap;
justify-content:center;
}
.img-container {
margin-top:20px;
}
.item-text {
padding-top:0px;
}
}
@media all and (min-width: 780px) {
header #container {
display: flex;
padding:10px 20px 10px;
justify-content: space-between;
align-items: center;
margin: auto;
width: 90%;
max-width: 1000px;
#name {
font-size: 1.85em;
}
#nav {
display:flex;
width: 400px;
align-items: center;
justify-content: space-around;
margin: 0;
line-height: 1em;
box-shadow:none;
}
}
#home h1 {
font-size: 3em;
}
}
@media all and (min-width: 1050px) {
#about span.container {
display:flex;
justify-content:center;
align-items:center;
margin:auto;
img {
flex-shrink: 0;
height: 306px;
width: 306px;
margin-right:50px;
}
span.text-container {
max-width: 600px;
}
}
}
$('a[href^="#"]').on('click tap', function(event) {
var target = $($(this).attr('href'));
if (target.length) {
var scrollOffset = target.offset().top;
if (navigator.userAgent.match(/iPad|iPhone|iPod|Windows Phone/i)) {
function customScrollTo(to, duration) {
var start = 0,
change = to - start,
currentTime = 0,
increment = 20;
var animateScroll = function() {
currentTime += increment;
var val = Math.easeInOutQuad(currentTime, start, change, duration);
document.scrollTo(0, val);
if (currentTime < duration) {
setTimeout(animateScroll, increment);
}
};
animateScroll();
}
Math.easeInOutQuad = function(t, b, c, d) {
t /= d / 2;
if (t < 1) return c / 2 * t * t + b;
t--;
return -c / 2 * (t * (t - 2) - 1) + b;
};
customScrollTo(scrollOffset, 1000);
} else {
event.preventDefault();
$('html, body').animate({
scrollTop: target.offset().top
}, 1000);
}
}
});
Also see: Tab Triggers