Refactor footer legal links for cleaner code
Removed inline ' |' used as a separator between footer legal links.
This commit is contained in:
@@ -734,6 +734,28 @@ footer {
|
||||
border-top: 1px solid $text-light;
|
||||
font-size: $small-font-size;
|
||||
padding-top: $line-height / 2;
|
||||
|
||||
.legal {
|
||||
display: inline-block;
|
||||
margin-#{$global-left}: 0;
|
||||
|
||||
&::before {
|
||||
content: "|";
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-block;
|
||||
|
||||
&::after {
|
||||
content: "|";
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
&:last-child::after {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 04. Tags
|
||||
|
||||
@@ -22,11 +22,11 @@
|
||||
|
||||
<div class="subfooter row">
|
||||
<div class="small-12 medium-8 column">
|
||||
<%= t("layouts.footer.copyright", year: Time.current.year) %> |
|
||||
<ul class="no-bullet inline-block">
|
||||
<li class="inline-block"><%= link_to t("layouts.footer.privacy"), page_path("privacy") %> |</li>
|
||||
<li class="inline-block"><%= link_to t("layouts.footer.conditions"), page_path("conditions") %> |</li>
|
||||
<li class="inline-block"><%= link_to t("layouts.footer.accessibility"), page_path("accessibility") %></li>
|
||||
<%= t("layouts.footer.copyright", year: Time.current.year) %>
|
||||
<ul class="legal">
|
||||
<li><%= link_to t("layouts.footer.privacy"), page_path("privacy") %></li>
|
||||
<li><%= link_to t("layouts.footer.conditions"), page_path("conditions") %></li>
|
||||
<li><%= link_to t("layouts.footer.accessibility"), page_path("accessibility") %></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user