@qrsln/lootstrap 22.2.2-beta.0 → 22.2.7-beta.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.
@@ -0,0 +1,135 @@
1
+ // ===========================================================================
2
+ // Components - Tooltip
3
+ // ===========================================================================
4
+
5
+ $component-Name: $var-Prefix + 'caret-';
6
+ @import "../_theme-customized";
7
+
8
+ .Tooltip {
9
+ position: absolute;
10
+ //position: relative;
11
+ display: flex;
12
+ z-index: 1000;
13
+
14
+ padding: .25rem .5rem;
15
+
16
+ color: $fg-Dark;
17
+ background-color: $bg-Dark;
18
+
19
+ border: 1px solid $bg-Darkest;
20
+ box-shadow: $Shadow;
21
+
22
+ &.Tooltip-outline {
23
+ color: $fg-Lightest;
24
+ background-color: $bg-Lightest;
25
+
26
+ //border: .125rem solid $bg-Darkest;
27
+ border: 1px solid $bg-Darkest;
28
+ }
29
+
30
+ &:before, &:after {
31
+ content: '';
32
+ display: block;
33
+ position: absolute;
34
+ border-style: solid;
35
+
36
+ width: 0;
37
+ height: 0;
38
+
39
+ z-index: 1;
40
+ clear: both;
41
+
42
+ // caret-size 1: 6px
43
+ border-width: 6px;
44
+ }
45
+ }
46
+
47
+ .Tooltip-rounded {
48
+ border-radius: $Border-radius;
49
+ }
50
+
51
+ /*
52
+ // Caret directions
53
+ */
54
+
55
+ .Tooltip-t, .Tooltip-b {
56
+ $caret-size: 6px; // caret-size 1: 6px
57
+
58
+ &:after {
59
+ left: calc(50% - #{$caret-size});
60
+ }
61
+
62
+ &:before {
63
+ left: calc(50% - #{$caret-size});
64
+ }
65
+ }
66
+
67
+ .Tooltip-r, .Tooltip-l {
68
+ $caret-size: 6px; // caret-size 1: 6px
69
+
70
+ &:after {
71
+ top: calc(50% - #{$caret-size});
72
+ }
73
+
74
+ &:before {
75
+ top: calc(50% - #{$caret-size});
76
+ }
77
+ }
78
+
79
+ /*
80
+ // Caret-darker
81
+ */
82
+
83
+ // &:after is bg, &:before is border
84
+ $caret-before-color: $bg-Darkest;
85
+ $caret-after-color: $bg-Dark;
86
+
87
+ .Tooltip-t {
88
+ &:after {
89
+ bottom: 100%;
90
+ border-color: transparent transparent $caret-after-color transparent;
91
+ }
92
+
93
+ &:before {
94
+ bottom: calc(100% + 1px);
95
+ border-color: transparent transparent $caret-before-color transparent;
96
+ }
97
+ }
98
+
99
+ .Tooltip-r {
100
+ &:after {
101
+ left: 100%;
102
+ border-color: transparent transparent transparent $caret-after-color;
103
+ }
104
+
105
+ &:before {
106
+ left: calc(100% + 1px);
107
+ border-color: transparent transparent transparent $caret-before-color;
108
+ }
109
+ }
110
+
111
+ .Tooltip-b {
112
+ &:after {
113
+ top: 100%;
114
+ border-color: $caret-after-color transparent transparent transparent;
115
+ }
116
+
117
+ &:before {
118
+ top: calc(100% + 1px);
119
+ border-color: $caret-before-color transparent transparent transparent;
120
+ }
121
+ }
122
+
123
+ .Tooltip-l {
124
+ &:after {
125
+ right: 100%;
126
+ border-color: transparent $caret-after-color transparent transparent;
127
+ }
128
+
129
+ &:before {
130
+ right: calc(100% + 1px);
131
+ border-color: transparent $caret-before-color transparent transparent;
132
+ }
133
+ }
134
+
135
+
@@ -78,7 +78,9 @@ $filter-Colors: (
78
78
  "warning" : $filter-Warning,
79
79
  "danger" : $filter-Danger,
80
80
  "light" : $filter-Light,
81
- "dark" : $filter-Dark
81
+ "dark" : $filter-Dark,
82
+ //NONE
83
+ "none" : $filter-Dark,
82
84
  );
83
85
 
84
86
  /*
@@ -0,0 +1,43 @@
1
+ // ===========================================================================
2
+ // Utils - Positioning
3
+ // Define the edge positioning anchors of the position utilities.
4
+ // ===========================================================================
5
+
6
+ $position-values: (0: 0, 50: 50%, 100: 100%) !default;
7
+
8
+ $utilities-Positioning: () !default;
9
+ $utilities-Positioning: (
10
+ "Position": (
11
+ Prefix: Position, Properties: position, Important: true,
12
+ Values: (static relative absolute fixed sticky)
13
+ ),
14
+ "Top": (Prefix: Top, Properties: top, Important: true, Values: $position-values),
15
+ "Bottom": (Prefix: Bottom, Properties: bottom, Important: true, Values: $position-values),
16
+ "Start": (Prefix: Start, Properties: left, Important: true, Values: $position-values),
17
+ "End": (Prefix: End, Properties: right, Important: true, Values: $position-values),
18
+ "Translate-middle": (
19
+ Prefix: Translate-middle, Properties: transform, Important: true,
20
+ Values: (null: translate(-50%, -50%), x: translateX(-50%), y: translateY(-50%),)
21
+ ),
22
+ );
23
+
24
+ @include Utilities($utilities-Positioning);
25
+
26
+ // ===========================================================================
27
+ // Border
28
+ // ===========================================================================
29
+
30
+ /*
31
+ // Position
32
+ */
33
+ .Position-static, .Position-relative, .Position-absolute, .Position-fixed, .Position-sticky {
34
+ }
35
+
36
+ .Top-0, .Top-50, .Top-100,
37
+ .Bottom-0, .Bottom-50, .Bottom-100,
38
+ .Start-0, .Start-50, .Start-100,
39
+ .End-0, .End-50, .End-100 {
40
+ }
41
+
42
+ .Translate-middle, .Translate-middle-x, .Translate-middle-y {
43
+ }
@@ -53,13 +53,7 @@ $utilities: (
53
53
  "Box Shadow": (
54
54
  Prefix: Shadow, Properties: box-shadow, Important: true, Values: $Shadow-map
55
55
  ),
56
- /*
57
- // Position
58
- */
59
- //"Position": (
60
- // Prefix: Position, Properties: position, Important: true,
61
- // Values: (static relative absolute fixed sticky)
62
- //),
56
+
63
57
  /*
64
58
  // Sizing Width, Height
65
59
  */
@@ -11,6 +11,7 @@
11
11
  @import "Components/themed";
12
12
 
13
13
  @import "Components/alert";
14
+ @import "Components/badge";
14
15
  @import "Components/breadcrumb";
15
16
  @import "Components/button-close";
16
17
  @import "Components/button-group";
@@ -32,6 +33,7 @@
32
33
  @import "Components/timeline";
33
34
  @import "Components/timer";
34
35
  @import "Components/toasts";
36
+ @import "Components/tooltip";
35
37
  @import "Components/tree-view";
36
38
 
37
39
  /*
@@ -49,12 +51,10 @@
49
51
  // Components - TODOs
50
52
  */
51
53
 
52
- @import "Components/TODO/badge";
53
54
  @import "Components/TODO/dropdown";
54
55
  @import "Components/TODO/navbar";
55
56
  @import "Components/TODO/popover";
56
57
  @import "Components/TODO/tables";
57
- @import "Components/TODO/tooltip";
58
58
 
59
59
  /*
60
60
  - Reboot
@@ -6,8 +6,9 @@
6
6
 
7
7
  @import "Utils/border"; // Border, Rounded
8
8
  @import "Utils/color"; // Bg-colors & Text-colors & Border-colors
9
- @import "Utils/spacing"; // Margin, Padding
10
9
  @import "Utils/filters"; // svg colors, blur, drop-shadow
10
+ @import "Utils/position"; // Positioning
11
+ @import "Utils/spacing"; // Margin, Padding
11
12
 
12
13
  @import "Utils/text"; // TODO
13
14
  @import "Utils/utilities"; // rest
@@ -6,9 +6,9 @@
6
6
  // Duration
7
7
  */
8
8
 
9
- @each $val in (500, 750, 2000, 3000) {
9
+ @each $val in (100, 200, 300, 500, 750, 1000, 1500) {
10
10
  .Anim-dur-#{$val}ms {
11
- --anim-dur: #{$val}ms;
11
+ --#{$var-Prefix}anim-dur: #{$val}ms;
12
12
  }
13
13
  }
14
14
 
@@ -19,9 +19,9 @@
19
19
  // Iteration
20
20
  */
21
21
 
22
- @each $val in (1, 2, 3, 4, 5) {
22
+ @each $val in (infinite, 1, 2, 3, 4, 5) {
23
23
  .Anim-repeat-#{$val} {
24
- --anim-iteration: #{$val};
24
+ --#{$var-Prefix}anim-iteration: #{$val};
25
25
  }
26
26
  }
27
27
 
@@ -33,8 +33,8 @@
33
33
  */
34
34
 
35
35
  .Anim {
36
- animation-duration: #{var(--anim-dur, 1s)};
37
- animation-iteration-count: #{var(--anim-iteration, infinite)};
36
+ animation-duration: #{var(--#{$var-Prefix}anim-dur, 500ms)};
37
+ animation-iteration-count: #{var(--#{$var-Prefix}anim-iteration, 1)};
38
38
 
39
39
  animation-timing-function: linear;
40
40
  animation-fill-mode: both
@@ -115,9 +115,12 @@
115
115
  //to {
116
116
  // transform: rotate(360deg);
117
117
  //}
118
- 100% { transform: rotate(360deg); }
118
+ 100% {
119
+ transform: rotate(360deg);
120
+ }
119
121
  }
120
122
 
123
+ //noinspection CssInvalidFunction
121
124
  @keyframes spin-CCW {
122
125
  0% {
123
126
  transform: rotateZ(0deg);
@@ -169,6 +172,7 @@
169
172
  }
170
173
 
171
174
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/rubberBand.css
175
+ //noinspection CssInvalidFunction
172
176
  @keyframes rubberBand {
173
177
  from {
174
178
  transform: scale3d(1, 1, 1);
@@ -200,6 +204,7 @@
200
204
  }
201
205
 
202
206
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/bounce.css
207
+ //noinspection CssInvalidFunction
203
208
  @keyframes bounce {
204
209
  from,
205
210
  20%,
@@ -231,6 +236,7 @@
231
236
  }
232
237
 
233
238
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/jello.css
239
+ //noinspection CssInvalidFunction
234
240
  @keyframes jello {
235
241
  from,
236
242
  11.1%,
@@ -268,6 +274,7 @@
268
274
  }
269
275
 
270
276
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/swing.css
277
+ //noinspection CssInvalidFunction
271
278
  @keyframes swing {
272
279
  20% {
273
280
  transform: rotate3d(0, 0, 1, 15deg);
@@ -291,6 +298,7 @@
291
298
  }
292
299
 
293
300
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/shakeX.css
301
+ //noinspection CssInvalidFunction
294
302
  @keyframes shakeX {
295
303
  from,
296
304
  to {
@@ -314,6 +322,7 @@
314
322
  }
315
323
 
316
324
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/shakeY.css
325
+ //noinspection CssInvalidFunction
317
326
  @keyframes shakeY {
318
327
  from,
319
328
  to {
@@ -337,6 +346,7 @@
337
346
  }
338
347
 
339
348
  // credit: https://github.com/animate-css/animate.css/blob/main/source/attention_seekers/wobble.css
349
+ //noinspection CssInvalidFunction
340
350
  @keyframes wobble {
341
351
  from {
342
352
  transform: translate3d(0, 0, 0);
package/scss/_header.scss CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
- * CSS Compiled on: 2022-02-02
3
+ * CSS Compiled on: 2022-02-07
4
4
  *
5
- * Lootstrap v22.2.2-beta.0 (https://github.com/krsln/Lootstrap/)
5
+ * Lootstrap v22.2.7-beta.0 (https://github.com/krsln/Lootstrap/)
6
6
  * Copyright 2022 Qrsln.
7
7
  * Licensed under MIT (https://github.com/krsln/Lootstrap/blob/master/LICENSE)
8
8
  */
@@ -1,7 +0,0 @@
1
- // ===========================================================================
2
- // Components - Badge
3
- // ===========================================================================
4
-
5
- .Badge {
6
-
7
- }
@@ -1,7 +0,0 @@
1
- // ===========================================================================
2
- // Components - Tooltip
3
- // ===========================================================================
4
-
5
- .Tooltip {
6
-
7
- }