This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="forms" class="row section"> | |
<div class="large-12 columns"> | |
<h1>Forms</h1> | |
</div> | |
<span class="gist"><a class="icon icon-ajmn-embed" href="https://gist.github.com/capitalJT/c71f0c898fd52c501a96" target="_blank"></a></span> | |
<hr> | |
<div class="large-12 columns"> | |
<div class="medium-4 columns"> | |
<form action="#"> | |
<label>Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// calculating some values | |
var header_height = $('.header').outerHeight(), | |
scroll_top_icon = $('#scroll-to-top'), | |
scrollTop = $(window).scrollTop(); | |
// Scroll to top function 1/2 | |
$(function(){ | |
$(window).scroll(function(){ | |
if( scrollTop > header_height ){ | |
scroll_top_icon.fadeIn(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin font-size($sizeValue: 16, $line: $sizeValue * 1.5) { | |
font-size: ($sizeValue) + px; | |
line-height: ($line) + px; | |
font-size: ($sizeValue / 16) + rem; | |
line-height: ($line / 16) + rem; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post" action="addemail.php"> | |
<label for="firstname">First name:</label> | |
<input type="text" id="firstname" name="firstname" /> | |
<label for="lastname">Last name:</label> | |
<input type="text" id="lastname" name="lastname" /> | |
<label for="email">Email:</label> | |
<input type="text" id="email" name="email" /> | |
<input type="submit" name="Submit" value="Submit" /> | |
</form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
$orange:#e24d25; | |
header { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
z-index: 9999; | |
background-color: #e24d25; | |
color: White; |
NewerOlder