@targetprocess/menu 12.20.1-alpha.2 → 12.20.2-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/style/index.css CHANGED
@@ -1,90 +1,93 @@
1
- .menu {
2
- transition-property: opacity !important;
3
- transform: none !important;
4
- padding: 0;
5
-
6
- &__item {
7
- font-size: $gFontSizeDefault;
8
- position: relative;
9
- display: flex;
10
- align-items: center;
11
- padding: $gSpaceS $gSpaceSM;
12
- box-sizing: border-box;
13
-
14
- &__content {
15
- text-overflow: ellipsis;
16
- white-space: nowrap;
17
- overflow: hidden;
18
- flex: 1 1 auto;
19
-
20
- &--left {
21
- padding-left: $gIconsSizeDefault;
22
- }
23
- }
24
-
25
- .submenu-icon {
26
- flex: 0 0 auto;
27
- &--left {
28
- margin-right: $gSpaceS;
29
- }
30
- &--right {
31
- margin-left: $gSpaceS;
32
- }
33
- }
34
-
35
- &:not(&--disabled) {
36
- &:hover {
37
- cursor: pointer;
38
- }
39
- }
40
-
41
- &--disabled {
42
- opacity: $gControlDisabledOpacity;
43
- cursor: not-allowed;
44
- }
45
-
46
- &--danger {
47
- color: $gActionColorDelete;
48
- }
49
-
50
- &--danger:not(&--disabled) {
51
- &:hover {
52
- background-color: $gActionBackgroundDelete;
53
- }
54
- }
55
-
56
- &--current {
57
- background-color: $gHighlightBlockBackground; /* keyboard current background */
58
- }
59
-
60
- &--selected:not(&--danger) {
61
- background-color: $gActionBackgroundSelected;
62
- }
63
-
64
- &:not(&--danger):not(&--disabled):not(&--selected) {
65
- &:hover {
66
- background-color: $gActionBackgroundHover;
67
- }
68
- }
69
-
70
- &:last-child {
71
- border-radius: 0 0 $gBorderRadiusDefault $gBorderRadiusDefault;
72
- }
73
- }
74
-
75
- &__separator {
76
- margin: $gSpaceXS 0;
77
- border-top: solid 1px $gHighlightBlockBorderColor;
78
-
79
- &__title {
80
- padding: $gSpaceS $gSpaceSM $gSpaceXS $gSpaceSM;
81
- display: flex;
82
- font-size: $gFontSizeLabel;
83
- line-height: 1.3;
84
- font-weight: $gFontWeightSemibold;
85
- text-transform: uppercase;
86
- color: $gFontColorGray;
87
- letter-spacing: 0.4px;
88
- }
89
- }
90
- }
1
+ /*********************************************************************
2
+ * © Copyright IBM Corp. 2024
3
+ *********************************************************************/
4
+ .menu {
5
+ transition-property: opacity !important;
6
+ transform: none !important;
7
+ padding: 0;
8
+
9
+ &__item {
10
+ font-size: $gFontSizeDefault;
11
+ position: relative;
12
+ display: flex;
13
+ align-items: center;
14
+ padding: $gSpaceS $gSpaceSM;
15
+ box-sizing: border-box;
16
+
17
+ &__content {
18
+ text-overflow: ellipsis;
19
+ white-space: nowrap;
20
+ overflow: hidden;
21
+ flex: 1 1 auto;
22
+
23
+ &--left {
24
+ padding-left: $gIconsSizeDefault;
25
+ }
26
+ }
27
+
28
+ .submenu-icon {
29
+ flex: 0 0 auto;
30
+ &--left {
31
+ margin-right: $gSpaceS;
32
+ }
33
+ &--right {
34
+ margin-left: $gSpaceS;
35
+ }
36
+ }
37
+
38
+ &:not(&--disabled) {
39
+ &:hover {
40
+ cursor: pointer;
41
+ }
42
+ }
43
+
44
+ &--disabled {
45
+ opacity: $gControlDisabledOpacity;
46
+ cursor: not-allowed;
47
+ }
48
+
49
+ &--danger {
50
+ color: $gActionColorDelete;
51
+ }
52
+
53
+ &--danger:not(&--disabled) {
54
+ &:hover {
55
+ background-color: $gActionBackgroundDelete;
56
+ }
57
+ }
58
+
59
+ &--current {
60
+ background-color: $gHighlightBlockBackground; /* keyboard current background */
61
+ }
62
+
63
+ &--selected:not(&--danger) {
64
+ background-color: $gActionBackgroundSelected;
65
+ }
66
+
67
+ &:not(&--danger):not(&--disabled):not(&--selected) {
68
+ &:hover {
69
+ background-color: $gActionBackgroundHover;
70
+ }
71
+ }
72
+
73
+ &:last-child {
74
+ border-radius: 0 0 $gBorderRadiusDefault $gBorderRadiusDefault;
75
+ }
76
+ }
77
+
78
+ &__separator {
79
+ margin: $gSpaceXS 0;
80
+ border-top: solid 1px $gHighlightBlockBorderColor;
81
+
82
+ &__title {
83
+ padding: $gSpaceS $gSpaceSM $gSpaceXS $gSpaceSM;
84
+ display: flex;
85
+ font-size: $gFontSizeLabel;
86
+ line-height: 1.3;
87
+ font-weight: $gFontWeightSemibold;
88
+ text-transform: uppercase;
89
+ color: $gFontColorGray;
90
+ letter-spacing: 0.4px;
91
+ }
92
+ }
93
+ }