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.
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!--- Collapsable Navbar --->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#home"><span class="fa fa-home"></span> Home</a></li>
<li><a href="#bio"><span class="fa fa-info-circle"></span> About</a></li>
<li><a href="#portfolio"><span class="fa fa-book"></span> Portfolio</a></li>
<li><a href="#contact-me"><span class="fa fa-envelope"></span> Contact</a></li>
</ul>
</div>
</div>
</nav>
<!-- HEADER -->
<header>
<div id="b" class="container">
<div class="header">
<div class="background">
<div class="text-center center-block" id="home">
<h2>Aaron Cuddeback</h2>
<h4>N00b Web Developer</h4>
<ul class="social">
<li><a href="https://twitter.com/aaroncuddeback" target="_blank"><i class="fa fa-3x fa-twitter"></i></a></li>
<li><a href="https://github.com/gymrat" target="_blank"><i class="fa fa-3x fa-github"></i></a></li>
<li><a href="https://facebook.com/gymratpacks" target="_blank"><i class="fa fa-3x fa-facebook"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<!--- BIO --->
<body>
<div class="about" id="bio">
<div class="content">
<div class="row">
<div class="col-sm-4">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/heroratman.png" class="img-circle" alt="Aaron Cuddeback Portrait" width="225" height="225" id="bioimage"></div>
<div class="col-sm-8">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam viverra pharetra tempus. Nam placerat malesuada pellentesque. Morbi in elit sed quam rhoncus laoreet. In quam neque, euismod egestas viverra at, faucibus pulvinar magna. Vestibulum eleifend facilisis magna, non pulvinar sapien aliquam pulvinar. Pellentesque nec orci convallis, mollis augue at, elementum orci. Aenean neque sem, viverra vel lectus ac, volutpat gravida massa. Donec id justo venenatis, luctus ex a, imperdiet libero. Nullam varius placerat tellus, eu scelerisque turpis consectetur nec. Curabitur dapibus, tortor ac venenatis porttitor, leo neque vehicula eros, ac ornare tellus tellus ut nulla. Sed sed justo commodo sem scelerisque pulvinar. Sed lacinia laoreet enim, ut fermentum leo ultrices a. Sed semper elit a ligula vestibulum, quis accumsan lorem efficitur.</p></div>
</div>
</div>
</div>
<!--- PORTFOLIO --->
<section id="portfolio" class="section section-portfolio">
<div class="animate-up">
<h2 class="section-title">- Portfolio -</h2>
<div class="filter">
<div class="filter-inner">
<div class="filter-bar">
<span class="filter-bar-line"></span>
</div>
</div>
</div>
<div class="grid">
<div class="grid-sizer"></div>
<div class="grid-item size22 photography">
<div class="grid-box">
<figure class="portfolio-figure">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/gymrat.png" alt=""/>
<figcaption class="portfolio-caption">
<div class="portfolio-caption-inner">
<h3 class="portfolio-title">Gymratpacks.com</h3>
<h4 class="portfolio-cat">Companies</h4>
<div class="btn-group">
<a class="btn-link" href="http://gymratpacks.com" target="_blank"><i class="icon-link"></i></a>
<a class="portfolioFancybox btn-zoom" data-fancybox-group="portfolioFancybox1" href="#"><i class="icon icon-eye"></i></a>
</div>
</div>
</figcaption>
</figure>
<!-- Start: Portfolio Inline Boxes -->
<div id="portfolio1-inline1" class="fancybox-inline-box">
<div class="inline-embed" data-embed-type="image" data-embed-url="img/uploads/portfolio/portfolio-thumb-05-large.jpg"></div>
<div class="inline-cont">
<h2 class="inline-title"></h2>
<div class="inline-text">
<p></p>
</div>
</div>
</div>
<div id="portfolio1-inline2" class="fancybox-inline-box">
<div class="inline-embed" data-embed-type="image" data-embed-url="img/uploads/portfolio/portfolio-thumb-01-large.jpg"></div>
<div class="inline-cont">
<div class="inline-text">
<h2 class="inline-title"></h2>
</div>
</div>
</div>
<div id="portfolio1-inline3" class="fancybox-inline-box">
<div class="inline-embed" data-embed-type="iframe" data-embed-url="https://player.vimeo.com/video/118244244"></div>
<div class="inline-cont">
<div class="inline-text">
<h2 class="inline-title"></h2>
</div>
</div>
</div>
<!-- End: Portfolio Inline Boxes -->
</div>
</div><!-- .grid-item -->
<div class="grid-item size11 bridge">
<div class="grid-box">
<figure class="portfolio-figure">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/AB_Equity.jpg" alt=""/>
<figcaption class="portfolio-caption">
<div class="portfolio-caption-inner">
<h3 class="portfolio-title">AB Equity Group</h3>
<h4 class="portfolio-cat">Companies</h4>
<div class="btn-group">
<a class="btn-link" href="http://abequitygroup.com" target="_blank"><i class="icon icon-link"></i></a>
<a class="portfolioFancybox btn-zoom" data-fancybox-group="portfolioFancybox2" href="#portfolio2-inline1"><i class="icon icon-eye"></i></a>
</div>
</div>
</figcaption>
</figure>
<!-- Start: Portfolio Inline Boxes -->
<div id="portfolio2-inline1" class="fancybox-inline-box">
<div class="inline-cont">
<h2 class="inline-title">Test</h2>
<div class="inline-text">
</div>
</div>
</div>
<!-- End: Portfolio Inline Boxes -->
</div>
</div><!-- .grid-item -->
<div class="grid-item size11 nature photography">
<div class="grid-box">
<figure class="portfolio-figure">
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/548344/goldriverseo.gif" alt=""/>
<figcaption class="portfolio-caption">
<div class="portfolio-caption-inner">
<h3 class="portfolio-title">Gold River SEO</h3>
<h4 class="portfolio-cat">Companies</h4>
<div class="btn-group">
<a class="btn-link" href="http://goldriverseo.com" target="_blank"><i class="icon icon-link"></i></a>
<a class="portfolioFancybox btn-zoom" data-fancybox-group="portfolioFancybox3" href="#portfolio"><i class="icon icon-eye"></i></a>
<a class="portfolioFancybox hidden" data-fancybox-group="portfolioFancybox3" href="abequitygroup.com"></a>
<a class="portfolioFancybox hidden" data-fancybox-group="portfolioFancybox3" href="#portfolio"></a>
</div>
</div>
</figcaption>
</figure>
</div>
</div><!-- .grid-item -->
</div>
</div>
</section>
<!-- HTML FORM -->
<div class="container">
<div id="contact-form">
<form action="index.html" method="post" id="contact-me">
<h1> Contact Me </h1>
<fieldset>
<legend><span class="number">1</span> Your Basic Info</legend>
<label for="name">Name:</label>
<input type="text" id="name" name="user_name">
<label for="email">Email:</label>
<input type="email" id="mail" name="user_email">
<label for="bio">Your Message:</label>
<textarea id="bio" name="user_bio"></textarea>
</fieldset>
<button type="submit">Submit</button>
</form>
</div>
<!--- Social Media Contact --->
<div id="social-box">
<h1>Let's have a chat!</h1>
<div class="container fluid" id="social-contact">
<li><a href="https://twitter.com/aaroncuddeback" target="_blank"><i class="fa fa-fw fa-4x fa-twitter"></i></a> Twitter</li>
<li><a href="https://github.com/gymrat" target="_blank"><i class="fa fa-fw fa-4x fa-github"></i></a> Github</li>
<li><a href="https://facebook.com/gymratpacks" target="_blank"><i class="fa fa-fw fa-4x fa-facebook"></i></a> Facebook</li>
</ul>
</div>
</div>
</div>
<!--- Footer --->
<footer id="footer-links">
<ul>
<li><a href="#home">Home</li>
<li><a href="#bio">About</li>
<li><a href="#portfolio">Portfolio</li>
<li><a href="#contact">Contact</li>
</ul>
<p>Copyright © <a href="https://twitter.com/aaroncuddeback"target="_blank">Aaron Cuddeback</a> Designs 2016</p>
</footer>
h2,h4 {
margin: 20px;
font-family: 'Montserrat', sans-serif;
text-align: center;
}
body {
padding-top:0px;
width:100%;
height:100%;
margin:0%;
background: ;
}
.container {
width: 100%;
margin: 0;
padding: 0;
}
.header {
margin: auto;
padding-top: 0px;
height:600px;
width: 100%;
background:#5fcf80;
}
.navbar {
background-color: rgba(255, 255, 255, .90)
}
.navbar-toggle {
float: left;
margin-left: 15px
}
.navbar-default .navbar-nav>li>a {
font-weight: bold;
color: #252525;
}
.social {
padding-top: 35px;
color: #5fcf80;
}
.social li {
display: inline;
padding: 20px;
}
.portfolio {
margin: 0;
padding: 100px 20px;
height:350px;
width: 100%;
background-color: #5fcf80;
}
#home {
background-color: rgba(255, 255, 255, .93);
border-radius: 15px;
color: #252525;
width: 450px;
height: auto;
margin-top: 200px;
padding: 65px 30px;
}
.no-padding {
padding-left: 0;
padding-right: 0;
}
.about {
margin: 0;
padding: 150px 20px;
height:550px;
width: 100%;
background-color: #5fcf80;
}
.content {
max-width: 900px;
margin: auto;
}
.background {
background: url("http://www.sactownmag.com/Blog/2015/New-time-lapse-video-shows-Sacramento-on-the-rise/Skyline.png") no-repeat;
overflow: hidden;
background-size: cover;
width: 100%;
height: 100%;
}
.section {
padding-top: 70px;
}
.section-box {
padding: 40px 50px;
}
.section-title {
font-size: 40px;
font-weight: 300;
line-height: 1.2;
text-align: center;
}
.clearfix:before, .clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
.grid:before, .grid:after {
content: " ";
display: table;
}
.grid:after {
clear: both;
}
.grid {
*zoom: 1;
}
.grid .grid-item,
.grid .grid-sizer {
width: 33.33%;
}
.grid .grid-sizer {
height: 0;
visibility: hidden;
}
.grid .grid-item {
float: left;
padding: 0 10px;
margin-bottom: 20px;
}
.grid .grid-box {
width: 100%;
height: 0;
padding-top: 95%;
position: relative;
overflow: hidden;
background: rgba(0, 0, 0, 0.15);
}
.grid .size11 {
width: 33.33%;
}
.grid .size11 .portfolio-title {
font-size: 18px;
}
.grid .size22 {
width: 66.66%;
}
.grid .size22 .portfolio-title {
font-size: 24px;
}
.grid-more {
margin-top: 20px;
text-align: center;
}
.grid-more .btn {
margin: 0;
padding: 0;
width: 60px;
height: 60px;
display: inline-block;
line-height: 1;
}
.grid-more .btn .icon {
font-size: 30px;
-webkit-transition: all 0.2s;
-moz-transition: all 0.2s;
-ms-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
.grid-more .btn:hover .icon {
-webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
-o-transform: rotate(90deg);
transform: rotate(90deg);
}
.grid-more .ajax-loader {
display: none;
width: 72px;
height: 24px;
vertical-align: middle;
background: url("img/ajax-loader.gif");
}
.filter {
text-align: center;
margin-bottom: 30px;
}
.filter button {
border: 0;
margin: 0 20px 0 0;
padding: 0 12px;
background: transparent;
color: #000;
font-size: 13px;
font-weight: 600;
font-family: "Open Sans", sans-serif;
text-transform: uppercase;
}
.filter button:first-child {
padding-left: 0;
}
.filter button:last-child {
margin-right: 0;
padding-right: 0;
}
.filter-inner {
display: inline-block;
position: relative;
}
.filter-bar {
height: 5px;
margin: 10px auto 0;
background-color: #fff;
position: relative;
}
.filter-bar, .filter-bar .filter-bar-line {
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
}
.filter-bar .filter-bar-line {
top: 0;
left: 0;
width: 0;
height: 100%;
display: block;
position: relative;
-webkit-transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
-moz-transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
-ms-transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
-o-transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
transition: all 1s cubic-bezier(0.23, 1, 0.32, 1) 0ms;
}
.portfolio-figure {
top: 0;
left: 0;
z-index: 1;
width: 100%;
height: 100%;
position: absolute;
}
.portfolio-figure img {
position: relative;
display: block;
width: 100%;
opacity: 1;
-webkit-transform: scale3d(1.02, 1.02, 1);
-moz-transform: scale3d(1.02, 1.02, 1);
-ms-transform: scale3d(1.02, 1.02, 1);
-o-transform: scale3d(1.02, 1.02, 1);
transform: scale3d(1.02, 1.02, 1);
-webkit-transition: opacity 1s, transform 1s;
-moz-transition: opacity 1s, transform 1s;
-ms-transition: opacity 1s, transform 1s;
-o-transition: opacity 1s, transform 1s;
transition: opacity 1s, transform 1s;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.portfolio-figure .portfolio-caption {
top: -2px;
left: -2px;
right: -2px;
bottom: -2px;
opacity: 0;
position: absolute;
background-color: rgba(32, 39, 52, 0.8);
-webkit-transition: opacity 0.35s linear 0s;
-moz-transition: opacity 0.35s linear 0s;
-ms-transition: opacity 0.35s linear 0s;
-o-transition: opacity 0.35s linear 0s;
transition: opacity 0.35s linear 0s;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.portfolio-figure .portfolio-caption-inner {
left: 0;
bottom: 0;
width: 100%;
padding: 5%;
position: absolute;
-webkit-transition: transform 0.35s;
-moz-transition: transform 0.35s;
-ms-transition: transform 0.35s;
-o-transition: transform 0.35s;
transition: transform 0.35s;
-webkit-transform: translate3d(0, 100%, 0);
-moz-transform: translate3d(0, 100%, 0);
-ms-transform: translate3d(0, 100%, 0);
-o-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.portfolio-figure .portfolio-title,
.portfolio-figure .portfolio-cat {
opacity: 0;
-webkit-transition: opacity 0.35s;
-moz-transition: opacity 0.35s;
-ms-transition: opacity 0.35s;
-o-transition: opacity 0.35s;
transition: opacity 0.35s;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.portfolio-figure .portfolio-title {
color: #fff;
font-weight: 700;
line-height: 1.3;
margin-bottom: 13px;
}
.portfolio-figure .portfolio-cat {
color: #a7a9ab;
font-size: 13px;
line-height: 1.1;
text-transform: uppercase;
}
.portfolio-figure .btn-group a {
width: 50px;
height: 50px;
margin-right: 5px;
text-align: center;
display: inline-block;
background: transparent;
border: 1px solid #767475;
border: 1px solid rgba(255, 255, 255, 0.2);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-ms-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
-webkit-transition: transform 0.35s;
-moz-transition: transform 0.35s;
-ms-transition: transform 0.35s;
-o-transition: transform 0.35s;
transition: transform 0.35s;
-webkit-transform: translate3d(0, 200%, 0);
-moz-transform: translate3d(0, 200%, 0);
-ms-transform: translate3d(0, 200%, 0);
-o-transform: translate3d(0, 200%, 0);
transform: translate3d(0, 200%, 0);
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
-o-backface-visibility: hidden;
backface-visibility: hidden;
}
.portfolio-figure .btn-group a:hover {
text-decoration: none;
}
.portfolio-figure .btn-group .icon {
display: block;
line-height: 50px;
font-size: 25px;
}
.portfolio-figure:hover img {
opacity: 0.85;
-webkit-transform: scale3d(1.1, 1.1, 1);
-moz-transform: scale3d(1.1, 1.1, 1);
-ms-transform: scale3d(1.1, 1.1, 1);
-o-transform: scale3d(1.1, 1.1, 1);
transform: scale3d(1.1, 1.1, 1);
}
.portfolio-figure:hover .portfolio-caption,
.portfolio-figure:hover .portfolio-title,
.portfolio-figure:hover .portfolio-cat {
opacity: 1;
}
.portfolio-figure:hover .portfolio-caption-inner {
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.portfolio-figure:hover .btn-group a {
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-ms-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.portfolio-figure:hover .btn-group .btn-zoom {
-webkit-transition-delay: 0.3s;
-moz-transition-delay: 0.3s;
-ms-transition-delay: 0.3s;
-o-transition-delay: 0.3s;
transition-delay: 0.3s;
}
.portfolio-figure:hover .btn-group .btn-link {
-webkit-transition-delay: 0.2s;
-moz-transition-delay: 0.2s;
-ms-transition-delay: 0.2s;
-o-transition-delay: 0.2s;
transition-delay: 0.2s;
}
@media (max-width: 767px) {
.filter-bar {
display: none;
}
.filter-inner {
display: block;
}
.filter button {
width: 100%;
margin: 0;
padding: 10px 0;
display: block;
border-bottom: 1px solid #d7dbde;
position: relative;
}
.filter .active:after {
content: '';
left: 0;
bottom: -1px;
height: 3px;
width: 100%;
position: absolute;
}
.grid .grid-item,
.grid .grid-sizer {
width: 50%;
}
.grid .size11,
.grid .size22 {
width: 50%;
}
.grid .size11 .portfolio-title,
.grid .size22 .portfolio-title {
font-size: 18px;
}
}
@media (max-width: 480px) {
.grid .grid-item,
.grid .grid-sizer {
width: 100%;
}
.grid .size11,
.grid .size22 {
width: 100%;
}
.grid .size11 .portfolio-title,
.grid .size22 .portfolio-title {
font-size: 22px;
}
}
.fancybox-portfolio .fancybox-error {
background: #fff;
margin-right: 70px;
min-height: 225px;
}
.fancybox-portfolio .fancybox-skin {
box-shadow: none;
background-color: transparent;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
-ms-border-radius: 0px;
-o-border-radius: 0px;
border-radius: 0px;
}
.fancybox-portfolio .fancybox-nav,
.fancybox-portfolio .fancybox-close {
left: auto;
right: 0px;
width: 45px;
height: 45px;
border: 1px solid #767475;
border: 1px solid rgba(255, 255, 255, 0.3);
-webkit-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-ms-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
.fancybox-portfolio .fancybox-nav:hover,
.fancybox-portfolio .fancybox-close:hover {
background-color: rgba(255, 255, 255, 0.1);
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.24);
}
.fancybox-portfolio .fancybox-close,
.fancybox-portfolio .fancybox-prev span,
.fancybox-portfolio .fancybox-next span {
background-image: url("img/fancybox_sprite.png");
}
.fancybox-portfolio .fancybox-close {
top: 0;
background-position: -91px 0px;
}
.fancybox-portfolio .fancybox-nav span {
top: 0;
left: 0;
margin: 0;
right: auto;
width: 100%;
height: 100%;
visibility: visible;
}
.fancybox-portfolio .fancybox-prev {
top: 127px;
}
.fancybox-portfolio .fancybox-prev span {
background-position: -1px 0px;
}
.fancybox-portfolio .fancybox-next {
top: 180px;
}
.fancybox-portfolio .fancybox-next span {
background-position: -46px 0px;
}
.fancybox-inline-box {
width: 730px;
z-index: 0;
opacity: 0;
visibility: hidden;
position: relative;
background: #fff;
overflow-y: auto;
overflow-x: hidden;
margin-right: 65px;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.fancybox-inline-box.opened {
height: 100%;
min-height: 225px;
opacity: 1;
visibility: visible;
}
.fancybox-inline-box .inline-cont {
padding: 25px 40px;
}
.fancybox-inline-box .inline-title {
color: #000;
font-size: 20px;
line-height: 1.25;
margin-bottom: 20px;
}
.fancybox-inline-box .inline-text {
color: #757575;
font-size: 16px;
line-height: 1.3;
}
.fancybox-inline-box .inline-text p {
margin-bottom: 15px;
}
.fancybox-inline-box .inline-text p:last-child {
margin-bottom: 0;
}
.fancybox-inline-box .inline-embed-image {
width: 100%;
}
.fancybox-inline-box .inline-embed-image img {
width: 100%;
height: auto;
display: block;
}
.fancybox-inline-box .inline-embed-iframe,
.fancybox-inline-box .inline-embed-video {
width: 100%;
height: 410px;
}
.fancybox-inline-box .inline-embed-iframe iframe {
width: 100%;
height: 100%;
border: 0;
}
.fancybox-inline-box .inline-embed-video .mejs-video {
width: 100% !important;
height: 100% !important;
}
@media only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2 / 1), only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.fancybox-portfolio .fancybox-nav span,
.fancybox-portfolio .fancybox-close {
background-image: url("img/fancybox_sprite@2x.png");
background-size: 135px 45px;
}
}
@media (max-width: 992px) {
.fancybox-inline-box {
width: 650px;
}
.fancybox-inline-box .inline-embed-iframe,
.fancybox-inline-box .inline-embed-video {
height: 360px;
}
}
@media (max-width: 767px) {
.fancybox-portfolio .fancybox-error {
background: #fff;
margin-right: 0;
min-height: 0px;
}
.fancybox-portfolio .fancybox-nav,
.fancybox-portfolio .fancybox-close {
width: 30px;
height: 30px;
}
.fancybox-portfolio .fancybox-close {
top: -40px;
right: 0;
background-position: -99px -8px;
}
.fancybox-portfolio .fancybox-prev {
top: -40px;
left: 0;
right: auto;
}
.fancybox-portfolio .fancybox-prev span {
background-position: -9px -8px;
}
.fancybox-portfolio .fancybox-next {
top: -40px;
left: 40px;
right: auto;
}
.fancybox-portfolio .fancybox-next span {
background-position: -53px -8px;
}
.fancybox-inline-box {
margin-right: 0;
width: 420px;
}
.fancybox-inline-box .inline-embed-iframe,
.fancybox-inline-box .inline-embed-video {
height: 230px;
}
.fancybox-inline-box .inline-cont {
padding: 20px;
}
}
@media (max-width: 480px) {
.fancybox-inline-box {
width: 350px;
}
.fancybox-inline-box .inline-embed-iframe,
.fancybox-inline-box .inline-embed-video {
height: 187px;
}
}
@media (max-width: 360px) {
.fancybox-inline-box {
width: 250px;
}
.fancybox-inline-box .inline-embed-iframe,
.fancybox-inline-box .inline-embed-video {
height: 150px;
}
}
/**** HTML FORM ****/
form {
max-width: 300px;
margin: 10px auto;
padding: 10px 20px;
background: #f4f7f8;
border-radius: 8px;
}
h1 {
margin: 0 0 30px 0;
text-align: center;
}
input[type="text"],
input[type="password"],
input[type="date"],
input[type="datetime"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="time"],
input[type="url"],
textarea,
select {
background: rgba(255,255,255,0.1);
border: none;
font-size: 16px;
height: auto;
margin: 0;
outline: 0;
padding: 15px;
width: 100%;
background-color: #e8eeef;
color: #8a97a0;
box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
margin-bottom: 30px;
}
input[type="radio"],
input[type="checkbox"] {
margin: 0 4px 8px 0;
}
select {
padding: 6px;
height: 32px;
border-radius: 2px;
}
button {
padding: 19px 39px 18px 39px;
color: #FFF;
background-color: #4bc970;
font-size: 18px;
text-align: center;
font-style: normal;
border-radius: 5px;
width: 100%;
border: 1px solid #3ac162;
border-width: 1px 1px 3px;
box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset;
margin-bottom: 10px;
}
fieldset {
margin-bottom: 30px;
border: none;
}
legend {
font-size: 1.4em;
margin-bottom: 10px;
}
label {
display: block;
margin-bottom: 8px;
}
label.light {
font-weight: 300;
display: inline;
}
.number {
background-color: #5fcf80;
color: #fff;
height: 30px;
width: 30px;
display: inline-block;
font-size: 0.8em;
margin-right: 4px;
line-height: 30px;
text-align: center;
text-shadow: 0 1px 0 rgba(255,255,255,0.2);
border-radius: 100%;
}
@media screen and (min-width: 480px) {
form {
max-width: 75%;
}
#footer-links {
text-align: center;
color: #252525;
height: 140px;
background: #5fcf80;
padding-top: 50px;
}
#footer-links li {
display: inline;
padding: 0 40px;
border-right: 1px solid white;
}
#footer-links li:nth-child(7) {
border-right: none;
}
#footer-links p {
text-align: center;
}
#contact-form {
float: left;
width: 50%;
}
#social-box {
width: 50%;
float: left;
}
#social-box h1 {
padding: 20px;
font-size: 60px;
font-weight: bold;
}
#social-contact {
padding-left: 150px;
list-style: none;
font-size: 18px;
font-weight: bold;
}
#social-contact li {
margin: 40px;
}
a {
text-decoration: none;
color: inherit;
}
.fa-4x {
color: #5fcf80;
}
Also see: Tab Triggers