diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 54c96e0d5..38c4185fc 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -30,3 +30,4 @@ @import "admin/*"; @import "sdg/**/*"; @import "sdg_management/*"; +@import "widgets/**/*"; diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index fae431c76..ad3f3ec75 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2889,10 +2889,6 @@ table { .feeds-list { - .proposal { - clear: both; - } - a { &.see-all { @@ -2906,22 +2902,6 @@ table { } } -.feed-image { - display: inline-block; - height: rem-calc(120); - overflow: hidden; - width: 100%; - - @include breakpoint(medium) { - height: rem-calc(96); - } - - img { - max-width: none; - width: 100%; - } -} - .feed-description { p { diff --git a/app/assets/stylesheets/widgets/feeds/proposals.scss b/app/assets/stylesheets/widgets/feeds/proposals.scss new file mode 100644 index 000000000..863a45174 --- /dev/null +++ b/app/assets/stylesheets/widgets/feeds/proposals.scss @@ -0,0 +1,22 @@ +.feed-proposals { + + .proposal { + clear: both; + + .feed-image { + display: inline-block; + height: rem-calc(120); + overflow: hidden; + width: 100%; + + @include breakpoint(medium) { + height: rem-calc(96); + } + + img { + max-width: none; + width: 100%; + } + } + } +} diff --git a/app/components/widgets/feeds/debates_component.html.erb b/app/components/widgets/feeds/debates_component.html.erb new file mode 100644 index 000000000..2f8ad552f --- /dev/null +++ b/app/components/widgets/feeds/debates_component.html.erb @@ -0,0 +1,14 @@ +
<%= item.summary %>
+<%= t("welcome.feed.see_process") %>
+ <% end %> + <% end %> + + <%= link_to t("welcome.feed.see_all_processes"), legislation_processes_path, class: "float-right see-all" %> +<%= item.summary %>
+<%= item.summary %>
-<%= item.summary %>
-<%= t("welcome.feed.see_process") %>
- <% end %> - <% end %> - - <%= link_to t("welcome.feed.see_all_processes"), legislation_processes_path, class: "float-right see-all" %> -