66 <slot name =" banner" ></slot >
77 </template >
88 <nav class =" nav" >
9- <div v-for =" tab in tabs" :key =" tab.id" >
9+ <template v-for =" tab in tabs " :key =" tab .id " >
1010 <a v-if =" !tab.disabled && !tab.stub" :href =" urlForTab(tab.id)"
1111 :class =" 'textcolor ' + navLinkClass(tab.id)" @click.prevent =" navigateTo(tab.id)" >
1212 <slot :name =" `${tab.id}-title`" :isActive =" currentTab == tab.id" >{{ tab.title || tab.id }}
1515 <span :class =" `nav-link ${tab.disabled ? 'disabled' : ''}`" v-else >
1616 <slot :name =" `${tab.id}-title`" >{{ tab.title || tab.id }}</slot >
1717 </span >
18- </div >
18+ </template >
1919 </nav >
2020 </header >
2121
@@ -110,7 +110,6 @@ function urlForTab(tabId: string) {
110110
111111 .nav {
112112 display : inline-flex ;
113- flex-wrap : wrap ;
114113 line-height : 45px ;
115114 background-color : var (--int-theme );
116115
@@ -168,6 +167,10 @@ function urlForTab(tabId: string) {
168167 border : var (--int-light-grey ) 1px solid ;
169168 }
170169 }
170+
171+ & .level-3 {
172+ flex : 1 ;
173+ }
171174}
172175
173176@media (max-width : 730px ) {
@@ -178,59 +181,4 @@ function urlForTab(tabId: string) {
178181 }
179182 }
180183}
181-
182-
183- // // Header nav for all tabs
184-
185-
186- // // tabs level 1
187- // .tabs.level-1 {
188- // display: flex;
189- // flex-direction: column;
190- // height: 100%;
191-
192- // > .header {
193- // background-color: var(--int-theme);
194- // z-index: 1;
195- // top: 0;
196- // box-shadow: 0px 4px 5px 1px #ccc;
197-
198- // .top {
199- // height: 70px;
200- // }
201-
202- // .nav {
203- // line-height: 52px;
204- // font-size: 18px;
205- // }
206- // }
207- // }
208-
209- // /* It's nice to read with a bit more space at the bottom*/
210- // :deep(.tabs.level-2) > .content {
211- // padding-bottom: 2em !important;
212- // }
213-
214- // .tabs.level-2,
215- // .tabs.level-3 {
216- // .content {
217- // background-color: white;
218- // border: var(--int-light-grey) 1px solid;
219- // }
220-
221- // .nav {
222- // border-top: var(--int-light-grey) 1px solid;
223- // border-left: var(--int-light-grey) 1px solid;
224- // border-right: var(--int-light-grey) 1px solid;
225- // }
226- // }
227-
228- // .tabs.level-2 {
229- // display: flex;
230- // flex-direction: column;
231-
232- // .content {
233- // overflow-y: auto;
234- // }
235- // }
236184 </style >
0 commit comments