bobjoll 1.0.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 (95) hide show
  1. package/README.md +35 -0
  2. package/package.json +25 -0
  3. package/scss/layout/_footer.scss +10 -0
  4. package/scss/layout/_header.scss +10 -0
  5. package/scss/modules/_fonts.scss +26 -0
  6. package/scss/modules/_reset.scss +219 -0
  7. package/scss/modules/bourbon/addons/_clearfix.scss +25 -0
  8. package/scss/modules/bourbon/addons/_ellipsis.scss +30 -0
  9. package/scss/modules/bourbon/addons/_position.scss +48 -0
  10. package/scss/modules/bourbon/addons/_prefixer.scss +66 -0
  11. package/scss/modules/bourbon/addons/_size.scss +51 -0
  12. package/scss/modules/bourbon/addons/_timing-functions.scss +34 -0
  13. package/scss/modules/bourbon/addons/_triangle.scss +63 -0
  14. package/scss/modules/bourbon/css3/_calc.scss +4 -0
  15. package/scss/modules/bourbon/css3/_flex-box.scss +287 -0
  16. package/scss/modules/bourbon/css3/_keyframes.scss +36 -0
  17. package/scss/modules/bourbon/css3/_linear-gradient.scss +38 -0
  18. package/scss/modules/bourbon/css3/_placeholder.scss +8 -0
  19. package/scss/modules/bourbon/css3/_selection.scss +42 -0
  20. package/scss/modules/bourbon/css3/_transition.scss +71 -0
  21. package/scss/modules/mixins/_component.scss +9 -0
  22. package/scss/modules/mixins/_grid.scss +75 -0
  23. package/scss/modules/mixins/_helpers.scss +224 -0
  24. package/scss/modules/variables/_colors.scss +447 -0
  25. package/scss/modules/variables/_general.scss +235 -0
  26. package/scss/partials/_accordion-v1-0.scss +165 -0
  27. package/scss/partials/_autocomplete-v1-0.scss +55 -0
  28. package/scss/partials/_general-v1-0.scss +51 -0
  29. package/scss/partials/_grid-v1-0.scss +109 -0
  30. package/scss/partials/_helper-v1-0.scss +299 -0
  31. package/scss/partials/_icon-v2-0.scss +323 -0
  32. package/scss/partials/_list-v1-0.scss +100 -0
  33. package/scss/partials/_modal-v1-0.scss +159 -0
  34. package/scss/partials/_notification-v1-1.scss +297 -0
  35. package/scss/partials/_progress-bar-v1.0.scss +25 -0
  36. package/scss/partials/_range-v1.0.scss +75 -0
  37. package/scss/partials/_tooltipFixed-v1.0.scss +128 -0
  38. package/scss/partials/_typography-v1-0.scss +201 -0
  39. package/scss/partials/animations/_fade.scss +23 -0
  40. package/scss/partials/animations/_rotate.scss +11 -0
  41. package/scss/partials/animations/_scale.scss +23 -0
  42. package/scss/partials/animations/_slide.scss +31 -0
  43. package/scss/partials/button-v4-0/_component.scss +304 -0
  44. package/scss/partials/form/_checkbox-and-radio-v1-0.scss +187 -0
  45. package/scss/partials/form/_dropdowns-v1-0.scss +323 -0
  46. package/scss/partials/form/_general-v1-0.scss +166 -0
  47. package/scss/partials/form/_group-v1-0.scss +157 -0
  48. package/scss/partials/form/_password-v1-0.scss +28 -0
  49. package/scss/partials/form/_switch-v1-0.scss +128 -0
  50. package/scss/partials/form/_upload-v1-0.scss +91 -0
  51. package/ts/library/common.ts +30 -0
  52. package/ts/library/cookie.ts +47 -0
  53. package/ts/library/delegate.ts +122 -0
  54. package/ts/library/dom.ts +124 -0
  55. package/ts/library/event.ts +138 -0
  56. package/ts/library/extend.js +32 -0
  57. package/ts/library/gr/dom.q.ts +12 -0
  58. package/ts/library/gr/social/dependency/twitter_pu.js +66 -0
  59. package/ts/library/gr/social/facebook.ts +154 -0
  60. package/ts/library/gr/social/google.ts +127 -0
  61. package/ts/library/gr/social/index.ts +35 -0
  62. package/ts/library/gr/social/twitter.ts +65 -0
  63. package/ts/library/helpers.ts +9 -0
  64. package/ts/library/number-abbreviate.js +57 -0
  65. package/ts/library/settings.ts +7 -0
  66. package/ts/library/storage.ts +131 -0
  67. package/ts/library/svg4everybody.legacy.js +122 -0
  68. package/ts/partials/accordion-v1.0.ts +104 -0
  69. package/ts/partials/accordionTabs-v1.0.ts +27 -0
  70. package/ts/partials/alert-v1.0.ts +51 -0
  71. package/ts/partials/copy-v1.0.ts +17 -0
  72. package/ts/partials/countdown-v1.0.ts +119 -0
  73. package/ts/partials/dropdown-v1.0.ts +247 -0
  74. package/ts/partials/hbs-v1.0.ts +9 -0
  75. package/ts/partials/modal-v1.0.ts +213 -0
  76. package/ts/partials/notifications-v1.1.ts +376 -0
  77. package/ts/partials/notify-v1.0.ts +746 -0
  78. package/ts/partials/password-v1.0.ts +19 -0
  79. package/ts/partials/popover-v1.0.ts +125 -0
  80. package/ts/partials/progress-bar-v1.0.ts +29 -0
  81. package/ts/partials/scroll-v1.0.ts +169 -0
  82. package/ts/partials/scrollable-v1.0.ts +90 -0
  83. package/ts/partials/tabs-v1.0.ts +79 -0
  84. package/ts/partials/tags-v1.0.ts +21 -0
  85. package/ts/partials/trigger-v2.0.ts +155 -0
  86. package/ts/partials/upload-v1.0.ts +17 -0
  87. package/ts/views/hbs/alert-v1.0/element.html.hbs +35 -0
  88. package/ts/views/hbs/countdown-v1.0/countdown-inner.hbs +39 -0
  89. package/ts/views/hbs/countdown-v1.0/countdown.hbs +4 -0
  90. package/ts/views/hbs/dropdown-v1.0/element.html.hbs +70 -0
  91. package/ts/views/hbs/helpers.js +58 -0
  92. package/ts/views/hbs/modal-v1.0/element.html.hbs +17 -0
  93. package/ts/views/hbs/notification-v1.1/element-disable.html.hbs +26 -0
  94. package/ts/views/hbs/notification-v1.1/element.html.hbs +43 -0
  95. package/ts/views/hbs/notification-v1.1/wrapper.html.hbs +4 -0
@@ -0,0 +1,304 @@
1
+ @import 'settings';
2
+
3
+ @if $button-v4-0 {
4
+ $defaultSize: map-get($defaultSettings, 'defaultSize');
5
+ $defaultStyle: map-get($defaultSettings, 'defaultStyle');
6
+ $defaultColor: map-get($defaultSettings, 'defaultColor');
7
+ $defaultStyles: map-get($buttonStyles, $defaultStyle);
8
+
9
+ #{$all-buttons} {
10
+ @include prefixer(appearance, none, webkit moz ms);
11
+ margin: 0;
12
+ padding: 0;
13
+ border: none;
14
+ background: none;
15
+ user-select: none;
16
+ cursor: pointer;
17
+ }
18
+
19
+ .#{$defaultPrefix} {
20
+ position: relative;
21
+ display: inline-block;
22
+ border: none;
23
+ border-radius: $buttonBorderRadius;
24
+ padding: $buttonPadding;
25
+ text-align: center;
26
+ font-weight: $defaultFontWeight;
27
+ text-decoration: none;
28
+ cursor: pointer;
29
+
30
+ @each $name, $value in map-get($defaultSizeMap, 'propertiesButton') {
31
+ #{$name}: #{$value};
32
+ }
33
+
34
+ @each $name, $map in $defaultColorMap {
35
+ @if ($name == 'default') {
36
+ transition: $defaultDuration $defaultTiming;
37
+ @each $propertyRealName, $propertyKey in $defaultStyles {
38
+ @each $name, $value in $map {
39
+ @if ($name == $propertyRealName) {
40
+ #{$name}: #{$value};
41
+ }
42
+ }
43
+ }
44
+ }
45
+
46
+ @if ($name == 'hover') {
47
+ &:hover {
48
+ @each $name, $value in $map {
49
+ #{$name}: #{$value};
50
+ }
51
+ }
52
+ }
53
+
54
+ @if ($name == 'active') {
55
+ &.active {
56
+ @each $name, $value in $map {
57
+ #{$name}: #{$value};
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ &::after {
64
+ display: table;
65
+ clear: both;
66
+ content: '';
67
+ }
68
+
69
+ &--auto {
70
+ @include getComponent(#{$defaultPrefix}--auto);
71
+ }
72
+
73
+ &--state {
74
+ @include getComponent(#{$defaultPrefix}--state);
75
+ }
76
+
77
+ &--icon {
78
+ @include getComponent(#{$defaultPrefix}--icon);
79
+ }
80
+
81
+ &--fullwidth {
82
+ @include getComponent(#{$defaultPrefix}--fullwidth);
83
+ }
84
+
85
+ &.disabled {
86
+ opacity: 0.4;
87
+ pointer-events: none;
88
+ }
89
+
90
+ @each $size, $map in $buttonSizes {
91
+ &--#{$size} {
92
+ @include getComponent(#{$defaultPrefix}--#{$size});
93
+ }
94
+ }
95
+
96
+ @each $style, $map in $buttonStyles {
97
+ &--#{$style} {
98
+ @include getComponent(#{$defaultPrefix}--#{$style});
99
+ }
100
+ }
101
+
102
+ span ~ i,
103
+ i ~ span {
104
+ margin-left: $small-spacing;
105
+ }
106
+
107
+ span {
108
+ float: left;
109
+ }
110
+
111
+ i {
112
+ float: left;
113
+ color: inherit !important;
114
+ fill: inherit !important;
115
+
116
+ @if $icon-v2-0 {
117
+ @extend %icon;
118
+ }
119
+
120
+ @each $name, $value in map-get($defaultSizeMap, 'propertiesIcon') {
121
+ #{$name}: #{$value};
122
+ }
123
+
124
+ &::before {
125
+ display: block;
126
+ }
127
+ }
128
+ }
129
+
130
+ @include setComponent(#{$defaultPrefix}--auto) {
131
+ height: auto !important;
132
+ padding-top: $small-spacing;
133
+ padding-bottom: $small-spacing;
134
+ line-height: 1 !important;
135
+
136
+ span {
137
+ float: none !important;
138
+ }
139
+ }
140
+
141
+ @include setComponent(#{$defaultPrefix}--state) {
142
+ &:not(.active) .state--inactive,
143
+ &.active .state--active {
144
+ display: block;
145
+ }
146
+
147
+ .state--active,
148
+ .state--inactive {
149
+ display: none;
150
+ }
151
+ }
152
+
153
+ @include setComponent(#{$defaultPrefix}--icon) {
154
+ padding: 0 !important;
155
+
156
+ i {
157
+ float: inherit !important;
158
+ margin: 0 auto;
159
+ }
160
+ }
161
+
162
+ @include setComponent(#{$defaultPrefix}--fullwidth) {
163
+ @include prefixer(display, flex, ms spec);
164
+ @include prefixer(align-items, center, ms spec);
165
+ @include prefixer(justify-content, center, ms spec);
166
+ width: 100%;
167
+ }
168
+
169
+ @include setComponent(#{$defaultPrefix}--google) {
170
+ $defaultButtonSize: map-get($buttonSizes, 'md');
171
+ $defaultIconProperties: map-get($defaultButtonSize, 'propertiesIcon');
172
+ $defaultFontSize: map-get($defaultIconProperties, 'font-size');
173
+
174
+ i {
175
+ display: inline-block;
176
+ width: $defaultFontSize;
177
+ height: 100%;
178
+ background: url('~bobjoll/images/icons/google.svg') no-repeat center center;
179
+ background-size: contain;
180
+
181
+ &::before {
182
+ display: none;
183
+ }
184
+ }
185
+
186
+ @each $size, $map in $buttonSizes {
187
+ &.#{defaultPrefix}--#{$size} {
188
+ $properties: map-get($map, 'propertiesIcon');
189
+ $font-size: map-get($properties, 'font-size');
190
+
191
+ i {
192
+ width: $font-size;
193
+ }
194
+ }
195
+ }
196
+ }
197
+
198
+ @each $size, $map in $buttonSizes {
199
+ @include setComponent(#{$defaultPrefix}--#{$size}) {
200
+ @each $propertyName, $propertyValue in map-get($map, 'propertiesButton') {
201
+ #{$propertyName}: #{$propertyValue};
202
+ }
203
+
204
+ i {
205
+ @each $propertyName, $propertyValue in map-get($map, 'propertiesIcon') {
206
+ #{$propertyName}: #{$propertyValue};
207
+ }
208
+ }
209
+ }
210
+ }
211
+
212
+ @each $buttonStyle, $buttonProperties in $buttonStyles {
213
+ @include setComponent(#{$defaultPrefix}--#{$buttonStyle}) {
214
+ @each $propertyRealName, $propertyKey in $buttonProperties {
215
+ // default styles
216
+ @each $colorName, $colorMap in $defaultColorMap {
217
+ @if ('default' == $colorName) {
218
+ @each $propertyName, $propertyValue in $colorMap {
219
+ @if ($propertyKey==$propertyName) {
220
+ #{$propertyRealName}: #{$propertyValue};
221
+ }
222
+ }
223
+ }
224
+ @if ('hover' == $colorName) {
225
+ &:hover,
226
+ &:focus {
227
+ @each $propertyName, $propertyValue in $colorMap {
228
+ @if ($propertyKey==$propertyName) {
229
+ #{$propertyRealName}: #{$propertyValue};
230
+ }
231
+ }
232
+ }
233
+ }
234
+ @if ('active' == $colorName) {
235
+ &.active {
236
+ @each $propertyName, $propertyValue in $colorMap {
237
+ @if ($propertyKey==$propertyName) {
238
+ #{$propertyRealName}: #{$propertyValue};
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+
248
+ @each $buttonStyle, $buttonProperties in $buttonStyles {
249
+ $prefix: #{$defaultPrefix};
250
+ @if ($buttonStyle != map-get($buttonSettings, 'defaultStyle')) {
251
+ $prefix: '#{$defaultPrefix}--#{$buttonStyle}.#{$defaultPrefix}';
252
+ }
253
+ @each $colorName, $colorProperties in $buttonColors {
254
+ $ignoreStyles: map-get($colorProperties, 'ignoreStyles');
255
+ $ignoreStyle: index($ignoreStyles, $buttonStyle);
256
+ @if (null == $ignoreStyle) {
257
+ @include setComponent(#{$prefix}--#{$colorName}) {
258
+ @each $propertyRealName, $propertyKey in $buttonProperties {
259
+ @each $colorState, $colorStateMap in $colorProperties {
260
+ @if ($colorState == 'default') {
261
+ @each $propertyName, $propertyValue in $colorStateMap {
262
+ @if ($propertyKey == $propertyName) {
263
+ #{$propertyRealName}: #{$propertyValue};
264
+ }
265
+ }
266
+ }
267
+ @if ($colorState == 'hover') {
268
+ &:hover,
269
+ &:focus {
270
+ @each $propertyName, $propertyValue in $colorStateMap {
271
+ @if ($propertyKey == $propertyName) {
272
+ #{$propertyRealName}: #{$propertyValue};
273
+ }
274
+ }
275
+ }
276
+ }
277
+
278
+ @if ($colorState == 'active') {
279
+ &.active {
280
+ @each $propertyName, $propertyValue in $colorStateMap {
281
+ @if ($propertyKey == $propertyName) {
282
+ #{$propertyRealName}: #{$propertyValue};
283
+ }
284
+ }
285
+ }
286
+ }
287
+
288
+ @if ($colorState == 'propertiesIcon') {
289
+ i {
290
+ @each $propertyName, $propertyValue in $colorStateMap {
291
+ #{$propertyName}: #{$propertyValue};
292
+ }
293
+ }
294
+ }
295
+ }
296
+ }
297
+ }
298
+ .#{$prefix}--#{$colorName} {
299
+ @include getComponent(#{$prefix}--#{$colorName});
300
+ }
301
+ }
302
+ }
303
+ }
304
+ }
@@ -0,0 +1,187 @@
1
+ @if $form-v1-0 {
2
+ %checked-indicator {
3
+ @include transition(
4
+ box-shadow $base-duration $base-timing
5
+ background-color $base-duration $base-timing
6
+ );
7
+
8
+ box-shadow: inset 0 0 0 $extra-large-input-height color('link', 'general');
9
+
10
+ .icon {
11
+ @include transform(scale(1));
12
+ @include transition(
13
+ opacity $base-duration $base-duration $base-timing,
14
+ transform $base-duration $base-duration $base-timing
15
+ );
16
+
17
+ opacity: 1;
18
+ }
19
+ }
20
+
21
+ %checked-link {
22
+ opacity: 1;
23
+ }
24
+
25
+ %spacing {
26
+ margin-left: $small-spacing;
27
+ }
28
+
29
+ .checkbox,
30
+ .radio {
31
+ @extend %row-flexbox;
32
+ @extend .row--vertical-center;
33
+
34
+ cursor: pointer;
35
+
36
+ padding: (($base-element-height - $base-input-ui-height) / 2) 0;
37
+
38
+ &.active .checkbox__indicator,
39
+ &.active .radio__indicator {
40
+ @extend %checked-indicator;
41
+ }
42
+
43
+ &.active .checkbox__link,
44
+ &.active .radio__link {
45
+ @extend %checked-link;
46
+ }
47
+
48
+ input[type="checkbox"],
49
+ input[type="radio"] {
50
+ display: none;
51
+
52
+ &:checked ~ .checkbox__indicator,
53
+ &:checked ~ .radio__indicator {
54
+ @extend %checked-indicator;
55
+ }
56
+
57
+ &:checked ~ .checkbox__link,
58
+ &:checked ~ .checkbox__link {
59
+ @extend %checked-link;
60
+ }
61
+ }
62
+
63
+ @include element('indicator') {
64
+ display: block;
65
+
66
+ width: $base-input-ui-height;
67
+ height: $base-input-ui-height;
68
+
69
+ border-radius: $base-border-radius;
70
+
71
+ background-color: color('input', 'background');
72
+
73
+ box-shadow: inset 0 0 0 $base-border-width color('border', 'general', 1, 10);
74
+
75
+ .icon {
76
+ @include transform(scale(0));
77
+ @include transition(
78
+ opaicty $base-duration $base-timing,
79
+ transform $base-duration $base-timing
80
+ );
81
+
82
+ opacity: 0;
83
+
84
+ width: $base-input-ui-height;
85
+ height: $base-input-ui-height;
86
+
87
+ padding: (($base-input-ui-height - ($base-input-ui-height * .8)) / 2);
88
+
89
+ color: color('input', 'background');
90
+ fill: color('input', 'background');
91
+ font-size: $base-input-ui-height * .8;
92
+ line-height: $base-input-ui-height * .8;
93
+ }
94
+ }
95
+
96
+ @include element('link') {
97
+ @include transition(opacity $base-duration $base-timing);
98
+ @include user-select(none);
99
+
100
+ display: inline;
101
+
102
+ flex: 1;
103
+
104
+ height: $base-input-ui-height;
105
+
106
+ line-height: $base-input-ui-height;
107
+ }
108
+
109
+ @include modifier('inverted') {
110
+ color: color('text-inverted', 'general', 1);
111
+
112
+ input[type="checkbox"]:checked + .checkbox__indicator,
113
+ input[type="radio"]:checked + .radio__indicator {
114
+ background-color: color('input', 'background');
115
+
116
+ // box-shadow: inset 0 0 0 ($base-input-ui-height) color('link', 'general');
117
+
118
+ .icon {
119
+ color: color('link', 'general');
120
+ }
121
+ }
122
+ }
123
+
124
+ // Sizes
125
+ @each $size in $sizes {
126
+ $checkbox-width: map-get($input-ui-sizes, $size);
127
+ $checkbox-height: $checkbox-width;
128
+ $icon-size: $checkbox-width * .8;
129
+
130
+ @include modifier($size) {
131
+ padding: (($base-element-height - $checkbox-height) / 2) 0;
132
+
133
+ .checkbox__indicator,
134
+ .radio__indicator {
135
+ width: $checkbox-width;
136
+ height: $checkbox-height;
137
+
138
+ .icon {
139
+ width: $checkbox-width;
140
+ height: $checkbox-height;
141
+
142
+ padding: ($checkbox-width - $icon-size) / 2;
143
+
144
+ font-size: $icon-size;
145
+ line-height: $icon-size;
146
+ }
147
+ }
148
+
149
+ .checkbox__link,
150
+ .radio__link {
151
+ height: $checkbox-height;
152
+
153
+ line-height: $checkbox-height;
154
+ }
155
+ }
156
+ } // End sizes
157
+ }
158
+
159
+ .checkbox {
160
+ .checkbox__indicator ~ .checkbox__link,
161
+ .checkbox__link ~ .checkbox__indicator {
162
+ @extend %spacing;
163
+ }
164
+ }
165
+
166
+ .radio {
167
+ .radio__indicator ~ .radio__link,
168
+ .radio__link ~ .radio__indicator {
169
+ @extend %spacing;
170
+ }
171
+
172
+ .radio__indicator {
173
+ border-radius: 50%;
174
+ }
175
+
176
+ &.active .radio__indicator,
177
+ input[type="radio"]:checked ~ .radio__indicator {
178
+ box-shadow: inset 0 0 0 5px color('link', 'general');
179
+ }
180
+
181
+ @include modifier('inverted') {
182
+ input[type="radio"]:checked ~ .radio__indicator {
183
+ box-shadow: inset 0 0 0 5px color('link', 'general');
184
+ }
185
+ }
186
+ }
187
+ }