@nu-art/ts-styles 0.204.168 → 0.204.169

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": "@nu-art/ts-styles",
3
- "version": "0.204.168",
3
+ "version": "0.204.169",
4
4
  "author": "nu-art",
5
5
  "description": "Styles by Cipher",
6
6
  "main": "dist/index.js",
@@ -5,7 +5,9 @@
5
5
  /// @param $bga - background when mouse click
6
6
  ///
7
7
  @mixin mouse-interactive-background($bg, $bg-h: $bg ,$bg-a: $bg-h) {
8
- background: $bg;
8
+ & {
9
+ background: $bg;
10
+ }
9
11
  &:hover {
10
12
  background: $bg-h;
11
13
  }
@@ -15,7 +17,9 @@
15
17
  }
16
18
 
17
19
  @mixin mouse-interactive-text($c,$c-h: $c,$c-a:$c-h) {
18
- color: $c;
20
+ & {
21
+ color: $c;
22
+ }
19
23
  &:hover {
20
24
  color: $c-h;
21
25
  }
@@ -15,51 +15,60 @@
15
15
  border-radius: 4px;
16
16
  }
17
17
 
18
- //Direction Diff
19
- @if $direction == 'horizontal' {
20
- overflow-x: auto;
21
- //noinspection ALL
22
- @supports (overflow-x: overlay) {
23
- overflow-x: overlay;
24
- }
25
- &::-webkit-scrollbar {
26
- height: 12px;
27
- }
28
- }
18
+ & {
29
19
 
30
- @if $direction == 'vertical' {
31
- overflow-y: auto;
32
- //noinspection ALL
33
- @supports (overflow-y: overlay) {
34
- overflow-y: overlay;
20
+ //Direction Diff
21
+ @if $direction == 'horizontal' {
22
+ & {
23
+ overflow-x: auto;
35
24
  }
36
- &::-webkit-scrollbar {
37
- width: 9px;
25
+ //noinspection ALL
26
+ @supports (overflow-x: overlay) {
27
+ overflow-x: overlay;
28
+ }
29
+ &::-webkit-scrollbar {
30
+ height: 12px;
31
+ }
38
32
  }
39
- }
40
33
 
41
- @if $direction == 'both' {
42
- overflow: auto;
43
- //noinspection ALL
44
- @supports (overflow: overlay) {
45
- overflow: overlay;
34
+ @if $direction == 'vertical' {
35
+ & {
36
+ overflow-y: auto;
46
37
  }
47
- &::-webkit-scrollbar {
48
- width: 9px;
49
- height: 12px;
38
+ //noinspection ALL
39
+ @supports (overflow-y: overlay) {
40
+ overflow-y: overlay;
41
+ }
42
+ &::-webkit-scrollbar {
43
+ width: 9px;
44
+ }
50
45
  }
51
- }
52
46
 
53
- @if $showOnlyOnHover {
54
- &::-webkit-scrollbar,
55
- &::-webkit-scrollbar-thumb {
56
- visibility: hidden;
47
+ @if $direction == 'both' {
48
+ & {
49
+ overflow: auto;
50
+ }
51
+ //noinspection ALL
52
+ @supports (overflow: overlay) {
53
+ overflow: overlay;
54
+ }
55
+ &::-webkit-scrollbar {
56
+ width: 9px;
57
+ height: 12px;
58
+ }
57
59
  }
58
60
 
59
- &:hover {
61
+ @if $showOnlyOnHover {
60
62
  &::-webkit-scrollbar,
61
63
  &::-webkit-scrollbar-thumb {
62
- visibility: visible;
64
+ visibility: hidden;
65
+ }
66
+
67
+ &:hover {
68
+ &::-webkit-scrollbar,
69
+ &::-webkit-scrollbar-thumb {
70
+ visibility: visible;
71
+ }
63
72
  }
64
73
  }
65
74
  }
@@ -1,6 +1,9 @@
1
1
  @mixin hide-scroll-bar {
2
- -ms-overflow-style: none; // IE10+
3
- scrollbar-width: none; // Firefox
2
+ & {
3
+ -ms-overflow-style: none; // IE10+
4
+ scrollbar-width: none; // Firefox
5
+ }
6
+
4
7
  &::-webkit-scrollbar {
5
8
  display: none; // Safari & Chrome
6
9
  }