forked from carbon-design-system/carbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_toggletip.scss
89 lines (75 loc) · 1.98 KB
/
_toggletip.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
//
// Copyright IBM Corp. 2018, 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 '../button';
@use '../../config' as *;
@use '../../spacing';
@use '../../theme';
@use '../../type';
@use '../../utilities/button-reset';
@use '../../utilities/convert';
@use '../../utilities/custom-property';
@use '../../utilities/focus-outline';
@mixin toggletip() {
.#{$prefix}--toggletip-label {
@include type.type-style('body-01');
color: theme.$text-secondary;
margin-inline-end: spacing.$spacing-03;
}
.#{$prefix}--toggletip-button {
@include button-reset.reset();
display: flex;
align-items: center;
}
.#{$prefix}--toggletip-button svg {
fill: theme.$icon-secondary;
}
.#{$prefix}--toggletip-button:hover svg,
.#{$prefix}--toggletip--open .#{$prefix}--toggletip-button svg {
fill: theme.$icon-primary;
}
.#{$prefix}--toggletip-button:focus {
@include focus-outline.focus-outline;
}
.#{$prefix}--toggletip {
@include custom-property.declaration(
'popover-offset',
convert.to-rem(13px)
);
}
.#{$prefix}--toggletip-content {
@include custom-property.declaration(
'button-focus-color',
theme.$focus-inverse
);
@include custom-property.declaration(
'link-text-color',
theme.$link-inverse
);
@include custom-property.declaration(
'link-hover-text-color',
theme.$link-inverse
);
@include custom-property.declaration(
'link-focus-text-color',
theme.$focus-inverse
);
@include type.type-style('body-01');
display: grid;
padding: spacing.$spacing-05;
max-inline-size: 18rem;
row-gap: spacing.$spacing-05;
}
.#{$prefix}--toggletip-content p {
@include type.type-style('body-01');
}
.#{$prefix}--toggletip-actions {
display: flex;
align-items: center;
justify-content: space-between;
column-gap: spacing.$spacing-05;
}
}