Diff CSS for fundraiser-percentage w/ progressbar.
If Javascript is present to generate the pogressbar, then the CSS really should be radically different. Graceful degradation.
This commit is contained in:
parent
a1fa72ac8d
commit
3be224c69a
2 changed files with 8 additions and 6 deletions
|
@ -126,12 +126,7 @@ h3 { margin-top: .6em; margin-bottom: .4em; }
|
|||
}
|
||||
|
||||
#fundraiser-percentage {
|
||||
float: right;
|
||||
align: center;
|
||||
margin-right: 40%;
|
||||
margin-top: 2.5%;
|
||||
font-style: bold;
|
||||
color: green;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.content-with-donate-sidebar {
|
||||
|
|
|
@ -12,6 +12,13 @@ $(document).ready(function() {
|
|||
var percentage = (parseFloat(noCommaSoFar) / parseFloat(noCommaGoal)) * 100;
|
||||
|
||||
$('span#fundraiser-percentage').text(percentage.toFixed(2) + "%");
|
||||
$('span#fundraiser-percentage').css({ 'color' : 'green',
|
||||
'font-weight' : 'bold',
|
||||
'float' : 'right',
|
||||
'margin-right' : '40%',
|
||||
'margin-top' : '2.5%',
|
||||
'text-align' : 'right'});
|
||||
|
||||
$("#progressbar").progressbar({ value: percentage });
|
||||
|
||||
$('.toggle-content').hide();
|
||||
|
|
Loading…
Reference in a new issue