Skip to content

Instantly share code, notes, and snippets.

@rogeliog
Created April 11, 2013 20:11
Show Gist options
  • Save rogeliog/5366770 to your computer and use it in GitHub Desktop.
Save rogeliog/5366770 to your computer and use it in GitHub Desktop.
Public setup
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= content_for?(:title) ? yield(:title) : "Awesomeness" %></title>
<%= csrf_meta_tags %>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<%= stylesheet_link_tag "application", :media => "all" %>
<link href="images/favicon.ico" rel="shortcut icon">
<link href="images/apple-touch-icon.png" rel="apple-touch-icon">
<link href="images/apple-touch-icon-72x72.png" rel="apple-touch-icon" sizes="72x72">
<link href="images/apple-touch-icon-114x114.png" rel="apple-touch-icon" sizes="114x114">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Awesomeness</a>
<div class="container nav-collapse">
<ul class="nav">
<li><%= link_to "Ideas", "/path1" %></li>
<li><%= link_to "Perfil", "/path2" %></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="row">
<div class="span10">
<%= yield %>
</div>
</div><!--/row-->
</div><!--/content-->
<footer>
<p>&copy; Company 2012</p>
</footer>
</div> <!-- /container -->
<!-- Javascripts
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<%= javascript_include_tag "application" %>
</body>
</html>
// Place all the styles related to the ideas controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
textarea#idea_text{
height: 100px;
padding: 5px;
font-family: Tahoma, sans-serif;
}
#new_idea_wrapper{
position:fixed;
-webkit-box-shadow: 2px 2px 10px #444;
-moz-box-shadow: 2px 2px 10px #444;
box-shadow: 2px 2px 10px #444;
}
body{
background: url('bg.jpg') no-repeat;
background-repeat:repeat-y;
background-size: 100%;
}
h1.title{
text-align: center;
margin-bottom: 40px;
}
ul.ideas {
list-style:none;
.idea {
-webkit-box-shadow: 1px 1px 3px #444;
-moz-box-shadow: 1px 1px 3px #444;
box-shadow: 1px 1px 3px #444;
padding: 20px 5px;
margin: 5px;
background: #fff;
border: 1px solid #777;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
&:hover {background:#efefef; }
.main {
overflow: hidden;
}
.avatar {
height:100%;
float:left;
}
.avatar img{
width:50px;
height:50px;
}
.time_ago {
color: #666;
}
}
}
pre {
background-color: #eee;
padding: 10px;
font-size: 11px;
}
#notice {
color: green;
}
#error_explanation {
padding: 7px;
padding-bottom: 0;
margin-bottom: 20px;
ul li {
color: red;
font-size: 12px;
list-style: square;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment