Fix linter errors.
This commit is contained in:
parent
7c2df9f84a
commit
24548f2e3d
|
@ -93,15 +93,18 @@
|
||||||
|
|
||||||
.current-section-dropdown {
|
.current-section-dropdown {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-left: 70px;
|
|
||||||
width: 200px;
|
width: 200px;
|
||||||
|
|
||||||
|
@media only screen and ( min-width: 600px ) {
|
||||||
|
margin-left: 70px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.current-section-name {
|
.current-section-name {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
padding: 20px 12px;
|
padding: 20px 16px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,11 +113,11 @@
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
|
height: 20px;
|
||||||
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
position: absolute;
|
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
|
@ -153,8 +156,20 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 10px 18px;
|
padding: 10px 18px;
|
||||||
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.current:after {
|
||||||
|
background-image: url(../images/icons/gridicons-checkmark.svg);
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
height: 20px;
|
||||||
|
position: absolute;
|
||||||
|
right: 20px;
|
||||||
|
top: 7px;
|
||||||
|
width: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.current-section-dropdown:hover ul {
|
.current-section-dropdown:hover ul {
|
||||||
|
|
|
@ -40,15 +40,12 @@ $current_section_name = __( 'Browse Categories', woocommerce );
|
||||||
<div class="current-section-dropdown">
|
<div class="current-section-dropdown">
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ( $sections as $section ) : ?>
|
<?php foreach ( $sections as $section ) : ?>
|
||||||
<?php if( $current_section === $section->slug ) {
|
<?php if( $current_section === $section->slug && '_featured' !== $section->slug ) {
|
||||||
$current_section_name = $section->label;
|
$current_section_name = $section->label;
|
||||||
$add_current_class = true;
|
|
||||||
} else {
|
|
||||||
$add_current_class = false;
|
|
||||||
} ?>
|
} ?>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
class="<?php echo $add_current_class ? 'current' : ''; ?>"
|
class="<?php echo $current_section === $section->slug ? 'current' : ''; ?>"
|
||||||
href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons§ion=' . esc_attr( $section->slug ) ) ); ?>">
|
href="<?php echo esc_url( admin_url( 'admin.php?page=wc-addons§ion=' . esc_attr( $section->slug ) ) ); ?>">
|
||||||
<?php echo esc_html( $section->label ); ?>
|
<?php echo esc_html( $section->label ); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue