Merge branch 'styling' into development
This commit is contained in:
commit
847a81face
@ -1,5 +1,13 @@
|
|||||||
section {
|
body {
|
||||||
margin-top: 70px;
|
margin-top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
strong, label, th {
|
||||||
|
color: #395C84;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@ -11,8 +19,17 @@ ul {
|
|||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.alert {
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 1.5em;
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
$medgray: #3A9AC9;
|
.alert-form {
|
||||||
|
margin-top: .5em !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
// $medgray: #3A9AC9;
|
||||||
|
|
||||||
.videolisting {
|
.videolisting {
|
||||||
label {
|
label {
|
||||||
@ -23,7 +40,8 @@ $medgray: #3A9AC9;
|
|||||||
// border: 2px inset;
|
// border: 2px inset;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
.nested-fields {
|
.nested-fields:nth-of-type(odd), li.blue-box:nth-of-type(odd),
|
||||||
|
.nested-fields:nth-of-type(even), li.blue-box:nth-of-type(even) {
|
||||||
-webkit-border-radius: 1em;
|
-webkit-border-radius: 1em;
|
||||||
-moz-border-radius: 1em;
|
-moz-border-radius: 1em;
|
||||||
border-radius: 1em;
|
border-radius: 1em;
|
||||||
@ -34,16 +52,15 @@ $medgray: #3A9AC9;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.nested-fields:nth-of-type(odd){
|
.nested-fields:nth-of-type(odd), li.blue-box:nth-of-type(odd){
|
||||||
background-color: #395C84;
|
background-color: #395C84;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.nested-fields:nth-of-type(even) {
|
.nested-fields:nth-of-type(even), li.blue-box:nth-of-type(even) {
|
||||||
background-color: lighten(#395C84, 10%);
|
background-color: lighten(#395C84, 10%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blah {
|
.remove-video {
|
||||||
a {
|
a {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@ -52,7 +69,6 @@ $medgray: #3A9AC9;
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.campaigns {
|
.campaigns {
|
||||||
input, select, textarea {
|
input, select, textarea {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -102,7 +118,6 @@ $medgray: #3A9AC9;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#error_explanation ul{
|
#error_explanation ul{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
<div id="flash">
|
<div class="container">
|
||||||
|
<section>
|
||||||
|
<div id="flash">
|
||||||
<% flash.each do |key, value| -%>
|
<% flash.each do |key, value| -%>
|
||||||
<div id="flash_<%= key %>"><%= value %></div>
|
<% if flash[:notice] %>
|
||||||
|
<div id="flash_<%= key %>" class="alert alert-success"><%= value %></div>
|
||||||
|
<% else %>
|
||||||
|
<div id="flash_<%= key %>" class="alert alert-danger"><%= value %></div>
|
||||||
|
<% end %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
</div>
|
</div>
|
@ -4,9 +4,8 @@
|
|||||||
file: :vertical_file_input,
|
file: :vertical_file_input,
|
||||||
boolean: :vertical_boolean
|
boolean: :vertical_boolean
|
||||||
}) do |frm| %>
|
}) do |frm| %>
|
||||||
<% if @campaign.errors.any? %>
|
<!-- <% if @campaign.errors.any? %>
|
||||||
<div class="row">
|
<div class="error_explanation">
|
||||||
<div class="col-md-12 error_explanation">
|
|
||||||
<h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2>
|
<h2><%= pluralize(@campaign.errors.count, "error") %> prohibited this campaign from being saved:</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<% @campaign.errors.full_messages.each do |msg| %>
|
<% @campaign.errors.full_messages.each do |msg| %>
|
||||||
@ -14,11 +13,10 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<% end %> -->
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-8">
|
||||||
<%= frm.input :advertisername,
|
<%= frm.input :advertisername,
|
||||||
label: 'Advertiser Name',
|
label: 'Advertiser Name',
|
||||||
hint: "The name of the company." %>
|
hint: "The name of the company." %>
|
||||||
@ -85,7 +83,7 @@
|
|||||||
hint: "Toll-free phone number of business. Used in video creation." %>
|
hint: "Toll-free phone number of business. Used in video creation." %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6 videolisting">
|
<div class="col-md-4 videolisting">
|
||||||
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |videolisting| %>
|
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |videolisting| %>
|
||||||
<%= render 'videolisting_fields', :f => videolisting %>
|
<%= render 'videolisting_fields', :f => videolisting %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -18,5 +18,5 @@
|
|||||||
label: 'Asset Urls',
|
label: 'Asset Urls',
|
||||||
hint: "A list of all file assets. Comma Separated, (press backspace or click the x to remove)",
|
hint: "A list of all file assets. Comma Separated, (press backspace or click the x to remove)",
|
||||||
input_html: {data: {role: "tagsinput" }, value: ""} %>
|
input_html: {data: {role: "tagsinput" }, value: ""} %>
|
||||||
<div class="blah"><%= link_to_remove_association "Remove Video Listing", f %></div>
|
<div class="text-right remove-video"><%= link_to_remove_association "Remove Video Listing", f %></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<hr>
|
<hr>
|
||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-8">
|
||||||
<ul>
|
<ul>
|
||||||
<% unless @campaign.listingcode.empty? %>
|
<% unless @campaign.listingcode.empty? %>
|
||||||
<li>
|
<li>
|
||||||
@ -132,10 +132,10 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6 videolisting">
|
<div class="col-md-4 videolisting">
|
||||||
<ul class="nested-fields">
|
<ul class="blue-box-container">
|
||||||
<% @campaign.videolistings.each do |videolisting| %>
|
<% @campaign.videolistings.each do |videolisting| %>
|
||||||
<li><%= render 'videolisting', videolisting: videolisting %></li>
|
<li class="blue-box"><%= render 'videolisting', videolisting: videolisting %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @campaign.videolistings.empty? %>
|
<% if @campaign.videolistings.empty? %>
|
||||||
<li><p>No Video Listings for this Campaign.</p></li>
|
<li><p>No Video Listings for this Campaign.</p></li>
|
||||||
|
@ -9,7 +9,7 @@ SimpleForm.setup do |config|
|
|||||||
b.use :label
|
b.use :label
|
||||||
b.wrapper tag: 'div', class: 'controls' do |ba|
|
b.wrapper tag: 'div', class: 'controls' do |ba|
|
||||||
ba.use :input
|
ba.use :input
|
||||||
ba.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
ba.use :error, wrap_with: { tag: 'div', class: 'alert alert-danger alert-form' }
|
||||||
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
ba.use :hint, wrap_with: { tag: 'p', class: 'help-block' }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -23,7 +23,7 @@ SimpleForm.setup do |config|
|
|||||||
prepend.use :input
|
prepend.use :input
|
||||||
end
|
end
|
||||||
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
||||||
input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
input.use :error, wrap_with: { tag: 'div', class: 'alert alert-danger alert-form' }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ SimpleForm.setup do |config|
|
|||||||
append.use :input
|
append.use :input
|
||||||
end
|
end
|
||||||
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
||||||
input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
input.use :error, wrap_with: { tag: 'div', class: 'alert alert-danger alert-form' }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user