Skip to content

Commit 0f499f2

Browse files
committed
Add css to enable and copy the spacing
1 parent 75f5c13 commit 0f499f2

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

app/assets/stylesheets/application.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@
1818
@import "bootstrap";
1919

2020
.cover-bg-blue{background-color:#2275CA;}
21-
.cover-text-white{color:#FFFFFF;}
21+
.cover-text-white{color:#FFFFFF;}
22+
a {color:#FFFFF;}

app/models/footer_widget.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class FooterWidget < Widget
2-
attribute :text, :string
2+
attribute :headline, :html
3+
attribute :text, :html
34
end

app/views/footer_widget/show.html.erb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="col-12">
2-
<div class="col-3 cover-bg-blue">
3-
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-top:10px;' %>
4-
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:25px; padding-top:25px;' %>
2+
<div class="col-3 cover-bg-blue link-text-white">
3+
<%= scrivito_tag :h4, widget, :text, class:'cover-text-white', style:'padding-top:10px;' %>
4+
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:30; padding-top:40px;' %>
55
</div>
6-
</div>
6+
</div>
7+

app/views/paragraph_widget/show.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<div class="col-3 cover-bg-blue ">
33
<%= scrivito_image_tag widget, :image, class:'image-responsive'%>
44
<%= scrivito_tag :h1, widget, :headline, data: {newlines: false}, class:'cover-text-white' %>
5-
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:25px;'%>
5+
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:30px;'%>
66
</div>
7-
</div>
7+
</div>

0 commit comments

Comments
 (0)