@finqu/cool 1.0.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 (199) hide show
  1. package/README.md +1 -0
  2. package/build/.eslintrc.json +10 -0
  3. package/build/banner.js +14 -0
  4. package/build/build-plugins.js +92 -0
  5. package/build/rollup.config.js +78 -0
  6. package/dist/css/cool-grid.css +3672 -0
  7. package/dist/css/cool-grid.css.map +30 -0
  8. package/dist/css/cool-grid.min.css +7 -0
  9. package/dist/css/cool-grid.min.css.map +1 -0
  10. package/dist/css/cool-reboot.css +281 -0
  11. package/dist/css/cool-reboot.css.map +58 -0
  12. package/dist/css/cool-reboot.min.css +7 -0
  13. package/dist/css/cool-reboot.min.css.map +1 -0
  14. package/dist/css/cool.css +14841 -0
  15. package/dist/css/cool.css.map +144 -0
  16. package/dist/css/cool.min.css +7 -0
  17. package/dist/css/cool.min.css.map +1 -0
  18. package/dist/js/cool.bundle.js +15304 -0
  19. package/dist/js/cool.bundle.js.map +1 -0
  20. package/dist/js/cool.bundle.min.js +45 -0
  21. package/dist/js/cool.bundle.min.js.map +1 -0
  22. package/dist/js/cool.esm.js +4766 -0
  23. package/dist/js/cool.esm.js.map +1 -0
  24. package/dist/js/cool.esm.min.js +7 -0
  25. package/dist/js/cool.esm.min.js.map +1 -0
  26. package/dist/js/cool.js +4948 -0
  27. package/dist/js/cool.js.map +1 -0
  28. package/dist/js/cool.min.js +7 -0
  29. package/dist/js/cool.min.js.map +1 -0
  30. package/html/index.html +892 -0
  31. package/js/dist/collapse.js +321 -0
  32. package/js/dist/collapse.js.map +1 -0
  33. package/js/dist/common.js +1474 -0
  34. package/js/dist/common.js.map +1 -0
  35. package/js/dist/cooldropdown.js +467 -0
  36. package/js/dist/cooldropdown.js.map +1 -0
  37. package/js/dist/coolpopover.js +391 -0
  38. package/js/dist/coolpopover.js.map +1 -0
  39. package/js/dist/coolsectiontabs.js +256 -0
  40. package/js/dist/coolsectiontabs.js.map +1 -0
  41. package/js/dist/coolselect.js +796 -0
  42. package/js/dist/coolselect.js.map +1 -0
  43. package/js/dist/cooltooltip.js +360 -0
  44. package/js/dist/cooltooltip.js.map +1 -0
  45. package/js/dist/coolui.js +73 -0
  46. package/js/dist/coolui.js.map +1 -0
  47. package/js/dist/dropdown.js +1716 -0
  48. package/js/dist/dropdown.js.map +1 -0
  49. package/js/dist/popover.js +587 -0
  50. package/js/dist/popover.js.map +1 -0
  51. package/js/dist/sectiontabs.js +263 -0
  52. package/js/dist/sectiontabs.js.map +1 -0
  53. package/js/dist/select.js +2029 -0
  54. package/js/dist/select.js.map +1 -0
  55. package/js/dist/tooltip.js +555 -0
  56. package/js/dist/tooltip.js.map +1 -0
  57. package/js/index.esm.js +21 -0
  58. package/js/index.umd.js +21 -0
  59. package/js/src/abstract-ui-component.js +70 -0
  60. package/js/src/collapse.js +258 -0
  61. package/js/src/common.js +280 -0
  62. package/js/src/dialog.js +570 -0
  63. package/js/src/dropdown.js +443 -0
  64. package/js/src/popover.js +615 -0
  65. package/js/src/section-tabs.js +204 -0
  66. package/js/src/select.js +832 -0
  67. package/js/src/toast.js +581 -0
  68. package/js/src/tooltip.js +575 -0
  69. package/js/src/util/animate-css.js +22 -0
  70. package/js/src/util/index.js +112 -0
  71. package/js/src/util/perfect-scrollbar.js +1316 -0
  72. package/less/alert.less +345 -0
  73. package/less/badge.less +38 -0
  74. package/less/bootstrap-noconflict.less +23 -0
  75. package/less/bootstrap.less +23 -0
  76. package/less/button-group.less +153 -0
  77. package/less/buttons.less +287 -0
  78. package/less/dialog-noconflict.less +174 -0
  79. package/less/dialog.less +203 -0
  80. package/less/dropdown.less +209 -0
  81. package/less/forms.less +770 -0
  82. package/less/images.less +242 -0
  83. package/less/input-group.less +163 -0
  84. package/less/list-group.less +73 -0
  85. package/less/mixins/aspect-ratio.less +23 -0
  86. package/less/mixins/border-radius.less +24 -0
  87. package/less/mixins/box-shadow.less +4 -0
  88. package/less/mixins/buttons.less +17 -0
  89. package/less/mixins/caret.less +51 -0
  90. package/less/mixins/clearfix.less +10 -0
  91. package/less/mixins/gradients.less +34 -0
  92. package/less/mixins/nav-divider.less +7 -0
  93. package/less/mixins/object-fit.less +13 -0
  94. package/less/mixins/reset-text.less +16 -0
  95. package/less/mixins.less +11 -0
  96. package/less/package.json +11 -0
  97. package/less/pagination.less +69 -0
  98. package/less/popover.less +143 -0
  99. package/less/project.sublime-workspace +774 -0
  100. package/less/reboot.less +235 -0
  101. package/less/section.less +793 -0
  102. package/less/select.less +150 -0
  103. package/less/tables.less +737 -0
  104. package/less/tabs.less +162 -0
  105. package/less/tooltip.less +87 -0
  106. package/less/type.less +71 -0
  107. package/less/utilities/align.less +27 -0
  108. package/less/utilities/animate.less +3512 -0
  109. package/less/utilities/background.less +70 -0
  110. package/less/utilities/borders.less +16 -0
  111. package/less/utilities/color.less +70 -0
  112. package/less/utilities/cursor.less +8 -0
  113. package/less/utilities/display.less +38 -0
  114. package/less/utilities/embed.less +61 -0
  115. package/less/utilities/flex.less +76 -0
  116. package/less/utilities/jquery-ui.less +116 -0
  117. package/less/utilities/lazyload.less +29 -0
  118. package/less/utilities/overflow.less +11 -0
  119. package/less/utilities/pace.less +25 -0
  120. package/less/utilities/placeholder.less +60 -0
  121. package/less/utilities/position.less +42 -0
  122. package/less/utilities/scrollbar.less +152 -0
  123. package/less/utilities/spacing.less +197 -0
  124. package/less/utilities/text.less +68 -0
  125. package/less/utilities/transform.less +7 -0
  126. package/less/utilities.less +21 -0
  127. package/less/variables.less +343 -0
  128. package/package.json +71 -0
  129. package/scss/LISENCE +15 -0
  130. package/scss/_alert.scss +125 -0
  131. package/scss/_badge.scss +58 -0
  132. package/scss/_button-group.scss +124 -0
  133. package/scss/_buttons.scss +206 -0
  134. package/scss/_custom-forms.scss +423 -0
  135. package/scss/_dialog.scss +149 -0
  136. package/scss/_dropdown.scss +234 -0
  137. package/scss/_forms.scss +257 -0
  138. package/scss/_frame.scss +523 -0
  139. package/scss/_functions.scss +114 -0
  140. package/scss/_grid.scss +35 -0
  141. package/scss/_images.scss +312 -0
  142. package/scss/_input-group.scss +245 -0
  143. package/scss/_list-group.scss +82 -0
  144. package/scss/_mixins.scss +32 -0
  145. package/scss/_navbar.scss +214 -0
  146. package/scss/_pagination.scss +79 -0
  147. package/scss/_popover.scss +165 -0
  148. package/scss/_reboot.scss +279 -0
  149. package/scss/_root.scss +15 -0
  150. package/scss/_section.scss +851 -0
  151. package/scss/_select.scss +166 -0
  152. package/scss/_tables.scss +707 -0
  153. package/scss/_tabs.scss +175 -0
  154. package/scss/_toast.scss +182 -0
  155. package/scss/_tooltip.scss +101 -0
  156. package/scss/_type.scss +90 -0
  157. package/scss/_utilities.scss +21 -0
  158. package/scss/_variables.scss +697 -0
  159. package/scss/cool-grid.scss +29 -0
  160. package/scss/cool-reboot.scss +11 -0
  161. package/scss/cool.scss +36 -0
  162. package/scss/mixins/_alert-variant.scss +40 -0
  163. package/scss/mixins/_aspect-ratio.scss +29 -0
  164. package/scss/mixins/_background-variant.scss +25 -0
  165. package/scss/mixins/_badge-variant.scss +13 -0
  166. package/scss/mixins/_breakpoints.scss +102 -0
  167. package/scss/mixins/_buttons.scss +104 -0
  168. package/scss/mixins/_caret.scss +80 -0
  169. package/scss/mixins/_clearfix.scss +10 -0
  170. package/scss/mixins/_float.scss +14 -0
  171. package/scss/mixins/_forms.scss +51 -0
  172. package/scss/mixins/_gradients.scss +40 -0
  173. package/scss/mixins/_grid-framework.scss +72 -0
  174. package/scss/mixins/_grid.scss +60 -0
  175. package/scss/mixins/_nav-divider.scss +9 -0
  176. package/scss/mixins/_object-fit.scss +16 -0
  177. package/scss/mixins/_reset-text.scss +19 -0
  178. package/scss/mixins/_text-emphasis.scss +21 -0
  179. package/scss/mixins/_text-hide.scss +10 -0
  180. package/scss/mixins/_text-truncate.scss +8 -0
  181. package/scss/project.sublime-workspace +491 -0
  182. package/scss/utilities/_align.scss +41 -0
  183. package/scss/utilities/_animate.scss +3512 -0
  184. package/scss/utilities/_background.scss +14 -0
  185. package/scss/utilities/_borders.scss +146 -0
  186. package/scss/utilities/_clearfix.scss +6 -0
  187. package/scss/utilities/_collapse.scss +33 -0
  188. package/scss/utilities/_cursor.scss +10 -0
  189. package/scss/utilities/_display.scss +16 -0
  190. package/scss/utilities/_embed.scss +78 -0
  191. package/scss/utilities/_flex.scss +50 -0
  192. package/scss/utilities/_lazyload.scss +31 -0
  193. package/scss/utilities/_overflow.scss +6 -0
  194. package/scss/utilities/_perfect-scrollbar.scss +154 -0
  195. package/scss/utilities/_placeholder.scss +76 -0
  196. package/scss/utilities/_position.scss +30 -0
  197. package/scss/utilities/_sizing.scss +32 -0
  198. package/scss/utilities/_spacing.scss +92 -0
  199. package/scss/utilities/_text.scss +97 -0
@@ -0,0 +1,242 @@
1
+ // Images
2
+ .image {
3
+ position: relative;
4
+ overflow: hidden;
5
+
6
+ // 24x24
7
+ &.img-xs {
8
+ width: 24px;
9
+ height: 24px;
10
+ min-width: 24px;
11
+ line-height: 24px;
12
+ text-align: center;
13
+ .fa,
14
+ .fas,
15
+ .far,
16
+ .fal,
17
+ .fab {
18
+ font-size: 19px;
19
+ line-height: 24px;
20
+ color: @color-icon;
21
+ }
22
+ img {
23
+ vertical-align: middle;
24
+ max-width: 24px;
25
+ max-height: 24px;
26
+ &.cover {
27
+ width: 24px;
28
+ height: 24px;
29
+ .object-fit(cover);
30
+ }
31
+ }
32
+ &.img-placeholder {
33
+ &:before {
34
+ font-size: 10px;
35
+ }
36
+ }
37
+ }
38
+
39
+ // 32x32
40
+ &.img-sm {
41
+ width: 32px;
42
+ height: 32px;
43
+ min-width: 32px;
44
+ line-height: 32px;
45
+ text-align: center;
46
+ .fa,
47
+ .fas,
48
+ .far,
49
+ .fal,
50
+ .fab {
51
+ font-size: 28px;
52
+ line-height: 32px;
53
+ color: @color-icon;
54
+ }
55
+ img {
56
+ vertical-align: middle;
57
+ max-width: 32px;
58
+ max-height: 32px;
59
+ &.cover {
60
+ width: 32px;
61
+ height: 32px;
62
+ .object-fit(cover);
63
+ }
64
+ }
65
+ &.img-placeholder {
66
+ &:before {
67
+ font-size: 12px;
68
+ }
69
+ }
70
+ }
71
+
72
+ // 50x50
73
+ &.img-md {
74
+ width: 50px;
75
+ height: 50px;
76
+ min-width: 50px;
77
+ line-height: 50px;
78
+ text-align: center;
79
+ .fa,
80
+ .fas,
81
+ .far,
82
+ .fal,
83
+ .fab {
84
+ font-size: 56px;
85
+ line-height: 50px;
86
+ color: @color-icon;
87
+ }
88
+ img {
89
+ vertical-align: middle;
90
+ max-width: 50px;
91
+ max-height: 50px;
92
+ &.cover {
93
+ width: 50px;
94
+ height: 50px;
95
+ .object-fit(cover);
96
+ }
97
+ }
98
+ &.img-placeholder {
99
+ &:before {
100
+ font-size: 12px;
101
+ }
102
+ }
103
+ }
104
+
105
+ // 120x120
106
+ &.img-lg {
107
+ width: 120px;
108
+ height: 120px;
109
+ min-width: 120px;
110
+ line-height: 120px;
111
+ text-align: center;
112
+ .fa,
113
+ .fas,
114
+ .far,
115
+ .fal,
116
+ .fab {
117
+ font-size: 92px;
118
+ line-height: 120px;
119
+ color: @color-icon;
120
+ }
121
+ img {
122
+ vertical-align: middle;
123
+ max-width: 120px;
124
+ max-height: 120px;
125
+ &.cover {
126
+ width: 120px;
127
+ height: 120px;
128
+ .object-fit(cover);
129
+ }
130
+ }
131
+ &.img-placeholder {
132
+ &:before {
133
+ font-size: 36px;
134
+ }
135
+ }
136
+ }
137
+
138
+ // Responsive
139
+ &.img-responsive {
140
+ display: inline-block;
141
+ width: auto;
142
+ height: auto;
143
+ text-align: center;
144
+ .fa,
145
+ .fas,
146
+ .far,
147
+ .fal,
148
+ .fab {
149
+ line-height: inherit;
150
+ color: @color-icon;
151
+ }
152
+ img {
153
+ display: block;
154
+ max-width: 100%;
155
+ max-height: none;
156
+ width: auto;
157
+ height: auto;
158
+ }
159
+ }
160
+
161
+ // Inline
162
+ &.img-inline {
163
+ display: inline-block;
164
+ vertical-align: middle;
165
+ }
166
+
167
+ // Circle
168
+ &.img-circle {
169
+ border-radius: 50%;
170
+ }
171
+
172
+ // Thumbnail
173
+ &.img-thumbnail {
174
+ background-color: @color-white;
175
+ border: 1px solid @color-border;
176
+ border-radius: @border-radius;
177
+ padding: 1px;
178
+ }
179
+
180
+ // Placeholder
181
+ &.img-placeholder,
182
+ &.img-error {
183
+ background-color: #fafafa;
184
+ color: #bbb;
185
+ display: flex;
186
+ align-items: center;
187
+ justify-content: center;
188
+ transition: background-color 0.4s;
189
+ &:before {
190
+ display: inline-block;
191
+ font-family: 'Font Awesome 5 Pro';
192
+ font-style: normal;
193
+ font-variant: normal;
194
+ font-weight: normal;
195
+ line-height: 1;
196
+ vertical-align: -.125em;
197
+ content: '\f03e';
198
+ -webkit-font-smoothing: antialiased;
199
+ -moz-osx-font-smoothing: grayscale;
200
+ opacity: 1;
201
+ transition: opacity 0.4s;
202
+ }
203
+ img:not(.loaded) {
204
+ position: absolute;
205
+ }
206
+ &.has-icon {
207
+ &:before {
208
+ content: '';
209
+ }
210
+ }
211
+ &.loaded {
212
+ background-color: @color-white;
213
+ &:before {
214
+ opacity: 0;
215
+ content: '';
216
+ }
217
+ }
218
+ }
219
+
220
+ // Hidden
221
+ &.img-hidden {
222
+ display: none;
223
+ }
224
+
225
+ // Bordered
226
+ &.img-bordered {
227
+ border: 1px solid rgba(0,0,0,0.15);
228
+ }
229
+ }
230
+
231
+ .img-fluid,
232
+ .img-responsive {
233
+ display: block;
234
+ max-width: 100%;
235
+ max-height: none;
236
+ width: auto;
237
+ height: auto;
238
+ }
239
+
240
+ .img-circle {
241
+ border-radius: 50%;
242
+ }
@@ -0,0 +1,163 @@
1
+ // Input group
2
+ .input-group {
3
+ display: flex;
4
+ width: 100%;
5
+ &.inline {
6
+ vertical-align: middle;
7
+ }
8
+ & + .input-group {
9
+ margin-top: 10px;
10
+ }
11
+ & + label {
12
+ padding-top: 15px;
13
+ }
14
+ &.text-right {
15
+ justify-content: flex-end;
16
+ }
17
+ .form-control {
18
+ position: relative;
19
+ z-index: 2;
20
+ flex: 1 1 auto;
21
+ width: 1%;
22
+ margin-bottom: 0;
23
+ }
24
+ > label {
25
+ display: block;
26
+ flex: 0 0 100%;
27
+ }
28
+ }
29
+
30
+ .input-group-addon,
31
+ .input-group .form-control {
32
+ display: flex;
33
+ justify-content: center;
34
+ align-items: center;
35
+ &.hidden {
36
+ display: none;
37
+ }
38
+ }
39
+
40
+ .input-group-addon {
41
+ white-space: nowrap;
42
+ vertical-align: middle; // Match the inputs
43
+ }
44
+
45
+ .input-group-addon:not(.btn) {
46
+ padding: @input-padding-y @input-padding-x;
47
+ margin-bottom: 0;
48
+ height: @input-height;
49
+ font-size: @font-size-base;
50
+ font-weight: normal;
51
+ line-height: @input-line-height;
52
+ text-align: center;
53
+ border-radius: @border-radius;
54
+ border: 1px solid @color-border;
55
+ background-color: @color-grey-lightest;
56
+ box-sizing: border-box;
57
+ &.input-sm {
58
+ padding: @input-padding-y-sm @input-padding-x-sm;
59
+ font-size: @font-size-small;
60
+ line-height: @line-height-sm;
61
+ height: @input-height-sm;
62
+ }
63
+ &.input-xs {
64
+ padding: @input-padding-y-xs @input-padding-x-xs;
65
+ font-size: @font-size-extra-small;
66
+ line-height: @line-height-xs;
67
+ height: @input-height-xs;
68
+ }
69
+ }
70
+
71
+ .input-group-addon.btn {
72
+ position: relative;
73
+ white-space: nowrap;
74
+ margin: 0;
75
+ box-sizing: border-box;
76
+ height: @input-height;
77
+ padding-top: @input-padding-y;
78
+ padding-bottom: @input-padding-y;
79
+ font-size: @font-size-base;
80
+ border: 1px solid @color-border;
81
+ background-color: @color-grey-lightest;
82
+ &.input-sm {
83
+ padding: @input-padding-y-sm @input-padding-x-sm;
84
+ font-size: @font-size-small;
85
+ line-height: @line-height-sm;
86
+ height: @input-height-sm;
87
+ }
88
+ &.input-xs {
89
+ padding: @input-padding-y-xs @input-padding-x-xs;
90
+ font-size: @font-size-extra-small;
91
+ line-height: @line-height-xs;
92
+ height: @input-height-xs;
93
+ }
94
+ &.btn-icon {
95
+ padding: @input-padding-y;
96
+ &.input-sm {
97
+ padding: @input-padding-y-sm;
98
+ }
99
+ &.input-xs {
100
+ padding: @input-padding-y-xs;
101
+ }
102
+ }
103
+ &.btn-primary {
104
+ background-color: @color-btn-primary;
105
+ color: contrast(@color-btn-primary);
106
+ &.focus,
107
+ &:focus,
108
+ &.hover,
109
+ &:hover {
110
+ background-color: desaturate(@color-btn-primary, 15%);
111
+ color: contrast(@color-btn-primary);
112
+ box-shadow: 0 14px 26px -12px fade(desaturate(@color-btn-primary, 15%), 42%), 0 4px 23px 0 rgba(0, 0, 0, 0.06), 0 8px 10px -5px fade(desaturate(@color-btn-primary, 15%), 20%);
113
+ }
114
+ &.disabled,
115
+ &[disabled] {
116
+ opacity: 0.25;
117
+ cursor: not-allowed;
118
+ &:hover {
119
+ box-shadow: none;
120
+ cursor: not-allowed;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ .input-group-addon:not(:first-child):not(:last-child),
127
+ .input-group-btn:not(:first-child):not(:last-child),
128
+ .input-group .form-control:not(:first-child):not(:last-child) {
129
+ border-radius: 0;
130
+ margin-left: -1px;
131
+ }
132
+
133
+ .input-group .form-control:first-child {
134
+ color: @color-text;
135
+ border-bottom-right-radius: 0;
136
+ border-top-right-radius: 0;
137
+ }
138
+
139
+ .input-group .form-control:not(:last-child),
140
+ .input-group-addon:first-child {
141
+ border-bottom-right-radius: 0;
142
+ border-top-right-radius: 0;
143
+ }
144
+
145
+ .input-group .form-control:last-child,
146
+ .input-group-addon:last-child {
147
+ border-bottom-left-radius: 0;
148
+ border-top-left-radius: 0;
149
+ }
150
+
151
+ .input-group-addon + .form-control,
152
+ .input-group-addon:last-child {
153
+ margin-left: -1px;
154
+ }
155
+
156
+ .input-group-addon:only-child,
157
+ .input-group.btn:only-child,
158
+ .input-group .form-control:only-child {
159
+ border-bottom-right-radius: @border-radius;
160
+ border-top-right-radius: @border-radius;
161
+ border-bottom-left-radius: @border-radius;
162
+ border-top-left-radius: @border-radius;
163
+ }
@@ -0,0 +1,73 @@
1
+ // List group
2
+
3
+ .list-group {
4
+ display: flex;
5
+ flex-direction: column;
6
+ padding-left: 0;
7
+ margin-bottom: 0;
8
+ margin-top: 0;
9
+ }
10
+
11
+ .list-group-item {
12
+ position: relative;
13
+ display: flex;
14
+ padding: 6px 0;
15
+ line-height: 20px;
16
+ color: @color-text;
17
+ align-items: center;
18
+ flex: 1 0 auto;
19
+ &.active {
20
+ .list-group-icon.image > i {
21
+ color: @color-blue;
22
+ }
23
+ }
24
+ > a {
25
+ display: flex;
26
+ color: inherit;
27
+ align-items: center;
28
+ width: 100%;
29
+ flex: 1 1;
30
+ }
31
+ .list-group-icon {
32
+ margin-right: 10px;
33
+ &:not(.image) {
34
+ line-height: 20px;
35
+ }
36
+ }
37
+ }
38
+
39
+ .list-group-bordered:not(ul) {
40
+ .list-group-item {
41
+ border-bottom: 1px solid @border-color;
42
+ &:last-child {
43
+ border-bottom: 0;
44
+ }
45
+ }
46
+ }
47
+
48
+ ul.list-group {
49
+ li {
50
+ list-style: none;
51
+ }
52
+ }
53
+
54
+ ul.list-group-bordered {
55
+ li {
56
+ line-height: 0;
57
+ }
58
+ .list-group-item {
59
+ border-bottom: 1px solid @border-color;
60
+ }
61
+ li:last-child {
62
+ border-bottom: 0;
63
+ .list-group-item {
64
+ border-bottom: 0;
65
+ }
66
+ }
67
+ }
68
+
69
+ .list-group-inner-spacing {
70
+ .list-group-item {
71
+ padding: 15px;
72
+ }
73
+ }
@@ -0,0 +1,23 @@
1
+ .aspect-ratio(@width, @height) {
2
+ position: relative;
3
+ &:before {
4
+ display: block;
5
+ content: '';
6
+ width: 100%;
7
+ padding-top: (@height / @width) * 100%;
8
+ }
9
+ > .content {
10
+ position: absolute;
11
+ padding:10px;
12
+ top: 0;
13
+ left: 0;
14
+ right: 0;
15
+ bottom: 0;
16
+ span:before{
17
+ content:"@{width}";
18
+ }
19
+ span:after{
20
+ content:"@{height}";
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,24 @@
1
+ // Border radius
2
+ .border-radius(@radius: @border-radius) {
3
+ border-radius: @radius;
4
+ }
5
+
6
+ .border-top-radius(@radius) {
7
+ border-top-left-radius: @radius;
8
+ border-top-right-radius: @radius;
9
+ }
10
+
11
+ .border-right-radius(@radius) {
12
+ border-top-right-radius: @radius;
13
+ border-bottom-right-radius: @radius;
14
+ }
15
+
16
+ .border-bottom-radius(@radius) {
17
+ border-bottom-right-radius: @radius;
18
+ border-bottom-left-radius: @radius;
19
+ }
20
+
21
+ .border-left-radius(@radius) {
22
+ border-top-left-radius: @radius;
23
+ border-bottom-left-radius: @radius;
24
+ }
@@ -0,0 +1,4 @@
1
+ // Box shadow
2
+ .box-shadow(@shadow...) {
3
+ box-shadow: @shadow;
4
+ }
@@ -0,0 +1,17 @@
1
+ .btn-color(@textColor: @color-white, @backgroundColor: @color-btn-default) {
2
+ background: @backgroundColor;
3
+ color: @textColor;
4
+ &.hover,
5
+ &:hover {
6
+ background: darken(@backgroundColor, 15%);
7
+ color: @textColor;
8
+ }
9
+ &.disabled,
10
+ &[disabled] {
11
+ background: lighten(@backgroundColor, 25%);
12
+ cursor: not-allowed;
13
+ &:hover {
14
+ cursor: not-allowed;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,51 @@
1
+ // Caret
2
+ .caret-reset() {
3
+ &::after {
4
+ display: inline-block;
5
+ width: 0;
6
+ height: 0;
7
+ margin-left: @caret-width * .85;
8
+ font-family: 'Font Awesome 5 Pro';
9
+ font-weight: 300;
10
+ }
11
+ &:empty::after {
12
+ margin-left: 0;
13
+ }
14
+ }
15
+
16
+ .caret-down() {
17
+ .caret-reset();
18
+ &::after {
19
+ content: '\f107';
20
+ }
21
+ }
22
+
23
+ .caret-up() {
24
+ .caret-reset();
25
+ &::after {
26
+ content: '\f106';
27
+ }
28
+ }
29
+
30
+ .caret-right() {
31
+ .caret-reset();
32
+ &::after {
33
+ content: '\f105';
34
+ }
35
+ }
36
+
37
+ .caret-left() {
38
+ .caret-reset();
39
+ &::after {
40
+ display: none;
41
+ }
42
+ &::before {
43
+ display: inline-block;
44
+ width: 0;
45
+ height: 0;
46
+ margin-right: @caret-width * .85;
47
+ font-family: 'Font Awesome 5 Pro';
48
+ font-weight: 300;
49
+ content: '\f104';
50
+ }
51
+ }
@@ -0,0 +1,10 @@
1
+ .clearfix() {
2
+ &:before,
3
+ &:after {
4
+ content: " "; // 1
5
+ display: table; // 2
6
+ }
7
+ &:after {
8
+ clear: both;
9
+ }
10
+ }
@@ -0,0 +1,34 @@
1
+ // Gradients
2
+ .gradient-bg(@color) {
3
+ background: @color linear-gradient(180deg, mix(@color-bg, @color, 15%), @color) repeat-x;
4
+ }
5
+
6
+ .gradient-x(@start-color: @color-grey-darker, @end-color: @color-grey-darkest, @start-percent: 0%, @end-percent: 100%) {
7
+ background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent);
8
+ background-repeat: repeat-x;
9
+ }
10
+
11
+ .gradient-y(@start-color: @color-grey-darker, @end-color: @color-grey-darkest, @start-percent: 0%, @end-percent: 100%) {
12
+ background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent);
13
+ background-repeat: repeat-x;
14
+ }
15
+
16
+ .gradient-directional(@start-color: @color-grey-darker, @end-color: @color-grey-darkest, @deg: 45deg) {
17
+ background-image: linear-gradient(@deg, @start-color, @end-color);
18
+ background-repeat: repeat-x;
19
+ }
20
+ .gradient-x-three-colors(@start-color: @color-blue, @mid-color: @purple, @color-stop: 50%, @end-color: @red) {
21
+ background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
22
+ background-repeat: no-repeat;
23
+ }
24
+ .gradient-y-three-colors(@start-color: @blue, @mid-color: @color-pink, @color-stop: 50%, @end-color: @color-red) {
25
+ background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
26
+ background-repeat: no-repeat;
27
+ }
28
+ .gradient-radial(@inner-color: @color-grey-darker, @outer-color: @color-grey-darkest) {
29
+ background-image: radial-gradient(circle, @inner-color, @outer-color);
30
+ background-repeat: no-repeat;
31
+ }
32
+ .gradient-striped(@color: fade(@color-white, .15), @angle: 45deg) {
33
+ background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
34
+ }
@@ -0,0 +1,7 @@
1
+ // Divider for dropdow & lists
2
+ .nav-divider(@color: @nav-divider-color, @margin-y: @nav-divider-margin-y) {
3
+ height: 0;
4
+ margin: @margin-y 0;
5
+ overflow: hidden;
6
+ border-top: 1px solid @color;
7
+ }
@@ -0,0 +1,13 @@
1
+ .object-fit(@fit: fill, @position: 50% 50%) {
2
+ -o-object-fit: @fit;
3
+ object-fit: @fit;
4
+ -o-object-position: @position;
5
+ object-position: @position;
6
+ font-family: 'object-fit: @{fit}; object-position: @{position}';
7
+ }
8
+
9
+ .object-fit(@fit: fill) {
10
+ -o-object-fit: @fit;
11
+ object-fit: @fit;
12
+ font-family: 'object-fit: @{fit}';
13
+ }
@@ -0,0 +1,16 @@
1
+ .reset-text() {
2
+ font-family: @font-family-base;
3
+ font-style: normal;
4
+ font-weight: @font-weight-base;
5
+ line-height: @line-height-base;
6
+ text-align: left;
7
+ text-align: start;
8
+ text-decoration: none;
9
+ text-shadow: none;
10
+ text-transform: none;
11
+ letter-spacing: normal;
12
+ word-break: normal;
13
+ word-spacing: normal;
14
+ white-space: normal;
15
+ line-break: auto;
16
+ }
@@ -0,0 +1,11 @@
1
+ // Mixins
2
+ @import "mixins/clearfix.less";
3
+ @import "mixins/aspect-ratio.less";
4
+ @import "mixins/buttons.less";
5
+ @import "mixins/object-fit.less";
6
+ @import "mixins/reset-text.less";
7
+ @import "mixins/border-radius.less";
8
+ @import "mixins/box-shadow.less";
9
+ @import "mixins/gradients.less";
10
+ @import "mixins/nav-divider.less";
11
+ @import "mixins/caret.less";
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "finqu-ui",
3
+ "version": "1.0.0",
4
+ "description": "Finqu UI kit",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git@git.zenqu.fi:finqu-lib/finqu-ui.git"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }