@akimeaki/reset-css 0.4.1 → 0.5.0
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/README.md +15 -0
- package/modules/reset.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,8 +6,23 @@ npm install @akimeaki/reset-css
|
|
|
6
6
|
|
|
7
7
|
# 使い方
|
|
8
8
|
|
|
9
|
+
## 読み込み準
|
|
10
|
+
|
|
11
|
+
以下の順番で読み込むことで`@akimeaki/reset-css`のスタイルが一番下になります。
|
|
12
|
+
|
|
9
13
|
```js
|
|
10
14
|
import "@akimeaki/reset-css";
|
|
15
|
+
import "上書きしたいオリジナルスタイル.scss";
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## カスケードレイヤー
|
|
19
|
+
|
|
20
|
+
`@akimeaki/reset-css`は`aki-reset`layer配下に設定されています。
|
|
21
|
+
|
|
22
|
+
以下のような形でカスケードレイヤーの順序を設定することを推奨
|
|
23
|
+
|
|
24
|
+
```css
|
|
25
|
+
@layer aki-reset, <他に使いたいレイヤー1>, <他に使いたいレイヤー2>;
|
|
11
26
|
```
|
|
12
27
|
|
|
13
28
|
# License
|
package/modules/reset.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer
|
|
1
|
+
@layer aki-reset{body{font-family:"游ゴシック体",YuGothic,"游ゴシック","メイリオ",Meiryo,"Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3","MS Pゴシック",sans-serif;font-size:18px;line-height:1;color:#494949;text-decoration:none;font-weight:normal;font-variant-ligatures:none;-webkit-tap-highlight-color:rgba(0,0,0,0);word-wrap:break-word;overflow-wrap:break-word;word-break:break-word}*{box-sizing:inherit;box-sizing:border-box;padding:0;margin:0;text-align:left;word-wrap:inherit;overflow-wrap:inherit;word-break:inherit;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;text-decoration:inherit;font-weight:inherit;font-variant-ligatures:inherit;-webkit-tap-highlight-color:inherit;border:none}*:focus{outline:none}html,body{width:100%;height:100%}ul,ol{padding-block-start:0;padding-block-end:0;padding-inline-start:40px;margin-inline-start:0;margin-inline-end:0}ul *,ol *{padding-inline-start:0}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akimeaki/reset-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./modules/reset.css",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"format": "prettier --write './**/*'",
|
|
16
16
|
"build": "rm -rf ./modules/* && sass --no-source-map --style=compressed ./src/reset.scss ./modules/reset.css",
|
|
17
|
-
"
|
|
17
|
+
"push": "npm run build && npm login && npm publish --access=public"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"prettier": "3.3.3",
|