@qrsln/lootstrap 22.2.2-beta.0 → 22.3.1-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.
Files changed (71) hide show
  1. package/Readme.md +17 -6
  2. package/dist/css/lootstrap.css +10649 -9826
  3. package/dist/css/lootstrap.css.map +1 -1
  4. package/dist/css/lootstrap.min.css +3 -3
  5. package/package.json +5 -1
  6. package/scss/Abstracts/Functions/_color-customized.scss +62 -0
  7. package/scss/Abstracts/Functions/_color.scss +108 -65
  8. package/scss/Abstracts/Functions/_helpers.scss +2 -2
  9. package/scss/Abstracts/Functions/_shadow.scss +4 -4
  10. package/scss/Abstracts/Mixins/_color.scss +126 -136
  11. package/scss/Abstracts/Mixins/_theme.scss +163 -0
  12. package/scss/Abstracts/_dir-functions.scss +1 -0
  13. package/scss/Abstracts/_dir-mixins.scss +1 -4
  14. package/scss/Abstracts/_variables.scss +96 -35
  15. package/scss/Architecture/Components/TODO/_tables.scss +3 -3
  16. package/scss/Architecture/Components/_alert.scss +93 -19
  17. package/scss/Architecture/Components/_badge.scss +40 -0
  18. package/scss/Architecture/Components/_breadcrumb.scss +11 -10
  19. package/scss/Architecture/Components/_button-close.scss +11 -2
  20. package/scss/Architecture/Components/_buttons.scss +22 -21
  21. package/scss/Architecture/Components/_calendar.scss +67 -55
  22. package/scss/Architecture/Components/_card.scss +9 -9
  23. package/scss/Architecture/Components/_caret.scss +20 -20
  24. package/scss/Architecture/Components/_dialog.scss +10 -7
  25. package/scss/Architecture/Components/_list.scss +13 -13
  26. package/scss/Architecture/Components/_nav.scss +14 -12
  27. package/scss/Architecture/Components/_pagination.scss +16 -10
  28. package/scss/Architecture/Components/_progress.scss +6 -5
  29. package/scss/Architecture/Components/_rating.scss +15 -14
  30. package/scss/Architecture/Components/_scrollbar.scss +59 -29
  31. package/scss/Architecture/Components/_spinners.scss +0 -1
  32. package/scss/Architecture/Components/_timeline.scss +6 -5
  33. package/scss/Architecture/Components/_timer.scss +5 -4
  34. package/scss/Architecture/Components/_toasts.scss +72 -12
  35. package/scss/Architecture/Components/_tooltip.scss +135 -0
  36. package/scss/Architecture/Components/_tree-view.scss +13 -12
  37. package/scss/Architecture/Forms/_form-check.scss +82 -81
  38. package/scss/Architecture/Forms/_input-fields.scss +36 -37
  39. package/scss/Architecture/Forms/_selects.scss +3 -1
  40. package/scss/Architecture/{_anim.scss → Roots/_anim.scss} +17 -7
  41. package/scss/Architecture/Roots/_avatar.scss +296 -0
  42. package/scss/Architecture/Roots/_classified.scss +67 -0
  43. package/scss/Architecture/{_reboot.scss → Roots/_reboot.scss} +6 -9
  44. package/scss/Architecture/Roots/_root.scss +49 -0
  45. package/scss/Architecture/Roots/_shape.scss +92 -0
  46. package/scss/Architecture/Roots/_skeleton.scss +271 -0
  47. package/scss/Architecture/{Svg/_icons.scss → Roots/_svg.scss} +0 -0
  48. package/scss/Architecture/Utils/_border.scss +3 -1
  49. package/scss/Architecture/Utils/_color.scss +71 -88
  50. package/scss/Architecture/Utils/_filters.scss +4 -1
  51. package/scss/Architecture/Utils/_position.scss +43 -0
  52. package/scss/Architecture/Utils/_spacing.scss +7 -21
  53. package/scss/Architecture/Utils/_text.scss +42 -109
  54. package/scss/Architecture/Utils/_utilities.scss +55 -21
  55. package/scss/Architecture/__color-scheme.scss +80 -0
  56. package/scss/Architecture/__dir-components.scss +5 -7
  57. package/scss/Architecture/__dir-roots.scss +17 -0
  58. package/scss/Architecture/__dir-utils.scss +2 -1
  59. package/scss/Architecture/_theme.scss +2 -1
  60. package/scss/_header.scss +2 -2
  61. package/scss/lootstrap.scss +2 -5
  62. package/dist/css/test.css +0 -275
  63. package/dist/css/test.css.map +0 -1
  64. package/scss/Architecture/Components/TODO/_badge.scss +0 -7
  65. package/scss/Architecture/Components/TODO/_tooltip.scss +0 -7
  66. package/scss/Architecture/Components/_themed.scss +0 -45
  67. package/scss/Architecture/__dir-svg.scss +0 -7
  68. package/scss/Architecture/__theme-colors.scss +0 -51
  69. package/scss/Architecture/__theme-customized.scss +0 -51
  70. package/scss/Architecture/_root.scss +0 -45
  71. package/scss/test.scss +0 -37
@@ -0,0 +1,163 @@
1
+ // ===========================================================================
2
+ // Mixins - Theme Colors
3
+ // ===========================================================================
4
+
5
+ // CSS Variables (Custom Properties)
6
+
7
+
8
+ /*
9
+ // Change Accent color
10
+ */
11
+
12
+ @mixin Accents-and-Overlay-() {
13
+ $accent-Colors: (
14
+ "light" : $Primary,
15
+ "dark" : Tint($Primary, 50%),
16
+ "night" : Tint($Primary, 50%),
17
+ "secondary" : $Secondary,
18
+ "success" : $Success,
19
+ "info" : $Info,
20
+ "warning" : $Warning,
21
+ "danger" : $Danger, //"error" : $Danger,
22
+ ) !default;
23
+
24
+ @each $keyAccent, $valueAccent in $accent-Colors {
25
+ .Accent-#{$keyAccent} {
26
+ --#{$var-Prefix}bg-accent-hsl: #{colorToHSL($valueAccent)};
27
+ --#{$var-Prefix}bg-accent: #{$valueAccent};
28
+ --#{$var-Prefix}fg-accent: #{Best-fg-color($valueAccent)};
29
+ }
30
+ }
31
+
32
+ @each $key in (0, 5, 7, 8, 9, 11, 12, 14, 15, 16) {
33
+ .Overlay-#{$key} {
34
+ background-color: hsla(var(--#{$var-Prefix}overlay-hsl), $key * 1%);
35
+ }
36
+ }
37
+
38
+ }
39
+
40
+
41
+ //Theme Variants & Colored Components
42
+ @mixin Themed($color-Variants, $colored-Components) {
43
+ $var-Prefix: $var-Prefix;
44
+ // Colors: light, dark, night
45
+ // Colors: primary, secondary, success, info, warning, danger
46
+ @each $colorKey, $colorValue in $color-Variants {
47
+ $Lightness: lightness($colorValue);
48
+
49
+ $C-body: Color-ByLightness($colorValue, 90%); // 90% - DON'T CHANGE
50
+ $C-border: Color-ByLightness($colorValue, 85%); // 80
51
+ //$Shady: Shade($colorValue, 25%);
52
+
53
+ //$C-disabled: if($colorKey=='light', hsla(0, 0%, 0%, 0.38), hsla(0, 0%, 100%, 0.5));
54
+ $C-contrast: if($colorKey=='light', hsl(0, 0%, 0%), hsl(0, 0%, 100%));
55
+ $C-shadow: hsl(0, 0%, 0%);
56
+ //$C-shadow: if($colorKey=='dark' or $colorKey=='night', hsl(0, 0%, 100%), hsl(0, 0%, 0%));
57
+
58
+ //$C-disabled: if($colorKey=='dark' or $colorKey=='night', hsla(0, 0%, 100%, 0.5), hsla(0, 0%, 0%, 0.38));
59
+ $C-disabled: if($colorKey=='dark' or $colorKey=='night', hsla(213, 11%, 69%, 1), #6c757d);
60
+
61
+ $C-hue: $colorValue;
62
+
63
+ $C-lighter: Color-ByLightness($colorValue, ($Lightness + 20));
64
+ //$C-lightest: Color-ByLightness($colorValue, ($Lightness + 50));
65
+ $C-lightest: Color-ByLightness($colorValue, 94%); // 95% - DON'T CHANGE
66
+ $C-surface: Color-ByLightness($colorValue, 96%); // 96% - DON'T CHANGE
67
+
68
+ @if ($colorKey=='light') {
69
+ $C-shadow: hsl(240, 7%, 18%); // Dark
70
+ $C-body: Color-ByLightness($colorValue, ($Lightness - 5));
71
+ $C-border: Color-ByLightness($colorValue, ($Lightness - 10));
72
+
73
+ $C-lighter: Color-ByLightness($colorValue, ($Lightness - 2));
74
+ $C-lightest: Color-ByLightness($colorValue, ($Lightness - 4));
75
+ $C-surface: $White;
76
+ }
77
+ @if (index((dark, night), $colorKey)) {
78
+ // hsl(0, 0%, 7%) Night for Dark
79
+ // hsl(0, 0%, 0%) Black for Night
80
+ $C-shadow: if($colorKey=='dark', hsl(0, 0%, 7%), hsl(0, 0%, 0%));
81
+ $C-body: Color-ByLightness($colorValue, ($Lightness - 6));
82
+ $C-border: Color-ByLightness($colorValue, ($Lightness + 10));
83
+
84
+ $C-lighter: Color-ByLightness($colorValue, ($Lightness + 12));
85
+ $C-lightest: Color-ByLightness($colorValue, ($Lightness + 16));
86
+ $C-surface: $colorValue;
87
+ }
88
+
89
+ @each $componentKey, $componentValue in $colored-Components {
90
+ $color-suffix: if($colorKey, if($componentKey == "" , "", "-") + $colorKey, "");
91
+ $component-infix: if($componentValue == null, "", "#{$componentValue}-");
92
+
93
+ //$prefix: ($var-Prefix + $theme-infix + $component-infix);
94
+ $Prefix: ($var-Prefix + $component-infix);
95
+
96
+ /*
97
+ Explanation of if condition: [light, dark, night] => only for Theme-* class
98
+ @if ((index((light, dark, night), $colorKey) and $componentValue == null) or (null == index((light, dark, night), $colorKey))) {
99
+ }
100
+ */
101
+
102
+ // .[Alert, Btn, ...]-[primary, danger, ...]
103
+ .#{$componentKey + $color-suffix} {
104
+ &:not(.#{$componentKey}-outline) .Btn-close {
105
+ @if (lightness($colorValue) < 80) {
106
+ filter: invert(1) grayscale(100%) brightness(200%);
107
+ }
108
+ }
109
+
110
+ --#{$Prefix}overlay-hsl: #{colorToHSL($C-contrast)};
111
+ --#{$Prefix}bg-hue-hsl: #{colorToHSL($C-hue)};
112
+ --#{$Prefix}bg-accent-hsl: #{colorToHSL($C-hue)};
113
+
114
+ // Background colors
115
+ --#{$Prefix}bg-hue: #{$C-hue};
116
+ --#{$Prefix}bg-accent: #{$C-hue};
117
+
118
+ --#{$Prefix}bg-body: #{$C-body};
119
+ --#{$Prefix}bg-surface: #{$C-surface};
120
+
121
+ --#{$Prefix}bg-lighter: #{$C-lighter};
122
+ --#{$Prefix}bg-lightest: #{$C-lightest};
123
+
124
+ // Foreground colors
125
+ --#{$Prefix}fg-muted: #{$C-disabled};
126
+ --#{$Prefix}fg-hue: #{Best-fg-color($C-hue)};
127
+ --#{$Prefix}fg-accent: #{Best-fg-color($C-hue)};
128
+
129
+ --#{$Prefix}fg-body: #{Best-fg-color($C-body)};
130
+ --#{$Prefix}fg-surface: #{Best-fg-color($C-surface)};
131
+
132
+ --#{$Prefix}fg-lighter: #{Best-fg-color($C-lighter)};
133
+ --#{$Prefix}fg-lightest: #{Best-fg-color($C-lightest)};
134
+
135
+ --#{$Prefix}border-hsl: #{colorToHSL($C-border)};
136
+ --#{$Prefix}shadow-hsl: #{colorToHSL($C-shadow)};
137
+ }
138
+
139
+ }
140
+
141
+ // Properties only exist in theme classes
142
+ @if (index((light, dark, night), $colorKey)) {
143
+ $C-accent: if($colorKey=='light', $Primary, Tint($Primary, 50%));
144
+
145
+ .Theme-#{$colorKey} {
146
+ --#{$var-Prefix}scheme: #{$colorKey};
147
+
148
+ --#{$var-Prefix}bg-accent-hsl: #{colorToHSL($C-accent)};
149
+
150
+ --#{$var-Prefix}bg-accent: #{$C-accent};
151
+ --#{$var-Prefix}fg-accent: #{Best-fg-color($C-accent)};
152
+
153
+ // Overlay with white background
154
+ //@each $per in (0, 5, 7, 8, 9, 11, 12, 14, 15, 16) {
155
+ // --#{$var-Prefix}overlay-#{$per}: #{mix($C-overlay, $C-hue, $per * 1% )};
156
+ //}
157
+ }
158
+ }
159
+
160
+ }
161
+
162
+ @include Accents-and-Overlay-();
163
+ }
@@ -3,5 +3,6 @@
3
3
  // ===========================================================================
4
4
 
5
5
  @import "Functions/color";
6
+ @import "Functions/color-customized";
6
7
  @import "Functions/helpers";
7
8
  @import "Functions/shadow";
@@ -5,8 +5,5 @@
5
5
  @import "Mixins/utilities";
6
6
  @import "Mixins/breakpoints";
7
7
  @import "Mixins/color";
8
+ @import "Mixins/theme";
8
9
  @import "Mixins/grid";
9
-
10
-
11
- //@import "Mixins/Componnets/test";
12
-
@@ -25,17 +25,23 @@ $Pink : hsl(324,79%,60%) !default;
25
25
  $Brown : hsl(0, 33%, 38%) !default;
26
26
  $Indigo : hsl(270, 100%, 25%) !default;
27
27
 
28
- $Success : $Green !default;
29
- $Info : $Blue !default;
30
- $Warning : $Yellow !default;
31
- $Danger : $Red !default;
32
-
33
- $Primary : hsl(260,81%,38%) !default;
34
- $Secondary : hsl(208,7%,46%) !default;
35
- $Light : hsl(210,20%,98%) !default;
36
- $Dark : hsl(210,10%,23%) !default;
28
+ /*
29
+ // Theming
30
+ // 2022.02
31
+ */
32
+ $Night : hsl(0, 0%, 7%) !default; // #121212 => Tint(black, 7%); // #121212
33
+ $Dark : hsl(240, 7%, 18%) !default; // #2B2B31 based mixed => mix(Tint(blue, 15%), Tint(black, 17%), 3%); // #2b2b31
34
+ $Light : hsl(0, 0%, 98%) !default; // #FAFAFA based $mdb-Light => Shade(white, 2%); // #fafafa
35
+ $Primary : hsl(217, 96%, 52%) !default; // #0F69FA based $bs-Primary
36
+ $Secondary : hsl(208,7%,46%) !default; // #6D767E based $bs-Secondary
37
+ $Success : hsl(150, 67%, 35%) !default; // #1D9559 based $bs-Success
38
+ $Danger : hsl(354,66%,54%) !default; // #D73C4C based mixed
39
+ $Warning : hsl(45, 100%, 45%) !default; // #E6AC00 based mixed
40
+ $Info : hsl(195, 90%, 55%) !default; // #25C0F4 based mixed $bs-Info / $mdb-Info
37
41
  /*@formatter:on*/
38
42
 
43
+ $var-Prefix: ls-;
44
+
39
45
  // 'red', 'lime', 'blue', 'yellow', 'cyan', 'magenta', 'purple', 'green', 'maroon', 'navy', 'teal', 'olive', 'orange', 'pink', 'brown', 'indigo', 'white', 'silver', 'gray'
40
46
  $colors: (
41
47
  "red" : $Red,
@@ -54,24 +60,29 @@ $colors: (
54
60
  "pink" : $Pink,
55
61
  "brown" : $Brown,
56
62
  "indigo" : $Indigo,
63
+ "black" : $Black,
57
64
  "white" : $White,
58
65
  "silver" : $Silver,
59
66
  "gray" : $Gray,
60
67
  ) !default;
61
68
 
62
- $colors-Theme: (
69
+ // light, dark, night
70
+ //$theme-Variants: ("light" : $Light, "dark" : $Dark, "night" : $Night) !default;
71
+
72
+ // primary, secondary, success, info, warning, danger
73
+ $color-Variants: (
74
+ "light" : $Light,
75
+ "dark" : $Dark,
76
+ "night" : $Night,
63
77
  "primary" : $Primary,
64
78
  "secondary" : $Secondary,
65
79
  "success" : $Success,
66
80
  "info" : $Info,
67
81
  "warning" : $Warning,
68
- "danger" : $Danger,
69
- "light" : $Light,
70
- "dark" : $Dark,
71
- "night" : $Black
82
+ "danger" : $Danger, //"error" : $Danger,
72
83
  ) !default;
73
84
 
74
- $theme-Components: (
85
+ $colored-Components: (
75
86
  'Theme': null,
76
87
  'Alert':'alert',
77
88
  'Calendar':'calendar',
@@ -83,22 +94,25 @@ $theme-Components: (
83
94
  'List-item':'lst',
84
95
  ) !default;
85
96
 
86
- $var-Prefix: ls-;
87
-
97
+ $Muted: hsla(213, 11%, var(--ls-text-lightness, 69%), var(--ls-text-alpha, 1));
88
98
  /*
89
99
  // Colors
90
100
  */
91
101
 
92
- $colors-all: map-merge($colors, $colors-Theme);
102
+ $colors-all: map-merge($colors, $color-Variants);
103
+ $colors-all: map-merge($colors-all, ("light" : $Light, "dark" : $Dark, "night" : $Night));
93
104
 
94
105
  $colors-Background-hsla: ();
95
106
  $colors-Background-hsla: Color-hsla($colors-all, --ls-bg-alpha, --ls-bg-lightness);
107
+ $colors-Background-hsla: map-merge($colors-Background-hsla, ("transparent": transparent));
96
108
 
97
109
  $colors-Text-hsla: ();
98
110
  $colors-Text-hsla: Color-hsla($colors-all, --ls-text-alpha, --ls-text-lightness);
111
+ $colors-Text-hsla: map-merge($colors-Text-hsla, ("muted": $Muted, "reset": inherit,));
99
112
 
100
113
  $colors-Border-hsla: ();
101
114
  $colors-Border-hsla: Color-hsla($colors-all, --ls-border-alpha, --ls-border-lightness);
115
+ $colors-Border-hsla: map-merge($colors-Border-hsla, ("transparent": transparent));
102
116
 
103
117
 
104
118
  /*
@@ -109,10 +123,10 @@ $colors-Border-hsla: Color-hsla($colors-all, --ls-border-alpha, --ls-border-ligh
109
123
 
110
124
  $color-Alpha-map: (0: 0, 5: .05, 10: .1, 20: .2, 30: .3, 40: .4, 50: .5, 60: .6, 70: .7, 80: .8, 90: .9, 100: 1) !default;
111
125
  $color-Lightness-map: (0:0%, 5: 5%, 10:10%, 20:20%, 30:30%, 40:40%, 50:50%, 60:60%, 70:70%, 80:80%, 90:90%, 100:100%) !default;
112
- $opacity-map: (0: 0, 10: .1, 20: .2, 30: .3, 40: .4, 50: .5, 60: .6, 70: .7, 80: .8, 90: .9, 100: 1) !default;
113
126
  $sizes-percents: (
114
127
  10:10%, 20:20%, 30:30%, 40:40%, 50:50%, 60:60%, 70:70%, 80:80%, 90:90%, 100:100%,
115
- 25:25%, 75:75%, 33:33.333%, 66:66.666%, auto:auto
128
+ 5:5%, 15:15%, 25:25%, 35:35%, 45:45%, 55:55%, 65:65%, 75:75%, 85:85%, 95:95%,
129
+ 33:33.333%, 66:66.666%, auto:auto
116
130
  ) !default;
117
131
 
118
132
  /*
@@ -145,11 +159,11 @@ $spacers-map: (
145
159
  5: ($spacer * 3.00),
146
160
  );
147
161
  $negative-spacers: (
148
- N1: ($spacer * -0.25),
149
- N2: ($spacer * -0.5),
150
- N3: ($spacer * -1.00),
151
- N4: ($spacer * -1.50),
152
- N5: ($spacer * -3.00),
162
+ n1: ($spacer * -0.25),
163
+ n2: ($spacer * -0.5),
164
+ n3: ($spacer * -1.00),
165
+ n4: ($spacer * -1.50),
166
+ n5: ($spacer * -3.00),
153
167
  );
154
168
 
155
169
 
@@ -174,20 +188,24 @@ $gutters-map: $spacers-map !default;
174
188
  // --component-shadow-color: 0, 0, 0; // Has to be like this :p
175
189
  // https://stackoverflow.com/questions/59250927/box-shadow-with-rgba-variable
176
190
  */
177
- $Shadow-color: var(--#{$var-Prefix}shadow-color-rgb);
191
+ $Shadow-color: var(--#{$var-Prefix}shadow-hsl);
192
+
193
+ $SA-1: .27;
194
+ $SA-2: .18;
195
+ $SA-3: .09;
178
196
 
179
- $Shadow: 0px 1px 1px -1px rgba($Shadow-color, 0.18), 0px 2px 2px 0px rgba($Shadow-color, 0.12), 0px 4px 6px 0px rgba($Shadow-color, 0.06);
180
- $Shadow-2x: 0px 1px 1px 0px rgba($Shadow-color, 0.18), 0px 2px 3px 0px rgba($Shadow-color, 0.12), 0px 6px 9px 0px rgba($Shadow-color, 0.06);
181
- $Shadow-3x: 0px 2px 2px 0px rgba($Shadow-color, 0.18), 0px 3px 4px 0px rgba($Shadow-color, 0.12), 0px 9px 12px 0px rgba($Shadow-color, 0.06);
197
+ $Shadow: 0px 1px 1px -1px hsla($Shadow-color, $SA-1), 0px 2px 2px 0px hsla($Shadow-color, $SA-2), 0px 4px 6px 0px hsla($Shadow-color, $SA-3);
198
+ $Shadow-2x: 0px 1px 1px 0px hsla($Shadow-color, $SA-1), 0px 2px 3px 0px hsla($Shadow-color, $SA-2), 0px 6px 9px 0px hsla($Shadow-color, $SA-3);
199
+ $Shadow-3x: 0px 2px 2px 0px hsla($Shadow-color, $SA-1), 0px 3px 4px 0px hsla($Shadow-color, $SA-2), 0px 9px 12px 0px hsla($Shadow-color, $SA-3);
182
200
 
183
201
  $Shadow-map: (null: $Shadow, 2x: $Shadow-2x, 3x: $Shadow-3x,);
184
202
  $Shadow-map: map-merge($Shadow-map, Shadow-Separator(null, $Shadow));
185
203
  $Shadow-map: map-merge($Shadow-map, Shadow-Separator(2x, $Shadow-2x));
186
204
  $Shadow-map: map-merge($Shadow-map, Shadow-Separator(3x, $Shadow-3x));
187
205
 
188
- $Drop-shadow: drop-shadow(0px 1px 1px rgba($Shadow-color, 0.72)) drop-shadow(0px 2px 2px rgba($Shadow-color, 0.48)) drop-shadow(0px 4px 6px rgba($Shadow-color, 0.24));
189
- $Drop-shadow-2x: drop-shadow(0px 1px 1px rgba($Shadow-color, 0.72)) drop-shadow(0px 2px 3px rgba($Shadow-color, 0.48)) drop-shadow(0px 6px 9px rgba($Shadow-color, 0.24));
190
- $Drop-shadow-3x: drop-shadow(0px 2px 2px rgba($Shadow-color, 0.72)) drop-shadow(0px 3px 4px rgba($Shadow-color, 0.48)) drop-shadow(0px 9px 12px rgba($Shadow-color, 0.24));
206
+ $Drop-shadow: drop-shadow(0px 1px 1px hsla($Shadow-color, 0.72)) drop-shadow(0px 2px 2px hsla($Shadow-color, 0.48)) drop-shadow(0px 4px 6px hsla($Shadow-color, 0.24));
207
+ $Drop-shadow-2x: drop-shadow(0px 1px 1px hsla($Shadow-color, 0.72)) drop-shadow(0px 2px 3px hsla($Shadow-color, 0.48)) drop-shadow(0px 6px 9px hsla($Shadow-color, 0.24));
208
+ $Drop-shadow-3x: drop-shadow(0px 2px 2px hsla($Shadow-color, 0.72)) drop-shadow(0px 3px 4px hsla($Shadow-color, 0.48)) drop-shadow(0px 9px 12px hsla($Shadow-color, 0.24));
191
209
 
192
210
  $Drop-shadow-map: (0: drop-shadow(0 0 #0000), null: $Drop-shadow, 2x: $Drop-shadow-2x, 3x: $Drop-shadow-3x,);
193
211
 
@@ -195,13 +213,56 @@ $Drop-shadow-map: (0: drop-shadow(0 0 #0000), null: $Drop-shadow, 2x: $Drop-shad
195
213
  // Typography
196
214
  // Font, line-height, and color for body text, headings, and more.
197
215
  */
198
- // TODO: font
199
- $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
200
- $font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
216
+ // Font-family
217
+ $font-family-sans-serif: //
218
+ // Cross-platform generic font family (default user interface font)
219
+ system-ui,
220
+ // Safari for macOS and iOS (San Francisco)
221
+ -apple-system,
222
+ // Windows
223
+ "Segoe UI",
224
+ // Android
225
+ Roboto,
226
+ // Basic web fallback
227
+ "Helvetica Neue", Arial,
228
+ // Linux
229
+ "Noto Sans",
230
+ "Liberation Sans",
231
+ // Sans serif fallback
232
+ sans-serif,
233
+ // Emoji fonts
234
+ "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
201
235
  $font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
202
236
 
237
+ $font-family-base: var(--#{$var-Prefix}font-sans-serif) !default;
238
+ $font-family-code: var(--#{$var-Prefix}font-monospace) !default;
239
+
240
+ // Font-weight
203
241
  $font-weight-lighter: lighter !default;
204
242
  $font-weight-light: 300 !default;
205
243
  $font-weight-normal: 400 !default;
206
244
  $font-weight-bold: 700 !default;
207
245
  $font-weight-bolder: bolder !default;
246
+
247
+ $line-height-base: 1.5 !default;
248
+ $line-height-sm: 1.25 !default;
249
+ $line-height-lg: 2 !default;
250
+
251
+ // Font-size
252
+ $font-size-base: 1rem !default; // Assumes the browser default, typically `16px`
253
+
254
+ $h1-font-size: $font-size-base * 2.5 !default;
255
+ $h2-font-size: $font-size-base * 2 !default;
256
+ $h3-font-size: $font-size-base * 1.75 !default;
257
+ $h4-font-size: $font-size-base * 1.5 !default;
258
+ $h5-font-size: $font-size-base * 1.25 !default;
259
+ $h6-font-size: $font-size-base !default;
260
+
261
+ $font-sizes: (
262
+ 1: $h1-font-size,
263
+ 2: $h2-font-size,
264
+ 3: $h3-font-size,
265
+ 4: $h4-font-size,
266
+ 5: $h5-font-size,
267
+ 6: $h6-font-size
268
+ ) !default;
@@ -2,15 +2,15 @@
2
2
  // Components - Tables
3
3
  // ===========================================================================
4
4
 
5
- @import "../../_theme-colors";
5
+ @import "../../_color-scheme";
6
6
 
7
7
  .Table {
8
8
  width: 100%;
9
9
  margin-bottom: 1rem;
10
10
  vertical-align: top;
11
11
 
12
- color: $fg-Surface;
13
- background-color: $bg-Surface;
12
+ color: $Fg-surface;
13
+ background-color: $Bg-surface;
14
14
  border-color: $Border-color;
15
15
 
16
16
  > tbody {
@@ -3,59 +3,103 @@
3
3
  // ST: With Specific Theme
4
4
  // ===========================================================================
5
5
 
6
- $component-Name: $var-Prefix + 'alert-';
7
- @import "../_theme-customized";
6
+ $Customized: 'alert-';
7
+ @import "../_color-scheme";
8
8
 
9
9
  .Alert {
10
10
  display: flex;
11
11
  position: relative;
12
12
  overflow: hidden;
13
13
 
14
- color: $fg-Darkest;
15
- background-color: $bg-Darkest;
14
+ color: $Fg-hue;
15
+ background-color: $Bg-hue;
16
16
 
17
17
  border: $Border;
18
18
  box-shadow: $Shadow;
19
19
 
20
- min-width: 200px;
21
20
  margin-bottom: .5rem;
22
21
  padding: .5rem;
22
+
23
+ min-width: 200px;
24
+ //min-height: 70px;
25
+ //max-width: 600px;
26
+
23
27
  align-items: center;
24
28
 
29
+ margin-right: auto !important;
30
+ margin-left: auto !important;
31
+
32
+ &.Alert-gradient {
33
+ background: linear-gradient(180deg, $Bg-lightest 0%, $Bg-lighter 35%, $Bg-hue 100%); // vertical
34
+ &.Alert-outline {
35
+ background: linear-gradient(180deg, $Bg-surface 0%, $Bg-lightest 35%, $Bg-lighter 100%); // vertical
36
+ }
37
+ }
25
38
 
26
39
  &.Alert-outline {
27
- color: $fg-Lightest;
28
- background-color: $bg-Lightest;
40
+ color: $Fg-lightest;
41
+ background-color: $Bg-lightest;
29
42
 
30
- //border: .125rem solid $bg-Darkest;
31
- border: 1px solid $bg-Darkest;
43
+ //border: 1px solid hsla($Bg-accent-hsl, .5);
44
+
45
+ .Alert-icon {
46
+ color: $Bg-accent;
47
+ }
48
+
49
+ .Alert-right {
50
+ .Countdown {
51
+ //color: $Fg-lightest;
52
+ //background-color: $Bg-lightest;
53
+
54
+ //border-color: hsla($Bg-accent-hsl, .5);
55
+ }
56
+ }
32
57
  }
33
58
 
34
59
  .Alert-icon {
35
60
  display: flex;
36
61
  font-size: medium;
62
+
63
+ color: $Bg-lightest;
64
+ filter: drop-shadow(0 0 hsla($Bg-accent-hsl, .5));
37
65
  }
38
66
 
39
67
  .Alert-right {
40
68
  margin-left: auto;
41
69
  order: 2;
42
70
 
43
- span:first-child, small:first-child {
71
+ .Countdown {
44
72
  position: absolute;
45
- font-size: 12px;
46
- top: .7rem;
47
- right: 2rem;
73
+ padding: 0 0.25rem;
74
+ font-size: 0.65em;
75
+
76
+ top: 0.00rem;
77
+ right: 0.00rem;
78
+
79
+ color: $Fg-lighter;
80
+ background-color: $Bg-lighter;
81
+
82
+ border-left: 1px solid $Border-color;
83
+ border-bottom: 1px solid $Border-color;
48
84
  }
49
85
 
50
86
  .Btn-close {
51
- position: absolute;
52
- top: .5rem;
53
- right: .5rem;
87
+ z-index: auto;
88
+ //margin-top: 5px;
89
+ //width: 15px !important;
90
+ //height: 15px !important;
91
+ //position: absolute;
92
+ //top: .5rem;
93
+ //right: .5rem;
54
94
  }
55
95
  }
56
96
 
57
97
  .Alert-body {
58
- padding: .4rem;
98
+ padding: .25rem;
99
+ margin-left: 5px;
100
+ margin-right: 5px;
101
+
102
+ //border: $Border;
59
103
 
60
104
  .Alert-heading {
61
105
  display: block;
@@ -69,11 +113,41 @@ $component-Name: $var-Prefix + 'alert-';
69
113
  bottom: 0;
70
114
  border: none;
71
115
 
72
- background-color: $bg-Lightest;
116
+ background-color: $Bg-lightest;
73
117
 
74
118
  .Progress-bar {
75
- background-color: $bg-Active;
119
+ background-color: $Bg-accent;
76
120
  }
77
121
  }
78
122
  }
79
123
 
124
+ /* BRANDS */
125
+ .Alert {
126
+ &.Brand-facebook {
127
+ background: linear-gradient(to bottom right, #3B5998, #6d84b4)
128
+ }
129
+
130
+ &.Brand-github {
131
+ background: linear-gradient(to bottom right, #333, #373737)
132
+ }
133
+
134
+ &.Brand-instagram {
135
+ background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%)
136
+ }
137
+
138
+ &.Brand-linkedin {
139
+ background: linear-gradient(to bottom right, #0077B5, #00a0dc)
140
+ }
141
+
142
+ &.Brand-twitter {
143
+ background: linear-gradient(to bottom right, #1DA1F2, #0084b4)
144
+ }
145
+
146
+ &.Brand-wikipedia {
147
+ background: linear-gradient(to bottom right, #636466, #000)
148
+ }
149
+
150
+ &.Brand-youtube {
151
+ background: linear-gradient(to bottom right, #f00, #e62117)
152
+ }
153
+ }
@@ -0,0 +1,40 @@
1
+ // ===========================================================================
2
+ // Components - Badge
3
+ // ===========================================================================
4
+
5
+ // Base class
6
+ // Requires one of the contextual, color modifier classes for `color` and `background-color`.
7
+
8
+ $badge-font-size: .75em !default;
9
+ $badge-font-weight: $font-weight-bold !default;
10
+ $badge-color: $White !default;
11
+ $badge-padding-y: .35em !default;
12
+ $badge-padding-x: .65em !default;
13
+ $badge-border-radius: $Border-radius !default;
14
+
15
+ .Badge {
16
+ display: inline-block;
17
+ padding: $badge-padding-y $badge-padding-x;
18
+ //@include font-size($badge-font-size);
19
+ font-size: $badge-font-size;
20
+ font-weight: $badge-font-weight;
21
+ line-height: 1;
22
+ color: $badge-color;
23
+ text-align: center;
24
+ white-space: nowrap;
25
+ vertical-align: baseline;
26
+
27
+ border-radius: $badge-border-radius;
28
+ //@include gradient-bg();
29
+
30
+ // Empty badges collapse automatically
31
+ &:empty {
32
+ display: none;
33
+ }
34
+ }
35
+
36
+ // Quick fix for badges in buttons
37
+ .Btn .Badge {
38
+ position: relative;
39
+ top: -1px;
40
+ }