Skip to content

Commit

Permalink
feat: add alignement classes for tabstrip items
Browse files Browse the repository at this point in the history
  • Loading branch information
joneff committed Nov 2, 2022
1 parent 7f59331 commit ca4957c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
20 changes: 19 additions & 1 deletion packages/default/scss/tabstrip/_layout.scss
Expand Up @@ -172,7 +172,7 @@
}


// Tabstrip variants
// Tabstrip position
.k-tabstrip-top {
> .k-tabstrip-items-wrapper {
border-bottom-width: $tabstrip-border-width;
Expand Down Expand Up @@ -268,6 +268,24 @@
}


// Tabstrip align
.k-tabstrip-items-start {
justify-content: flex-start;
}
.k-tabstrip-items-center {
justify-content: center;
}
.k-tabstrip-items-end {
justify-content: flex-end;
}
.k-tabstrip-items-justify {
justify-content: space-between;
}
.k-tabstrip-items-stretched > * {
flex: 1 0 0;
}


// Selected indicator
@if ($tabstrip-indicator-size) {

Expand Down
21 changes: 20 additions & 1 deletion packages/fluent/scss/tabstrip/_layout.scss
Expand Up @@ -176,7 +176,7 @@
}


// Tabstrip variants
// Tabstrip position
.k-tabstrip-top {
> .k-tabstrip-items-wrapper {
border-bottom-width: var( --kendo-tabstrip-border-width, #{$kendo-tabstrip-border-width} );
Expand Down Expand Up @@ -229,6 +229,25 @@
}
}


// Tabstrip align
.k-tabstrip-items-start {
justify-content: flex-start;
}
.k-tabstrip-items-center {
justify-content: center;
}
.k-tabstrip-items-end {
justify-content: flex-end;
}
.k-tabstrip-items-justify {
justify-content: space-between;
}
.k-tabstrip-items-stretched > * {
flex: 1 0 0;
}


// Selected indicator
@if ($kendo-tabstrip-indicator-size) {

Expand Down

0 comments on commit ca4957c

Please sign in to comment.