Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove placeholder images from priority policies on the policy area p…

…age.
  • Loading branch information...
commit e293b5ebfa395c494592f12bc479e1f2a6baade4 1 parent 0936775
Jason Cale authored
View
29 app/assets/stylesheets/website/policy_area.scss
@@ -111,26 +111,41 @@
}
section {
+
ul {
@include clearfix;
margin-bottom: 0;
li {
@include type-14;
@include span_one_column;
+
div.inner {
- padding: 1em 1em 0.5em 1em;
+ padding: 1em;
margin: 0;
background: #fefefe;
border: 1px solid #ddd;
position: relative;
- div.img {
- border: 4px solid #fff;
- @include box-shadow(0, 0, 2px, #ddd);
- height: 96px;
- overflow: hidden;
- margin-bottom: 0.5em;
+
+ &:before, &:after {
+ content: " ";
+ width: 0;
+ height: 0;
+ border-left: 10px solid transparent;
+ border-right: 10px solid transparent;
+ border-top: 10px solid #fff;
+ display: block;
+ position: absolute;
+ bottom: -10px;
+ right: 45%;
+ };
+
+ &:before {
+ border-top: 10px solid #ddd;
+ right: 44.9%;
+ bottom: -11px;
}
}
+
&:first-child {
margin-left: 0;
}
View
1  app/views/policy_areas/show.html.erb
@@ -24,7 +24,6 @@
<% @featured_policies.each do |policy| %>
<%= content_tag_for :li, policy, class: "featured_policy" do %>
<div class="inner">
- <div class="img"><%= image_tag "evil_placeholder.png", alt:"Image for #{policy.title}" %></div>
<%= link_to policy.title, public_document_path(policy), title: "View #{policy.title}" %>
</div>
<% end %>
Please sign in to comment.
Something went wrong with that request. Please try again.