Skip to content

Commit 9062b35

Browse files
committed
typography 拓展 width height
增加 resize 样式重置
1 parent 90a8b5c commit 9062b35

17 files changed

+8472
-409
lines changed

dist/acss-helper.css

Lines changed: 3315 additions & 117 deletions
Large diffs are not rendered by default.

docs/css/acss-helper.css

Lines changed: 3315 additions & 117 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 1477 additions & 0 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
"main": "index.js",
66
"homepage": "https://idenpin.github.io/acss-helper/",
77
"scripts": {
8-
"start": "run-p build:dev watch",
8+
"start": "run-p build:dev watch docs",
99
"build:dev": "run-s sass copy",
10+
"docs": "browser-sync start --server --files ** /*.css, **/*.html",
1011
"build": "run-s clean sass sassmin postcss copy",
1112
"sass": "node-sass --output-style expanded src/helper.scss dist/acss-helper.css",
1213
"sassmin": "node-sass --output-style compressed src/helper.scss dist/acss-helper.min.css",
@@ -37,6 +38,7 @@
3738
"onchange": "^6.1.0",
3839
"postcss-cli": "^6.1.3",
3940
"postcss-header": "^1.0.0",
40-
"rimraf": "^3.0.0"
41+
"rimraf": "^3.0.0",
42+
"vue": "^2.6.10"
4143
}
42-
}
44+
}

src/_background.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
background-color: $colorListKey;
44
}
55
@each $colorKey, $colorVal in $colorListVal {
6-
.border-#{$colorListKey}-#{$colorKey}{
6+
.bg-#{$colorListKey}-#{$colorKey}{
77
background-color: $colorVal;
88
}
99
}

src/_border.scss

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
.border-none {
55
border: none;
66
}
7+
.border {
8+
border: 1px solid ;
9+
}
710

811
// border-width
912
@each $widthKey, $widthVal in $border-width {
@@ -13,24 +16,31 @@
1316
}
1417
}
1518
}
19+
@each $dirKey, $dirVal in $direction {
20+
.border-#{$dirKey}{
21+
border-#{$dirVal}-width: 1px;
22+
}
23+
}
1624

1725

1826
// border-style
1927
@each $styleKey, $styleVal in $border-style {
20-
.border-#{$styleKey}{
21-
border-style: $styleVal;
28+
@each $dirKey, $dirVal in $direction {
29+
.border-#{$dirKey}-#{$styleKey}{
30+
border-#{$dirVal}-style: $styleVal
31+
}
2232
}
2333
}
2434

2535

2636
// border-color
2737
@each $colorListKey, $colorListVal in $border-color {
2838
.border-#{$colorListKey}{
29-
border-style: $colorListKey;
39+
border-color: $colorListKey;
3040
}
3141
@each $colorKey, $colorVal in $colorListVal {
3242
.border-#{$colorListKey}-#{$colorKey}{
33-
border-style: $colorVal;
43+
border-color: $colorVal;
3444
}
3545
}
3646
}

src/_font.scss

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/_grid.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
// breakpoint 768
2828
@media (min-width: 576px) {
2929
// looping 12-grids default
30-
@include loop-grid-columns(12);
30+
@include loop-grid-columns($grid-columns);
3131
// looping 10-grids
3232
@include loop-grid-columns(10);
3333
// equal grid

src/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
@mixin loop-grid-columns($columns) {
4343
@for $i from 1 through $columns {
44-
@if ($columns==12) {
44+
@if ($columns == 12) {
4545
.col-#{$i} {
4646
flex: 0 0 percentage($i / $columns);
4747
max-width: percentage($i / $columns);

0 commit comments

Comments
 (0)