sass - Horizontal list with Susy grid -


i want build android main navigation fits susy grid. looks this:

enter image description here

the code goes here:

html:

<div class="container">     <nav>         <ul class="horizontal-list">             <li>                 <a href="#">one</a>             </li>             <li>                 <a href="#">two</a>             </li>             <li>                 <a href="#">three</a>             </li>             <li>                 <a href="#">four</a>             </li>         </ul>     </nav> </div> 

sass:

header.main {     height: $headerheight;     background: url('images/headerbackground.gif');      .container {         @include container;         @include susy-grid-background;          nav {             @include span-columns(8);              ul.horizontal-list {                 @include horizontal-list;                 overflow: visible;                  li {                     @include isolate-grid(2, 8);                      padding: 0;                     display: table;                     {                         // vertical alignment                         display: table-cell;                         height: $headerheight / 2;                         padding-bottom: 2px;                         vertical-align: bottom;                          // appearance                         color: $greylight;                         font-size: 18px;                         text: {                             transform: uppercase;                             decoration: none;                         }                          // hover                         position: relative;                         &:before {                             content: '';                             display: block;                             width: $headerunderlinegap;                             background: $black;                             height: $headerheight;                             position: absolute;                             top: 0;                             margin-left: -$headerunderlinegap + 1;                         }                          &:hover {                             color: $white;                              &:after {                                 content: '';                                 display: block;                                 background: $cyanlight;                                 width: 114%; // todo check why space(2, 8) not work                                 height: 4px;                                 position: absolute;                                 margin: -1px 0 0 1px;                             }                         }                     }                 }             }         }     } } 

i feel it's bit hacky set width of &:after element 114% , not space(2, 8). can tell me, how set horizontal navigation susy grid , continuous underline, hovers way next li element.

thanks in advance!

space(2,8) doesn't work in case because 8 not context: 2 is. need space(2,2).


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -