@t2ca/gatsby-theme-showcase 1.0.12 → 1.0.14

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": "@t2ca/gatsby-theme-showcase",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "devDependencies": {
@@ -26,7 +26,6 @@
26
26
  "@emotion/styled": "^10.0.17",
27
27
  "@hot-loader/react-dom": "^16.9.0",
28
28
  "@mdx-js/mdx": "^1.4.0",
29
- "@theme-ui/color-modes": "^0.3.0-alpha.4",
30
29
  "@theme-ui/components": "^0.3.0-alpha.4",
31
30
  "@theme-ui/preset-bootstrap": "^0.3.0-alpha.4",
32
31
  "@theme-ui/preset-tailwind": "^0.3.0-alpha.4",
@@ -12,7 +12,7 @@ export default ({ setMenuOpen, styles, menuOpen, nav, name, menuList }) => {
12
12
  <Flex
13
13
  sx={{ ...styles, position: `fixed`, zIndex: `100`, width: `100%`, py: 2 }}
14
14
  >
15
- <Container sx={{ py: 0, px: `2rem` }}>
15
+ <Container sx={{ py: 0, px: 4 }}>
16
16
  <div
17
17
  sx={{
18
18
  display: `flex`,
@@ -25,7 +25,7 @@ export default ({
25
25
  minHeight: minHeight, // screenHeight
26
26
  }}
27
27
  >
28
- <Container>
28
+ <Container sx={{ py: 3, px: 4 }}>
29
29
  <animated.div style={titleProps}>
30
30
  <Styled.h1 sx={{ fontSize: [6, 7], fontWeight: `extrabold` }}>
31
31
  {headingTop}
@@ -68,35 +68,33 @@ const Layout = ({ header, main, location, children }) => {
68
68
  nav={nav}
69
69
  />
70
70
 
71
- <div>
72
- <div
73
- ref={nav}
74
- onFocus={e => {
75
- setMenuOpen(true)
76
- }}
77
- onBlur={e => {
78
- setMenuOpen(false)
79
- }}
80
- onClick={e => {
81
- setMenuOpen(false)
82
- }}
83
- >
84
- <Sidebar
85
- open={menuOpen}
86
- sx={{
87
- display: [null, "none"],
88
- }}
89
- />
90
- </div>
91
-
92
- <div
71
+ <div
72
+ ref={nav}
73
+ onFocus={e => {
74
+ setMenuOpen(true)
75
+ }}
76
+ onBlur={e => {
77
+ setMenuOpen(false)
78
+ }}
79
+ onClick={e => {
80
+ setMenuOpen(false)
81
+ }}
82
+ >
83
+ <Sidebar
84
+ open={menuOpen}
93
85
  sx={{
94
- ...main,
95
- pt: `4.75rem`,
86
+ display: [null, "none"],
96
87
  }}
97
- >
98
- {children}
99
- </div>
88
+ />
89
+ </div>
90
+
91
+ <div
92
+ sx={{
93
+ ...main,
94
+ pt: `4.75rem`,
95
+ }}
96
+ >
97
+ {children}
100
98
  </div>
101
99
 
102
100
  {location && location.pathname === "/contact/" ? (
@@ -19,6 +19,10 @@ const MobileNavItem = ({ linkTo, label, icon, isDark }) => {
19
19
  textAlign: `center`,
20
20
  p: `0.75rem`,
21
21
  "&:hover": { textDecoration: `none` },
22
+ "&.active": {
23
+ color: "primary",
24
+ cursor: "default",
25
+ },
22
26
  }
23
27
 
24
28
  return (
@@ -26,7 +30,7 @@ const MobileNavItem = ({ linkTo, label, icon, isDark }) => {
26
30
  to={linkTo}
27
31
  sx={linkStyles}
28
32
  partiallyActive={linkTo === "/" ? false : true}
29
- activeStyle={{ color: colorMode === "light" ? `#2b6cb0` : `pink` }}
33
+ activeClassName="active"
30
34
  >
31
35
  <span>{icon}</span>
32
36
  <div>{label}</div>
@@ -1,8 +1,8 @@
1
1
  export default {
2
2
  Container: {
3
- py: 3,
4
- width: ["100%", "90%"],
5
- maxWidth: "1168px",
3
+ // py: 3,
4
+ // width: ["100%", "90%"],
5
+ // maxWidth: "1168px",
6
6
  },
7
7
  Header: {
8
8
  primary: {