Commit 4a13fa4b authored by simon's avatar simon
Browse files

Restyle back link on edit profile screen

parent 0ca16c06
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-left" class="svg-inline--fa fa-chevron-left fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></svg>
\ No newline at end of file
......@@ -172,7 +172,31 @@
color: black;
font-size: 1.2rem;
font-family: $heading;
}
.devise-form-back {
display: flex;
justify-content: center;
flex-direction: row;
align-items: center;
border: 3px solid black;
padding: 5px 25px;
width: auto;
border-radius: 10px;
margin-top: 10px;
text-decoration: none;
transition: all 0.3s ease;
&:hover {
background-color: $highlight;
}
span {
font-weight: bold;
}
img {
width: 0.8rem;
margin-right: 10px;
}
}
p {
......
......@@ -39,8 +39,11 @@
<div class="actions">
<%= f.submit "Update", class: "submit" %>
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
<%= link_to "Back", :back %>
<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
<%= link_to :back, class: "devise-form-back" do %>
<%= image_tag("chevron-left-solid") %>
<span>Back</span>
<% end %>
</div>
<% end %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment