Skip to content

Commit e0cbeb8

Browse files
author
Genki Katsutani
committed
Merge branch 'develop'
2 parents 8a5d85d + cb8bddb commit e0cbeb8

19 files changed

+2428
-1252
lines changed

.eslintrc

-11
This file was deleted.

.markuplintrc

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
"invalid-attr": false,
1616
"deprecated-element": true
1717
}
18+
},
19+
{
20+
"selector": "path",
21+
"rules": {
22+
"invalid-attr": false
23+
}
1824
}
1925
]
2026
}

.vscode/settings.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33
"emmet.includeLanguages": {
44
"riot": "html"
55
},
6-
"files.associations": {
7-
"*.riot": "html"
8-
},
96
"prettier.semi": false,
107
"prettier.singleQuote": true,
118
"cssvar.files": [
129
"./node_modules/open-props/open-props.min.css",
13-
// if you have an alternative path to where your styles are located
14-
// you can add it in this array of files
1510
"assets/styles/variables.css"
1611
],
17-
// Do not ignore node_modules css files, which is ignored by default
1812
"cssvar.ignore": [],
19-
// add support for autocomplete in JS or JS like files
20-
"cssvar.extensions": ["css", "postcss", "html"]
13+
"cssvar.extensions": ["css", "postcss", "html"],
14+
"file_types": {
15+
"HTML": ["riot"]
16+
}
2117
}

README.md

+23-16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Riot.js を使って静的な HTML や SPA を制作するためのテンプレ
55
## 開発用コマンド一覧
66

77
### 開発用タスク
8+
89
```bash
910
npm run start
1011
```
@@ -17,7 +18,7 @@ npm run build
1718

1819
## コーディングスタイルガイドライン(🚧 整備中 🚧)
1920

20-
### HTML/CSS
21+
### HTML/CSS
2122

2223
HTML と CSS は原則 [Google HTML/CSS Style Guide](https://google.github.io/styleguide/htmlcssguide.html#Protocol) に準拠することを目指します。
2324

@@ -35,15 +36,15 @@ ITCSS と BEM に基づいて命名します。
3536

3637
ITCSS のレイヤー名は意味性をよりわかりやすく以下のようにアレンジしています。
3738

38-
|レイヤー名|役割|
39-
|---|---|
40-
|Setting|CSS 変数などを定義|
41-
|Tools|Mixin などを定義するレイヤー(SASS を使っていないので未使用)|
42-
|Generic|リセット CSS(sanitize.css)|
43-
|Elements|デフォルトの要素セレクタスタイルなどを定義|
44-
|Objects|サイトのデザインに依存しない汎用的なクラスを定義|
45-
|Components|サイトのデザインに直結したクラスを定義|
46-
|Utilities|緊急的な上書き用のユーティリティクラスを定義|
39+
| レイヤー名 | 役割 |
40+
| ---------- | ------------------------------------------------------------- |
41+
| Setting | CSS 変数などを定義 |
42+
| Tools | Mixin などを定義するレイヤー(SASS を使っていないので未使用) |
43+
| Generic | リセット CSS(sanitize.css) |
44+
| Elements | デフォルトの要素セレクタスタイルなどを定義 |
45+
| Objects | サイトのデザインに依存しない汎用的なクラスを定義 |
46+
| Components | サイトのデザインに直結したクラスを定義 |
47+
| Utilities | 緊急的な上書き用のユーティリティクラスを定義 |
4748

4849
#### IDセレクター、要素セレクターは基本使わず、スタイルの詳細度は原則 010 を保つ。
4950

@@ -53,21 +54,27 @@ CSS ファイルに記述するスタイルは、極力 010 (クラス1つ分
5354
##### 詳細度が 010 になる記述例
5455

5556
```css
56-
.c-class-name { }
57-
.c-class-name > * { }
58-
.c-class-name > * + * { }
57+
.class-name {
58+
}
59+
.class-name > * {
60+
}
61+
.class-name > * + * {
62+
}
5963
```
6064

6165
#### ステート(状態変化)によるスタイルの変化は属性値を使う
6266

6367
```css
64-
.c-button { }
68+
.button {
69+
}
6570

6671
/* data 属性値 */
67-
.c-button[data-active] { }
72+
.button[data-active] {
73+
}
6874

6975
/* WAI-ARIA 属性値 */
70-
.c-button[aria-selected="true"] { }
76+
.button[aria-selected='true'] {
77+
}
7178
```
7279

7380
##### 理由

eslint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default [{}]

0 commit comments

Comments
 (0)