Skip to content

Commit cb13f01

Browse files
committed
implement left and right tabs styles
1 parent 20b9390 commit cb13f01

File tree

1 file changed

+62
-10
lines changed

1 file changed

+62
-10
lines changed

lib/patterns.less

+62-10
Original file line numberDiff line numberDiff line change
@@ -379,19 +379,71 @@
379379
}
380380

381381
// Tabs on left
382-
&.tabs-left .tabs {
383-
float: left;
384-
}
385-
&.tabs-left .tabs > li {
386-
float: none;
382+
&.tabs-left {
383+
.clearfix();
384+
385+
.tab-content {
386+
float: left;
387+
}
388+
.tabs {
389+
float: left;
390+
391+
> li {
392+
float: none;
393+
margin-bottom: -1px;
394+
margin-right: -1px;
395+
> a {
396+
margin-right: 0;
397+
margin-bottom: 2px;
398+
.border-radius(4px 0 0 4px);
399+
400+
&:hover {
401+
border-color: transparent;
402+
border-right-color: #ddd;
403+
}
404+
}
405+
}
406+
407+
> .active > a,
408+
> .active > a:hover {
409+
border-color: #ddd;
410+
border-right-color: transparent;
411+
}
412+
}
387413
}
388414

389415
// Tabs on right
390-
&.tabs-right .tabs {
391-
float: right;
392-
}
393-
&.tabs-right .tabs > li {
394-
float: none;
416+
&.tabs-right {
417+
.clearfix();
418+
419+
.tab-content {
420+
float: right;
421+
}
422+
.tabs {
423+
float: right;
424+
425+
> li {
426+
float: none;
427+
margin-bottom: -1px;
428+
margin-left: -1px;
429+
> a {
430+
margin-left: 0;
431+
margin-bottom: 2px;
432+
.border-radius(4px 0 0 4px);
433+
434+
&:hover {
435+
border-color: transparent;
436+
border-left-color: #ddd;
437+
}
438+
}
439+
}
440+
441+
> .active > a,
442+
> .active > a:hover {
443+
border-color: #ddd;
444+
border-left-color: transparent;
445+
}
446+
}
395447
}
396448
}
397449

0 commit comments

Comments
 (0)