Skip to content

Commit

Permalink
Merge pull request #2 from pikesley/styles
Browse files Browse the repository at this point in the history
Styles
  • Loading branch information
Sam Pikesley committed Jan 27, 2016
2 parents 25a6ab0 + 7c0a768 commit 1f91554
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -12,5 +12,5 @@ deploy:
secure: Mk3gbPcoUUJaS+aqH7uA12JZ1xHcEthtP1NVtNY8N7QQBWbSP03aFrNgHi0/pFIJhXWvZ1D0quZnO3r26hTV6Lu8KoNokTfZzojVcqDf2GW3KCsZ9BPYXkGTn2RFjMz96DoVIaQr4+eHNYyPSiHUMli/3u6TSE0/T6+gZIZPSHNJdA58e5tQvyjBYcOUePV2xT/sDNTvKdm/zyyNNmg+XjUz24Mw3sfxzX3ySCvhdHutxDANoM1B5EggggJbtWbwv4jcmuW+BAwJmI8F/l6C3fv29qn7Ys/7cU0PSgPV3vK8LA7CTyHTqkIWDlcuWeyuPYj6bf3uGA0N8JWQjNhkNbwE88WlThHYGc7W9SH9Ow3/FcRatzFDwIpCwx2m+8oumhHB9uJwERza7JPe9O0PjmSFY4hlhaxL1QRqXEk3MwcUPCz6lYJ3vWYtaXhEJGPZBFdSOLLbzRC3LV76iPmVPJoSetgsgm7TXEvxDUaaSzOe0yVxUwQophPkbXi+rzyiSfkCZf+zg6Y3hDZ+1AwxgziK0J20Wq9wRNRKkkHhX6kGWQnDqyaDNMJPbS7GqaBMXwr0w5dWyfH/vXhCoQreM3BNADxIj7hKjuYhetjFvIusPzkhHJKJaY98ElJx8F06TnnPu5EnSfnEVg7r+IzQSmou2BdA6oTae/q3QAx4oAA=
app: correctiondose
on:
repo: pikesley/CorrectionDose
repo: pikesley/correctiondose
run: 'rake db:migrate'
8 changes: 4 additions & 4 deletions README.md
@@ -1,5 +1,5 @@
[![Build Status](http://img.shields.io/travis/pikesley/CorrectionDose.svg?style=flat-square)](https://travis-ci.org/pikesley/CorrectionDose)
[![Dependency Status](http://img.shields.io/gemnasium/pikesley/CorrectionDose.svg?style=flat-square)](https://gemnasium.com/pikesley/CorrectionDose)
[![Coverage Status](http://img.shields.io/coveralls/pikesley/CorrectionDose.svg?style=flat-square)](https://coveralls.io/r/pikesley/CorrectionDose)
[![Code Climate](http://img.shields.io/codeclimate/github/pikesley/CorrectionDose.svg?style=flat-square)](https://codeclimate.com/github/pikesley/CorrectionDose)
[![Build Status](http://img.shields.io/travis/pikesley/correctiondose.svg?style=flat-square)](https://travis-ci.org/pikesley/correctiondose)
[![Dependency Status](http://img.shields.io/gemnasium/pikesley/correctiondose.svg?style=flat-square)](https://gemnasium.com/pikesley/correctiondose)
[![Coverage Status](http://img.shields.io/coveralls/pikesley/correctiondose.svg?style=flat-square)](https://coveralls.io/r/pikesley/correctiondose)
[![Code Climate](http://img.shields.io/codeclimate/github/pikesley/correctiondose.svg?style=flat-square)](https://codeclimate.com/github/pikesley/correctiondose)
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://pikesley.mit-license.org)
72 changes: 71 additions & 1 deletion app/assets/stylesheets/application.scss
@@ -1 +1,71 @@
@import "bootstrap";
@import 'colours';
@import 'fonts';
@import 'bootstrap';

/* Dragones below this line */

nav {
background-color: $brand-primary;
}

.navbar-default .navbar-nav > .active > a {
}

.navbar {
border: 0px;
background-color: $gray-lighter;
}

/* navbar */
.navbar-default {
}
/* title */
.navbar-default .navbar-brand {
color: white;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
}
/* link */
.navbar-default .navbar-nav > li > a {
color: white;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
opacity: 0.5;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
opacity: 0.5;
}

.navbar {
-webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0;
}

/* mobile version */
.navbar-default .navbar-toggle {
border-color: #DDD;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: #DDD;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: #CCC;
}

@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #777;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #333;
}
}
1 change: 1 addition & 0 deletions app/assets/stylesheets/colours.scss
@@ -0,0 +1 @@
$brand-primary: #fa8100;
4 changes: 4 additions & 0 deletions app/assets/stylesheets/fonts.scss
@@ -0,0 +1,4 @@
@import url(http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css);
@import url('http://fonts.googleapis.com/css?family=NTR');

$font-family-sans-serif: "NTR", sans-serif;
43 changes: 22 additions & 21 deletions app/views/layouts/application.html.erb
@@ -1,25 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<title>RollerCoaster</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<% if signed_in? %>
Signed in as: <%= current_user.email %>
<%= button_to 'Sign out', sign_out_path, method: :delete %>
<% else %>
<%= link_to 'Sign in', sign_in_path %>
<% end %>

<div id="flash">
<% flash.each do |key, value| %>
<div class="flash <%= key %>"><%= value %></div>
<% end %>
<head>
<title>RollerCoaster</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
<%= render 'shared/nav' %>
<div class='container'>
<div class='row'>
<div class='col-md-2'></div>
<div class='col-md-8'>
<%= yield %>
</div>
<div class='col-md-2'></div>
</div>
<div id="flash">
<% flash.each do |key, value| %>
<div class="flash <%= key %>"><%= value %></div>
<% end %>
</div>
</div>
<%= yield %>

</body>
</body>
</html>
48 changes: 23 additions & 25 deletions app/views/shared/_nav.html.erb
@@ -1,27 +1,25 @@
<nav class='navbar navbar-default' role='navigation'>
<!-- Brand and toggle get grouped for better mobile display -->
<div class='navbar-header'>
<button type='button' class='navbar-toggle collapsed' data-toggle='collapse' data-target='#navbar-collapse'>
<span class='sr-only'>Toggle navigation</span>
<span class='icon-bar'></span>
<span class='icon-bar'></span>
<span class='icon-bar'></span>
</button>
</div>
<div class='collapse navbar-collapse' id='navbar-collapse'>
<div class='container-fluid'>
<!-- Brand and toggle get grouped for better mobile display -->
<div class='navbar-header'>
<!-- <button type='button' class='navbar-toggle collapsed' data-toggle='collapse' data-target='#navbar-collapse'>
<span class='sr-only'>Toggle navigation</span>
<span class='icon-bar'></span>
<span class='icon-bar'></span>
<span class='icon-bar'></span>
</button> -->
<% if signed_in? %>
<p class="navbar-text navbar-right">
Signed in as <%= current_user.email %>
<%= link_to 'Sign out', sign_out_path, method: :delete %>
</p>
<% else %>
<%= link_to 'Sign in', sign_in_path %>
<% end %>
</div>

<!-- mobile -->
<ul class='nav hidden-md hidden-lg mobile' role='tablist'>
<li>
derp
</li>
</ul>

<!-- desktop -->
<ul class='nav nav-stacked nav-pills pull-right hidden-xs hidden-sm' role='tablist'>
<li>
derp
</li>
</ul>
</div>
</nav
<!-- Collect the nav links, forms, and other content for toggling -->
<div class='collapse navbar-collapse' id='navbar-collapse'>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
6 changes: 4 additions & 2 deletions spec/support/features/clearance_helpers.rb
Expand Up @@ -20,7 +20,8 @@ def sign_in_with(email, password)
end

def sign_out
click_button I18n.t("layouts.application.sign_out")
# click_button I18n.t("layouts.application.sign_out")
click_link I18n.t("layouts.application.sign_out")
end

def sign_up_with(email, password)
Expand All @@ -32,7 +33,8 @@ def sign_up_with(email, password)

def expect_user_to_be_signed_in
visit root_path
expect(page).to have_button I18n.t("layouts.application.sign_out")
# expect(page).to have_button I18n.t("layouts.application.sign_out")
expect(page).to have_link I18n.t("layouts.application.sign_out")
end

def expect_user_to_be_signed_out
Expand Down

0 comments on commit 1f91554

Please sign in to comment.