@contentmunch/contentmunch-ui 1.0.35 → 1.0.37
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.muncher-dropdown-nav {
|
|
2
2
|
position: relative;
|
|
3
|
-
display: inline-block; /*
|
|
3
|
+
display: inline-block; /* ensures dropdown anchors to button width */
|
|
4
4
|
vertical-align: middle;
|
|
5
5
|
}
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
background: var(--dropdown-nav-content-background-color);
|
|
23
23
|
color: var(--dropdown-nav-content-color);
|
|
24
24
|
min-width: 5rem;
|
|
25
|
-
padding
|
|
25
|
+
padding: 0.7rem 1rem; /* ✅ equal left/right padding */
|
|
26
26
|
z-index: 10;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -32,29 +32,24 @@
|
|
|
32
32
|
display: none;
|
|
33
33
|
position: absolute;
|
|
34
34
|
top: 100%;
|
|
35
|
-
left: 0; /* default:
|
|
35
|
+
left: 0; /* default: open from left edge of parent */
|
|
36
36
|
transform-origin: top left;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transform: translateY(0.25rem);
|
|
39
|
+
transition: opacity 0.15s ease, transform 0.15s ease;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
|
-
|
|
40
|
-
text-align: left;
|
|
41
|
-
margin: 0.7rem 1rem 0.7rem 0.3rem;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/* 👇 DROPS LEFT instead of right */
|
|
42
|
+
/* ✅ drop-left: opens from right edge, but same text and padding */
|
|
45
43
|
.muncher-dropdown-nav.drop-left .muncher-dropdown-nav--content {
|
|
46
44
|
left: auto;
|
|
47
|
-
right: 0;
|
|
45
|
+
right: 0;
|
|
48
46
|
transform-origin: top right;
|
|
49
|
-
text-align: right;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.muncher-dropdown-nav.drop-left .muncher-dropdown-nav--content > * {
|
|
53
|
-
text-align: right;
|
|
54
|
-
margin: 0.7rem 0.3rem 0.7rem 1rem;
|
|
55
47
|
}
|
|
56
48
|
|
|
49
|
+
/* Hover behavior */
|
|
57
50
|
.muncher-dropdown-nav:hover .muncher-dropdown-nav--content {
|
|
58
51
|
display: block;
|
|
52
|
+
opacity: 1;
|
|
53
|
+
transform: translateY(0);
|
|
59
54
|
}
|
|
60
55
|
}
|