@finqu/cool 1.2.28 → 1.2.29

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 (72) hide show
  1. package/dist/css/cool-grid.css +703 -17
  2. package/dist/css/cool-grid.css.map +3 -3
  3. package/dist/css/cool-grid.min.css +1 -1
  4. package/dist/css/cool-grid.min.css.map +1 -1
  5. package/dist/css/cool-reboot.css +16 -15
  6. package/dist/css/cool-reboot.css.map +7 -7
  7. package/dist/css/cool-reboot.min.css +1 -1
  8. package/dist/css/cool-reboot.min.css.map +1 -1
  9. package/dist/css/cool.css +2663 -2160
  10. package/dist/css/cool.css.map +30 -30
  11. package/dist/css/cool.min.css +1 -1
  12. package/dist/css/cool.min.css.map +1 -1
  13. package/dist/js/cool.bundle.js +127 -107
  14. package/dist/js/cool.bundle.js.map +1 -1
  15. package/dist/js/cool.bundle.min.js +3 -3
  16. package/dist/js/cool.bundle.min.js.map +1 -1
  17. package/dist/js/cool.esm.js +127 -107
  18. package/dist/js/cool.esm.js.map +1 -1
  19. package/dist/js/cool.esm.min.js +3 -3
  20. package/dist/js/cool.esm.min.js.map +1 -1
  21. package/dist/js/cool.js +127 -107
  22. package/dist/js/cool.js.map +1 -1
  23. package/dist/js/cool.min.js +3 -3
  24. package/dist/js/cool.min.js.map +1 -1
  25. package/html/index.html +41 -42
  26. package/js/dist/collapse.js +912 -667
  27. package/js/dist/collapse.js.map +1 -1
  28. package/js/dist/common.js +1211 -1367
  29. package/js/dist/common.js.map +1 -1
  30. package/js/dist/dropdown.js +2 -2
  31. package/js/dist/popover.js +1784 -1610
  32. package/js/dist/popover.js.map +1 -1
  33. package/js/dist/sectiontabs.js +2 -2
  34. package/js/dist/select.js +3330 -3302
  35. package/js/dist/select.js.map +1 -1
  36. package/js/dist/tooltip.js +2 -2
  37. package/js/src/collapse.js +44 -30
  38. package/js/src/common.js +60 -77
  39. package/js/src/dialog.js +3 -2
  40. package/js/src/popover.js +15 -4
  41. package/js/src/select.js +7 -6
  42. package/package.json +1 -1
  43. package/scss/_alert.scss +26 -30
  44. package/scss/_badge.scss +44 -13
  45. package/scss/_buttons.scss +60 -19
  46. package/scss/_custom-forms.scss +51 -36
  47. package/scss/_dialog.scss +15 -16
  48. package/scss/_dropdown.scss +2 -0
  49. package/scss/_forms.scss +2 -1
  50. package/scss/_frame.scss +310 -231
  51. package/scss/_functions.scss +1 -1
  52. package/scss/_images.scss +51 -52
  53. package/scss/_input-group.scss +35 -21
  54. package/scss/_navbar.scss +30 -4
  55. package/scss/_pagination.scss +25 -16
  56. package/scss/_popover.scss +3 -1
  57. package/scss/_reboot.scss +5 -4
  58. package/scss/_root.scss +3 -3
  59. package/scss/_section.scss +162 -97
  60. package/scss/_select.scss +12 -0
  61. package/scss/_tables.scss +55 -36
  62. package/scss/_tabs.scss +29 -26
  63. package/scss/_type.scss +9 -1
  64. package/scss/_variables.scss +376 -252
  65. package/scss/mixins/_alert-variant.scss +6 -11
  66. package/scss/mixins/_badge-variant.scss +2 -2
  67. package/scss/mixins/_gradients.scss +5 -5
  68. package/scss/utilities/_background.scss +3 -3
  69. package/scss/utilities/_borders.scss +5 -5
  70. package/scss/utilities/_placeholder.scss +6 -5
  71. package/scss/utilities/_text.scss +3 -3
  72. package/html/dropdown-test.html +0 -200
@@ -2,24 +2,19 @@
2
2
  // ---------------------------------------------------------------------------------------------------------------
3
3
 
4
4
  @mixin alert-variant($color) {
5
- border-top-color: $color;
6
- background-color: fade-out($color, 0.9);
5
+ border-color: $color;
7
6
 
8
7
  .alert-icon {
9
- border: 1px solid $color;
10
- box-shadow: 0 0 0 0.2em fade-out($color, 0.7);
11
-
12
- .icon {
13
- color: $color;
14
- }
8
+ @include alert-icon-variant($color);
15
9
  }
16
10
  }
17
11
 
18
12
  @mixin alert-icon-variant($color) {
19
- border: 1px solid $color;
20
- box-shadow: 0 0 0 0.2em fade-out($color, 0.7);
13
+ border: $border-width solid $color;
14
+ background-color: $color;
15
+ color: color-yiq($color);
21
16
 
22
17
  .icon {
23
- color: $color;
18
+ color: color-yiq($color);
24
19
  }
25
20
  }
@@ -1,12 +1,12 @@
1
1
  // Badge variant
2
2
  // ---------------------------------------------------------------------------------------------------------------
3
- @mixin badge-variant($color, $background: mix($color, white, 10%)) {
3
+ @mixin badge-variant($color, $background: $color) {
4
4
  border-color: $color;
5
5
  background-color: $background;
6
6
  color: color-yiq($background);
7
7
 
8
8
  .alert-icon {
9
- border: 1px solid $color;
9
+ border: $border-width solid $color;
10
10
  box-shadow: 0 0 0 0.2em fade-out($color, 0.7);
11
11
 
12
12
  .icon {
@@ -5,17 +5,17 @@
5
5
  background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x;
6
6
  }
7
7
 
8
- @mixin gradient-x($start-color: color('grey-darker'), $end-color: color('grey-darkest'), $start-percent: 0%, $end-percent: 100%) {
8
+ @mixin gradient-x($start-color: theme-color('medium'), $end-color: theme-color('dark'), $start-percent: 0%, $end-percent: 100%) {
9
9
  background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
10
10
  background-repeat: repeat-x;
11
11
  }
12
12
 
13
- @mixin gradient-y($start-color: color('grey-darker'), $end-color: color('grey-darkest'), $start-percent: 0%, $end-percent: 100%) {
13
+ @mixin gradient-y($start-color: theme-color('medium'), $end-color: theme-color('dark'), $start-percent: 0%, $end-percent: 100%) {
14
14
  background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
15
15
  background-repeat: repeat-x;
16
16
  }
17
17
 
18
- @mixin gradient-directional($start-color: color('grey-darker'), $end-color: color('grey-darkest'), $deg: 45deg) {
18
+ @mixin gradient-directional($start-color: theme-color('medium'), $end-color: theme-color('dark'), $deg: 45deg) {
19
19
  background-image: linear-gradient($deg, $start-color, $end-color);
20
20
  background-repeat: repeat-x;
21
21
  }
@@ -30,11 +30,11 @@
30
30
  background-repeat: no-repeat;
31
31
  }
32
32
 
33
- @mixin gradient-radial($inner-color: color('grey-darker'), $outer-color: color('grey-darkest')) {
33
+ @mixin gradient-radial($inner-color: theme-color('medium'), $outer-color: theme-color('dark')) {
34
34
  background-image: radial-gradient(circle, $inner-color, $outer-color);
35
35
  background-repeat: no-repeat;
36
36
  }
37
37
 
38
- @mixin gradient-striped($color: rgba(color('white'), .15), $angle: 45deg) {
38
+ @mixin gradient-striped($color: rgba(#ffffff, .15), $angle: 45deg) {
39
39
  background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
40
40
  }
@@ -1,9 +1,9 @@
1
1
  // Background
2
2
  // ---------------------------------------------------------------------------------------------------------------
3
3
 
4
- @each $color, $value in $colors {
5
- @include bg-variant(".bg-#{$color}", $value);
6
- }
4
+ // @each $color, $value in $colors {
5
+ // @include bg-variant(".bg-#{$color}", $value);
6
+ // }
7
7
 
8
8
  @each $color, $value in $theme-colors {
9
9
  @include bg-gradient-variant(".bg-gradient-#{$color}", $value);
@@ -92,11 +92,11 @@
92
92
 
93
93
 
94
94
  // Colors
95
- @each $color, $value in $colors {
96
- .border-#{$color} {
97
- border-color: $value !important;
98
- }
99
- }
95
+ // @each $color, $value in $colors {
96
+ // .border-#{$color} {
97
+ // border-color: $value !important;
98
+ // }
99
+ // }
100
100
 
101
101
  @each $color, $value in $theme-colors {
102
102
  .border-#{$color} {
@@ -18,8 +18,8 @@
18
18
  border-radius: 50%;
19
19
  width: 100px;
20
20
  height: 100px;
21
- color: color('grey-darker');
22
- background-color: color('grey-lighter');
21
+ color: theme-color('medium');
22
+ //background-color: $grey-100;
23
23
  padding: 10px;
24
24
  margin: 0 auto;
25
25
  box-sizing: content-box;
@@ -39,7 +39,9 @@
39
39
 
40
40
  .placeholder-title {
41
41
  text-align: center;
42
- color: color('blue-grey');
42
+ color: $body-color;
43
+ font-family: $font-family-title;
44
+ font-weight: 600;
43
45
 
44
46
  & + .placeholder-description {
45
47
  margin-top: 10px;
@@ -53,8 +55,7 @@
53
55
 
54
56
  .placeholder-description {
55
57
  text-align: center;
56
- font-weight: $font-weight-light;
57
- color: color('grey-darker');
58
+ color: theme-color('medium');
58
59
 
59
60
  .description {
60
61
  margin-bottom: 0;
@@ -69,9 +69,9 @@
69
69
  }
70
70
 
71
71
  // Colors
72
- @each $color, $value in $colors {
73
- @include text-emphasis-variant(".text-#{$color}", $value);
74
- }
72
+ // @each $color, $value in $colors {
73
+ // @include text-emphasis-variant(".text-#{$color}", $value);
74
+ // }
75
75
 
76
76
  @each $color, $value in $theme-colors {
77
77
  @include text-emphasis-variant(".text-#{$color}", $value);
@@ -1,200 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
-
5
- <head>
6
- <meta charset="utf-8">
7
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
8
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
9
-
10
- <title>Finqu UI</title>
11
-
12
- <link rel="dns-prefetch" href="//cdn.finqu.com">
13
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
14
-
15
- <meta name="application-name" content="Finqu UI">
16
- <meta name="msapplication-TileColor" content="#212529">
17
- <meta name="msapplication-TileImage" content="https://cdn.finqu.com/sites/public/images/favicons/mstile-144x144.png">
18
- <meta name="theme-color" content="#212529">
19
-
20
- <link rel="apple-touch-icon" sizes="57x57" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-57x57.png">
21
- <link rel="apple-touch-icon" sizes="60x60" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-60x60.png">
22
- <link rel="apple-touch-icon" sizes="72x72" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-72x72.png">
23
- <link rel="apple-touch-icon" sizes="76x76" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-76x76.png">
24
- <link rel="apple-touch-icon" sizes="114x114" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-114x114.png">
25
- <link rel="apple-touch-icon" sizes="120x120" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-120x120.png">
26
- <link rel="apple-touch-icon" sizes="144x144" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-144x144.png">
27
- <link rel="apple-touch-icon" sizes="152x152" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-152x152.png">
28
- <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.finqu.com/sites/public/images/favicons/apple-touch-icon-180x180.png">
29
-
30
- <link rel="icon" type="image/png" href="https://cdn.finqu.com/sites/public/images/favicons/favicon-16x16.png" sizes="16x16">
31
- <link rel="icon" type="image/png" href="https://cdn.finqu.com/sites/public/images/favicons/favicon-32x32.png" sizes="32x32">
32
- <link rel="icon" type="image/png" href="https://cdn.finqu.com/sites/public/images/favicons/favicon-96x96.png" sizes="96x96">
33
- <link rel="icon" type="image/png" href="https://cdn.finqu.com/sites/public/images/favicons/android-chrome-192x192.png" sizes="192x192">
34
-
35
- <link href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i" rel="stylesheet">
36
- <link rel="stylesheet" href="../dist/css/cool.css">
37
- <script defer src="https://use.fontawesome.com/releases/v5.8.1/js/all.js" integrity="sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ" crossorigin="anonymous"></script>
38
- </head>
39
-
40
- <body style="overflow: auto">
41
-
42
- <!-- <div style="height: 2000px;"> -->
43
-
44
- <div class="dropdown-test" style="position: fixed; top: 0; left: 0;">
45
-
46
- <div class="dropdown dropleft">
47
-
48
- <button class="btn btn-primary" type="button" data-toggle="dropdown">
49
- Dropdown (top/left)
50
- </button>
51
-
52
- <div class="dropdown-menu dropdown-menu-left">
53
-
54
- <ul class="dropdown-list">
55
-
56
- <li class="dropdown-item">Item 1</li>
57
- <li class="dropdown-item">Item 2</li>
58
- <li class="dropdown-item">Item 3</li>
59
- <li class="dropdown-divider"></li>
60
- <li class="dropdown-item">Item 4</li>
61
- <li class="dropdown-item">Item 5</li>
62
-
63
- </ul>
64
-
65
- </div>
66
-
67
- </div>
68
-
69
- </div>
70
-
71
- <div class="dropdown-test" style="position: fixed; top: 0; right: 0;">
72
-
73
- <div class="dropdown dropright">
74
-
75
- <button class="btn btn-primary" type="button" data-toggle="dropdown">
76
- Dropdown (top/right)
77
- </button>
78
-
79
- <div class="dropdown-menu dropdown-menu-right">
80
-
81
- <ul class="dropdown-list">
82
-
83
- <li class="dropdown-item">Item 1 asfdkhfakj ahsdfkjgads fjgadsjh</li>
84
- <li class="dropdown-item">Item 2</li>
85
- <li class="dropdown-item">Item 3</li>
86
- <li class="dropdown-divider"></li>
87
- <li class="dropdown-item">Item 4</li>
88
- <li class="dropdown-item">Item 5</li>
89
-
90
- </ul>
91
-
92
- </div>
93
-
94
- </div>
95
-
96
- </div>
97
-
98
- <div class="dropdown-test" style="position: fixed; bottom: 0; right: 0;">
99
-
100
- <div class="dropdown">
101
-
102
- <button class="btn btn-primary" type="button" data-toggle="dropdown">
103
- Dropdown (bottom/right)
104
- </button>
105
-
106
- <div class="dropdown-menu dropdown-menu-right">
107
-
108
- <ul class="dropdown-list">
109
-
110
- <li class="dropdown-item">Item 1</li>
111
- <li class="dropdown-item">Item 2</li>
112
- <li class="dropdown-item">Item 3</li>
113
- <li class="dropdown-divider"></li>
114
- <li class="dropdown-item">Item 4</li>
115
- <li class="dropdown-item">Item 5</li>
116
-
117
- </ul>
118
-
119
- </div>
120
-
121
- </div>
122
-
123
- </div>
124
-
125
- <div class="dropdown-test" style="position: fixed; bottom: 0; left: 0;">
126
-
127
- <div class="dropdown dropdown">
128
-
129
- <button class="btn btn-primary" type="button" data-toggle="dropdown">
130
- Dropdown (bottom/left)
131
- </button>
132
-
133
- <div class="dropdown-menu dropdown-menu-left">
134
-
135
- <ul class="dropdown-list">
136
-
137
- <li class="dropdown-item">Item 1</li>
138
- <li class="dropdown-item">Item 2</li>
139
- <li class="dropdown-item">Item 3</li>
140
- <li class="dropdown-divider"></li>
141
- <li class="dropdown-item">Item 4</li>
142
- <li class="dropdown-item">Item 5</li>
143
-
144
- </ul>
145
-
146
- </div>
147
-
148
- </div>
149
-
150
- </div>
151
-
152
- <div class="dropdown-test" style="margin-top: 200px; margin-left: 200px;">
153
-
154
- <div class="dropdown dropdown">
155
-
156
- <button class="btn btn-primary" type="button" data-toggle="dropdown">
157
- Dropdown
158
- </button>
159
-
160
- <div class="dropdown-menu dropdown-menu-left">
161
-
162
- <ul class="dropdown-list">
163
-
164
- <li class="dropdown-item">Item 1</li>
165
- <li class="dropdown-item">Item 2</li>
166
- <li class="dropdown-item">Item 3</li>
167
- <li class="dropdown-divider"></li>
168
- <li class="dropdown-item">Item 4</li>
169
- <li class="dropdown-item">Item 5</li>
170
-
171
- </ul>
172
-
173
- </div>
174
-
175
- </div>
176
-
177
- </div>
178
-
179
- <!-- </div> -->
180
-
181
- <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
182
- <script src="../dist/js/cool.js"></script>
183
- <script type="text/javascript">
184
-
185
- Cool.initialize({
186
- dropdown: {
187
- debug: false,
188
- onClose: function() {
189
- let placements = ['top', 'left', 'right', 'bottom'];
190
- let nextPlacement = placements[placements.indexOf(this.placement) + 1] || 'top';
191
- this.placement = nextPlacement;
192
- }
193
- }
194
- });
195
-
196
- </script>
197
-
198
- </body>
199
-
200
- </html>