forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_mixins.scss
42 lines (35 loc) · 1011 Bytes
/
_mixins.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Copyright IBM Corp. 2016, 2023
//
// This source code is licensed under the Apache-2.0 license found in the
// LICENSE file in the root directory of this source tree.
//
@use '../../config' as *;
/// @access public
/// @group notification
@mixin inline-notification--color($color) {
border: 1px solid $color;
border-inline-start: 6px solid $color;
.#{$prefix}--inline-notification__icon {
fill: $color;
}
}
//----------------------------------------------
// Toast Notification
// ---------------------------------------------
/// @access private
/// @group notification
@mixin notification--color($color) {
border-inline-start: 6px solid $color;
}
/// @access private
/// @group notification
@mixin notification--experimental($color, $background-color) {
background: $background-color;
border-inline-start: 3px solid $color;
.#{$prefix}--inline-notification__icon,
.#{$prefix}--toast-notification__icon,
.#{$prefix}--actionable-notification__icon {
fill: $color;
}
}