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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fu-kit",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/entry.js",
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
- color: var(--pal-text);
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.2;
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(100);
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(300, 400)});
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>