Skip to content

Commit

Permalink
Merge pull request #1329 from akvo/1292_decimals
Browse files Browse the repository at this point in the history
[#1292] Update finance page
  • Loading branch information
loicsans committed Mar 12, 2015
2 parents 586bf00 + 07c569a commit 970d9db
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 38 deletions.
72 changes: 55 additions & 17 deletions akvo/rsr/static/rsr/v3/css/src/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

65 changes: 57 additions & 8 deletions akvo/rsr/static/rsr/v3/css/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ span.twitter-typeahead .tt-dropdown-menu {
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}

.tt-hint {
color: rgba($rsrGreen, 0.5);
}
Expand Down Expand Up @@ -303,6 +304,7 @@ nav.navbar-fixed-top {
text-indent: -9999px;
margin-top: 0;
}

@include responsive(ipadAir) {
width: 180px;
top: -5px;
Expand All @@ -312,7 +314,7 @@ nav.navbar-fixed-top {
background-size: 175px auto;
text-indent: -9999px;
margin-top: 0;
}
}
}
}
.navbar-nav {
Expand Down Expand Up @@ -474,8 +476,9 @@ nav.navbar-fixed-top {

/* My RSR stuff */
.btnHeader {
padding:15px 0 25px 0;
padding: 15px 0 25px 0;
}

.myRsrMenu {
min-height: 100%;
bottom: 0;
Expand Down Expand Up @@ -524,15 +527,15 @@ nav.navbar-fixed-top {
.table-responsive {
&.locationTab {
overflow: hidden;
thead{
thead {
th {
max-width: 8.33% !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important;
}
}
tbody{
}
tbody {
td {
max-width: 8.33% !important;
overflow: hidden !important;
Expand Down Expand Up @@ -579,6 +582,7 @@ nav.navbar-fixed-top {
margin: 2px 0 2px 0;
display: block;
}

@include responsive(ipadAir) {
width: 98%;
padding: 2px 1%;
Expand Down Expand Up @@ -700,6 +704,7 @@ footer {
@include responsive(small-max-screens) {
margin-top: -15px;
}

@include responsive(ipadAir) {
margin-top: -20px;
}
Expand Down Expand Up @@ -977,7 +982,8 @@ h4.detailedInfo {
dd {
@include responsive(small-max-screens) {
margin-left: 100px;
}
}

@include responsive(wide-max-screens) {
margin-left: 0px;
display: block;
Expand Down Expand Up @@ -1016,6 +1022,9 @@ h4.detailedInfo {
background: darken(rgba($rsrBlue, 0.1), 0%);
border: thin solid rgba($rsrBlue, 0.3);
}
.totalBudgetLabel {
width: initial;
}
}
}
}
Expand Down Expand Up @@ -1187,13 +1196,15 @@ header {
height: 300px;
}
}

.orgMap {
.mapInfoWindow {
img {
display: none;
}
}
}

div.projectTopRow {
position: relative;
background: rgba(245, 245, 245, 0.5);
Expand Down Expand Up @@ -1377,7 +1388,6 @@ div.textBlock {
padding-top: 10px;
padding-bottom: 15px;
background: lighten($veryLightOrange, 25%);

h4 {
margin-bottom: 10px;
}
Expand All @@ -1394,9 +1404,11 @@ div.textBlock {
}
}
}

.allUpdates {
margin-top:25px;
margin-top: 25px;
}

.udpateComponent {
padding-top: 10px;
padding-bottom: 15px;
Expand Down Expand Up @@ -1543,6 +1555,43 @@ div.textBlock {
}
}

/* Financial details page */

section.projectFinancial {
@include responsive(small-max-screens) {
width: 95%;
max-width: 450px;
margin-left: auto;
margin-right: auto;
.dl-horizontal {
dt {
float: left;
}
}
}

@include responsive(medium-max-screens) {
@include responsive(small-screens) {
.dl-horizontal {
dt {
width: initial;
}
}
}
}
}

/* Display currency totals right-aligned */
.currencyAmount {
text-align: right;
}

dd {
&.currencyAmount {
margin-left: auto;
}
}

/* Cookie */

#cookie-law {
Expand Down
2 changes: 1 addition & 1 deletion akvo/templates/partials/project_budget.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</div>
</div>
<dl class="dl-horizontal topMargin">
<dt>Total Budget:</dt><dd>{{project.get_currency_display}}{{project.budget|floatformat|intcomma}}</dd>
<dt class="totalBudgetLabel">Total Budget:</dt><dd class="currencyAmount">{{project.get_currency_display}}{{project.budget|floatformat:2|intcomma}}</dd>
</dl>
{% if project.accepts_donations %}
<div class="text-center ">
Expand Down
Loading

0 comments on commit 970d9db

Please sign in to comment.