Skip to content

Commit

Permalink
added margin between buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavsethi committed Jan 12, 2020
1 parent 4f11b9e commit 1fe6d7c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/assets/stylesheets/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ label small {
}
}

.cta-buttons {
.btn {
margin-top: 0.25rem;
}
}

.footer {
margin: 10px auto;
padding: 30px 60px 40px;
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/knitter2.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
</p>
<hr />
<p>
<p class="cta-buttons">
<% if logged_in? %>
<button type="button" class="btn btn-outline-info btn-sm" onClick="$('#map-edit-container').toggle()">Edit details</button>
<%= link_to 'Delete map', map_path(@map), method: :delete, class: "btn btn-outline-info btn-sm", data: { confirm: 'Are you sure? This cannot be undone.' } %>
Expand Down

0 comments on commit 1fe6d7c

Please sign in to comment.