Skip to content

Commit aad7765

Browse files
committed
add npm, stylelint for css and eslint
1 parent e055a23 commit aad7765

File tree

6 files changed

+3319
-19
lines changed

6 files changed

+3319
-19
lines changed

.eslintrc.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
extends: [
7+
'airbnb-base',
8+
],
9+
globals: {
10+
Atomics: 'readonly',
11+
SharedArrayBuffer: 'readonly',
12+
},
13+
parserOptions: {
14+
ecmaVersion: 2018,
15+
sourceType: 'module',
16+
},
17+
rules: {
18+
},
19+
};

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public/
2+
node_modules
3+
.vscode/

.stylelintrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-standard"
3+
}

assets/css/styles.css

+3-19
Original file line numberDiff line numberDiff line change
@@ -452,17 +452,6 @@ dd {
452452

453453
/* ******************* header ******************************************* */
454454

455-
/* .header {
456-
grid-area: header;
457-
display: grid;
458-
grid-gap: 8px;
459-
gap: 8px;
460-
grid-template-columns: auto auto 1fr;
461-
grid-template-areas: "logo logotype toplinks";
462-
max-width: 100%;
463-
padding: var(--body-padding);
464-
} */
465-
466455
.header {
467456
display: flex;
468457
flex-wrap: wrap;
@@ -567,11 +556,6 @@ dd {
567556
list-style-type: none;
568557
}
569558

570-
/* .leftnavmenu > ul ul {
571-
padding-left: 1rem;
572-
margin-left: 0.346rem;
573-
} */
574-
575559
.leftnavroot {
576560
margin: 0;
577561
padding: 0;
@@ -659,7 +643,7 @@ dd {
659643
padding-left: 1rem;
660644
}
661645

662-
/* added to element via .js onclick - shows hidden nested nav block */
646+
/* added to element via .js on-click - shows hidden nested nav block */
663647
.expand {
664648
border-left: thin solid var(--primary-light-variant);
665649
display: block;
@@ -1267,7 +1251,7 @@ td > code,
12671251
grid-template-columns: 1fr;
12681252
grid-template-areas:
12691253
"header"
1270-
/* "actionbar" */
1254+
/* "action-bar" */
12711255
"content"
12721256
"footer";
12731257
}
@@ -1409,7 +1393,7 @@ article a:focus,
14091393
this looks hideous & surprising on mouse navigation.
14101394
however, this is an accessibility issue in that you
14111395
WOULDN'T want to remove outline from keyboard users
1412-
to show element is focusable, therefore, for the benefit
1396+
to show element is focus-able, therefore, for the benefit
14131397
of chrome and only chrome, least bad option is to style
14141398
color to something brand appropriate.
14151399
*/

0 commit comments

Comments
 (0)