fu-kit 0.0.1-beta.2 → 0.0.1-beta.3
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 +47 -19
- package/dist/favicon.ico +0 -0
- package/dist/img/splash-screen.8bd73950.jpg +0 -0
- package/dist/index.html +1 -0
- package/dist/js/app.53980592.js +2 -0
- package/dist/js/app.53980592.js.map +1 -0
- package/dist/js/chunk-vendors.fe8aa7a9.js +8 -0
- package/dist/js/chunk-vendors.fe8aa7a9.js.map +1 -0
- package/package.json +36 -36
- package/reset.scss +60 -0
- package/root.scss +130 -0
- package/scss.scss +5 -3
- package/src/App.vue +122 -30
- package/src/Home.vue +112 -0
- package/src/assets/splash-screen.jpg +0 -0
- package/src/components/FuButton.vue +104 -27
- package/src/components/FuButtonLink.vue +79 -0
- package/src/components/FuCodeView.vue +58 -0
- package/src/components/FuCopy.vue +103 -0
- package/src/components/FuProgressRadial.vue +117 -0
- package/src/components/FuSelect.vue +84 -55
- package/src/components/FuSelectX.vue +317 -0
- package/src/components/FuSidebar.vue +90 -0
- package/src/components/FuText.vue +98 -60
- package/src/components/FuTextarea.vue +118 -0
- package/src/docs/DocButton.vue +67 -0
- package/src/docs/DocSandbox.vue +71 -0
- package/src/docs/DocSelect.vue +55 -0
- package/src/docs/DocSidebar.vue +93 -0
- package/src/docs/DocText.vue +59 -0
- package/src/docs/DocTextarea.vue +64 -0
- package/src/docs/DocTypo.vue +98 -0
- package/src/main.js +9 -5
- package/src/router.js +29 -17
- package/src/scss/colors.scss +16 -6
- package/src/scss/typo.scss +5 -14
- package/src/scss/ui.scss +22 -38
- package/src/scss/utils.scss +36 -0
- package/src/styles.scss +15 -0
- package/src/utils/media.js +1 -0
- package/src/utils/woosh.js +2 -0
- package/vue.config.js +1 -4
- package/src/views/Home.vue +0 -24
package/src/scss/ui.scss
CHANGED
|
@@ -1,62 +1,46 @@
|
|
|
1
1
|
@mixin scrollbar-awesome($transparent: false) {
|
|
2
2
|
&::-webkit-scrollbar-track {
|
|
3
|
-
background-color:
|
|
3
|
+
background-color: var(--ui-pal-bg);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
&::-webkit-scrollbar {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
background-color: pal($pal-block);
|
|
12
|
-
width: 2px;
|
|
13
|
-
height: 2px;
|
|
7
|
+
width: var(--ui-lt-scroll-width);
|
|
8
|
+
height: var(--ui-lt-scroll-width);
|
|
9
|
+
border-radius: var(--ui-lt-scroll-width);
|
|
10
|
+
background-color: var(--ui-pal-bg);
|
|
14
11
|
}
|
|
15
12
|
|
|
16
13
|
&::-webkit-scrollbar-thumb {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin scrollbar-awesome-bold() {
|
|
22
|
-
&::-webkit-scrollbar-track {
|
|
14
|
+
border: 1px solid var(--ui-pal-bg);
|
|
15
|
+
border-radius: var(--ui-lt-scroll-width);
|
|
23
16
|
background-color: transparent;
|
|
24
17
|
}
|
|
25
18
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
background: transparent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&::-webkit-scrollbar-thumb {
|
|
34
|
-
background-color: pal($pal-prime);
|
|
35
|
-
border: 1px solid transparent;
|
|
36
|
-
border-radius: 0.25em;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:hover::-webkit-scrollbar {
|
|
40
|
-
background-color: pal($pal-block);
|
|
19
|
+
::-webkit-scrollbar-corner {
|
|
20
|
+
background-color: transparent !important;
|
|
21
|
+
border: 0 none !important;
|
|
22
|
+
box-shadow: none !important;
|
|
41
23
|
}
|
|
42
24
|
|
|
43
|
-
&:
|
|
44
|
-
|
|
25
|
+
&:focus::-webkit-scrollbar-thumb,
|
|
26
|
+
&:hover::-webkit-scrollbar-thumb, {
|
|
27
|
+
background-color: var(--ui-pal);
|
|
45
28
|
}
|
|
46
29
|
}
|
|
47
30
|
|
|
48
31
|
@mixin scrollbar-invisible() {
|
|
49
32
|
&::-webkit-scrollbar {
|
|
50
|
-
width: 0;
|
|
51
|
-
background: transparent;
|
|
52
|
-
display: none;
|
|
33
|
+
width: 0;
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
display: none;
|
|
53
36
|
}
|
|
54
37
|
|
|
55
|
-
// Optional: show position indicator in red
|
|
56
38
|
&::-webkit-scrollbar-thumb {
|
|
57
|
-
background: transparent;
|
|
39
|
+
background-color: transparent;
|
|
58
40
|
}
|
|
59
41
|
|
|
60
|
-
-ms-overflow-style: none;
|
|
61
|
-
scrollbar-width: none;
|
|
42
|
+
-ms-overflow-style: none;
|
|
43
|
+
scrollbar-width: none;
|
|
62
44
|
}
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
|
|
3
|
+
@function pow($x, $n) {
|
|
4
|
+
$ret: 1;
|
|
5
|
+
@if $n >= 0 {
|
|
6
|
+
@for $i from 1 through $n {
|
|
7
|
+
$ret: $ret * $x;
|
|
8
|
+
}
|
|
9
|
+
} @else {
|
|
10
|
+
@for $i from $n to 0 {
|
|
11
|
+
$ret: $ret / $x;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
@return $ret;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@function to-fixed($float, $digits: 2) {
|
|
18
|
+
$pow: pow(10, $digits);
|
|
19
|
+
@return round($float * $pow) / $pow;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@function hex2rgb($hex) {
|
|
23
|
+
@return color.red($hex), color.green($hex), color.blue($hex)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@function hex2hsl($hex) {
|
|
27
|
+
@return to-fixed(color.hue($hex)), to-fixed(color.saturation($hex)), to-fixed(color.lightness($hex))
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@function pal-hsl($color-code, $opacity:1) {
|
|
31
|
+
@if ($opacity < 1) {
|
|
32
|
+
@return hsla(var(--#{$color-code}), #{$opacity})
|
|
33
|
+
} @else {
|
|
34
|
+
@return hsl(var(--#{$color-code}))
|
|
35
|
+
}
|
|
36
|
+
}
|
package/src/styles.scss
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--lt-header-height: 64px;
|
|
3
|
+
--lt-footer-height: 64px;
|
|
4
|
+
--lt-horizontal-padding: 16px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
font-family: var(--typo-font-text);
|
|
9
|
+
color: var(--pal-text);
|
|
10
|
+
background: var(--pal-bg);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#app {
|
|
14
|
+
@include scrollbar-awesome();
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// make a Signal-based memorable scroll listener here
|
package/vue.config.js
CHANGED
package/src/views/Home.vue
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="home">
|
|
3
|
-
<fu-button>Btn!</fu-button>
|
|
4
|
-
<fu-text v-model="test" />
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script>
|
|
9
|
-
import { ref } from 'vue'
|
|
10
|
-
|
|
11
|
-
import FuButton from '@/components/FuButton.vue'
|
|
12
|
-
import FuText from '@/components/FuText.vue'
|
|
13
|
-
|
|
14
|
-
export default {
|
|
15
|
-
name: 'Home',
|
|
16
|
-
components: {
|
|
17
|
-
FuText,
|
|
18
|
-
FuButton,
|
|
19
|
-
},
|
|
20
|
-
setup () {
|
|
21
|
-
const test = ref('')
|
|
22
|
-
},
|
|
23
|
-
}
|
|
24
|
-
</script>
|