pdap-design-system 1.0.4 → 1.0.6
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 +1 -1
- package/system/css/global-styles.css +2 -2
- package/system/demo.html +7 -6
- package/system/js/nav.js +12 -0
package/package.json
CHANGED
@@ -296,7 +296,7 @@ p {
|
|
296
296
|
margin-bottom: 15px;
|
297
297
|
}
|
298
298
|
|
299
|
-
p {
|
299
|
+
p, li {
|
300
300
|
max-width: 43ch;
|
301
301
|
}
|
302
302
|
|
@@ -479,7 +479,7 @@ strong {
|
|
479
479
|
align-items: center;
|
480
480
|
}
|
481
481
|
|
482
|
-
.small p, p.small {
|
482
|
+
.small p, p.small, .small li {
|
483
483
|
font-size:20px;
|
484
484
|
}
|
485
485
|
|
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="
|
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
|
64
|
-
|
65
|
-
<a href="
|
66
|
-
<a href="donate.html" class="nav-link
|
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>
|
package/system/js/nav.js
ADDED
@@ -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
|
+
});
|