@qrsln/lootstrap 22.3.26-beta.0 → 22.4.2-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qrsln/lootstrap",
3
- "version": "22.3.26-beta.0",
3
+ "version": "22.4.2-beta.0",
4
4
  "description": "LootStrap is a scss library and is still in beta! There is much to improve!",
5
5
  "style": "dist/css/lootstrap.css",
6
6
  "sass": "scss/lootstrap.scss",
@@ -120,8 +120,8 @@ $Black: hsl(0, 0%, 0%) !default;
120
120
 
121
121
  /// Set Text Color Entirely based on bg color (Black or White)
122
122
  /// Usage => @include Text-color($Warning);
123
- @function Text-color($n) {
124
- $color-brightness: round((red($n)*299)+(green($n)*587)+ math.div(blue($n) * 114, 1000));
123
+ @function Text-color($color) {
124
+ $color-brightness: round((red($color)*299)+(green($color)*587)+ math.div(blue($color) * 114, 1000));
125
125
  $light-color: round((red(#ffffff)*299)+(green(#ffffff)*587)+ math.div(blue(#ffffff) * 114, 1000));
126
126
  @if abs($color-brightness) < math.div($light-color, 2) {
127
127
  @return $White;
@@ -25,7 +25,7 @@
25
25
  .Accent-#{$keyAccent} {
26
26
  --#{$var-Prefix}bg-accent-hsl: #{colorToHSL($valueAccent)};
27
27
  --#{$var-Prefix}bg-accent: #{$valueAccent};
28
- --#{$var-Prefix}fg-accent: #{Best-fg-color($valueAccent)};
28
+ --#{$var-Prefix}fg-accent: #{Text-color($valueAccent)};
29
29
  }
30
30
  }
31
31
 
@@ -126,14 +126,14 @@
126
126
 
127
127
  // Foreground colors
128
128
  --#{$Prefix}fg-muted: #{$C-disabled};
129
- --#{$Prefix}fg-hue: #{Best-fg-color($C-hue)};
130
- --#{$Prefix}fg-accent: #{Best-fg-color($C-hue)};
129
+ --#{$Prefix}fg-hue: #{Text-color($C-hue)};
130
+ --#{$Prefix}fg-accent: #{Text-color($C-hue)};
131
131
 
132
- --#{$Prefix}fg-body: #{Best-fg-color($C-body)};
133
- --#{$Prefix}fg-surface: #{Best-fg-color($C-surface)};
132
+ --#{$Prefix}fg-body: #{Text-color($C-body)};
133
+ --#{$Prefix}fg-surface: #{Text-color($C-surface)};
134
134
 
135
- --#{$Prefix}fg-lighter: #{Best-fg-color($C-lighter)};
136
- --#{$Prefix}fg-lightest: #{Best-fg-color($C-lightest)};
135
+ --#{$Prefix}fg-lighter: #{Text-color($C-lighter)};
136
+ --#{$Prefix}fg-lightest: #{Text-color($C-lightest)};
137
137
 
138
138
  --#{$Prefix}border-hsl: #{colorToHSL($C-border)};
139
139
  --#{$Prefix}shadow-hsl: #{colorToHSL($C-shadow)};
@@ -151,7 +151,7 @@
151
151
  --#{$var-Prefix}bg-accent-hsl: #{colorToHSL($C-accent)};
152
152
 
153
153
  --#{$var-Prefix}bg-accent: #{$C-accent};
154
- --#{$var-Prefix}fg-accent: #{Best-fg-color($C-accent)};
154
+ --#{$var-Prefix}fg-accent: #{Text-color($C-accent)};
155
155
 
156
156
  // Overlay with white background
157
157
  //@each $per in (0, 5, 7, 8, 9, 11, 12, 14, 15, 16) {
@@ -36,6 +36,16 @@ $Customized: 'alert-';
36
36
  }
37
37
  }
38
38
 
39
+ &.Alert-rounded {
40
+ border-radius: 50rem 0 50rem 50rem !important;
41
+ }
42
+
43
+ &.Alert-none {
44
+ .Alert-icon {
45
+ color: hsla($Bg-accent-hsl, .33);
46
+ }
47
+ }
48
+
39
49
  &.Alert-outline {
40
50
  color: $Fg-lightest;
41
51
  background-color: $Bg-lightest;
@@ -51,6 +51,9 @@ $Customized: false;
51
51
  border-color: $Border-color;
52
52
 
53
53
  color: $Fg-lighter;
54
+ &:nth-child(-n+2), &:nth-last-of-type(-n+2){
55
+ color: $Bg-accent;
56
+ }
54
57
  background-color: $Bg-lighter;
55
58
  }
56
59
 
@@ -3,6 +3,9 @@
3
3
  // ???
4
4
  // ===========================================================================
5
5
 
6
+ $Customized: false;
7
+ @import "../_color-scheme";
8
+
6
9
  /*
7
10
  // Spinner from bootstrap
8
11
  */
@@ -19,6 +22,8 @@
19
22
  border-right-color: transparent;
20
23
  border-radius: 50%;
21
24
 
25
+ color: $Bg-accent;
26
+
22
27
  animation: .75s linear infinite spin-CW;
23
28
  }
24
29
 
@@ -28,6 +33,8 @@
28
33
  height: 2rem;
29
34
  margin: .25rem;
30
35
 
36
+ color: $Bg-accent;
37
+
31
38
  vertical-align: text-bottom;
32
39
  background-color: currentColor;
33
40
  border-radius: 50%;
@@ -41,9 +48,10 @@
41
48
 
42
49
  .Spinner-vortex {
43
50
  position: relative;
44
- display: block;
45
- width: 160px;
46
- height: 160px;
51
+ display: inline-block;
52
+
53
+ min-width: 120px;
54
+ min-height: 120px;
47
55
 
48
56
  span {
49
57
  position: absolute;
@@ -77,14 +85,12 @@
77
85
  }
78
86
  }
79
87
  }
80
- }
81
-
82
- .Spinner-vortex-square {
83
- @extend .Spinner-vortex;
84
88
 
85
- span {
86
- &:before {
87
- border-radius: 10px;
89
+ &.Spinner-vortex-square {
90
+ span {
91
+ &:before {
92
+ border-radius: 10px;
93
+ }
88
94
  }
89
95
  }
90
96
  }
package/scss/_header.scss CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
- * CSS Compiled on: 2022-03-26
3
+ * CSS Compiled on: 2022-04-02
4
4
  *
5
- * Lootstrap v22.3.26-beta.0 (https://github.com/krsln/Lootstrap/)
5
+ * Lootstrap v22.4.2-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
  */