submenu: inside/outside

This commit is contained in:
Carlos Matallín 2016-04-19 16:25:45 +02:00
parent 613e9ec17d
commit 6ed2062657

View File

@ -16,7 +16,7 @@
</li>
<li class="CDB-NavMenu-Item is-selected">
<button class="CDB-NavMenu-Link">POP-UP</button>
<ul class="CDB-NavSubmenu CDB-Size-small">
<ul class="CDB-NavSubmenu CDB-NavSubmenu--inside CDB-Size-small">
<li class="CDB-NavSubmenu-Item is-selected">
<button class="CDB-NavSubmenu-Link">CLICK <span class="CDB-NavSubmenu-Status u-hintTextColor">NONE</span></button>
</li>
@ -48,7 +48,7 @@
</li>
<li class="CDB-NavMenu-item is-selected">
<button class="CDB-NavMenu-Link">POP-UP</button>
<ul class="CDB-NavSubmenu CDB-Size-small">
<ul class="CDB-NavSubmenu CDB-NavSubmenu--inside CDB-Size-small">
<li class="CDB-NavSubmenu-Item is-selected">
<button class="CDB-NavSubmenu-Link">CLICK <span class="CDB-NavSubmenu-Status">NONE</span></button>
</li>
@ -67,73 +67,31 @@
<br/><br/>
<br/><br/>
<div style="height: 200px; padding: 20px;">
<nav class="CDB-NavMenu">
<ul class="CDB-NavMenu-Inner CDB-Text is-semibold CDB-Size-medium js-menu">
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link u-upperCase">Data</button>
</li>
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link u-upperCase">Analyses</button>
</li>
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link u-upperCase">Style</button>
</li>
<li class="CDB-NavMenu-Item is-selected">
<button class="CDB-NavMenu-Link u-upperCase">Pop-up</button>
</li>
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link u-upperCase">Legend</button>
</li>
</ul>
<div class="Editor-content js-content">
<div>
<div class="TabPane">
<ul class="CDB-NavSubmenu CDB-Text CDB-Size-small is-semibold js-menu">
<li class="CDB-NavSubmenu-Item is-selected">
<button class="CDB-NavSubmenu-Link u-upperCase">Click</button>
</li>
<li class="CDB-NavSubmenu-Item">
<button class="CDB-NavSubmenu-Link u-upperCase">Hover</button>
</li>
</ul>
<div class="Editor-content js-content">
<div>
<div>
<div class="CDB-HeaderInfo">
<div class="CDB-HeaderNumeration CDB-Text is-semibold u-rSpace--m">1</div>
<nav class="CDB-NavMenu">
<ul class="CDB-NavMenu-Inner CDB-Text is-semibold CDB-Size-medium">
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link">DATA</button>
</li>
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link">STYLE</button>
</li>
<li class="CDB-NavMenu-Item is-selected">
<button class="CDB-NavMenu-Link">POP-UP</button>
</li>
<li class="CDB-NavMenu-Item">
<button class="CDB-NavMenu-Link">LEGEND</button>
</li>
</ul>
<div class="CDB-HeaderInfo-Inner CDB-Text">
<div class="CDB-HeaderInfo-Title u-bSpace--m">
<h2 class="CDB-Text CDB-HeaderInfo-TitleText CDB-Size-large">Style</h2>
</div>
<p class="CDB-Text u-upperCase CDB-FontSize-small u-altTextColor u-bSpace--m">None</p>
<select class="CDB-SelectFake js-select">
<option value="white" selected="selected">
white
</option>
<option value="dark">
dark
</option>
<option value="color">
color
</option>
<option value="image">
image
</option>
</select>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</nav>
</div>
<ul class="CDB-NavSubmenu CDB-NavSubmenu--outside CDB-Text CDB-Size-small is-semibold js-menu">
<li class="CDB-NavSubmenu-Item is-selected">
<button class="CDB-NavSubmenu-Link u-upperCase">Click</button>
</li>
<li class="CDB-NavSubmenu-Item">
<button class="CDB-NavSubmenu-Link u-upperCase">Hover</button>
</li>
</ul>
</nav>
```
*/
@ -170,18 +128,20 @@
color: $cMainText;
}
// .CDB-NavSubmenu {
// position: absolute;
// right: 0;
// left: 0;
// padding-top: 14px;
// border-bottom: 1px solid $cSecondaryLine;
// }
.CDB-NavSubmenu {
border-bottom: 1px solid $cSecondaryLine;
}
.CDB-NavSubmenu--inside {
position: absolute;
right: 0;
left: 0;
padding-top: 14px;
}
.CDB-NavSubmenu--outside {
margin-top: -5px;
margin-bottom: 18px;
border-bottom: 1px solid $cSecondaryLine;
}
.CDB-NavSubmenu-Link {