One background bug left
This commit is contained in:
@ -21,7 +21,7 @@
|
|||||||
<a href="#" class="icon icon-call-center">Call Center</a>
|
<a href="#" class="icon icon-call-center">Call Center</a>
|
||||||
<ul class="subnav">
|
<ul class="subnav">
|
||||||
<li><a href="#">Ticket Stream</a></li>
|
<li><a href="#">Ticket Stream</a></li>
|
||||||
<!-- <li><a href="#">Configuration</a></li> -->
|
<li><a href="#">Configuration</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|||||||
57
style.scss
57
style.scss
@ -42,6 +42,19 @@ $border-margin-right: 15px;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin reset-single-item-background($li-background-image) {
|
||||||
|
&:first-of-type:last-of-type {
|
||||||
|
&::before {
|
||||||
|
background-image: $li-background-image;
|
||||||
|
}
|
||||||
|
> a {
|
||||||
|
&::before {
|
||||||
|
background-image: $dot-img;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
nav.main {
|
nav.main {
|
||||||
li {
|
li {
|
||||||
border-bottom: 1px solid $border-color;
|
border-bottom: 1px solid $border-color;
|
||||||
@ -148,18 +161,8 @@ nav.main {
|
|||||||
top: -20px; // hardcoded!
|
top: -20px; // hardcoded!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// single item: just a dot
|
|
||||||
&:first-of-type:last-of-type {
|
|
||||||
&::before {
|
|
||||||
// background-image: none;
|
|
||||||
}
|
|
||||||
> a {
|
|
||||||
&::before {
|
|
||||||
background-image: $dot-img;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@include reset-single-item-background(none);
|
||||||
@include variable-left-border-connector($subnav-indent * 4);
|
@include variable-left-border-connector($subnav-indent * 4);
|
||||||
|
|
||||||
// subnav level 2
|
// subnav level 2
|
||||||
@ -171,29 +174,25 @@ nav.main {
|
|||||||
left: $subnav-indent * 4;
|
left: $subnav-indent * 4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@include reset-single-item-background($border-img);
|
||||||
@include variable-left-border-connector($subnav-indent * 7);
|
@include variable-left-border-connector($subnav-indent * 7);
|
||||||
|
|
||||||
// subnav level 3
|
// subnav level 3
|
||||||
> ul {
|
> ul li {
|
||||||
li {
|
a {
|
||||||
a {
|
padding-left: $subnav-indent * 10;
|
||||||
padding-left: $subnav-indent * 10;
|
&::before {
|
||||||
&::before {
|
left: $subnav-indent * 7;
|
||||||
left: $subnav-indent * 7;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@include variable-left-border-connector($subnav-indent * 10);
|
}
|
||||||
|
@include reset-single-item-background($border-img);
|
||||||
|
@include variable-left-border-connector($subnav-indent * 10);
|
||||||
|
|
||||||
// subnav level 4
|
// subnav level 4
|
||||||
> ul {
|
> ul li a {
|
||||||
li {
|
padding-left: $subnav-indent * 13;
|
||||||
a {
|
&::before {
|
||||||
padding-left: $subnav-indent * 13;
|
left: $subnav-indent * 10;
|
||||||
&::before {
|
|
||||||
left: $subnav-indent * 10;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user