pdap-design-system 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pdap-design-system",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Global styles for PDAP apps",
5
5
  "main": "system/css/global-styles.css",
6
6
  "directories": {
@@ -546,7 +546,7 @@ strong {
546
546
  top: 100%;
547
547
  left: 0;
548
548
  width: 100%; /* Full width */
549
- height: calc(100% - 76px);
549
+ height: calc(100% - 112px);
550
550
  z-index: 999;
551
551
  flex-direction: column;
552
552
  align-items: center;
package/system/demo.html CHANGED
@@ -8,7 +8,7 @@
8
8
  <meta name="keywords" content="design, system, design system">
9
9
  <link href="css/normalize.css" rel="stylesheet" type="text/css">
10
10
  <link href="css/global-styles.css" rel="stylesheet" type="text/css">
11
- <link href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
11
+ <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
12
12
  <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
13
13
  <script type="text/javascript">WebFont.load({ google: { families: ["Libre Franklin:100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"] }});</script>
14
14
  <link rel="preconnect" href="https://fonts.googleapis.com">
@@ -56,14 +56,14 @@
56
56
  <div class="nav-container-last">
57
57
  <div class="nav-container container">
58
58
  <div class="menu-button nav-button">
59
- <div class="nav-menu-icon"></div>
59
+ <div class="nav-menu-icon"><i class="fa fa-bars"></i></div>
60
60
  </div>
61
61
  </div>
62
62
  </div>
63
- <nav role="navigation" class="nav-menu nav-menu">
64
- <a href="index.html" aria-current="page" class="nav-link nav-link">Home</a>
65
- <a href="data-sources.html" aria-current="page" class="nav-link nav-link current">Current page</a>
66
- <a href="donate.html" class="nav-link nav-link">Page</a>
63
+ <nav role="navigation" class="nav-menu">
64
+ <a href="index.html" class="nav-link">Home</a>
65
+ <a href="demo.html" aria-current="page" class="nav-link current">Current page</a>
66
+ <a href="donate.html" class="nav-link">Page</a>
67
67
  </nav>
68
68
  </div>
69
69
  <div class="section">
@@ -179,6 +179,7 @@ It has many lines.</code></pre>
179
179
  <p class="footer-p"><a href="https://www.guidestar.org/profile/85-4207132" target="_blank"><img src="https://widgets.guidestar.org/gximage2?o=9973356&l=v4" /></a><img src="images/acronym.svg" loading="lazy" width="150" alt="" class="footer-logo"></p>
180
180
  </div>
181
181
  </div>
182
+ <script src="js/nav.js" type="text/javascript"></script>
182
183
  <!-- [if lte IE 9]><script src="https://cdnjs.cloudflare.com/ajax/libs/placeholders/3.0.2/placeholders.min.js"></script><![endif] -->
183
184
  </body>
184
185
  </html>
@@ -0,0 +1,12 @@
1
+ document.addEventListener("DOMContentLoaded", function() {
2
+ var menuButton = document.querySelector(".menu-button");
3
+ var navMenu = document.querySelector(".nav-menu");
4
+
5
+ menuButton.addEventListener("click", function() {
6
+ if (navMenu.style.display === "none" || navMenu.style.display === "") {
7
+ navMenu.style.display = "block";
8
+ } else {
9
+ navMenu.style.display = "none";
10
+ }
11
+ });
12
+ });