SHARE
TWEET

Untitled

a guest Jan 17th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  * This is a manifest file that'll be compiled into application.css, which will include all the files
  3.  * listed below.
  4.  *
  5.  * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
  6.  * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
  7.  *
  8.  * You're free to add application-wide styles to this file and they'll appear at the top of the
  9.  * compiled file, but it's generally better to create a new file per style scope.
  10.  *
  11.  *= require_self
  12.  *= require_tree .
  13.  */
  14.    
  15. .header {
  16.     height: 148px;
  17.     width: 100%;
  18.     background-image: url('header_background.png');
  19. }
  20.  
  21. .menu {
  22.     padding-top: 53px;
  23.     float: right;
  24.     padding-right: 30px;
  25. }
  26.  
  27. a:hover {
  28.     text-decoration: none;
  29. }
  30.  
  31. .right-items {
  32.     padding-left: 40px;
  33. }
  34.  
  35. div.menu div {
  36.     display: inline;
  37. }
  38.  
  39. div.left-items div {
  40.     display: inline;
  41.     padding-right: 10px;
  42. }
  43.  
  44. div.right-items div {
  45.     display: inline;
  46.     padding-left: 10px;
  47. }
  48.  
  49. .black-bar {
  50.     height: 5px;
  51.     background-color: black;
  52. }
  53.  
  54. .logo {
  55.     position: absolute;
  56.     left: 8.35%;
  57.     top: 21px;
  58. }
  59.  
  60. body {
  61.     margin: 0px;
  62. }
  63.    
  64. body {
  65.   background-color: #fff;
  66.   color: #333;
  67.   font-family: verdana, arial, helvetica, sans-serif;
  68.   font-size: 13px;
  69.   line-height: 18px;
  70. }
  71.  
  72. p, ol, ul, td {
  73.   font-family: verdana, arial, helvetica, sans-serif;
  74.   font-size: 13px;
  75.   line-height: 18px;
  76. }
  77.  
  78. pre {
  79.   background-color: #eee;
  80.   padding: 10px;
  81.   font-size: 11px;
  82. }
  83.  
  84. div {
  85.   &.field, &.actions {
  86.     margin-bottom: 10px;
  87.   }
  88. }
  89.  
  90. #notice {
  91.   color: green;
  92. }
  93.  
  94. .field_with_errors {
  95.   color: red;
  96. }
  97.  
  98. #error_explanation {
  99.   width: 450px;
  100.   border: 2px solid red;
  101.   padding: 7px;
  102.   padding-bottom: 0;
  103.   margin-bottom: 20px;
  104.   background-color: #f0f0f0;
  105.   h2 {
  106.     text-align: left;
  107.     font-weight: bold;
  108.     padding: 5px 5px 5px 15px;
  109.     font-size: 12px;
  110.     margin: -7px;
  111.     margin-bottom: 0px;
  112.     background-color: #c00;
  113.     color: #fff;
  114.   }
  115.   ul li {
  116.     font-size: 12px;
  117.     list-style: square;
  118.   }
  119. }
  120.    
  121. <div class="header-wrapper">
  122.     <div class="header">
  123.         <div class="logo">
  124.             <%= link_to(image_tag("logo.png"), :controller => "home", :action => "index") %>
  125.         </div>
  126.         <div class="menu">
  127.             <div class="left-items">
  128.                 <div class="left-item">
  129.                     <%= link_to(image_tag("blog.png", :class => "hover"), :controller => "home", :action => "index") %>
  130.                 </div>
  131.                 <div class="left-item">
  132.                     <%= link_to(image_tag("map.png", :class => "hover"), :controller => "home", :action => "index") %>
  133.                 </div>
  134.                 <div class="left-item">
  135.                     <%= link_to(image_tag("shop.png", :class => "hover"), :controller => "home", :action => "index") %>
  136.                 </div>
  137.                 <div class="left-item">
  138.                     <%= link_to(image_tag("contact.png", :class => "hover"), :controller => "home", :action => "index") %>
  139.                 </div>
  140.             </div>
  141.             <div class="right-items">
  142.                 <% if !session[:user].eql? nil %>
  143.                 <div class="right-item">
  144.                     <%= link_to(image_tag("profile.png", :class => "hover"), :controller => "user", :action => "view", :id => session[:user]) %>
  145.                 </div>
  146.                 <div class="right-item">
  147.                     <%= link_to(image_tag("logout.png", :class => "hover"), :controller => "user", :action => "logout") %>
  148.                 </div>
  149.                 <% else %>
  150.                 <div class="right-item">
  151.                     <%= link_to(image_tag("login.png", :class => "hover"), :controller => "user", :action => "login") %>
  152.                 </div>
  153.                 <div class="right-item">
  154.                     <%= link_to(image_tag("signup.png", :class => "hover"), :controller => "user", :action => "signup") %>
  155.                 </div>
  156.                 <% end %>
  157.             </div>
  158.         </div>
  159.     </div>
  160.     <div class="black-bar"></div>
  161. </div>
  162. <div class="content">
  163.     <% if !session[:user].eql? nil %>
  164.         Logged in as: <%= session[:user] %>
  165.     <% end %>
  166. </div>
  167.    
  168. <!DOCTYPE html>
  169. <html>
  170. <head>
  171.   <title>DarkFission</title>
  172.   <%= stylesheet_link_tag    "application", :media => "all" %>
  173.   <%= javascript_include_tag "application" %>
  174.   <%= csrf_meta_tags %>
  175. </head>
  176. <body>
  177.  
  178. <%= yield %>
  179.  
  180. </body>
  181. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top