Skip to content
Browse files

Add partial

  • Loading branch information...
1 parent ba756a8 commit 757f16099b40125c82e60b157146be40ea82e7b6 @nawakkap committed Mar 11, 2012
View
102 app/assets/stylesheets/custom.css.scss
@@ -0,0 +1,102 @@
+@import "bootstrap";
+
+/* mixins, variables, etc. */
+
+$grayMediumLight: #eaeaea;
+
+/* universal */
+
+html {
+ overflow-y: scroll;
+}
+
+body {
+ padding-top: 60px;
+}
+
+section {
+ overflow: auto;
+}
+
+textarea {
+ resize: vertical;
+}
+
+.center {
+ text-align: center;
+ h1 {
+ margin-bottom: 10px;
+ }
+}
+
+/* typography */
+
+h1, h2, h3, h4, h5, h6 {
+ line-height: 1;
+}
+
+h1 {
+ font-size: 3em;
+ letter-spacing: -2px;
+ margin-bottom: 30px;
+ text-align: center;
+}
+
+h2 {
+ font-size: 1.7em;
+ letter-spacing: -1px;
+ margin-bottom: 30px;
+ text-align: center;
+ font-weight: normal;
+ color: $grayLight;
+}
+
+p {
+ font-size: 1.1em;
+ line-height: 1.7em;
+}
+
+
+/* header */
+
+#logo {
+ float: left;
+ margin-right: 10px;
+ font-size: 1.7em;
+ color: white;
+ text-transform: uppercase;
+ letter-spacing: -1px;
+ padding-top: 9px;
+ font-weight: bold;
+ line-height: 1;
+ &:hover {
+ color: white;
+ text-decoration: none;
+ }
+}
+
+/* footer */
+
+footer {
+ margin-top: 45px;
+ padding-top: 5px;
+ border-top: 1px solid $grayMediumLight;
+ color: $grayLight;
+ a {
+ color: $gray;
+ &:hover {
+ color: $grayDarker;
+ }
+ }
+ small {
+ float: left;
+ }
+ ul {
+ float: right;
+ list-style: none;
+ li {
+ float: left;
+ margin-left: 10px;
+ }
+ }
+}
View
13 app/views/layouts/_footer.html.erb
@@ -0,0 +1,13 @@
+<footer class="footer">
+ <small>
+ <a href="http://railstutorial.org/">Rails Tutorial</a>
+ by Michael Hartl
+ </small>
+ <nav>
+ <ul>
+ <li><%= link_to "About", '#' %></li>
+ <li><%= link_to "Contact", '#' %></li>
+ <li><a href="http://news.railstutorial.org/">News</a></li>
+ </ul>
+ </nav>
+</footer>
View
14 app/views/layouts/_header.html.erb
@@ -0,0 +1,14 @@
+<header class="navbar navbar-fixed-top">
+ <div class="navbar-inner">
+ <div class="container">
+ <%= link_to "sample app", '#', id: "logo"%>
+ <nav>
+ <ul class="nav pull-right">
+ <li><%=link_to "Home", '#'%></li>
+ <li><%=link_to "Help", '#'%></li>
+ <li><%=link_to "Sign in", '#'%></li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+</header>
View
3 app/views/layouts/_shim.html.erb
@@ -0,0 +1,3 @@
+<!--[if lt IE 9]>
+<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+<![endif]-->

0 comments on commit 757f160

Please sign in to comment.
Something went wrong with that request. Please try again.