bobjoll 1.634.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.
Files changed (96) hide show
  1. package/README.md +35 -0
  2. package/package.json +26 -0
  3. package/scripts/script.js +199 -0
  4. package/scss/layout/_footer.scss +10 -0
  5. package/scss/layout/_header.scss +10 -0
  6. package/scss/modules/_fonts.scss +26 -0
  7. package/scss/modules/_reset.scss +219 -0
  8. package/scss/modules/bourbon/addons/_clearfix.scss +25 -0
  9. package/scss/modules/bourbon/addons/_ellipsis.scss +30 -0
  10. package/scss/modules/bourbon/addons/_position.scss +48 -0
  11. package/scss/modules/bourbon/addons/_prefixer.scss +66 -0
  12. package/scss/modules/bourbon/addons/_size.scss +51 -0
  13. package/scss/modules/bourbon/addons/_timing-functions.scss +34 -0
  14. package/scss/modules/bourbon/addons/_triangle.scss +63 -0
  15. package/scss/modules/bourbon/css3/_calc.scss +4 -0
  16. package/scss/modules/bourbon/css3/_flex-box.scss +287 -0
  17. package/scss/modules/bourbon/css3/_keyframes.scss +36 -0
  18. package/scss/modules/bourbon/css3/_linear-gradient.scss +38 -0
  19. package/scss/modules/bourbon/css3/_placeholder.scss +8 -0
  20. package/scss/modules/bourbon/css3/_selection.scss +42 -0
  21. package/scss/modules/bourbon/css3/_transition.scss +71 -0
  22. package/scss/modules/mixins/_component.scss +9 -0
  23. package/scss/modules/mixins/_grid.scss +75 -0
  24. package/scss/modules/mixins/_helpers.scss +224 -0
  25. package/scss/modules/variables/_colors.scss +447 -0
  26. package/scss/modules/variables/_general.scss +235 -0
  27. package/scss/partials/_accordion-v1-0.scss +165 -0
  28. package/scss/partials/_autocomplete-v1-0.scss +55 -0
  29. package/scss/partials/_general-v1-0.scss +51 -0
  30. package/scss/partials/_grid-v1-0.scss +109 -0
  31. package/scss/partials/_helper-v1-0.scss +299 -0
  32. package/scss/partials/_icon-v2-0.scss +323 -0
  33. package/scss/partials/_list-v1-0.scss +100 -0
  34. package/scss/partials/_modal-v1-0.scss +159 -0
  35. package/scss/partials/_notification-v1-1.scss +297 -0
  36. package/scss/partials/_progress-bar-v1.0.scss +25 -0
  37. package/scss/partials/_range-v1.0.scss +75 -0
  38. package/scss/partials/_tooltipFixed-v1.0.scss +128 -0
  39. package/scss/partials/_typography-v1-0.scss +201 -0
  40. package/scss/partials/animations/_fade.scss +23 -0
  41. package/scss/partials/animations/_rotate.scss +11 -0
  42. package/scss/partials/animations/_scale.scss +23 -0
  43. package/scss/partials/animations/_slide.scss +31 -0
  44. package/scss/partials/button-v4-0/_component.scss +304 -0
  45. package/scss/partials/form/_checkbox-and-radio-v1-0.scss +187 -0
  46. package/scss/partials/form/_dropdowns-v1-0.scss +323 -0
  47. package/scss/partials/form/_general-v1-0.scss +166 -0
  48. package/scss/partials/form/_group-v1-0.scss +157 -0
  49. package/scss/partials/form/_password-v1-0.scss +28 -0
  50. package/scss/partials/form/_switch-v1-0.scss +128 -0
  51. package/scss/partials/form/_upload-v1-0.scss +91 -0
  52. package/ts/library/common.ts +30 -0
  53. package/ts/library/cookie.ts +47 -0
  54. package/ts/library/delegate.ts +122 -0
  55. package/ts/library/dom.ts +124 -0
  56. package/ts/library/event.ts +138 -0
  57. package/ts/library/extend.js +32 -0
  58. package/ts/library/gr/dom.q.ts +12 -0
  59. package/ts/library/gr/social/dependency/twitter_pu.js +66 -0
  60. package/ts/library/gr/social/facebook.ts +154 -0
  61. package/ts/library/gr/social/google.ts +127 -0
  62. package/ts/library/gr/social/index.ts +35 -0
  63. package/ts/library/gr/social/twitter.ts +65 -0
  64. package/ts/library/helpers.ts +9 -0
  65. package/ts/library/number-abbreviate.js +57 -0
  66. package/ts/library/settings.ts +7 -0
  67. package/ts/library/storage.ts +131 -0
  68. package/ts/library/svg4everybody.legacy.js +122 -0
  69. package/ts/partials/accordion-v1.0.ts +104 -0
  70. package/ts/partials/accordionTabs-v1.0.ts +27 -0
  71. package/ts/partials/alert-v1.0.ts +51 -0
  72. package/ts/partials/copy-v1.0.ts +17 -0
  73. package/ts/partials/countdown-v1.0.ts +119 -0
  74. package/ts/partials/dropdown-v1.0.ts +247 -0
  75. package/ts/partials/hbs-v1.0.ts +9 -0
  76. package/ts/partials/modal-v1.0.ts +213 -0
  77. package/ts/partials/notifications-v1.1.ts +376 -0
  78. package/ts/partials/notify-v1.0.ts +746 -0
  79. package/ts/partials/password-v1.0.ts +19 -0
  80. package/ts/partials/popover-v1.0.ts +125 -0
  81. package/ts/partials/progress-bar-v1.0.ts +29 -0
  82. package/ts/partials/scroll-v1.0.ts +169 -0
  83. package/ts/partials/scrollable-v1.0.ts +90 -0
  84. package/ts/partials/tabs-v1.0.ts +79 -0
  85. package/ts/partials/tags-v1.0.ts +21 -0
  86. package/ts/partials/trigger-v2.0.ts +155 -0
  87. package/ts/partials/upload-v1.0.ts +17 -0
  88. package/ts/views/hbs/alert-v1.0/element.html.hbs +35 -0
  89. package/ts/views/hbs/countdown-v1.0/countdown-inner.hbs +39 -0
  90. package/ts/views/hbs/countdown-v1.0/countdown.hbs +4 -0
  91. package/ts/views/hbs/dropdown-v1.0/element.html.hbs +70 -0
  92. package/ts/views/hbs/helpers.js +58 -0
  93. package/ts/views/hbs/modal-v1.0/element.html.hbs +17 -0
  94. package/ts/views/hbs/notification-v1.1/element-disable.html.hbs +26 -0
  95. package/ts/views/hbs/notification-v1.1/element.html.hbs +43 -0
  96. package/ts/views/hbs/notification-v1.1/wrapper.html.hbs +4 -0
@@ -0,0 +1,75 @@
1
+ @mixin grid($grid-columns: 12) {
2
+ $grid-media-width: map-values($breakpoints);
3
+ $grid-media-mode: map-keys($breakpoints);
4
+
5
+ @each $current-media-width in $grid-media-width {
6
+ $i: index($grid-media-width, $current-media-width);
7
+ $mode: nth($grid-media-mode, $i);
8
+
9
+ @include grid-media($current-media-width, $mode, $grid-columns);
10
+
11
+ @for $i from 1 through $grid-columns {
12
+ .col__#{$mode}--#{$i} {
13
+ @extend %col;
14
+ }
15
+ }
16
+ }
17
+ }
18
+
19
+ @mixin grid-media($grid-media-width, $grid-media-mode, $grid-columns) {
20
+ @if $grid-media-mode == 'xs' {
21
+ @include grid-columns($grid-media-mode, $grid-columns);
22
+ }
23
+ @media screen and (min-width: ($grid-media-width + 0px)) {
24
+ @include grid-columns($grid-media-mode, $grid-columns);
25
+ }
26
+ }
27
+
28
+ @mixin grid-columns($grid-media-mode, $grid-columns) {
29
+ $grid-mode-list: '' 'offset';
30
+ @each $current-grid-mode in $grid-mode-list {
31
+ @if $current-grid-mode != '' {
32
+ @for $i from $grid-columns through 0 {
33
+ .col__#{$grid-media-mode}--#{$current-grid-mode}-#{$i} {
34
+ @include grid-style($i, $current-grid-mode);
35
+ }
36
+ }
37
+ } @else {
38
+ @for $i from $grid-columns through 1 {
39
+ .col__#{$grid-media-mode}--#{$i} {
40
+ @include grid-style($i, $current-grid-mode);
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ @mixin grid-style($span: $columns of $container-columns, $mode: '') {
48
+ $columns: nth($span, 1);
49
+ $container-columns: $grid-columns;
50
+ $percentage: $columns / $container-columns * 100%;
51
+
52
+ @if $percentage == 0% and $mode != offset {
53
+ $percentage: auto;
54
+ }
55
+
56
+ @if $mode == '' {
57
+ @if $grid-mode == 'flexbox' {
58
+ width: $percentage;
59
+ } @else if $grid-mode == 'float' {
60
+ width: $percentage;
61
+ }
62
+ }
63
+
64
+ @if $mode == pull and $grid--pull {
65
+ right: $percentage;
66
+ }
67
+
68
+ @if $mode == push and $grid--push {
69
+ left: $percentage;
70
+ }
71
+
72
+ @if $mode == offset and $grid--offset {
73
+ margin-left: $percentage;
74
+ }
75
+ }
@@ -0,0 +1,224 @@
1
+ // Fluid typo
2
+ @mixin fluid-type($properties, $min-vw, $max-vw, $min-value, $max-value) {
3
+ @each $property in $properties {
4
+ #{$property}: $min-value;
5
+ }
6
+
7
+ @media screen and (min-width: $min-vw) {
8
+ @each $property in $properties {
9
+ #{$property}: calc(#{$min-value} + #{strip-unit($max-value - $min-value)} * (100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)});
10
+ }
11
+ }
12
+
13
+ @media screen and (min-width: $max-vw) {
14
+ @each $property in $properties {
15
+ #{$property}: $max-value;
16
+ }
17
+ }
18
+ }
19
+
20
+ @function strip-unit($number) {
21
+ @if type-of($number) == 'number' and not unitless($number) {
22
+ @return $number / ($number * 0 + 1);
23
+ }
24
+
25
+ @return $number;
26
+ }
27
+
28
+ // Last of map
29
+ @function map-get-last($map) {
30
+ $last-key: '';
31
+
32
+ @each $key, $value in $map {
33
+ $last-key: $key;
34
+ }
35
+
36
+ @return $last-key;
37
+ }
38
+
39
+ // Extend map
40
+ @function map-extend($parent-map, $child-map) {
41
+ $result: $parent-map;
42
+
43
+ @each $key, $value in $child-map {
44
+ @if (not map-has-key($result, $key)) or (type-of(map-get($result, $key)) != type-of($value)) or (not (type-of(map-get($result, $key)) == map and type-of($value) == map)) {
45
+ $result: map-merge($result, ($key: $value));
46
+ }
47
+ @else {
48
+ $result: map-merge($result, ($key: map-extend(map-get($result, $key), $value)));
49
+ }
50
+ }
51
+
52
+ @return $result;
53
+ }
54
+
55
+ // Color
56
+ @function color($color, $group, $opacity: 1, $darken: 0) {
57
+ $array: map-get($colors, $group);
58
+
59
+ @if type-of($array) == "map" {
60
+ $hex: map-get($array, $color);
61
+
62
+ @if $hex == null {
63
+ @warn "Sorry, but '#{$color}' is not found in '#{$group}'.";
64
+ } @else {
65
+ @if type-of($hex) == 'color' {
66
+ $hex: ( $hex, $opacity, $darken );
67
+ }
68
+
69
+ $color: nth($hex, 1);
70
+
71
+ @if nth($hex, 2) and nth($hex, 2) != 1 {
72
+ $color: rgba($color, nth($hex, 2));
73
+ }
74
+
75
+ @if nth($hex, 3) and nth($hex, 3) != 0 {
76
+ $color: call(get-function(if(nth($hex, 3) >=0, darken, lighten)), $color, abs(nth($hex, 3)));
77
+ }
78
+
79
+ @if type-of($hex) == 'list' {
80
+ @if $opacity != 1 {
81
+ $color: rgba($color, $opacity);
82
+ }
83
+
84
+ @if $darken != 1 {
85
+ $color: call(get-function(if($darken >=0, darken, lighten)), $color, abs($darken));
86
+ }
87
+ }
88
+
89
+ @return $color;
90
+ }
91
+ } @else {
92
+ @debug('$array', $array);
93
+ @debug('$color', $color, $group);
94
+ }
95
+ }
96
+
97
+ // Breakpoint
98
+ @mixin breakpoint($size: null, $width: 'max') {
99
+ @if (map-get($breakpoints, $size)) {
100
+ $size: map-get($breakpoints, $size) + 0px;
101
+ }
102
+
103
+ @media screen and (#{$width}-width: $size) {
104
+ @content;
105
+ }
106
+ }
107
+
108
+ // Classes
109
+ @mixin element($element) {
110
+ &__#{$element} {
111
+ @content;
112
+ }
113
+ }
114
+
115
+ @mixin modifier($modifier) {
116
+ &--#{$modifier} {
117
+ @content;
118
+ }
119
+ }
120
+
121
+ // Fonts
122
+ @mixin font-size($var) {
123
+ @if (type-of($var) == 'map') {
124
+ $min-width: if(map-has-key($var, 'min-vw'), map-get($var, 'min-vw'), false);
125
+ $max-width: if(map-has-key($var, 'max-vw'), map-get($var, 'max-vw'), false);
126
+ $min-value: if(map-has-key($var, 'min-value'), map-get($var, 'min-value'), false);
127
+ $max-value: if(map-has-key($var, 'max-value'), map-get($var, 'max-value'), false);
128
+
129
+ @if ($min-width != false AND $max-width != false AND $min-value != false AND $max-value != false) {
130
+ @include fluid-type(font-size, $min-width, $max-width, $min-value, $max-value);
131
+ } @else {
132
+ @each $breakpoint, $font-size in $var {
133
+ @if $breakpoint == null {
134
+ font-size: $font-size;
135
+ } @else {
136
+ @media screen and (min-width: map-get($breakpoints, $breakpoint)) {
137
+ font-size: $font-size;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ } @else {
143
+ font-size: $var;
144
+ }
145
+ }
146
+
147
+ // Extending Placeholder
148
+ @mixin _($name) {
149
+ @extend %#{$name}-#{$current-breakpoint} !optional;
150
+ }
151
+
152
+ // Color classes
153
+ @mixin color-classes($array: $colors, $keys: $colors-keys) {
154
+ @each $key in $keys {
155
+ $colors: map-get($array, $key);
156
+ $colors-text: map-get($array, #{$key}-text);
157
+
158
+ @each $color-name, $color-hex in $colors {
159
+ $color-value: color($color-name, $key);
160
+ $color-text: pick-visible-color(
161
+ $color-value,
162
+ color('text', 'general'),
163
+ color('text-inverted', 'general')
164
+ );
165
+
166
+ @if $colors-text {
167
+ $color-text: map-get($colors-text, $color-name);
168
+ } @else {
169
+
170
+ }
171
+
172
+ .bg {
173
+ @include element($key) {
174
+ @include modifier($color-name) {
175
+ color: $color-text;
176
+ background-color: $color-value;
177
+ }
178
+ }
179
+ }
180
+
181
+ .text {
182
+ @include element($key) {
183
+ @include modifier($color-name) {
184
+ color: $color-value;
185
+ }
186
+ }
187
+ }
188
+
189
+ a.text:hover {
190
+ @include element($key) {
191
+ @include modifier($color-name) {
192
+ color: color($color-name, $key, 1, 10);
193
+ }
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ // Best color for background
201
+ @function luma($c) {
202
+ $-local-red: red(rgba($c, 1.0));
203
+ $-local-green: green(rgba($c, 1.0));
204
+ $-local-blue: blue(rgba($c, 1.0));
205
+
206
+ @return (0.2126 * $-local-red +
207
+ 0.7152 * $-local-green +
208
+ 0.0722 * $-local-blue) / 255;
209
+ }
210
+
211
+ @function pick-visible-color($bg, $c1, $c2) {
212
+ $bg-luma: luma($bg);
213
+ $c1-luma: luma($c1);
214
+ $c2-luma: luma($c2);
215
+
216
+ $c1-diff: abs($bg-luma - $c1-luma);
217
+ $c2-diff: abs($bg-luma - $c2-luma);
218
+
219
+ @if $c1-diff > $c2-diff {
220
+ @return $c1;
221
+ } @else {
222
+ @return $c2;
223
+ }
224
+ }