Skip to content

Commit 0cac61b

Browse files
committed
feat(prompt): update prompt styles
1 parent d5a313b commit 0cac61b

File tree

28 files changed

+150
-12
lines changed

28 files changed

+150
-12
lines changed

packages/bootstrap/scss/button/_variables.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ $kendo-flat-button-focus-ring-opacity: .12 !default;
266266
/// @group button
267267
$kendo-button-transition: $kendo-transition !default;
268268

269-
270269
@forward "@progress/kendo-theme-core/scss/components/button/_variables.scss" with (
271270
$kendo-button-border-width: $kendo-button-border-width,
272271
$kendo-button-border-radius: $kendo-button-border-radius,

packages/bootstrap/scss/fab/_theme.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,30 @@
4848
}
4949
}
5050

51+
// Generating state
52+
.k-fab-solid-primary.k-generating {
53+
54+
animation: k-fab-generating 1.5s ease-in-out 0.5s infinite;
55+
56+
@keyframes k-fab-generating {
57+
0% {
58+
background-color: k-color(primary-active);
59+
border: k-color(primary-active);
60+
outline-color: k-color(primary-active);
61+
}
62+
50% {
63+
background-color: color-mix(in srgb, k-color(primary-active) $kendo-fab-generating-opacity, k-color(surface-alt));
64+
border: color-mix(in srgb, k-color(primary-active) $kendo-fab-generating-opacity, k-color(surface-alt));
65+
outline-color: color-mix(in srgb, k-color(primary-active) $kendo-fab-generating-opacity, k-color(surface-alt));
66+
}
67+
100% {
68+
background-color: k-color(primary-active);
69+
border: k-color(primary-active);
70+
outline-color: k-color(primary-active);
71+
}
72+
}
73+
}
74+
5175
// Disabled state
5276
@each $name, $color in $kendo-fab-theme-colors {
5377
.k-fab-solid-#{$name}:disabled,

packages/bootstrap/scss/fab/_variables.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ $kendo-fab-item-outline-width: 3px !default;
180180
/// @group floating-action-button
181181
$kendo-fab-item-outline-color: $kendo-button-bg !default;
182182

183+
/// Тhe opacity of the generating FAB.
184+
/// @group floating-action-button
185+
$kendo-fab-generating-opacity: 40% !default;
186+
183187

184188
@forward "@progress/kendo-theme-core/scss/components/fab/_variables.scss" with (
185189
$kendo-fab-border-width: $kendo-fab-border-width,
@@ -227,5 +231,6 @@ $kendo-fab-item-outline-color: $kendo-button-bg !default;
227231
$kendo-fab-item-active-shadow: $kendo-fab-item-active-shadow,
228232
$kendo-fab-item-outline-style: $kendo-fab-item-outline-style,
229233
$kendo-fab-item-outline-width: $kendo-fab-item-outline-width,
230-
$kendo-fab-item-outline-color: $kendo-fab-item-outline-color
234+
$kendo-fab-item-outline-color: $kendo-fab-item-outline-color,
235+
$kendo-fab-generating-opacity: $kendo-fab-generating-opacity
231236
);

packages/bootstrap/scss/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
@forward "./pdf-viewer/_index.scss";
110110
@forward "./scroller/_index.scss";
111111
@forward "./scrollview/_index.scss";
112+
@forward "./speech-to-text-button/_index.scss";
112113
@forward "./prompt/_index.scss";
113114
@forward "./dataviz/_index.scss";
114115
@forward "./chart-wizard/_index.scss";
@@ -118,7 +119,6 @@
118119
@forward "./otp/_index.scss";
119120
@forward "./column-menu/_index.scss";
120121
@forward "./marquee/_index.scss";
121-
@forward "./speech-to-text-button/_index.scss";
122122

123123

124124
// Use component modules

packages/bootstrap/scss/prompt/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Dependencies
22
@use "../core/_index.scss" as *;
33
@use "../utils/_index.scss" as *;
4+
@use "../speech-to-text-button/_index.scss" as *;
45

56
// Component
67
@forward "./_variables.scss";
@@ -11,6 +12,7 @@
1112
@mixin kendo-prompt--styles() {
1213
@include import-once( "prompt" ) {
1314
@include core-styles();
15+
@include kendo-speech-to-text-button--styles();
1416
@include kendo-prompt--layout();
1517
@include kendo-prompt--theme();
1618
@include kendo-utils--flex-grid--flex-direction();

packages/classic/scss/fab/_variables.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ $kendo-fab-item-outline-width: k-spacing(0.5) !default;
180180
/// @group floating-action-button
181181
$kendo-fab-item-outline-color: rgba(0, 0, 0, .08) !default;
182182

183+
/// Тhe opacity of the generating FAB.
184+
/// @group floating-action-button
185+
$kendo-fab-generating-opacity: 40% !default;
186+
183187

184188
@forward "@progress/kendo-theme-core/scss/components/fab/_variables.scss" with (
185189
$kendo-fab-border-width: $kendo-fab-border-width,
@@ -227,5 +231,6 @@ $kendo-fab-item-outline-color: rgba(0, 0, 0, .08) !default;
227231
$kendo-fab-item-active-shadow: $kendo-fab-item-active-shadow,
228232
$kendo-fab-item-outline-style: $kendo-fab-item-outline-style,
229233
$kendo-fab-item-outline-width: $kendo-fab-item-outline-width,
230-
$kendo-fab-item-outline-color: $kendo-fab-item-outline-color
234+
$kendo-fab-item-outline-color: $kendo-fab-item-outline-color,
235+
$kendo-fab-generating-opacity: $kendo-fab-generating-opacity
231236
);

packages/classic/scss/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
@forward "./pdf-viewer/_index.scss";
110110
@forward "./scroller/_index.scss";
111111
@forward "./scrollview/_index.scss";
112+
@forward "./speech-to-text-button/_index.scss";
112113
@forward "./prompt/_index.scss";
113114
@forward "./dataviz/_index.scss";
114115
@forward "./chart-wizard/_index.scss";
@@ -118,7 +119,6 @@
118119
@forward "./otp/_index.scss";
119120
@forward "./column-menu/_index.scss";
120121
@forward "./marquee/_index.scss";
121-
@forward "./speech-to-text-button/_index.scss";
122122

123123

124124
// Use component modules

packages/classic/scss/prompt/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Dependencies
22
@use "../core/_index.scss" as *;
33
@use "../utils/_index.scss" as *;
4+
@use "../speech-to-text-button/_index.scss" as *;
45

56
// Component
67
@forward "./_variables.scss";
@@ -11,6 +12,7 @@
1112
@mixin kendo-prompt--styles() {
1213
@include import-once( "prompt" ) {
1314
@include core-styles();
15+
@include kendo-speech-to-text-button--styles();
1416
@include kendo-prompt--layout();
1517
@include kendo-prompt--theme();
1618
@include kendo-utils--flex-grid--flex-direction();

packages/core/scss/components/button/_layout.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,6 @@
323323
}
324324

325325

326-
327-
328326
// Button focus ring
329327
.k-button { // stylelint-disable-line
330328

packages/core/scss/components/fab/_theme.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,30 @@
5050
}
5151
}
5252

53+
// Generating state
54+
.k-fab-solid-primary.k-generating {
55+
56+
animation: k-fab-generating 1.5s ease-in-out 0.5s infinite;
57+
58+
@keyframes k-fab-generating {
59+
0% {
60+
background-color: k-color(primary-active);
61+
border: k-color(primary-active);
62+
outline-color: k-color(primary-active);
63+
}
64+
50% {
65+
background-color: color-mix(in srgb, k-color(primary-active) $kendo-fab-generating-opacity, k-color(surface-alt));
66+
border: color-mix(in srgb, k-color(primary-active) $kendo-fab-generating-opacity, k-color(surface-alt));
67+
outline-color: color-mix(in srgb, k-color(primary-active) $kendo-fab-generating-opacity, k-color(surface-alt));
68+
}
69+
100% {
70+
background-color: k-color(primary-active);
71+
border: k-color(primary-active);
72+
outline-color: k-color(primary-active);
73+
}
74+
}
75+
}
76+
5377
// Disabled state
5478
@each $name, $color in $kendo-fab-theme-colors {
5579
.k-disabled.k-fab-solid-#{$name},

0 commit comments

Comments
 (0)