fu-kit 1.0.2 → 1.1.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/package.json +1 -1
- package/reset.scss +62 -11
- package/scss.scss +2 -1
- package/src/components/UiButton.vue +1 -1
- package/src/components/UiCodeView.vue +2 -2
- package/src/components/UiCopy.vue +0 -5
- package/src/components/UiIconProvider.vue +948 -501
- package/src/components/UiTagInput.vue +472 -0
- package/src/components/UiTime.vue +127 -0
- package/src/components/UiVar.vue +119 -0
- package/src/entry.js +3 -0
- package/src/scss-kit/fx.scss +10 -0
- package/src/scss-kit/pal_dark.scss +9 -5
- package/src/scss-kit/pal_fu.scss +18 -14
- package/src/scss-kit/pal_light.scss +14 -10
- package/src/scss-kit/typo_default.scss +1 -1
- package/src/scss-kit/ui.scss +6 -0
package/package.json
CHANGED
package/reset.scss
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
@import "src/scss-kit/typo";
|
|
2
2
|
|
|
3
3
|
body {
|
|
4
|
+
@include typo(200);
|
|
5
|
+
|
|
6
|
+
font-family: var(--typo-font-text);
|
|
7
|
+
color: var(--pal-text);
|
|
8
|
+
background-color: var(--pal-bg);
|
|
9
|
+
color-scheme: var(--ui-color-scheme);
|
|
10
|
+
|
|
4
11
|
margin: 0;
|
|
5
12
|
padding: 0;
|
|
6
|
-
|
|
13
|
+
overflow-x: hidden;
|
|
14
|
+
overflow-y: auto;
|
|
7
15
|
}
|
|
8
16
|
|
|
9
17
|
address, article, aside, blockquote, details, dialog, dd, div, dl, dt, fieldset, figcaption,
|
|
@@ -13,7 +21,6 @@ ol, p, pre, section, table, ul {
|
|
|
13
21
|
padding: 0;
|
|
14
22
|
box-sizing: border-box;
|
|
15
23
|
font-family: var(--typo-font-text);
|
|
16
|
-
line-height: 1.2;
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
h1, h2, h3, h4, h5, h6, header {
|
|
@@ -21,7 +28,7 @@ h1, h2, h3, h4, h5, h6, header {
|
|
|
21
28
|
margin: 0;
|
|
22
29
|
padding: 0;
|
|
23
30
|
box-sizing: border-box;
|
|
24
|
-
line-height: 1.
|
|
31
|
+
line-height: 1.25;
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
input, button, textarea, select, span, b, small {
|
|
@@ -32,31 +39,56 @@ input, button, textarea, select, span, b, small {
|
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
pre {
|
|
42
|
+
@include typo(100);
|
|
43
|
+
|
|
44
|
+
text-align: inherit;
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
line-height: 1.25;
|
|
35
49
|
font-family: var(--typo-font-mono);
|
|
36
50
|
}
|
|
37
51
|
|
|
52
|
+
a {
|
|
53
|
+
color: var(--pal-link);
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
|
|
56
|
+
&:hover {
|
|
57
|
+
text-decoration: underline;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:focus, &:active {
|
|
61
|
+
color: var(--pal-link-active);
|
|
62
|
+
text-decoration: underline;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
38
66
|
h1 {
|
|
39
|
-
@include typo(700);
|
|
67
|
+
@include typo(700, 700);
|
|
40
68
|
}
|
|
41
69
|
|
|
42
70
|
h2 {
|
|
43
|
-
@include typo(600);
|
|
71
|
+
@include typo(600, 600);
|
|
44
72
|
}
|
|
45
73
|
|
|
46
74
|
h3 {
|
|
47
|
-
@include typo(500);
|
|
75
|
+
@include typo(500, 500);
|
|
48
76
|
}
|
|
49
77
|
|
|
50
78
|
h4 {
|
|
51
|
-
@include typo(400);
|
|
79
|
+
@include typo(400, 400);
|
|
52
80
|
}
|
|
53
81
|
|
|
54
82
|
h5 {
|
|
55
|
-
@include typo(300);
|
|
83
|
+
@include typo(300, 300);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
h6 {
|
|
87
|
+
@include typo(200, 200);
|
|
56
88
|
}
|
|
57
89
|
|
|
58
90
|
p {
|
|
59
|
-
@include typo(200);
|
|
91
|
+
@include typo(200, 200);
|
|
60
92
|
}
|
|
61
93
|
|
|
62
94
|
small {
|
|
@@ -64,7 +96,8 @@ small {
|
|
|
64
96
|
}
|
|
65
97
|
|
|
66
98
|
label {
|
|
67
|
-
@include typo(
|
|
99
|
+
@include typo(200, 200);
|
|
100
|
+
|
|
68
101
|
display: block;
|
|
69
102
|
}
|
|
70
103
|
|
|
@@ -89,4 +122,22 @@ hr {
|
|
|
89
122
|
border-width: 0 0 var(--ui-lt-border-width) 0;
|
|
90
123
|
border-color: var(--ui-pal-lateral);
|
|
91
124
|
margin: var(--hr-margin, spacing(200)) 0;
|
|
92
|
-
|
|
125
|
+
border-style: solid;
|
|
126
|
+
padding: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
option {
|
|
130
|
+
background: var(--ui-pal-bg);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
input:-webkit-autofill {
|
|
134
|
+
border-radius: calc(var(--ui-lt-border-radius) - var(--ui-lt-border-width));
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
input:autofill {
|
|
138
|
+
border-radius: calc(var(--ui-lt-border-radius) - var(--ui-lt-border-width));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[no-decoration] {
|
|
142
|
+
text-decoration: none !important;
|
|
143
|
+
}
|
package/scss.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import "src/scss-kit/fx";
|
|
1
2
|
@import "src/scss-kit/ui";
|
|
2
3
|
@import "src/scss-kit/media";
|
|
3
4
|
@import "src/scss-kit/colors";
|
|
@@ -7,4 +8,4 @@
|
|
|
7
8
|
@import "src/scss-kit/pal_dark";
|
|
8
9
|
@import "src/scss-kit/pal_fu";
|
|
9
10
|
|
|
10
|
-
@import "src/scss-kit/typo_default";
|
|
11
|
+
@import "src/scss-kit/typo_default";
|
|
@@ -60,7 +60,7 @@ export default defineComponent({
|
|
|
60
60
|
transition: all var(--ui-transition);
|
|
61
61
|
|
|
62
62
|
&._solid {
|
|
63
|
-
padding: var(--ui-button-padding, #{spacing(
|
|
63
|
+
padding: var(--ui-button-padding, #{spacing(200, 400)});
|
|
64
64
|
font-family: var(--typo-font-ui);
|
|
65
65
|
min-height: var(--ui-lt-h);
|
|
66
66
|
border-width: var(--ui-lt-border-width);
|
|
@@ -48,8 +48,8 @@ export default defineComponent({
|
|
|
48
48
|
|
|
49
49
|
&_pre {
|
|
50
50
|
@include scrollbar-awesome();
|
|
51
|
-
padding: spacing(300, 200);
|
|
52
51
|
|
|
52
|
+
padding: spacing(300, 200);
|
|
53
53
|
font-family: var(--typo-font-mono);
|
|
54
54
|
overflow: auto;
|
|
55
55
|
max-width: 100%;
|
|
@@ -62,4 +62,4 @@ export default defineComponent({
|
|
|
62
62
|
--ui-scroll-bg: var(--pal-block);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
</style>
|
|
65
|
+
</style>
|
|
@@ -75,14 +75,9 @@ export default defineComponent({
|
|
|
75
75
|
@import "../../scss";
|
|
76
76
|
|
|
77
77
|
.ui-copy {
|
|
78
|
-
padding: spacing(0, 200);
|
|
79
78
|
@include ellipsis();
|
|
80
79
|
|
|
81
|
-
--ui-lt-h: 2em;
|
|
82
|
-
--ui-pal: var(--pal-grey900);
|
|
83
|
-
|
|
84
80
|
&._hot {
|
|
85
|
-
color: var(--pal-positive);
|
|
86
81
|
}
|
|
87
82
|
}
|
|
88
83
|
</style>
|