Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Commit a4595d0

Browse files
Magdalena Grigorovajoneff
authored andcommitted
feat(buttonGroup): add styles for button group telerik/kendo#7846
1 parent 31d4624 commit a4595d0

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

scss/button/_layout.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,29 +126,33 @@
126126
vertical-align: middle;
127127
position: relative;
128128

129-
.k-button {
130-
@include border-radius( 0 );
129+
.k-item {
130+
position: relative;
131131
}
132-
.k-button ~ .k-button {
132+
.k-item ~ .k-item {
133133
margin-left: -$button-border-width;
134134
}
135135

136+
.k-button {
137+
@include border-radius( 0 );
138+
}
139+
136140
.k-button:hover,
137141
.k-button.k-state-hover,
138142
.k-button.k-state-active {
139143
z-index: 2;
140144
}
141145

142146
.k-group-start,
143-
.k-button:first-child {
147+
.k-item:first-child .k-button {
144148
@include border-left-radius();
145149
}
146150
.k-group-end,
147-
.k-button:last-child {
151+
.k-item:last-child .k-button {
148152
@include border-right-radius();
149153
}
150154
.k-group-start.k-group-end,
151-
.k-button:first-child:last-child {
155+
.k-item:first-child:last-child .k-button {
152156
@include border-radius();
153157
}
154158

@@ -168,7 +172,7 @@
168172
.k-button-group-stretched {
169173
display: flex;
170174

171-
> .k-button {
175+
.k-item > .k-button {
172176
display: inline-block;
173177
flex: 1 1 0;
174178
overflow: hidden;

scss/button/_theme.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,4 +235,11 @@
235235
color: $accent;
236236
}
237237

238+
239+
// Badge
240+
.k-badge {
241+
background-color: $accent;
242+
color: $accent-contrast;
243+
}
244+
238245
}

scss/common/_base.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,24 @@
115115
.k-flip-h.k-flip-v { transform: scale(-1, -1); }
116116

117117

118+
// Badge
119+
.k-badge {
120+
height: 2em;
121+
min-width: .9em;
122+
position: absolute;
123+
top: -1em;
124+
right: -1em;
125+
font-size: .6rem;
126+
line-height: 2em;
127+
margin-left: .5em;
128+
padding: 0 .55em;
129+
border-radius: 5em;
130+
text-align: center;
131+
overflow: hidden;
132+
z-index: 5;
133+
}
134+
135+
118136
// Dirty indicator
119137
.k-dirty {
120138
margin: 0;

0 commit comments

Comments
 (0)