Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * This is a manifest file that'll be compiled into application.css, which will include all the files
- * listed below.
- *
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
- *
- * You're free to add application-wide styles to this file and they'll appear at the top of the
- * compiled file, but it's generally better to create a new file per style scope.
- *
- *= require_self
- *= require_tree .
- */
- .header {
- height: 148px;
- width: 100%;
- background-image: url('header_background.png');
- }
- .menu {
- padding-top: 53px;
- float: right;
- padding-right: 30px;
- }
- a:hover {
- text-decoration: none;
- }
- .right-items {
- padding-left: 40px;
- }
- div.menu div {
- display: inline;
- }
- div.left-items div {
- display: inline;
- padding-right: 10px;
- }
- div.right-items div {
- display: inline;
- padding-left: 10px;
- }
- .black-bar {
- height: 5px;
- background-color: black;
- }
- .logo {
- position: absolute;
- left: 8.35%;
- top: 21px;
- }
- body {
- margin: 0px;
- }
- body {
- background-color: #fff;
- color: #333;
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
- }
- p, ol, ul, td {
- font-family: verdana, arial, helvetica, sans-serif;
- font-size: 13px;
- line-height: 18px;
- }
- pre {
- background-color: #eee;
- padding: 10px;
- font-size: 11px;
- }
- div {
- &.field, &.actions {
- margin-bottom: 10px;
- }
- }
- #notice {
- color: green;
- }
- .field_with_errors {
- color: red;
- }
- #error_explanation {
- width: 450px;
- border: 2px solid red;
- padding: 7px;
- padding-bottom: 0;
- margin-bottom: 20px;
- background-color: #f0f0f0;
- h2 {
- text-align: left;
- font-weight: bold;
- padding: 5px 5px 5px 15px;
- font-size: 12px;
- margin: -7px;
- margin-bottom: 0px;
- background-color: #c00;
- color: #fff;
- }
- ul li {
- font-size: 12px;
- list-style: square;
- }
- }
- <div class="header-wrapper">
- <div class="header">
- <div class="logo">
- <%= link_to(image_tag("logo.png"), :controller => "home", :action => "index") %>
- </div>
- <div class="menu">
- <div class="left-items">
- <div class="left-item">
- <%= link_to(image_tag("blog.png", :class => "hover"), :controller => "home", :action => "index") %>
- </div>
- <div class="left-item">
- <%= link_to(image_tag("map.png", :class => "hover"), :controller => "home", :action => "index") %>
- </div>
- <div class="left-item">
- <%= link_to(image_tag("shop.png", :class => "hover"), :controller => "home", :action => "index") %>
- </div>
- <div class="left-item">
- <%= link_to(image_tag("contact.png", :class => "hover"), :controller => "home", :action => "index") %>
- </div>
- </div>
- <div class="right-items">
- <% if !session[:user].eql? nil %>
- <div class="right-item">
- <%= link_to(image_tag("profile.png", :class => "hover"), :controller => "user", :action => "view", :id => session[:user]) %>
- </div>
- <div class="right-item">
- <%= link_to(image_tag("logout.png", :class => "hover"), :controller => "user", :action => "logout") %>
- </div>
- <% else %>
- <div class="right-item">
- <%= link_to(image_tag("login.png", :class => "hover"), :controller => "user", :action => "login") %>
- </div>
- <div class="right-item">
- <%= link_to(image_tag("signup.png", :class => "hover"), :controller => "user", :action => "signup") %>
- </div>
- <% end %>
- </div>
- </div>
- </div>
- <div class="black-bar"></div>
- </div>
- <div class="content">
- <% if !session[:user].eql? nil %>
- Logged in as: <%= session[:user] %>
- <% end %>
- </div>
- <!DOCTYPE html>
- <html>
- <head>
- <title>DarkFission</title>
- <%= stylesheet_link_tag "application", :media => "all" %>
- <%= javascript_include_tag "application" %>
- <%= csrf_meta_tags %>
- </head>
- <body>
- <%= yield %>
- </body>
- </html>
Add Comment
Please, Sign In to add comment