Skip to content

Commit ace9d51

Browse files
committed
Add code to force center
1 parent 4a844b1 commit ace9d51

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

app/views/layouts/application.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99

1010
</head>
1111
<body>
12-
<main>
12+
<center>
1313
<%= yield %>
1414
<%= scrivito_body_tags %>
15-
</main>
15+
</center>
1616
</body>
1717
</html>
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
<div class="row">
2-
<div class="col-md-12">
3-
<div class="cover-bg-blue">
4-
<div class="col-md-3">
5-
<%= scrivito_image_tag widget,:image , class:'image-responsive center-block'%>
6-
<%= scrivito_tag :h1, widget, :headline, data: {newlines: false}, class:'center-block cover-text-white' %>
7-
<div style="padding-bottom:15px;">
8-
<%= scrivito_tag :p, widget, :text, class:'center-block cover-text-white'%>
9-
</div>
10-
</div>
2+
<div class="col-12">
3+
<div class="col-3 cover-bg-blue ">
4+
<%= scrivito_image_tag widget, :image, class:'image-responsive'%>
5+
<%= scrivito_tag :h1, widget, :headline, data: {newlines: false}, class:'cover-text-white' %>
6+
<%= scrivito_tag :p, widget, :text, class:'cover-text-white', style:'padding-bottom:15px;'%>
117
</div>
128
</div>
139
</div>

0 commit comments

Comments
 (0)