Merge pull request #2983 from consul/ui-design

UI design
This commit is contained in:
Alberto
2018-10-19 13:01:43 +02:00
committed by GitHub
11 changed files with 20 additions and 52 deletions

View File

@@ -1194,17 +1194,6 @@ table {
}
}
.max-headings-label {
color: $text-medium;
font-size: $small-font-size;
margin-left: $line-height / 2;
}
.current-of-max-headings {
color: #000;
font-weight: bold;
}
// 11. Newsletters
// -----------------

View File

@@ -23,7 +23,7 @@
thead {
tr th {
color: $dark;
border: 1px solid $brand;
}
}
}

View File

@@ -881,7 +881,6 @@ footer {
a {
color: #fff;
display: block;
line-height: rem-calc(80); // Same as logo image height
text-align: center;
@include breakpoint(medium) {

View File

@@ -19,18 +19,6 @@
line-height: $line-height * 2;
margin-top: 0;
}
img {
height: 48px;
width: 48px;
@include breakpoint(medium) {
height: 80px;
margin-right: $line-height / 2;
margin-top: 0;
width: 80px;
}
}
}
// 02. Orbit bullet

View File

@@ -1094,7 +1094,7 @@
}
}
.active {
.is-active {
color: $brand;
&::after {
@@ -1831,10 +1831,6 @@
.orbit-slide {
max-height: none !important;
img {
image-rendering: pixelated;
}
}
.orbit-caption {

View File

@@ -4,7 +4,7 @@
<th colspan="4" class="with-button">
<%= content_tag(:span, group.name, class:"group-toggle-#{group.id}", id:"group-name-#{group.id}") %>
<%= content_tag(:span, (render 'admin/budgets/max_headings_label', current: group.max_votable_headings, max: group.headings.count, group: group if group.max_votable_headings), class:"max-headings-label group-toggle-#{group.id}", id:"max-heading-label-#{group.id}") %>
<%= content_tag(:span, (render 'admin/budgets/max_headings_label', current: group.max_votable_headings, max: group.headings.count, group: group if group.max_votable_headings), class:"small group-toggle-#{group.id}", id:"max-heading-label-#{group.id}") %>
<%= render 'admin/budgets/group_form', budget: @budget, group: group, id: "group-form-#{group.id}", button_title: t("admin.budgets.form.submit"), css_class: "group-toggle-#{group.id}" %>
<%= link_to t("admin.budgets.form.edit_group"), "#", class: "button float-right js-toggle-link hollow", data: { "toggle-selector" => ".group-toggle-#{group.id}" } %>

View File

@@ -1,4 +1,2 @@
<%= t("admin.budgets.form.max_votable_headings")%>
<%= content_tag(:strong,
t("admin.budgets.form.current_of_max_headings", current: current, max: max),
class: "current-of-max-headings") %>
<%= t("admin.budgets.form.current_of_max_headings", current: current, max: max) %>

View File

@@ -11,7 +11,7 @@
</span>
<ul class="no-bullet">
<% if investments_default_view? %>
<li class="view-card active">
<li class="view-card is-active">
<%= t("shared.view_mode.cards") %>
</li>
<li class="view-list">
@@ -21,7 +21,7 @@
<li class="view-card">
<%= link_to t("shared.view_mode.cards"), investments_minimal_view_path %>
</li>
<li class="view-list active">
<li class="view-list is-active">
<%= t("shared.view_mode.list") %>
</li>
<% end %>

View File

@@ -11,7 +11,7 @@
</span>
<ul class="no-bullet">
<% if debates_default_view? %>
<li class="view-card active">
<li class="view-card is-active">
<%= t("shared.view_mode.cards") %>
</li>
<li class="view-list">
@@ -21,7 +21,7 @@
<li class="view-card">
<%= link_to t("shared.view_mode.cards"), debates_minimal_view_path %>
</li>
<li class="view-list active">
<li class="view-list is-active">
<%= t("shared.view_mode.list") %>
</li>
<% end %>

View File

@@ -1,17 +1,15 @@
<div id="<%= dom_id(proposal) %>"
class="proposal clear <%= ("successful" if proposal.total_votes > Proposal.votes_needed_for_success) %>"
class="proposal clear
<%= ("successful" if proposal.total_votes > Proposal.votes_needed_for_success) %>"
data-type="proposal">
<div class="panel <%= ('with-image' if feature?(:allow_images) && proposal.image.present?) %>">
<div class="panel <%= 'with-image' if proposal.image.present? %>">
<div class="icon-successful"></div>
<% if feature?(:allow_images) && proposal.image.present? %>
<div class="row" data-equalizer>
<% if proposal.image.present? %>
<div class="row">
<div class="small-12 medium-3 large-2 column text-center">
<div data-equalizer-watch>
<%= image_tag proposal.image_url(:thumb),
alt: proposal.image.title.unicode_normalize %>
</div>
<%= image_tag proposal.image_url(:thumb),
alt: proposal.image.title.unicode_normalize %>
</div>
<div class="small-12 medium-6 large-7 column">
@@ -24,7 +22,8 @@
<h3><%= link_to proposal.title, namespaced_proposal_path(proposal) %></h3>
<p class="proposal-info">
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.proposal.comments", count: proposal.comments_count), namespaced_proposal_path(proposal, anchor: "comments") %>
<%= link_to t("proposals.proposal.comments", count: proposal.comments_count),
namespaced_proposal_path(proposal, anchor: "comments") %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l proposal.created_at.to_date %>
@@ -64,8 +63,7 @@
</div>
<div id="<%= dom_id(proposal) %>_votes"
class="small-12 medium-3 column supports-container"
<%= 'data-equalizer-watch' if feature?(:allow_images) && proposal.image.present? %>>
class="small-12 medium-3 column supports-container">
<% if proposal.successful? %>
<div class="padding text-center">

View File

@@ -11,7 +11,7 @@
</span>
<ul class="no-bullet">
<% if proposals_default_view? %>
<li class="view-card active">
<li class="view-card is-active">
<%= t("shared.view_mode.cards") %>
</li>
<li class="view-list">
@@ -21,7 +21,7 @@
<li class="view-card">
<%= link_to t("shared.view_mode.cards"), proposals_minimal_view_path %>
</li>
<li class="view-list active">
<li class="view-list is-active">
<%= t("shared.view_mode.list") %>
</li>
<% end %>