Fixes budgets ui for all phases
This commit is contained in:
@@ -501,6 +501,7 @@ header {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
margin-top: rem-calc(-24);
|
margin-top: rem-calc(-24);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
z-index: 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-submenu-item {
|
.is-submenu-item {
|
||||||
@@ -1013,6 +1014,10 @@ form {
|
|||||||
background-color: $info-bg;
|
background-color: $info-bg;
|
||||||
border-color: $info-border;
|
border-color: $info-border;
|
||||||
color: $color-info;
|
color: $color-info;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $link !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.warning {
|
&.warning {
|
||||||
|
|||||||
@@ -218,7 +218,7 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
line-height: $line-height;
|
line-height: $line-height;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
padding: $line-height $line-height / 2;
|
padding: $line-height / 2;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -1120,9 +1120,17 @@
|
|||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.callout {
|
||||||
|
|
||||||
|
&.primary a {
|
||||||
|
color: $link;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
color: $budget;
|
color: $budget;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.info {
|
.info {
|
||||||
@@ -1432,12 +1440,9 @@
|
|||||||
background-color: $budget;
|
background-color: $budget;
|
||||||
transition: height 0.3s;
|
transition: height 0.3s;
|
||||||
|
|
||||||
h1 {
|
|
||||||
transition: font-size 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin-bottom: 0;
|
margin-bottom: $line-height / 2;
|
||||||
|
transition: font-size 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-fixed {
|
&.is-fixed {
|
||||||
@@ -1448,7 +1453,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
h1 {
|
h2 {
|
||||||
font-size: rem-calc(24);
|
font-size: rem-calc(24);
|
||||||
transition: font-size 0.3s;
|
transition: font-size 0.3s;
|
||||||
}
|
}
|
||||||
@@ -1513,6 +1518,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.budgets-stats {
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: $highlight;
|
||||||
|
}
|
||||||
|
|
||||||
|
.big-number-stat {
|
||||||
|
font-size: rem-calc(60);
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: rem-calc(60);
|
||||||
|
|
||||||
|
&.budget {
|
||||||
|
color: $budget;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 07. Proposals successful
|
// 07. Proposals successful
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,10 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if @budget.persisted? %>
|
<% if @budget.persisted? %>
|
||||||
<%= link_to t("admin.budgets.edit.delete"), admin_budget_path(@budget), method: :delete, class: "button hollow alert float-right" %>
|
<%= link_to t("admin.budgets.edit.delete"),
|
||||||
|
admin_budget_path(@budget),
|
||||||
|
method: :delete,
|
||||||
|
class: "button hollow alert float-right margin-left" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
<div class="small-12 medium-3 column info padding" data-equalizer-watch>
|
||||||
<p>
|
<p>
|
||||||
<strong><%= t('budgets.show.phase') %></strong>
|
<strong><%= t("budgets.show.phase") %></strong>
|
||||||
</p>
|
</p>
|
||||||
<h2><%= t("budgets.phase.#{current_budget.phase}") %></h2>
|
<h2><%= t("budgets.phase.#{current_budget.phase}") %></h2>
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,9 @@
|
|||||||
<div class="small-12 column">
|
<div class="small-12 column">
|
||||||
<%= back_link_to budget_path(@budget) %>
|
<%= back_link_to budget_path(@budget) %>
|
||||||
|
|
||||||
<h1><%= t('budgets.investments.index.title') %></h1>
|
<h2 class="margin-top">
|
||||||
|
<%= t("budgets.investments.index.title") %>
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
style="<%= results_type != :compatible ? 'display: none' : '' %>"
|
style="<%= results_type != :compatible ? 'display: none' : '' %>"
|
||||||
id="<%= results_type %>-container">
|
id="<%= results_type %>-container">
|
||||||
|
|
||||||
<h4 class="inline-block">
|
<h4><%= title %></h4>
|
||||||
<%= title %>
|
|
||||||
</h4>
|
|
||||||
|
|
||||||
<table id="budget-investments-<%= results_type %>" class="table-for-mobile">
|
<table id="budget-investments-<%= results_type %>" class="table-for-mobile">
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -13,9 +13,12 @@
|
|||||||
<div class="budgets-stats">
|
<div class="budgets-stats">
|
||||||
<div class="expanded no-margin-top padding header">
|
<div class="expanded no-margin-top padding header">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 column text-center">
|
<div class="small-12 column">
|
||||||
<%= back_link_to budgets_path %>
|
<%= back_link_to budgets_path %>
|
||||||
<h1 class="title"><%= t("budgets.results.heading") %><br><%= @budget.name %></h1>
|
<h2 class="margin-top">
|
||||||
|
<%= t("budgets.results.heading") %><br>
|
||||||
|
<span><%= @budget.name %></span>
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -53,9 +56,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="float-right"><%= link_to t("budgets.results.show_all_link"), "#", class: "js-toggle-link button hollow margin-bottom", data: {'toggle-selector' => '.js-discarded', 'toggle-text' => t("budgets.results.hide_discarded_link")} %></span>
|
|
||||||
|
|
||||||
<div class="small-12 medium-9 large-10 column">
|
<div class="small-12 medium-9 large-10 column">
|
||||||
|
<%= link_to t("budgets.results.show_all_link"), "#",
|
||||||
|
class: "js-toggle-link button hollow margin-bottom float-right-medium",
|
||||||
|
data: {'toggle-selector' => '.js-discarded',
|
||||||
|
'toggle-text' => t("budgets.results.hide_discarded_link")} %>
|
||||||
|
|
||||||
<%= render 'results_table', results_type: :compatible,
|
<%= render 'results_table', results_type: :compatible,
|
||||||
title: @heading.name,
|
title: @heading.name,
|
||||||
heading_price: @heading.price,
|
heading_price: @heading.price,
|
||||||
|
|||||||
Reference in New Issue
Block a user