| name: Node.js Package | ||
| # on: [push] | ||
| on: | ||
| release: | ||
| types: [created] | ||
| # release: | ||
| # types: [created] | ||
| push: | ||
| tags: | ||
| - "v*.*.*" | ||
@@ -22,12 +23,12 @@ jobs: | ||
| publish-gpr: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions/setup-node@v1 | ||
| with: | ||
| node-version: 12 | ||
| registry-url: https://npm.pkg.github.com/ | ||
| - run: npm publish | ||
| env: | ||
| NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
| # publish-gpr: | ||
| # runs-on: ubuntu-latest | ||
| # steps: | ||
| # - uses: actions/checkout@v2 | ||
| # - uses: actions/setup-node@v1 | ||
| # with: | ||
| # node-version: 12 | ||
| # registry-url: https://npm.pkg.github.com/ | ||
| # - run: npm publish | ||
| # env: | ||
| # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} |
+18
-22
@@ -12,18 +12,14 @@ /* | ||
| // Font size & line height | ||
| .fz(@font-size, @line-height: null, @height: null) { | ||
| .fz(@font-size, @line-height: inherit, @height: auto) { | ||
| font-size: @font-size; | ||
| & when (@line-height) { | ||
| line-height: @line-height; | ||
| } | ||
| & when (@height) { | ||
| height: @height; | ||
| } | ||
| line-height: @line-height; | ||
| height: @height; | ||
| } | ||
| // line height | ||
| .lh(@line-height, @height: null) { | ||
| .lh(@line-height, @height: auto) { | ||
| line-height: @line-height; | ||
| & when (@height) { height: @height; } | ||
| height: @height; | ||
| } | ||
| // Font style | ||
@@ -46,4 +42,4 @@ .bold(@bold:bold){font-weight:@bold;} | ||
| color: @color; | ||
| & when (@hovercolor) { | ||
| & when (iscolor(@hovercolor)) { | ||
| &:hover { | ||
@@ -72,3 +68,3 @@ color: @hovercolor; | ||
| overflow-wrap: normal; | ||
| text-overflow:@style; | ||
@@ -113,3 +109,3 @@ overflow:hidden; | ||
| /* Inline(-Block) Align -------------------------------------*/ | ||
| //水平(x轴)对齐方式 | ||
@@ -120,13 +116,13 @@ .x(@align:center){text-align:@align;} | ||
| //垂直(y轴)对齐方式 | ||
| .y(@align:middle){vertical-align:@align;} | ||
| .y(@align:middle){vertical-align:@align;} | ||
| .auto(y){display:table-cell;vertical-align:middle;} | ||
| //层叠级别(z轴) | ||
| .z(@index:1){z-index:@index;} | ||
| .z(@index:1){z-index:@index;} | ||
| /* Box -------------------------------------*/ | ||
| /* Box -------------------------------------*/ | ||
| .w(@width){width:@width;} | ||
| .h(@height){height:@height;} | ||
| .h(@height){height:@height;} | ||
| .size(@width,@height:@width){width:@width;height:@height;} | ||
@@ -140,3 +136,3 @@ | ||
| /* Layout -------------------------------------*/ | ||
| /* Layout -------------------------------------*/ | ||
@@ -168,3 +164,3 @@ | ||
| /* Other -------------------------------------*/ | ||
| /* Other -------------------------------------*/ | ||
@@ -193,3 +189,3 @@ .pointer(){cursor:pointer;} | ||
| /* Deprecated -------------------------------------*/ | ||
@@ -213,2 +209,2 @@ | ||
+1
-1
@@ -5,3 +5,3 @@ ## Base.less 5.0 | ||
| 字体:`.lhh`,`.tip`,`.full`,`.di`,`.hide`,`.show`,`.noclip` | ||
| 布局:`.fbox`,`.flist`,`.iblock`,`.iflex`,`.auto(o)`,`.mid`,`.pf`,`.ct`,`.fix`,``.fixed`,`po`,`.igrid`,`.cols` | ||
| 布局:`.fbox`,`.flist`,`.iblock`,`.iflex`,`.auto(o)`,`.mid`,`.pf`,`.ct`,`.fix`,`.fixed`,`po`,`.igrid`,`.cols` | ||
| 图像:`.gradient`,`.tb`,`.blur`,`.sprite` | ||
@@ -8,0 +8,0 @@ 其它:`.tsfix`,`.iconfont` |
+1
-1
| { | ||
| "name": "csslab", | ||
| "version": "5.0.0", | ||
| "version": "5.0.2", | ||
| "description": "用于快速进行页面重构的CSS函数库", | ||
@@ -5,0 +5,0 @@ "keywords": ["css","less"], |
47623
-0.17%