Skip to content

Commit

Permalink
styles for the aside menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeatgu committed Jun 30, 2023
1 parent d1e157e commit c33474b
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 30 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.item_show__header{
@apply flex items-center pb-4 border-b border-gray mb-4 gap-x-2;

> svg{
@apply w-4 h-4;
}

&-title{
@apply text-xl font-bold inline-block;
}
}

.item_show__content{
@apply grid grid-cols-[75%_25%];

&-activity{
@apply pr-8;
}

&-aside{
@apply h-full border-l border-gray pl-8;
}

&-title{
@apply text-lg font-semibold text-black mb-6;
}

&-menu{
li{
@apply flex items-center gap-x-2 pb-3;

svg{
@apply w-4 h-4;
}

a{
@apply text-md font-semibold flex items-center gap-x-4 w-full;

color: var(--secondary);

span{
@apply ml-auto;
}
}

&:not(:last-child){
@apply border-b border-gray mb-3;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

.logs__log__explanation{
a{
@apply text-secondary underline;
@apply underline;

color: var(--secondary);
}

span{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@
}

td a:not(.button){
@apply text-secondary underline text-md font-semibold;
@apply underline text-md font-semibold;

color: var(--secondary);
}

td > .button{
Expand Down Expand Up @@ -116,7 +118,7 @@

.action-icon,
a.action-icon.highlighted{
@apply text-secondary;
color: var(--secondary);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@
@import "stylesheets/decidim/admin/_redesigned_filters.scss";
@import "stylesheets/decidim/admin/_redesigned_table-list.scss";
@import "stylesheets/decidim/admin/_redesigned_dropdown.scss";
@import "stylesheets/decidim/admin/_redesigned_item_show.scss";
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<div class="flex pb-4 border-b border-gray mb-4 gap-x-4">
<div class="item_show__header">
<% if current_participatory_space.private_space? %>
<span><%= t("participatory_processes.index.private", scope: "decidim.admin") %></span>
<svg viewBox="0 0 24 24" id="ri-lock-line">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 1 1 14 0v1zM5 12v8h14v-8H5zm6 2h2v4h-2v-4zm6-4V9A5 5 0 0 0 7 9v1h10z"/>
</g>
</svg>
<% else %>
<span><%= t("participatory_processes.index.public", scope: "decidim.admin") %></span>
<svg viewBox="0 0 24 24" id="ri-lock-unlock-line">
<g>
<path fill="none" d="M0 0h24v24H0z"/>
<path d="M7 10h13a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 0 1 13.262-3.131l-1.789.894A5 5 0 0 0 7 9v1zm-2 2v8h14v-8H5zm5 3h4v2h-4v-2z"/>
</g>
</svg>
<% end %>
<h2 class="text-xl font-bold inline-block">
<h2 class="item_show__header-title">
<%= translated_attribute(current_participatory_space.title) %>
</h2>
<% if current_participatory_space.private_space? %>
Expand All @@ -14,8 +24,8 @@
<% end %>
</div>

<div class="grid grid-cols-[80%_20%] gap-x-8">
<div>
<div class="item_show__content">
<div class="item_show__content-activity">
<div class="card w-full">
<div class="card-divider">
<h2 class="card-title">
Expand All @@ -24,12 +34,12 @@
</div>

<div class="card-section">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h2 class="text-lg font-semibold text-secondary mb-5">Impulso y seguimiento de proyectos</h2>
<div class="flex text-gray text-sm font-semibold">
<span class="inline-block">01/07/2023</span>
<span class="inline-block">-></span>
<span class="inline-block">12/09/2023</span>
</div>
</div>
</div>
<div class="card w-full">
Expand All @@ -40,16 +50,12 @@
</div>

<div class="card-section">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<p>Hace 3 minutos nueva propuesta: <a>Tener espacios participativos</a></p>
</div>
</div>
</div>
<div class="h-full border-l border-gray-2 pl-8">
<h2>Componentes y páginas</h2>
<div class="item_show__content-aside">
<h2 class="item_show__content-title">Componentes y páginas</h2>
<%= aside_menu(:admin_participatory_process_components_menu).render %>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<% add_decidim_page_title(translated_attribute(current_participatory_space.title)) %>
<% content_for :sidebar_menu_nav do %>
<%#= sidebar_menu(:admin_participatory_process_menu).render do
public_page_link decidim_participatory_processes.participatory_process_path(current_participatory_space)
end %>
<% end %>
<%= render "layouts/decidim/admin/application" do %>
<div class="process-title">
<div class="process-title-content">
Expand Down
2 changes: 1 addition & 1 deletion decidim-participatory_processes/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ en:
attachments: Attachments
categories: Categories
components: Components
info: Info
info: About this process
landing_page: Landing page
moderations: Moderations
private_users: Private participants
Expand Down

0 comments on commit c33474b

Please sign in to comment.