Last active
December 30, 2015 15:29
-
-
Save SamSamskies/7848914 to your computer and use it in GitHub Desktop.
Railsbridge Front-end Example
This file contains 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
body { | |
height: 2000px; | |
} | |
.big { | |
font-size: 100px; | |
} | |
a { | |
font-size: 12px; | |
} | |
a:hover { | |
font-size: 18px; | |
} | |
#sticky-header { | |
height: 50px; | |
width: 100%; | |
background-color: black; | |
position: fixed; | |
top: 0; | |
left: 0; | |
} | |
#sticky-header ul { | |
list-style: none; | |
margin-top: 0; | |
margin-right: 20px; | |
float: right; | |
line-height: 50px; | |
} | |
#sticky-header li { | |
color: blue; | |
display: inline-block; | |
padding: 10px; | |
margin-right: 20px; | |
width: 100px; | |
height: 10px; | |
line-height: 10px; | |
vertical-align: middle; | |
background-color: yellow; | |
text-align: center; | |
} | |
#sticky-header li:hover { | |
background-color: #81D8D0; | |
color: black; | |
} | |
.container { | |
margin-top: 70px; | |
position: relative; | |
} | |
.something { | |
width: 100px; | |
height: 100px; | |
background-color: red; | |
position: absolute; | |
top: 0; | |
right: 0; | |
} | |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Railsbridge</title> | |
<link rel='stylesheet' href='app.css'> | |
</head> | |
<body> | |
<nav id='sticky-header'> | |
<ul> | |
<li>Sign Out</li> | |
<li>Account</li> | |
<li>Profile</li> | |
</ul> | |
</nav> | |
<div class='container'> | |
<div class='something'></div> | |
<a href="#">Testing</a> | |
Hello <span class='big'>World!</span> | |
<h1>I <span class='big'>like</span></h1> | |
<ul> | |
<li>jQuery</li> | |
<li>Coffeescript</li> | |
<li>Rails</li> | |
</ul> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment