@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openstack_dev/gatsby-theme-marketing-oif-core",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "Base theme for Marketing Sites",
5
5
  "author": "smarcet",
6
6
  "keywords": [
@@ -7,9 +7,13 @@
7
7
  max-width: 1500px;
8
8
  border-radius: 4px;
9
9
  justify-content: space-evenly;
10
- margin: auto;
10
+ margin: 0 20px;
11
11
  position: relative;
12
12
 
13
+ @media (min-width: 767px) {
14
+ margin: auto;
15
+ }
16
+
13
17
  @media (min-width: 900px) {
14
18
  width: 85%;
15
19
  }
@@ -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
  >
@@ -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}>
@@ -1,4 +1,5 @@
1
1
  .navbarHeader {
2
+ display: flex;
2
3
  .brandWrapper {
3
4
  margin: 10px 0;
4
5
  padding-right: 20px;
@@ -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: "auto",
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: 20px 15px 25px;
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: 17px;
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": 1714760006562 }
1
+ { "staticJsonFilesBuildTime": [], "lastBuild": 1716307121878 }