@comicrelief/component-library 8.13.3 → 8.13.4
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/dist/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +2 -2
- package/dist/components/Organisms/Header2025/HeaderNav2025/MoreNav.style.js +1 -1
- package/package.json +1 -1
- package/src/components/Organisms/Header2025/HeaderNav2025/HeaderNav2025.style.js +3 -3
- package/src/components/Organisms/Header2025/HeaderNav2025/MoreNav.style.js +3 -0
|
@@ -59,7 +59,7 @@ const NavLinkClass = (0, _styledComponents.default)(_Link.default).withConfig({
|
|
|
59
59
|
const Nav = exports.Nav = _styledComponents.default.nav.withConfig({
|
|
60
60
|
displayName: "HeaderNav2025style__Nav",
|
|
61
61
|
componentId: "sc-xflhtq-1"
|
|
62
|
-
})(["display:", ";width:100%;position:absolute;top:75px;left:0;", ";background-color:", ";box-shadow:0px 20px 20px 5px rgba(0,0,0,0.25);@media ", "{width:50%;right:0;left:inherit;box-shadow:-20px 15px 20px 0px rgba(0,0,0,0.25);}@media ", "{", ";position:relative;top:0;display:block;margin:0;width:
|
|
62
|
+
})(["display:", ";width:100%;position:absolute;top:75px;left:0;", ";background-color:", ";box-shadow:0px 20px 20px 5px rgba(0,0,0,0.25);@media ", "{width:50%;right:0;left:inherit;box-shadow:-20px 15px 20px 0px rgba(0,0,0,0.25);}@media ", "{", ";position:relative;top:0;display:block;margin:0;width:100%;height:100%;box-shadow:none;}@media ", "{margin:0 10px;}> h2{", ";}"], _ref8 => {
|
|
63
63
|
let {
|
|
64
64
|
isExpandable
|
|
65
65
|
} = _ref8;
|
|
@@ -92,7 +92,7 @@ const Nav = exports.Nav = _styledComponents.default.nav.withConfig({
|
|
|
92
92
|
const SubNavMenu = exports.SubNavMenu = _styledComponents.default.ul.withConfig({
|
|
93
93
|
displayName: "HeaderNav2025style__SubNavMenu",
|
|
94
94
|
componentId: "sc-xflhtq-2"
|
|
95
|
-
})(["visibility:", ";display:", ";padding:0;position:relative;list-style:none outside;left:0;top:0;flex-direction:column;justify-content:center;align-items:center;background-color:", ";overflow:hidden;border-top:1px solid ", ";@media ", "{display:flex;width:330px;height:auto;padding:0;position:absolute;top:86px;left:-
|
|
95
|
+
})(["visibility:", ";display:", ";padding:0;position:relative;list-style:none outside;left:0;top:0;flex-direction:column;justify-content:center;align-items:center;background-color:", ";overflow:hidden;border-top:1px solid ", ";@media ", "{display:flex;width:330px;height:auto;padding:0;position:absolute;top:86px;left:-42px;border-radius:0 0 25px 25px;transition:opacity ", "s linear;opacity:0;box-shadow:0px 13px 15px 0 rgba(0,0,0,0.15);}"], _ref13 => {
|
|
96
96
|
let {
|
|
97
97
|
isSubMenuOpen
|
|
98
98
|
} = _ref13;
|
|
@@ -47,7 +47,7 @@ const MoreNavLabel = exports.MoreNavLabel = (0, _styledComponents.default)(_Text
|
|
|
47
47
|
const MoreNavItem = exports.MoreNavItem = (0, _styledComponents.default)(_HeaderNav.NavItem).withConfig({
|
|
48
48
|
displayName: "MoreNavstyle__MoreNavItem",
|
|
49
49
|
componentId: "sc-68lngb-2"
|
|
50
|
-
})(["@media ", "{margin-left:22px;", " > ", "{transition:transform 0.35s cubic-bezier(0.41,1.64,0.41,0.8);}:hover,:focus{", "{color:", ";> ", "{transform:rotate(-180deg);img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}}:hover,:focus,:focus-within{> ", "{border-bottom:none;padding-bottom:10px;}> ", "{visibility:visible;opacity:1;display:flex;flex-direction:column;}}:focus{> ", "{visibility:hidden !important;opacity:0 !important;display:none !important;}}}@media ", "{margin-left:20px;}"], _ref6 => {
|
|
50
|
+
})(["@media ", "{margin-left:22px;display:flex;flex-grow:0.5;", " > ", "{transition:transform 0.35s cubic-bezier(0.41,1.64,0.41,0.8);}:hover,:focus{", "{color:", ";> ", "{transform:rotate(-180deg);img{filter:invert(0.5) sepia(1) saturate(100) hue-rotate(20deg);}}}}:hover,:focus,:focus-within{> ", "{border-bottom:none;padding-bottom:10px;}> ", "{visibility:visible;opacity:1;display:flex;flex-direction:column;}}:focus{> ", "{visibility:hidden !important;opacity:0 !important;display:none !important;}}}@media ", "{margin-left:20px;}"], _ref6 => {
|
|
51
51
|
let {
|
|
52
52
|
theme
|
|
53
53
|
} = _ref6;
|
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ const Nav = styled.nav`
|
|
|
81
81
|
top: 0;
|
|
82
82
|
display: block;
|
|
83
83
|
margin: 0;
|
|
84
|
-
width:
|
|
84
|
+
width: 100%;
|
|
85
85
|
height: 100%;
|
|
86
86
|
box-shadow: none;
|
|
87
87
|
}
|
|
@@ -121,9 +121,9 @@ const SubNavMenu = styled.ul`
|
|
|
121
121
|
padding: 0;
|
|
122
122
|
position: absolute;
|
|
123
123
|
top: 86px;
|
|
124
|
-
left: -
|
|
124
|
+
left: -42px;
|
|
125
125
|
border-radius: 0 0 25px 25px;
|
|
126
|
-
transition: opacity ${transitionDuration}s
|
|
126
|
+
transition: opacity ${transitionDuration}s linear;
|
|
127
127
|
opacity: 0;
|
|
128
128
|
box-shadow: 0px 13px 15px 0 rgba(0, 0, 0, 0.15);
|
|
129
129
|
}
|
|
@@ -57,6 +57,9 @@ const MoreNavLabel = styled(Text)`
|
|
|
57
57
|
const MoreNavItem = styled(NavItem)`
|
|
58
58
|
@media ${({ theme }) => theme.allBreakpoints('Nav')} {
|
|
59
59
|
margin-left: 22px;
|
|
60
|
+
// Let it take up all the space to be a bigger target:
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-grow: 0.5;
|
|
60
63
|
|
|
61
64
|
// Chevron icon:
|
|
62
65
|
${MoreNavLabel} > ${ChevronWrapper} {
|