Skip to content

Commit c7529f9

Browse files
committed
tabs - scrollable tab (issue #8)
1 parent f5ffdd5 commit c7529f9

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

css/components.css

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/components.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/tabs/_element.less

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@import "_variables";
2+
@import "../_mixins";
3+
@import "../_themes";
4+
15
.tabs {
26
list-style: none;
37
position: relative;
@@ -9,6 +13,8 @@
913

1014
margin-bottom: @tab-content-height + @tabs-margin-bottom;
1115

16+
padding: 0;
17+
1218
li {
1319
flex-grow: 1;
1420
padding: 0;
@@ -33,17 +39,30 @@
3339
position: relative;
3440

3541
display: block;
42+
43+
border-radius: 5px 5px 0 0;
3644
}
3745
.tab__content {
3846
position: absolute;
3947
left: 0;
40-
transform: translateY(100%);
48+
//transform: translateY(100%);
4149

4250
width: 100%;
4351
height: @tab-content-height;
4452
padding: @tab-content-padding;
4553

4654
box-sizing: border-box;
55+
56+
overflow-y: hidden;
57+
58+
&--scrollable {
59+
overflow-y: scroll;
60+
}
61+
}
62+
63+
input[type=radio]:checked ~ .tab__content,
64+
label {
65+
border: 1px solid #cecece;
4766
}
4867
}
4968

0 commit comments

Comments
 (0)