Changeset - af5d12f7a1d6
[Not reviewed]
0 2 0
Bradley Kuhn (bkuhn) - 7 years ago 2014-12-08 22:14:52
bkuhn@ebb.org
Rework CSS for "Big News" & add image.

This image now is displayed with the same background and to the left of
the "Big News". I spent extensive time researching how best to present
a larger <div> with the grey background and have the image properly
scale beside it. Ultimately, I couldn't find a better way than this,
and this is hardly optimal.

For example, I looked into wrapping the whole thing in a div, with two
div's inside, and applying various CSS to each to get the image to
properly stay right next to the text and scale in size when resizing of
media made paragraph longer. This generated even more problems, so I
went with the simpler solution herein, which probably isn't correct and
may well do odd things on different types of media.
2 files changed with 21 insertions and 4 deletions:
0 comments (0 inline, 0 general)
www/conservancy/static/forms.css
Show inline comments
...
 
@@ -70,3 +70,18 @@ img.appeal-footer {
 
    min-width: 1%;
 
    height: auto;
 
}
 
img.appeal-match {
 
    float: left;
 
    height: auto;
 
    border: 1px solid #fff;
 
    width: 10%;
 
    margin-top: .25em;
 
    margin-bottom: .25em;
 
    margin-right: 1em;
 
    background: #eee;
 
}
 
p.appeal-match-text  {
 
    width: 100%;
 
    border: 1px solid #fff;
 
    background: #eee;
 
}
www/conservancy/static/supporter/index.html
Show inline comments
...
 
@@ -63,12 +63,14 @@ Other payment methods  to become an annual supporter:
 
<div style="align:left;width:80%;">
 
  <h1><img class="appeal-header" alt="Become a Conservancy Supporter!" src="/img/conservancy-supporter-header.png"/></h1>
 

	
 
<blockquote>
 
<p><strong>Big News:</strong> A generous anonymous donor has agreed to donate
 
 <img class="appeal-match" alt="*"
 
      src="/img/conservancy-supporter-heart-3x.png"/>
 
<p class="appeal-match-text"><strong>Big News:</strong> A generous anonymous donor has agreed to donate
 
        $2 of every $1 in supporter donations (up to $5k total)!  You can
 
        effectively triple your donation if you
 
        <a href="#donate-box" class="donate-now">just support us now!</a></p>
 
</blockquote><br/><hr/>
 
        <a href="#donate-box" class="donate-now">just support us now!</a>
 
</p>
 
<br/> <hr/>
 
<p>Software Freedom Conservancy is an essential organization to free and
 
open source software. We are the home of over
 
<a href="/members/current/">30 projects</a> like 
0 comments (0 inline, 0 general)