Improves styles for submenu links
This commit is contained in:
@@ -445,7 +445,7 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.subnavigation-container {
|
.subnavigation-background {
|
||||||
background: white;
|
background: white;
|
||||||
height: rem-calc(50);
|
height: rem-calc(50);
|
||||||
margin-top: rem-calc(-50);
|
margin-top: rem-calc(-50);
|
||||||
@@ -456,17 +456,11 @@ header {
|
|||||||
|
|
||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
background: white;
|
background: white;
|
||||||
padding-left: 0;
|
|
||||||
|
|
||||||
& > .column {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: white;
|
color: white;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
font-family: $font-sans;
|
|
||||||
line-height: $line-height*2;
|
line-height: $line-height*2;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
@@ -475,7 +469,6 @@ header {
|
|||||||
@media (min-width: $small-breakpoint) {
|
@media (min-width: $small-breakpoint) {
|
||||||
color: $text;
|
color: $text;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-left: $line-height/2;
|
|
||||||
margin-right: $line-height*1.5;
|
margin-right: $line-height*1.5;
|
||||||
margin-right: 12px\9;
|
margin-right: 12px\9;
|
||||||
width: auto;
|
width: auto;
|
||||||
@@ -496,6 +489,36 @@ header {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.submenu {
|
||||||
|
background: white;
|
||||||
|
border-bottom: 1px solid $border;
|
||||||
|
clear: both;
|
||||||
|
margin: $line-height 0 $line-height/2;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: $text;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-right: $line-height;
|
||||||
|
margin-right: 12px\9;
|
||||||
|
position: relative;
|
||||||
|
text-align: left;
|
||||||
|
|
||||||
|
@media (min-width: $small-breakpoint) {
|
||||||
|
margin-right: $line-height*1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $link;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
border-bottom: 2px solid $brand;
|
||||||
|
color: $brand;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 03. Footer
|
// 03. Footer
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row-full subnavigation-container"></div>
|
<div class="row-full subnavigation-background"></div>
|
||||||
|
|
||||||
<% if home_page? %>
|
<% if home_page? %>
|
||||||
<div class="row home-page">
|
<div class="row home-page">
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<section class="subnavigation row">
|
<section class="submenu">
|
||||||
<% valid_orders.each do |order| %>
|
<% valid_orders.each do |order| %>
|
||||||
<%= link_to t("#{i18n_namespace}.orders.#{order}"),
|
<%= link_to t("#{i18n_namespace}.orders.#{order}"),
|
||||||
current_path_with_query_params(order: order, page: 1),
|
current_path_with_query_params(order: order, page: 1),
|
||||||
|
|||||||
Reference in New Issue
Block a user