mc-react-header 0.2.1 → 0.3.3
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/.github/workflows/release_and_publish.yml +41 -0
- package/README.md +21 -78
- package/dist/Breadcrumbs.css +97 -101
- package/dist/Breadcrumbs.js +11 -11
- package/dist/Navbar.css +128 -129
- package/dist/Navbar.js +69 -132
- package/dist/index.css +14 -15
- package/dist/index.js +19 -41
- package/package.json +57 -56
- package/public/index.html +43 -43
- package/public/manifest.json +25 -25
- package/public/robots.txt +3 -3
- package/src/App.css +38 -38
- package/src/App.js +23 -23
- package/src/App.test.js +14 -14
- package/src/MaterialsCloudHeader/Breadcrumbs.css +97 -101
- package/src/MaterialsCloudHeader/Breadcrumbs.js +15 -19
- package/src/MaterialsCloudHeader/Navbar.css +128 -129
- package/src/MaterialsCloudHeader/Navbar.js +104 -131
- package/src/MaterialsCloudHeader/index.css +14 -15
- package/src/MaterialsCloudHeader/index.js +16 -25
- package/src/index.css +13 -13
- package/src/index.js +18 -18
- package/src/reportWebVitals.js +13 -13
- package/src/setupTests.js +5 -5
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Release and publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release_and_publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- name: Checkout code
|
|
13
|
+
uses: actions/checkout@v2
|
|
14
|
+
|
|
15
|
+
- name: Set up Node.js
|
|
16
|
+
uses: actions/setup-node@v3
|
|
17
|
+
with:
|
|
18
|
+
node-version: "22"
|
|
19
|
+
registry-url: "https://registry.npmjs.org/"
|
|
20
|
+
|
|
21
|
+
- name: Install project dependencies
|
|
22
|
+
run: npm ci
|
|
23
|
+
|
|
24
|
+
- name: Build the dist folder
|
|
25
|
+
run: npm run build
|
|
26
|
+
|
|
27
|
+
- name: Create GitHub Release
|
|
28
|
+
id: create_release
|
|
29
|
+
uses: actions/create-release@v1
|
|
30
|
+
env:
|
|
31
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
with:
|
|
33
|
+
tag_name: ${{ github.ref }}
|
|
34
|
+
release_name: ${{ github.ref }}
|
|
35
|
+
draft: false
|
|
36
|
+
prerelease: false
|
|
37
|
+
|
|
38
|
+
- name: Publish to npm
|
|
39
|
+
run: npm publish
|
|
40
|
+
env:
|
|
41
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1,78 +1,21 @@
|
|
|
1
|
-
# Materials Cloud header component
|
|
2
|
-
|
|
3
|
-
A React component for Materials Cloud header, built just with CSS.
|
|
4
|
-
|
|
5
|
-
See `src/App.js` on how to use it.
|
|
6
|
-
|
|
7
|
-
Published to npm, install with `npm install mc-react-header`.
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
The page will reload when you make changes.\
|
|
23
|
-
You may also see any lint errors in the console.
|
|
24
|
-
|
|
25
|
-
### `npm test`
|
|
26
|
-
|
|
27
|
-
Launches the test runner in the interactive watch mode.\
|
|
28
|
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
|
29
|
-
|
|
30
|
-
### `npm run build`
|
|
31
|
-
|
|
32
|
-
Builds the app for production to the `build` folder.\
|
|
33
|
-
It correctly bundles React in production mode and optimizes the build for the best performance.
|
|
34
|
-
|
|
35
|
-
The build is minified and the filenames include the hashes.\
|
|
36
|
-
Your app is ready to be deployed!
|
|
37
|
-
|
|
38
|
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
|
39
|
-
|
|
40
|
-
### `npm run eject`
|
|
41
|
-
|
|
42
|
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
|
43
|
-
|
|
44
|
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
|
45
|
-
|
|
46
|
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
|
47
|
-
|
|
48
|
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
|
49
|
-
|
|
50
|
-
## Learn More
|
|
51
|
-
|
|
52
|
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
|
53
|
-
|
|
54
|
-
To learn React, check out the [React documentation](https://reactjs.org/).
|
|
55
|
-
|
|
56
|
-
### Code Splitting
|
|
57
|
-
|
|
58
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
|
59
|
-
|
|
60
|
-
### Analyzing the Bundle Size
|
|
61
|
-
|
|
62
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
|
63
|
-
|
|
64
|
-
### Making a Progressive Web App
|
|
65
|
-
|
|
66
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
|
67
|
-
|
|
68
|
-
### Advanced Configuration
|
|
69
|
-
|
|
70
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
|
71
|
-
|
|
72
|
-
### Deployment
|
|
73
|
-
|
|
74
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
|
75
|
-
|
|
76
|
-
### `npm run build` fails to minify
|
|
77
|
-
|
|
78
|
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
1
|
+
# Materials Cloud header component
|
|
2
|
+
|
|
3
|
+
A React component for Materials Cloud header, built just with CSS.
|
|
4
|
+
|
|
5
|
+
See `src/App.js` on how to use it.
|
|
6
|
+
|
|
7
|
+
Published to npm, install with `npm install mc-react-header`.
|
|
8
|
+
|
|
9
|
+
## Development
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install
|
|
13
|
+
npm start
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
To make a new version and publish to npm via GitHub Actions:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
npm version <patch/minor/major>
|
|
20
|
+
git push --follow-tags
|
|
21
|
+
```
|
package/dist/Breadcrumbs.css
CHANGED
|
@@ -1,101 +1,97 @@
|
|
|
1
|
-
/* Style the list */
|
|
2
|
-
ul.mc-breadcrumb {
|
|
3
|
-
padding: 7px 10px 7px 20px;
|
|
4
|
-
list-style: none;
|
|
5
|
-
background-color: #f5f5f5;
|
|
6
|
-
border-radius: 2px;
|
|
7
|
-
border: 1px solid #d6d6d6;
|
|
8
|
-
font-size: 16px;
|
|
9
|
-
font-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
margin:
|
|
13
|
-
margin-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
flex-
|
|
18
|
-
/*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
/*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
border: 0;
|
|
99
|
-
display: none;
|
|
100
|
-
}
|
|
101
|
-
|
|
1
|
+
/* Style the list */
|
|
2
|
+
ul.mc-breadcrumb {
|
|
3
|
+
padding: 7px 10px 7px 20px;
|
|
4
|
+
list-style: none;
|
|
5
|
+
background-color: #f5f5f5;
|
|
6
|
+
border-radius: 2px;
|
|
7
|
+
border: 1px solid #d6d6d6;
|
|
8
|
+
font-size: 16px;
|
|
9
|
+
font-family: "Open Sans", sans-serif;
|
|
10
|
+
text-align: left;
|
|
11
|
+
margin: 6px;
|
|
12
|
+
margin-bottom: 20px;
|
|
13
|
+
/* margin-top: 20px; */
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
/* flex-wrap: wrap; */
|
|
18
|
+
/* gap: 40px; */
|
|
19
|
+
justify-content: start;
|
|
20
|
+
align-items: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Display list items side by side */
|
|
24
|
+
ul.mc-breadcrumb li {
|
|
25
|
+
display: inline;
|
|
26
|
+
line-height: 1;
|
|
27
|
+
margin-right: 46px;
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Add a color to all links inside the list */
|
|
32
|
+
ul.mc-breadcrumb li a {
|
|
33
|
+
color: #303f9f;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
/* position: relative; */
|
|
36
|
+
/* padding: 0px 5px 0px 50px; */
|
|
37
|
+
/* padding: 10px 0 10px 65px; */
|
|
38
|
+
/* z-index: 3; */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Add a color on mouse-over, if the <a> has href defined */
|
|
42
|
+
ul.mc-breadcrumb li a[href]:hover {
|
|
43
|
+
text-decoration: underline;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* prevent _reboot.scss from bootstrap to override this */
|
|
47
|
+
ul.mc-breadcrumb li a:not([href]):hover {
|
|
48
|
+
color: #303f9f;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mc-breadcrumb li a::after {
|
|
52
|
+
content: " ";
|
|
53
|
+
display: block;
|
|
54
|
+
width: 0;
|
|
55
|
+
height: 0;
|
|
56
|
+
border-top: 50px solid transparent; /* Go big on the size, and let overflow hide */
|
|
57
|
+
border-bottom: 50px solid transparent;
|
|
58
|
+
border-left: 30px solid #f5f5f5;
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 50%;
|
|
61
|
+
margin-top: -50px;
|
|
62
|
+
/* left: 100%; */
|
|
63
|
+
z-index: 2;
|
|
64
|
+
right: 0;
|
|
65
|
+
z-index: 2;
|
|
66
|
+
transform: translate(30px, 0);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.mc-breadcrumb li a::before {
|
|
70
|
+
content: " ";
|
|
71
|
+
display: block;
|
|
72
|
+
width: 0;
|
|
73
|
+
height: 0;
|
|
74
|
+
border-top: 50px solid transparent;
|
|
75
|
+
border-bottom: 50px solid transparent;
|
|
76
|
+
border-left: 30px solid #d6d6d6;
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 50%;
|
|
79
|
+
margin-top: -50px;
|
|
80
|
+
margin-left: 2px;
|
|
81
|
+
/* left: 100%; */
|
|
82
|
+
right: 0;
|
|
83
|
+
z-index: 1;
|
|
84
|
+
transform: translate(32px, 0);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.mc-breadcrumb li:last-child a {
|
|
88
|
+
background: transparent !important;
|
|
89
|
+
color: #303f9f;
|
|
90
|
+
/* pointer-events: none;
|
|
91
|
+
cursor: default; */
|
|
92
|
+
}
|
|
93
|
+
.mc-breadcrumb li:last-child a::after,
|
|
94
|
+
.mc-breadcrumb li:last-child a::before {
|
|
95
|
+
border: 0;
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
package/dist/Breadcrumbs.js
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
6
|
+
exports.default = void 0;
|
|
8
7
|
require("./Breadcrumbs.css");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const Breadcrumbs = _ref => {
|
|
9
|
+
let {
|
|
10
|
+
breadcrumbsPath
|
|
11
|
+
} = _ref;
|
|
12
|
+
return /*#__PURE__*/React.createElement("ul", {
|
|
12
13
|
className: "mc-breadcrumb"
|
|
13
|
-
},
|
|
14
|
-
return /*#__PURE__*/
|
|
14
|
+
}, breadcrumbsPath.map((el, i) => {
|
|
15
|
+
return /*#__PURE__*/React.createElement("li", {
|
|
15
16
|
key: i
|
|
16
|
-
}, /*#__PURE__*/
|
|
17
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
17
18
|
href: el.link
|
|
18
19
|
}, el.name));
|
|
19
20
|
}));
|
|
20
|
-
}
|
|
21
|
-
var _default = Breadcrumbs;
|
|
22
|
-
exports["default"] = _default;
|
|
21
|
+
};
|
|
22
|
+
var _default = exports.default = Breadcrumbs;
|
package/dist/Navbar.css
CHANGED
|
@@ -1,129 +1,128 @@
|
|
|
1
|
-
.mc-navbar {
|
|
2
|
-
background-color: rgb(255, 255, 255);
|
|
3
|
-
overflow: hidden;
|
|
4
|
-
border-bottom: 3px solid #dee6e6;
|
|
5
|
-
z-index: 10;
|
|
6
|
-
font-family: "Open Sans", sans-serif;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.mc-navbar .mc-navbrand {
|
|
10
|
-
float: left;
|
|
11
|
-
display: block;
|
|
12
|
-
text-align: center;
|
|
13
|
-
font-size: 0px;
|
|
14
|
-
padding: 7px 15px 5px 20px;
|
|
15
|
-
/* border: 1px solid green; */
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.mc-navbar .mc-navlink {
|
|
19
|
-
float: left;
|
|
20
|
-
display: block;
|
|
21
|
-
color: #455860;
|
|
22
|
-
font-size: 16px;
|
|
23
|
-
line-height: 32px;
|
|
24
|
-
font-weight: 700;
|
|
25
|
-
text-align: center;
|
|
26
|
-
padding: 14px 15px;
|
|
27
|
-
text-decoration: none;
|
|
28
|
-
/* border: 1px solid green; */
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/* Change the color of links on hover */
|
|
32
|
-
.mc-navbar a:hover {
|
|
33
|
-
color: #8fa5af;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Add an active class to highlight the current page */
|
|
37
|
-
.mc-navbar a.active {
|
|
38
|
-
background-color: #fbfcfc;
|
|
39
|
-
color: #cc1b30;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.more-dropdown {
|
|
43
|
-
padding: 14px 0px;
|
|
44
|
-
float: right;
|
|
45
|
-
/* border: 1px solid rgb(128, 0, 0); */
|
|
46
|
-
/* overflow: hidden; */
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.more-btn {
|
|
50
|
-
color: #455860;
|
|
51
|
-
font-size: 16px;
|
|
52
|
-
line-height: 32px;
|
|
53
|
-
/* display: block; */
|
|
54
|
-
text-decoration: none;
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
text-align: center;
|
|
58
|
-
padding: 21px 20px;
|
|
59
|
-
/* border: 1px solid green; */
|
|
60
|
-
/* margin: 0; Important for vertical align on mobile phones */
|
|
61
|
-
user-select: none;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.dropdown-content {
|
|
65
|
-
display: none;
|
|
66
|
-
position: absolute;
|
|
67
|
-
right: 0;
|
|
68
|
-
background-color: #ffffff;
|
|
69
|
-
min-width: 220px;
|
|
70
|
-
border-radius: 6px;
|
|
71
|
-
border: 2px solid #dee6e6;
|
|
72
|
-
z-index: 100;
|
|
73
|
-
padding: 5px 0px;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.dropdown-content a {
|
|
77
|
-
float: none;
|
|
78
|
-
color: #455860;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/*
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
1
|
+
.mc-navbar {
|
|
2
|
+
background-color: rgb(255, 255, 255);
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
border-bottom: 3px solid #dee6e6;
|
|
5
|
+
z-index: 10;
|
|
6
|
+
font-family: "Open Sans", sans-serif;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.mc-navbar .mc-navbrand {
|
|
10
|
+
float: left;
|
|
11
|
+
display: block;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-size: 0px;
|
|
14
|
+
padding: 7px 15px 5px 20px;
|
|
15
|
+
/* border: 1px solid green; */
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.mc-navbar .mc-navlink {
|
|
19
|
+
float: left;
|
|
20
|
+
display: block;
|
|
21
|
+
color: #455860;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 32px;
|
|
24
|
+
font-weight: 700;
|
|
25
|
+
text-align: center;
|
|
26
|
+
padding: 14px 15px;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
/* border: 1px solid green; */
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Change the color of links on hover */
|
|
32
|
+
.mc-navbar a:hover {
|
|
33
|
+
color: #8fa5af;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* Add an active class to highlight the current page */
|
|
37
|
+
.mc-navbar a.active {
|
|
38
|
+
background-color: #fbfcfc;
|
|
39
|
+
color: #cc1b30;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.more-dropdown {
|
|
43
|
+
padding: 14px 0px;
|
|
44
|
+
float: right;
|
|
45
|
+
/* border: 1px solid rgb(128, 0, 0); */
|
|
46
|
+
/* overflow: hidden; */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.more-btn {
|
|
50
|
+
color: #455860;
|
|
51
|
+
font-size: 16px;
|
|
52
|
+
line-height: 32px;
|
|
53
|
+
/* display: block; */
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
text-align: center;
|
|
58
|
+
padding: 21px 20px;
|
|
59
|
+
/* border: 1px solid green; */
|
|
60
|
+
/* margin: 0; Important for vertical align on mobile phones */
|
|
61
|
+
user-select: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.dropdown-content {
|
|
65
|
+
display: none;
|
|
66
|
+
position: absolute;
|
|
67
|
+
right: 0;
|
|
68
|
+
background-color: #ffffff;
|
|
69
|
+
min-width: 220px;
|
|
70
|
+
border-radius: 6px;
|
|
71
|
+
border: 2px solid #dee6e6;
|
|
72
|
+
z-index: 100;
|
|
73
|
+
padding: 5px 0px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.dropdown-content a {
|
|
77
|
+
float: none;
|
|
78
|
+
color: #455860;
|
|
79
|
+
padding: 10px 14px;
|
|
80
|
+
text-decoration: none;
|
|
81
|
+
display: block;
|
|
82
|
+
text-align: left;
|
|
83
|
+
font-size: 16px;
|
|
84
|
+
line-height: 10px;
|
|
85
|
+
z-index: 100;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.dropdown-content a:hover {
|
|
89
|
+
background-color: #fbfcfc;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dropdown-open {
|
|
93
|
+
display: block;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Show the dropdown menu on hover */
|
|
97
|
+
/* .more-dropdown:hover .dropdown-content {
|
|
98
|
+
display: block;
|
|
99
|
+
} */
|
|
100
|
+
|
|
101
|
+
@media screen and (max-width: 680px) {
|
|
102
|
+
/* .mc-navbar a.menu {
|
|
103
|
+
float: right;
|
|
104
|
+
display: block;
|
|
105
|
+
border: 2px solid #455860;
|
|
106
|
+
} */
|
|
107
|
+
/* .mc-navbar {
|
|
108
|
+
position: relative;
|
|
109
|
+
} */
|
|
110
|
+
.mc-navbar .mc-navlink {
|
|
111
|
+
position: relative;
|
|
112
|
+
float: none;
|
|
113
|
+
display: block;
|
|
114
|
+
text-align: left;
|
|
115
|
+
padding: 2px 20px 2px;
|
|
116
|
+
z-index: 10;
|
|
117
|
+
}
|
|
118
|
+
.mc-navbar .mc-navbrand {
|
|
119
|
+
float: none;
|
|
120
|
+
display: block;
|
|
121
|
+
text-align: left;
|
|
122
|
+
}
|
|
123
|
+
.mc-navbar .more-dropdown {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 0;
|
|
126
|
+
right: 0;
|
|
127
|
+
}
|
|
128
|
+
}
|