Skip to content

Commit

Permalink
custom participatory budget view for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Jun 7, 2024
1 parent cf83f1a commit d86810e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
12 changes: 6 additions & 6 deletions decidim-budgets/app/packs/stylesheets/budgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,13 @@
}

&--minimum {
@apply absolute h-2;

.progress-meter--minimum-mark {
@apply h-2 ml-auto w-[2px] bg-black block;
}
@apply absolute h-2 bg-gray-3 rounded-s;
}

&--meter {
background-color: var(--success);

@apply h-[20px] rounded;
@apply h-2 rounded-s absolute;
}
}

Expand Down Expand Up @@ -240,6 +236,10 @@
@apply w-5 h-5;
}
}

p {
@apply text-gray-4 font-normal text-[13px];
}
}

.progressbox-fixed-wrapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<div class="budget-summary__progressbar">
<div class="budget-progress" role="progressbar" aria-label="<%= t("budget", scope: "decidim.budgets.projects.order_progress") %>" aria-valuenow="<%= current_order_budget_percent %>" aria-valuetext="<%= current_order_budget_percent %> %" aria-valuemin="0" aria-valuemax="100">
<div class="budget-summary__progressbar--minimum" style="width: <%= current_order_budget_percent_minimum %>%">
<span class="progress-meter--minimum-mark"></span>
</div>
<div class="budget-summary__progressbar--meter" style="width: <%= current_order_budget_percent %>%"> </div>
</div>
Expand Down Expand Up @@ -64,7 +63,6 @@
<div class="budget-summary__progressbox layout-item__main">
<div class="budget-progress relative" role="progressbar" aria-valuenow="<%= current_order_budget_percent %>" aria-valuetext="<%= current_order_budget_percent %>%" aria-valuemin="0" aria-valuemax="100">
<div class="budget-summary__progressbar--minimum" style="width: <%= current_order_budget_percent_minimum %>%">
<span class="progress-meter--minimum-mark"></span>
</div>
<div class="budget-summary__progressbar--meter" style="width: <%= current_order_budget_percent %>%">
</div>
Expand All @@ -90,18 +88,18 @@
</div>
</div>
</div>
<div class="budget-summary__button-modal">
<button type="button" data-dialog-open="budget-modal-info" aria-haspopup="dialog" tabindex="0" class="button button__text button__xs ml-2.5">
<%= t("more_information", scope: "decidim.budgets.budget_information_modal") %>
</button>
</div>
<div class="budget-summary__button-dropdown">
<button id="dropdown-trigger-element" data-component="dropdown" data-target="dropdown-menu-element" class="budget-summary__button-dropdown_text">
<%= t("more_information", scope: "decidim.budgets.budget_information_modal") %>
<%= icon "arrow-down-s-line" %>
<%= icon "arrow-up-s-line" %>
</button>
<ul id="dropdown-menu-element">
<li>dropdown info</li>
</ul>
</div>
<div class="budget-summary__button-modal">
<button type="button" data-dialog-open="budget-modal-info" aria-haspopup="dialog" tabindex="0" class="button button__text button__xs ml-2.5">
<%= t("more_information", scope: "decidim.budgets.budget_information_modal") %>
</button>
</div>
<div class="budget-summary__button-dropdown">
<button id="dropdown-trigger-button-dropdown" data-component="dropdown" data-target="dropdown-menu-button-dropdown" class="budget-summary__button-dropdown_text">
<%= t("more_information", scope: "decidim.budgets.budget_information_modal") %>
<%= icon "arrow-down-s-line" %>
<%= icon "arrow-up-s-line" %>
</button>
<p id="dropdown-menu-button-dropdown">
<%= cell('decidim/budgets/budget_information_modal', @budget).(:more_information) %>
</p>
</div>
2 changes: 1 addition & 1 deletion decidim-core/app/packs/stylesheets/decidim/_flash.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}

&__message {
@apply text-black font-medium text-md;
@apply text-black font-medium text-md flex-col;

a {
@apply underline text-secondary;
Expand Down

0 comments on commit d86810e

Please sign in to comment.