Skip to content

Commit

Permalink
Refactor styles (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vera Rojman authored Jun 15, 2021
1 parent 441322a commit ed8001a
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 39 deletions.

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions app/assets/javascripts/decidim/alternative_landing/admin.js

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions app/assets/stylesheets/decidim/alternative_landing/admin.scss

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//= require_tree ./content_blocks
//= require_self

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@
min-height: 4em;
padding: $gap;

.tile-title {
grid-column: span 3;
background: $alternative-color-2;
margin: 0;
}

.tile-body {
max-width: 20em;
background: $alternative-color-1;
padding: $gap;
}

&-heading {
grid-column: span 3;
background: $alternative-color-2;
margin: 0;
}
&-1 {
grid-column: span 2;
grid-row: 2;
Expand Down
10 changes: 0 additions & 10 deletions app/cells/decidim/alternative_landing/content_blocks/base_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ module ContentBlocks
class BaseCell < Decidim::ViewModel
include Decidim::SanitizeHelper
include Decidim::TranslationsHelper

delegate :snippets, to: :controller

def show
unless snippets.any?(:alternative_landing)
snippets.add(:alternative_landing, stylesheet_link_tag("decidim/alternative_landing/application"))
snippets.add(:head, snippets.for(:alternative_landing))
end
super
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="alternative-landing tiles-4">
<div class="tiles">
<h1 class="tile tile-title heading1">
<h1 class="tile tile-heading heading1">
<%= decidim_sanitize translated_title %>
</h1>
<% 1.upto(4) do |item_number| %>
Expand Down
2 changes: 1 addition & 1 deletion spec/system/homepage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
it "renders all elements" do
within ".alternative-landing.tiles-4" do
within ".tiles" do
within ".tile-title" do
within ".tile-heading" do
expect(page).to have_i18n_content(tiles_block.settings.title)
end

Expand Down

0 comments on commit ed8001a

Please sign in to comment.