Skip to content

Commit

Permalink
Applied content cell classes across all edit and new pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brzaik committed Jul 8, 2012
1 parent c632e36 commit f7ad4a2
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 25 deletions.
4 changes: 1 addition & 3 deletions app/assets/stylesheets/application/controls/buttons.scss.erb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
border: 0;
border-right: solid 1px #396bab;
height: 18px;
padding: 4px 12px 0px 20px;
padding: 2px 12px 2px 20px;

&:hover {
@include no-box-shadow;
Expand All @@ -176,8 +176,6 @@
background-position: 0% 100%;
border: 0;
border-right: solid 1px #999;
height: 17px;
padding: 5px 12px 0px 20px;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ section.C {
// this element is only included when the back_button helper is used to place a back button
.C-header_back {
float: left;
margin-left: -25px;
margin-right: 8px;
margin: 7px 8px 7px -12px;
}

}
Expand Down
2 changes: 1 addition & 1 deletion app/views/contents/_show_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 id="contentlist">
<h1 class="default-padding" id="contentlist">
<%= link_to "All Content", feeds_path, :remote => true %> &gt;
<%= @content.name %>
</h1>
2 changes: 1 addition & 1 deletion app/views/feeds/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header">
<%= back_button feeds_path %>
<h1><%= t(:edit_feed)%></h1>
<h1 class="default-padding"><%= t(:edit_feed)%></h1>
</header>
<div class="C-cont">
<%= render 'form' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/feeds/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header">
<%= back_button feeds_path %>
<h1><%=t(:new_feed)%></h1>
<h1 class="default-padding"><%=t(:new_feed)%></h1>
</header>
<div class="C-cont">
<%= render 'form' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/groups/_show_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>
<h1 class="default-padding">
<%= link_to "All User Groups", groups_path %> &gt;
<%= @group.name %>
</h1>
6 changes: 2 additions & 4 deletions app/views/groups/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<section class="C no">
<header class="C-header">
<%= back_button groups_path %>
<h1>Edit Group</h1>
<h1 class="default-padding">Edit Group</h1>
</header>
<div class="C-cont">
<article>
<%= render 'form' %>
</article>
<%= render 'form' %>
<div class="clear"></div>
</div>
</section>
2 changes: 1 addition & 1 deletion app/views/groups/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C no">
<header class="C-header">
<%= back_button groups_path %>
<h1>New Group</h1>
<h1 class="default-padding">New Group</h1>
</header>
<div class="C-cont">
<article>
Expand Down
2 changes: 1 addition & 1 deletion app/views/screens/_show_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>
<h1 class="default-padding">
<%= link_to "All Screens", screens_path %> &gt;
<%= @screen.name %>
</h1>
2 changes: 1 addition & 1 deletion app/views/screens/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header">
<%= back_button :back %>
<h1>Edit Screen</h1>
<h1 class="default-padding">Edit Screen</h1>
</header>
<div class="C-cont">
<%= render 'form' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/screens/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header">
<%= back_button screens_path %>
<h1>New Screen</h1>
<h1 class="default-padding">New Screen</h1>
</header>
<div class="C-cont">
<%= render 'form' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/_show_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1 id="contentlist">
<h1 class="default-padding" id="contentlist">
<%= link_to "All Templates", templates_path %> &gt;
<%= @template.name %>
</h1>
2 changes: 1 addition & 1 deletion app/views/templates/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header" id="template-header">
<%= back_button template_path(@template), :back %>
<h1>Editing template</h1>
<h1 class="default-padding">Editing template</h1>
</header>
<div class="C-cont">
<%= render 'form', :locals => { :template => @template } %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="C">
<header class="C-header" id="browse-header">
<h1>All Templates <%= link_to 'New Template', new_template_path, :class => "btn" if can? :create, @templates %></h1>
<h1 class="default-padding">All Templates <%= link_to 'New Template', new_template_path, :class => "btn" if can? :create, @templates %></h1>
</header>
<div id="browse-body" class="C-cont">
<%= render "index_body" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/templates/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="span10">
<section class="C">
<header class="C-header" id="template-header">
<h1><%= @type.capitalize + " Template" %></h1>
<h1 class="default-padding"><%= @type.capitalize + " Template" %></h1>
</header>
<div class="C-cont">
<% if @type == "create" %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/_show_header.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>
<h1 class="default-padding">
<%= link_to "All Users", users_path %> &gt;
<%= @user.name %>
</h1>
2 changes: 1 addition & 1 deletion app/views/users/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header">
<%= back_button users_path %>
<h1>Edit User</h1>
<h1 class="default-padding">Edit User</h1>
</header>
<div class="C-cont">
<%= render 'form' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="C">
<header class="C-header">
<h1>All Users <%= link_to 'New User', new_user_path, :class => "button" %></h1>
<h1 class="default-padding">All Users <%= link_to 'New User', new_user_path, :class => "button" %></h1>
</header>
<div class="C-cont">
<table>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<section class="C">
<header class="C-header">
<%= back_button users_path %>
<h1>New User</h1>
<h1 class="default-padding">New User</h1>
</header>
<div class="C-cont">
<%= render 'form' %>
Expand Down

0 comments on commit f7ad4a2

Please sign in to comment.