@openstack_dev/gatsby-theme-marketing-oif-core 1.0.19 → 1.0.21
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/package.json +1 -1
- package/src/components/AnnouncementBanner/index.module.scss +5 -1
- package/src/components/Navbar/AuthUserSubNavBar/index.js +1 -1
- package/src/components/Navbar/NavBarDropDown/index.js +10 -0
- package/src/components/Navbar/NavBarHeader/index.module.scss +1 -0
- package/src/components/Navbar/PublicUserSubNavBar/index.js +6 -3
- package/src/components/Navbar/index.module.scss +15 -5
- package/src/components/Navbar/template.js +15 -13
- package/src/content/site-settings/index.json +1 -1
package/package.json
CHANGED
|
@@ -10,6 +10,16 @@ function NavBarDropDown({ isMobile, items }) {
|
|
|
10
10
|
<Box
|
|
11
11
|
className={isMobile ? styles.mobileDropdownMenu : styles.dropDownMenu}
|
|
12
12
|
component="ul"
|
|
13
|
+
sx={
|
|
14
|
+
!isMobile
|
|
15
|
+
? {
|
|
16
|
+
top: {
|
|
17
|
+
xs: "inherit !important",
|
|
18
|
+
md: "90% !important",
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
: {}
|
|
22
|
+
}
|
|
13
23
|
>
|
|
14
24
|
{items.map((subItem) => (!subItem.title && !subItem.link ? (
|
|
15
25
|
<li role="presentation" key={subItem.title}>
|
|
@@ -47,10 +47,13 @@ function PublicUserSubNavBar({ isSearchBarOpen, isDesktop }) {
|
|
|
47
47
|
xs: "none",
|
|
48
48
|
md: isSearchBarOpen ? "none" : "flex",
|
|
49
49
|
},
|
|
50
|
+
position: "relative",
|
|
50
51
|
justifyContent: "flex-end",
|
|
51
|
-
marginLeft: "
|
|
52
|
+
marginLeft: "1em",
|
|
53
|
+
}
|
|
54
|
+
: {
|
|
55
|
+
position: "relative",
|
|
52
56
|
}
|
|
53
|
-
: {}
|
|
54
57
|
}
|
|
55
58
|
>
|
|
56
59
|
<Box
|
|
@@ -59,8 +62,8 @@ function PublicUserSubNavBar({ isSearchBarOpen, isDesktop }) {
|
|
|
59
62
|
>
|
|
60
63
|
Join
|
|
61
64
|
<ArrowDropDownIcon className={styles.arrowDownIcon} />
|
|
62
|
-
<NavBarDropDown items={publicNavbarMenu} />
|
|
63
65
|
</Box>
|
|
66
|
+
<NavBarDropDown items={publicNavbarMenu} />
|
|
64
67
|
<LoginButton backUrl={getBackURL()} />
|
|
65
68
|
</Box>
|
|
66
69
|
);
|
|
@@ -11,13 +11,18 @@
|
|
|
11
11
|
li {
|
|
12
12
|
position: relative;
|
|
13
13
|
}
|
|
14
|
+
.ulContainer {
|
|
15
|
+
@media (max-width: 925px) {
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
14
19
|
.navbarOption {
|
|
15
20
|
color: #8a959e;
|
|
16
21
|
font-size: 12px;
|
|
17
22
|
font-weight: 400;
|
|
18
23
|
text-transform: uppercase;
|
|
19
24
|
position: relative;
|
|
20
|
-
padding:
|
|
25
|
+
padding: 15px;
|
|
21
26
|
text-decoration: none;
|
|
22
27
|
text-align: left;
|
|
23
28
|
cursor: pointer;
|
|
@@ -26,8 +31,11 @@
|
|
|
26
31
|
line-height: 17.15px;
|
|
27
32
|
white-space: nowrap;
|
|
28
33
|
background-color: transparent;
|
|
29
|
-
margin-top: 10px;
|
|
30
34
|
align-items: center;
|
|
35
|
+
@media (min-width: 768px) and (max-width: 1067px) {
|
|
36
|
+
font-size: 11px;
|
|
37
|
+
padding: 15px 8px;
|
|
38
|
+
}
|
|
31
39
|
&:hover {
|
|
32
40
|
color: #333;
|
|
33
41
|
background-color: transparent;
|
|
@@ -52,13 +60,16 @@
|
|
|
52
60
|
margin: 0 15px 0 10px;
|
|
53
61
|
padding-right: 0px;
|
|
54
62
|
padding-left: 10px;
|
|
63
|
+
@media (min-width: 768px) and (max-width: 1060px) {
|
|
64
|
+
margin-left: 0px;
|
|
65
|
+
}
|
|
55
66
|
}
|
|
56
67
|
&.login {
|
|
57
68
|
background: #2a4e68;
|
|
58
69
|
padding: 3px 25px;
|
|
59
70
|
border-radius: 4px;
|
|
60
71
|
color: #fff;
|
|
61
|
-
margin-top:
|
|
72
|
+
margin-top: 13px;
|
|
62
73
|
font-size: 14px;
|
|
63
74
|
height: 26px;
|
|
64
75
|
&:hover {
|
|
@@ -68,8 +79,7 @@
|
|
|
68
79
|
}
|
|
69
80
|
}
|
|
70
81
|
}
|
|
71
|
-
.dropDownMenu
|
|
72
|
-
.join {
|
|
82
|
+
.dropDownMenu {
|
|
73
83
|
display: none;
|
|
74
84
|
flex-direction: column;
|
|
75
85
|
margin-top: 5px;
|
|
@@ -53,8 +53,10 @@ function NavBarTemplate({ data, isLoggedUser, member }) {
|
|
|
53
53
|
},
|
|
54
54
|
alignItems: "center",
|
|
55
55
|
justifyContent: "flex-end",
|
|
56
|
+
paddingLeft: "0",
|
|
56
57
|
}}
|
|
57
58
|
component="ul"
|
|
59
|
+
className={styles.ulContainer}
|
|
58
60
|
>
|
|
59
61
|
{data.items.map(
|
|
60
62
|
(item) => item.display && (
|
|
@@ -65,20 +67,20 @@ function NavBarTemplate({ data, isLoggedUser, member }) {
|
|
|
65
67
|
/>
|
|
66
68
|
),
|
|
67
69
|
)}
|
|
70
|
+
{isLoggedUser ? (
|
|
71
|
+
<AuthUserSubNavBar
|
|
72
|
+
isMobile={false}
|
|
73
|
+
member={member}
|
|
74
|
+
navbarMenu={navbarMenu}
|
|
75
|
+
isSearchBarOpen={isSearchBarOpen}
|
|
76
|
+
/>
|
|
77
|
+
) : (
|
|
78
|
+
<PublicUserSubNavBar
|
|
79
|
+
isSearchBarOpen={isSearchBarOpen}
|
|
80
|
+
isDesktop
|
|
81
|
+
/>
|
|
82
|
+
)}
|
|
68
83
|
</Box>
|
|
69
|
-
{isLoggedUser ? (
|
|
70
|
-
<AuthUserSubNavBar
|
|
71
|
-
isMobile={false}
|
|
72
|
-
member={member}
|
|
73
|
-
navbarMenu={navbarMenu}
|
|
74
|
-
isSearchBarOpen={isSearchBarOpen}
|
|
75
|
-
/>
|
|
76
|
-
) : (
|
|
77
|
-
<PublicUserSubNavBar
|
|
78
|
-
isSearchBarOpen={isSearchBarOpen}
|
|
79
|
-
isDesktop
|
|
80
|
-
/>
|
|
81
|
-
)}
|
|
82
84
|
</Toolbar>
|
|
83
85
|
<SearchBar isMobileMenuOpen={isMobileMenuOpen} isMobile />
|
|
84
86
|
{isMobileMenuOpen && (
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "staticJsonFilesBuildTime": [], "lastBuild":
|
|
1
|
+
{ "staticJsonFilesBuildTime": [], "lastBuild": 1716307121878 }
|