@caweb/webpack 1.3.16 → 1.3.18

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.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * External Dependencies
3
+ */
4
+ import fs from 'fs';
5
+ import path from 'path';
6
+
7
+ /**
8
+ * Internal dependencies
9
+ */
10
+ import JSHintPlugin from '../index.js';
11
+
12
+ let plugins = [
13
+ new JSHintPlugin()
14
+ ];
15
+
16
+ export default {
17
+ plugins
18
+ };
@@ -1,247 +0,0 @@
1
-
2
- /*
3
- * JSHint
4
- */
5
- body {
6
- --body-margin: 2rem;
7
-
8
- /* Body colours */
9
- --body-bg: #fff;
10
- --body-fg: #111;
11
-
12
- /* Nav & link colours */
13
- --nav-bg: #eee;
14
- --nav-bg-hover: #bbb;
15
- --nav-fg: #11c;
16
-
17
- /* Heading colours */
18
- --h-fg: #222;
19
- --h-bg: #eee;
20
-
21
- /* Border style for bordered components */
22
- --component-border: 1px solid #aaa;
23
-
24
- /* Consistent component margins */
25
- --component-margin-sm: 1.5rem;
26
- --component-margin-lg: 3rem;
27
-
28
- /* Colour chips */
29
- --count-bg: #eee;
30
- --count-border: var(--component-border);
31
- }
32
- /*
33
- * Dark mode
34
- */
35
- body.is-dark-mode {
36
- /* Body colours */
37
- --body-bg: #111;
38
- --body-fg: #fff;
39
-
40
- /* Nav & link colours */
41
- --nav-bg: #444;
42
- --nav-bg-hover: #222;
43
- --nav-fg: #bcf;
44
-
45
- /* Heading colours */
46
- --h-fg: #eee;
47
- --h-bg: #222;
48
-
49
- /* Border style for bordered components */
50
- --component-border: 1px solid #666;
51
-
52
- /* Consistent component margins */
53
- --component-margin-sm: 1.5rem;
54
- --component-margin-lg: 3rem;
55
-
56
-
57
- /* Colour chips */
58
- --count-bg: #111;
59
- --count-border: var(--component-border);
60
- }
61
- /*
62
- * General
63
- */
64
- * {
65
- box-sizing: border-box;
66
- }
67
-
68
- html {
69
- scroll-behavior: smooth;
70
-
71
- @media (prefers-reduced-motion: reduce) {
72
- scroll-behavior: auto;
73
- }
74
- }
75
-
76
- body {
77
- background-color: var(--body-bg);
78
- color: var(--body-fg);
79
- font-family: sans-serif;
80
- margin: var(--body-margin);
81
- }
82
-
83
- a {
84
- color: var(--nav-fg);
85
- }
86
- p{
87
- margin: 0 0 .5em 0
88
- }
89
- h1, h2 {
90
- font-weight: normal;
91
- }
92
-
93
- h1, h2, h3 {
94
- color: var(--h-fg);
95
- margin: 0 0 var(--component-margin-sm) 0;
96
- }
97
- /*
98
- * Layout
99
- */
100
- #main{
101
- display: flex;
102
- }
103
- aside {
104
- margin-right: calc(1.5* var(--body-margin));
105
- padding-right: calc(1* var(--body-margin));
106
- border-right: var(--component-border);
107
- }
108
- #information{
109
- flex-grow: 1
110
- }
111
- /*
112
- * Hints
113
- */
114
- .hint {
115
- margin-bottom: var(--component-margin-lg);
116
- }
117
- .hint__header {
118
- align-items: baseline;
119
- background-color: var(--h-bg);
120
- display: flex;
121
- justify-content: space-between;
122
- margin-right: calc(-1 * var(--body-margin));
123
- margin-left: calc(-1 * var(--body-margin));
124
- margin-bottom: var(--component-margin-sm);
125
- padding: var(--component-margin-sm) var(--body-margin) 0;
126
- position: sticky;
127
- top: 0;
128
- z-index: 1;
129
- }
130
-
131
- /*
132
- * Lists
133
- */
134
- ul,
135
- ol {
136
- padding: 0 0 0 2em;
137
- }
138
- li {
139
- margin: 0 0 2em 0;
140
- }
141
- li li {
142
- margin: 0;
143
- }
144
- /*
145
- * Header, nav, 'back to top' button
146
- */
147
- .site__header {
148
- align-items: baseline;
149
- display: flex;
150
- flex-wrap: wrap;
151
- justify-content: space-between;
152
- }
153
- .nav {
154
- margin-bottom: var(--component-margin-sm);
155
- }
156
-
157
- .nav ul {
158
- display: flex;
159
- justify-content: flex-start;
160
- align-items: center;
161
- list-style: none;
162
- padding: 0;
163
- }
164
-
165
- .nav li {
166
- margin-bottom: var(--component-margin-sm);
167
- margin: 0 0.5em 0 0;
168
- }
169
-
170
- .nav a {
171
- display: block;
172
- height: 100%;
173
- }
174
-
175
- .nav a,
176
- .btn {
177
- background-color: var(--nav-bg);
178
- padding: 0.5em;
179
- text-decoration: none;
180
- transition: background-color 0.2s ease;
181
- }
182
-
183
- .nav a:hover,
184
- .nav a:focus,
185
- .btn:hover,
186
- .btn:focus {
187
- background-color: var(--nav-bg-hover);
188
- }
189
-
190
- .nav a:focus,
191
- .btn:focus {
192
- outline: 4px dashed var(--nav-fg);
193
- }
194
-
195
- .btn {
196
- font-size: 1.2em;
197
- margin-bottom: var(--component-margin-sm);
198
- text-align: center;
199
- }
200
- /*
201
- * Count component on colour chips
202
- */
203
- .count {
204
- background-color: var(--count-bg);
205
- border: var(--count-border);
206
- border-radius: 50%;
207
- box-sizing: border-box;
208
- color: var(--count-fg);
209
- display: inline-block;
210
- height: auto;
211
- min-width: 2.3em;
212
- padding: 0.5em;
213
- text-align: center;
214
-
215
- /* Counteract .chip:hover */
216
- font-weight: normal;
217
- text-shadow: none;
218
- }
219
- /*
220
- * Darkmode switch
221
- */
222
- .button__theme-toggle {
223
- background: transparent;
224
- border: none;
225
- cursor: pointer;
226
- margin-bottom: 0;
227
- }
228
-
229
- .button__theme-toggle::before {
230
- content: "🌛";
231
- font-size: 1.5rem;
232
- }
233
-
234
- body.is-dark-mode .button__theme-toggle::before {
235
- content: "🌞";
236
- }
237
-
238
- /*
239
- * Link Icon
240
- */
241
- .link{
242
- text-decoration: none;
243
- cursor: pointer;
244
- }
245
- .link::before{
246
- content: "🔗";
247
- }
@@ -1,7 +0,0 @@
1
- <html>
2
- <head>
3
- <title>{{ title }}</title>
4
- </head>
5
- <body>
6
- </body>
7
- </html>
@@ -1,25 +0,0 @@
1
-
2
-
3
- const jsHint = {};
4
-
5
- document.addEventListener( 'DOMContentLoaded', () => {
6
- const button = document.querySelector( '.button__theme-toggle' );
7
-
8
- jsHint.toggleDarkMode = function() {
9
- const isDarkMode = document.body.classList.contains( 'is-dark-mode' );
10
- if ( isDarkMode ) {
11
- button.setAttribute( 'aria-pressed', 'false' );
12
- document.body.classList.remove( 'is-dark-mode' );
13
- } else {
14
- button.setAttribute( 'aria-pressed', 'true' );
15
- document.body.classList.add( 'is-dark-mode' );
16
- }
17
- }
18
-
19
- // Set is-dark-mode class if user has requested dark mode.
20
- if ( window.matchMedia( '(prefers-color-scheme: dark)' ).matches ){
21
- document.body.classList.add( 'is-dark-mode' );
22
- button.setAttribute( 'aria-pressed', 'true' );
23
- }
24
-
25
- });