@openstack_dev/gatsby-theme-marketing-oif-core 1.0.20 → 1.0.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstack_dev/gatsby-theme-marketing-oif-core",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "Base theme for Marketing Sites",
5
5
  "author": "smarcet",
6
6
  "keywords": [
@@ -79,7 +79,7 @@ function AuthUserSubNavBar({
79
79
  md: isSearchBarOpen ? "none" : "flex",
80
80
  },
81
81
  justifyContent: "flex-end",
82
- marginLeft: "auto",
82
+ marginLeft: "1em",
83
83
  position: "relative",
84
84
  }}
85
85
  >
@@ -1,4 +1,5 @@
1
1
  .navbarHeader {
2
+ display: flex;
2
3
  .brandWrapper {
3
4
  margin: 10px 0;
4
5
  padding-right: 20px;
@@ -49,7 +49,7 @@ function PublicUserSubNavBar({ isSearchBarOpen, isDesktop }) {
49
49
  },
50
50
  position: "relative",
51
51
  justifyContent: "flex-end",
52
- marginLeft: "auto",
52
+ marginLeft: "1em",
53
53
  }
54
54
  : {
55
55
  position: "relative",
@@ -41,11 +41,11 @@ function SearchBar({ isMobile, isMobileMenuOpen, onSearchBarOpen }) {
41
41
  }
42
42
  }, [isSearchBarOpen]);
43
43
 
44
+ const searchWidgetBaseUrl = getEnvVariable(SEARCH_WIDGET_BASE_URL);
45
+
44
46
  return (
45
47
  <>
46
- <Script
47
- src={`${getEnvVariable(SEARCH_WIDGET_BASE_URL)}/widget/embed.min.js`}
48
- />
48
+ <Script src={`https://${searchWidgetBaseUrl}/widget/embed.min.js`} />
49
49
  {isMobile ? (
50
50
  <Box
51
51
  className={`${styles.openstackSearchBarMobile} openstack-search-bar ossw-mobile`}
@@ -58,7 +58,7 @@ function SearchBar({ isMobile, isMobileMenuOpen, onSearchBarOpen }) {
58
58
  height: { xs: isMobileMenuOpen ? "auto" : 0, md: 0 },
59
59
  color: "#8a959e",
60
60
  }}
61
- data-baseurl={getEnvVariable(SEARCH_WIDGET_BASE_URL)}
61
+ data-baseurl={searchWidgetBaseUrl}
62
62
  data-context="www-openstack"
63
63
  />
64
64
  ) : (
@@ -11,6 +11,11 @@
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;
@@ -27,6 +32,10 @@
27
32
  white-space: nowrap;
28
33
  background-color: transparent;
29
34
  align-items: center;
35
+ @media (min-width: 768px) and (max-width: 1067px) {
36
+ font-size: 11px;
37
+ padding: 15px 8px;
38
+ }
30
39
  &:hover {
31
40
  color: #333;
32
41
  background-color: transparent;
@@ -51,6 +60,9 @@
51
60
  margin: 0 15px 0 10px;
52
61
  padding-right: 0px;
53
62
  padding-left: 10px;
63
+ @media (min-width: 768px) and (max-width: 1060px) {
64
+ margin-left: 0px;
65
+ }
54
66
  }
55
67
  &.login {
56
68
  background: #2a4e68;
@@ -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 && (