cacao-css 3.20.0 → 4.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 (356) hide show
  1. package/.prettierignore +10 -0
  2. package/.prettierrc.json +13 -0
  3. package/CHANGELOG.md +16 -4
  4. package/LICENSE +1 -1
  5. package/README.md +8 -472
  6. package/imports.css +282 -0
  7. package/package.json +2 -51
  8. package/src/aspect/aspect.css +23 -0
  9. package/src/base/base.css +44 -0
  10. package/src/config.css +8 -0
  11. package/src/display/core/align.css +15 -0
  12. package/src/display/core/display.css +33 -0
  13. package/src/display/core/flex.css +19 -0
  14. package/src/display/core/justify.css +23 -0
  15. package/src/display/core/order.css +23 -0
  16. package/src/display/lg/align.css +17 -0
  17. package/src/display/lg/display.css +25 -0
  18. package/src/display/lg/flex.css +21 -0
  19. package/src/display/lg/justify.css +25 -0
  20. package/src/display/lg/order.css +25 -0
  21. package/src/display/md/align.css +17 -0
  22. package/src/display/md/display.css +25 -0
  23. package/src/display/md/flex.css +21 -0
  24. package/src/display/md/justify.css +25 -0
  25. package/src/display/md/order.css +25 -0
  26. package/src/display/sm/align.css +17 -0
  27. package/src/display/sm/display.css +25 -0
  28. package/src/display/sm/flex.css +21 -0
  29. package/src/display/sm/justify.css +25 -0
  30. package/src/display/sm/order.css +25 -0
  31. package/src/display/xl/align.css +17 -0
  32. package/src/display/xl/display.css +25 -0
  33. package/src/display/xl/flex.css +21 -0
  34. package/src/display/xl/justify.css +25 -0
  35. package/src/display/xl/order.css +25 -0
  36. package/src/embed/embed.css +21 -0
  37. package/src/fit/fit.css +11 -0
  38. package/src/{css/components/header/header.css → grid/core/col-1.css} +3 -6
  39. package/src/grid/core/col-10.css +43 -0
  40. package/src/grid/core/col-11.css +47 -0
  41. package/src/grid/core/col-12.css +51 -0
  42. package/src/grid/core/col-2.css +11 -0
  43. package/src/{css/components/breadcrumb/breadcrumb.css → grid/core/col-3.css} +8 -9
  44. package/src/grid/core/col-4.css +19 -0
  45. package/src/grid/core/col-5.css +23 -0
  46. package/src/grid/core/col-6.css +27 -0
  47. package/src/grid/core/col-7.css +31 -0
  48. package/src/grid/core/col-8.css +35 -0
  49. package/src/grid/core/col-9.css +39 -0
  50. package/src/grid/grid.css +19 -0
  51. package/src/{css/components/form/required.css → grid/lg/col-1.css} +5 -5
  52. package/src/grid/lg/col-10.css +45 -0
  53. package/src/grid/lg/col-11.css +49 -0
  54. package/src/grid/lg/col-12.css +53 -0
  55. package/src/grid/lg/col-2.css +13 -0
  56. package/src/grid/lg/col-3.css +17 -0
  57. package/src/grid/lg/col-4.css +21 -0
  58. package/src/grid/lg/col-5.css +25 -0
  59. package/src/grid/lg/col-6.css +29 -0
  60. package/src/grid/lg/col-7.css +33 -0
  61. package/src/grid/lg/col-8.css +37 -0
  62. package/src/grid/lg/col-9.css +41 -0
  63. package/src/{css/components/navigation/bar.css → grid/md/col-1.css} +5 -7
  64. package/src/grid/md/col-10.css +45 -0
  65. package/src/grid/md/col-11.css +49 -0
  66. package/src/grid/md/col-12.css +53 -0
  67. package/src/grid/md/col-2.css +13 -0
  68. package/src/grid/md/col-3.css +17 -0
  69. package/src/grid/md/col-4.css +21 -0
  70. package/src/grid/md/col-5.css +25 -0
  71. package/src/grid/md/col-6.css +29 -0
  72. package/src/grid/md/col-7.css +33 -0
  73. package/src/grid/md/col-8.css +37 -0
  74. package/src/grid/md/col-9.css +41 -0
  75. package/src/grid/sm/col-1.css +9 -0
  76. package/src/grid/sm/col-10.css +45 -0
  77. package/src/grid/sm/col-11.css +49 -0
  78. package/src/grid/sm/col-12.css +53 -0
  79. package/src/grid/sm/col-2.css +13 -0
  80. package/src/grid/sm/col-3.css +17 -0
  81. package/src/grid/sm/col-4.css +21 -0
  82. package/src/grid/sm/col-5.css +25 -0
  83. package/src/grid/sm/col-6.css +29 -0
  84. package/src/grid/sm/col-7.css +33 -0
  85. package/src/grid/sm/col-8.css +37 -0
  86. package/src/grid/sm/col-9.css +41 -0
  87. package/src/grid/xl/col-1.css +9 -0
  88. package/src/grid/xl/col-10.css +45 -0
  89. package/src/grid/xl/col-11.css +49 -0
  90. package/src/grid/xl/col-12.css +53 -0
  91. package/src/grid/xl/col-2.css +13 -0
  92. package/src/grid/xl/col-3.css +17 -0
  93. package/src/grid/xl/col-4.css +21 -0
  94. package/src/grid/xl/col-5.css +25 -0
  95. package/src/grid/xl/col-6.css +29 -0
  96. package/src/grid/xl/col-7.css +33 -0
  97. package/src/grid/xl/col-8.css +37 -0
  98. package/src/grid/xl/col-9.css +41 -0
  99. package/src/gutter/core/all.css +31 -0
  100. package/src/gutter/core/horizontal.css +31 -0
  101. package/src/gutter/core/vertical.css +31 -0
  102. package/src/gutter/lg/all.css +33 -0
  103. package/src/gutter/lg/horizontal.css +33 -0
  104. package/src/gutter/lg/vertical.css +33 -0
  105. package/src/gutter/md/all.css +33 -0
  106. package/src/gutter/md/horizontal.css +33 -0
  107. package/src/gutter/md/vertical.css +33 -0
  108. package/src/gutter/sm/all.css +33 -0
  109. package/src/gutter/sm/horizontal.css +33 -0
  110. package/src/gutter/sm/vertical.css +33 -0
  111. package/src/gutter/xl/all.css +33 -0
  112. package/src/gutter/xl/horizontal.css +33 -0
  113. package/src/gutter/xl/vertical.css +33 -0
  114. package/src/image/image.css +30 -0
  115. package/src/links/links.css +18 -0
  116. package/src/margin/core/all.css +27 -0
  117. package/src/margin/core/bottom.css +27 -0
  118. package/src/margin/core/end.css +27 -0
  119. package/src/margin/core/horizontal.css +33 -0
  120. package/src/margin/core/start.css +27 -0
  121. package/src/margin/core/top.css +27 -0
  122. package/src/margin/core/vertical.css +33 -0
  123. package/src/margin/lg/all.css +29 -0
  124. package/src/margin/lg/bottom.css +29 -0
  125. package/src/margin/lg/end.css +29 -0
  126. package/src/margin/lg/horizontal.css +35 -0
  127. package/src/margin/lg/start.css +29 -0
  128. package/src/margin/lg/top.css +29 -0
  129. package/src/margin/lg/vertical.css +35 -0
  130. package/src/margin/md/all.css +29 -0
  131. package/src/margin/md/bottom.css +29 -0
  132. package/src/margin/md/end.css +29 -0
  133. package/src/margin/md/horizontal.css +35 -0
  134. package/src/margin/md/start.css +29 -0
  135. package/src/margin/md/top.css +29 -0
  136. package/src/margin/md/vertical.css +35 -0
  137. package/src/margin/sm/all.css +29 -0
  138. package/src/margin/sm/bottom.css +29 -0
  139. package/src/margin/sm/end.css +29 -0
  140. package/src/margin/sm/horizontal.css +35 -0
  141. package/src/margin/sm/start.css +29 -0
  142. package/src/margin/sm/top.css +29 -0
  143. package/src/margin/sm/vertical.css +35 -0
  144. package/src/margin/xl/all.css +29 -0
  145. package/src/margin/xl/bottom.css +29 -0
  146. package/src/margin/xl/end.css +29 -0
  147. package/src/margin/xl/horizontal.css +35 -0
  148. package/src/margin/xl/start.css +29 -0
  149. package/src/margin/xl/top.css +29 -0
  150. package/src/margin/xl/vertical.css +35 -0
  151. package/src/{css/components/form/success.css → padding/core/all.css} +21 -8
  152. package/src/padding/core/bottom.css +27 -0
  153. package/src/padding/core/end.css +27 -0
  154. package/src/padding/core/horizontal.css +33 -0
  155. package/src/padding/core/start.css +27 -0
  156. package/src/padding/core/top.css +27 -0
  157. package/src/padding/core/vertical.css +33 -0
  158. package/src/padding/lg/all.css +29 -0
  159. package/src/padding/lg/bottom.css +29 -0
  160. package/src/padding/lg/end.css +29 -0
  161. package/src/padding/lg/horizontal.css +35 -0
  162. package/src/padding/lg/start.css +29 -0
  163. package/src/padding/lg/top.css +29 -0
  164. package/src/padding/lg/vertical.css +35 -0
  165. package/src/padding/md/all.css +29 -0
  166. package/src/padding/md/bottom.css +29 -0
  167. package/src/padding/md/end.css +29 -0
  168. package/src/padding/md/horizontal.css +35 -0
  169. package/src/padding/md/start.css +29 -0
  170. package/src/padding/md/top.css +29 -0
  171. package/src/padding/md/vertical.css +35 -0
  172. package/src/padding/sm/all.css +29 -0
  173. package/src/padding/sm/bottom.css +29 -0
  174. package/src/padding/sm/end.css +29 -0
  175. package/src/padding/sm/horizontal.css +35 -0
  176. package/src/padding/sm/start.css +29 -0
  177. package/src/padding/sm/top.css +29 -0
  178. package/src/padding/sm/vertical.css +35 -0
  179. package/src/padding/xl/all.css +29 -0
  180. package/src/padding/xl/bottom.css +29 -0
  181. package/src/padding/xl/end.css +29 -0
  182. package/src/padding/xl/horizontal.css +34 -0
  183. package/src/padding/xl/start.css +29 -0
  184. package/src/padding/xl/top.css +29 -0
  185. package/src/padding/xl/vertical.css +35 -0
  186. package/src/reset/reset.css +47 -0
  187. package/src/{css/utils/background/background.css → size/core/size.css} +7 -1
  188. package/src/size/lg/size.css +13 -0
  189. package/src/size/md/size.css +13 -0
  190. package/src/{css/components/content/content.css → size/sm/size.css} +7 -12
  191. package/src/size/xl/size.css +13 -0
  192. package/src/spacing/spacing.css +15 -0
  193. package/src/{css/components/footer/footer.css → typography/align.css} +4 -3
  194. package/src/typography/transform.css +15 -0
  195. package/src/{css/components/form/label.css → typography/weight.css} +5 -5
  196. package/gulp/config.js +0 -41
  197. package/gulp/css.js +0 -147
  198. package/gulp/utilities.js +0 -150
  199. package/gulpfile.js +0 -37
  200. package/src/css/base/README.md +0 -12
  201. package/src/css/base/base.css +0 -145
  202. package/src/css/base/code.css +0 -36
  203. package/src/css/base/forms.css +0 -67
  204. package/src/css/base/index.css +0 -7
  205. package/src/css/base/print.css +0 -77
  206. package/src/css/base/tables.css +0 -38
  207. package/src/css/base/typography.css +0 -258
  208. package/src/css/components/arrange/arrange.css +0 -157
  209. package/src/css/components/arrange/index.css +0 -1
  210. package/src/css/components/breadcrumb/index.css +0 -1
  211. package/src/css/components/button/README.md +0 -88
  212. package/src/css/components/button/button.css +0 -142
  213. package/src/css/components/button/index.css +0 -1
  214. package/src/css/components/constrain/README.md +0 -65
  215. package/src/css/components/constrain/constrain.css +0 -162
  216. package/src/css/components/constrain/image.css +0 -29
  217. package/src/css/components/constrain/index.css +0 -2
  218. package/src/css/components/container/README.md +0 -28
  219. package/src/css/components/container/container.css +0 -48
  220. package/src/css/components/container/index.css +0 -1
  221. package/src/css/components/content/index.css +0 -1
  222. package/src/css/components/flexembed/README.md +0 -65
  223. package/src/css/components/flexembed/flexembed.css +0 -82
  224. package/src/css/components/flexembed/index.css +0 -1
  225. package/src/css/components/footer/index.css +0 -1
  226. package/src/css/components/form/error.css +0 -21
  227. package/src/css/components/form/index.css +0 -6
  228. package/src/css/components/form/selectmenu.css +0 -92
  229. package/src/css/components/form/textinput.css +0 -60
  230. package/src/css/components/grid/README.md +0 -107
  231. package/src/css/components/grid/grid.css +0 -150
  232. package/src/css/components/grid/index.css +0 -1
  233. package/src/css/components/header/index.css +0 -1
  234. package/src/css/components/image/README.md +0 -66
  235. package/src/css/components/image/caption.css +0 -13
  236. package/src/css/components/image/image.css +0 -59
  237. package/src/css/components/image/index.css +0 -3
  238. package/src/css/components/image/wrapper.css +0 -44
  239. package/src/css/components/index.css +0 -17
  240. package/src/css/components/list/README.md +0 -36
  241. package/src/css/components/list/columns.css +0 -42
  242. package/src/css/components/list/index.css +0 -2
  243. package/src/css/components/list/list.css +0 -162
  244. package/src/css/components/media/README.md +0 -43
  245. package/src/css/components/media/index.css +0 -1
  246. package/src/css/components/media/media.css +0 -161
  247. package/src/css/components/message/index.css +0 -1
  248. package/src/css/components/message/message.css +0 -42
  249. package/src/css/components/navigation/README.md +0 -110
  250. package/src/css/components/navigation/dropdown.css +0 -165
  251. package/src/css/components/navigation/footer.css +0 -59
  252. package/src/css/components/navigation/index.css +0 -7
  253. package/src/css/components/navigation/mainnav.css +0 -73
  254. package/src/css/components/navigation/responsive-overlay.css +0 -129
  255. package/src/css/components/navigation/responsive-pushdown.css +0 -131
  256. package/src/css/components/navigation/sidebar.css +0 -44
  257. package/src/css/components/navigation/small-screen-button.css +0 -99
  258. package/src/css/components/pagination/index.css +0 -1
  259. package/src/css/components/pagination/pagination.css +0 -41
  260. package/src/css/components/triangle/README.md +0 -22
  261. package/src/css/components/triangle/index.css +0 -1
  262. package/src/css/components/triangle/triangle.css +0 -59
  263. package/src/css/config.css +0 -18
  264. package/src/css/main.css +0 -4
  265. package/src/css/utils/align/align.css +0 -26
  266. package/src/css/utils/align/index.css +0 -1
  267. package/src/css/utils/background/index.css +0 -1
  268. package/src/css/utils/content/content.css +0 -11
  269. package/src/css/utils/content/index.css +0 -1
  270. package/src/css/utils/display/display-responsive.css +0 -52
  271. package/src/css/utils/display/display.css +0 -71
  272. package/src/css/utils/display/index.css +0 -2
  273. package/src/css/utils/flex/flex-responsive.css +0 -759
  274. package/src/css/utils/flex/flex.css +0 -253
  275. package/src/css/utils/flex/index.css +0 -2
  276. package/src/css/utils/image/image.css +0 -27
  277. package/src/css/utils/image/index.css +0 -1
  278. package/src/css/utils/index.css +0 -16
  279. package/src/css/utils/layout/index.css +0 -1
  280. package/src/css/utils/layout/layout.css +0 -71
  281. package/src/css/utils/link/index.css +0 -1
  282. package/src/css/utils/link/link.css +0 -95
  283. package/src/css/utils/margin/gutters.css +0 -120
  284. package/src/css/utils/margin/index.css +0 -21
  285. package/src/css/utils/margin/marg-bottom-lg.css +0 -35
  286. package/src/css/utils/margin/marg-bottom-md.css +0 -35
  287. package/src/css/utils/margin/marg-bottom-sm.css +0 -35
  288. package/src/css/utils/margin/marg-bottom.css +0 -34
  289. package/src/css/utils/margin/marg-left-lg.css +0 -35
  290. package/src/css/utils/margin/marg-left-md.css +0 -35
  291. package/src/css/utils/margin/marg-left-sm.css +0 -35
  292. package/src/css/utils/margin/marg-left.css +0 -34
  293. package/src/css/utils/margin/marg-right-lg.css +0 -35
  294. package/src/css/utils/margin/marg-right-md.css +0 -35
  295. package/src/css/utils/margin/marg-right-sm.css +0 -35
  296. package/src/css/utils/margin/marg-right.css +0 -34
  297. package/src/css/utils/margin/marg-top-lg.css +0 -35
  298. package/src/css/utils/margin/marg-top-md.css +0 -35
  299. package/src/css/utils/margin/marg-top-sm.css +0 -35
  300. package/src/css/utils/margin/marg-top.css +0 -34
  301. package/src/css/utils/margin/spaced-lg.css +0 -41
  302. package/src/css/utils/margin/spaced-md.css +0 -41
  303. package/src/css/utils/margin/spaced-sm.css +0 -41
  304. package/src/css/utils/margin/spaced.css +0 -40
  305. package/src/css/utils/padding/gutters-lg.css +0 -40
  306. package/src/css/utils/padding/gutters-md.css +0 -40
  307. package/src/css/utils/padding/gutters-sm.css +0 -40
  308. package/src/css/utils/padding/gutters.css +0 -39
  309. package/src/css/utils/padding/index.css +0 -28
  310. package/src/css/utils/padding/pad-bottom-lg.css +0 -35
  311. package/src/css/utils/padding/pad-bottom-md.css +0 -35
  312. package/src/css/utils/padding/pad-bottom-sm.css +0 -35
  313. package/src/css/utils/padding/pad-bottom.css +0 -34
  314. package/src/css/utils/padding/pad-left-lg.css +0 -35
  315. package/src/css/utils/padding/pad-left-md.css +0 -35
  316. package/src/css/utils/padding/pad-left-sm.css +0 -35
  317. package/src/css/utils/padding/pad-left.css +0 -33
  318. package/src/css/utils/padding/pad-right-lg.css +0 -35
  319. package/src/css/utils/padding/pad-right-md.css +0 -35
  320. package/src/css/utils/padding/pad-right-sm.css +0 -35
  321. package/src/css/utils/padding/pad-right.css +0 -33
  322. package/src/css/utils/padding/pad-top-lg.css +0 -35
  323. package/src/css/utils/padding/pad-top-md.css +0 -35
  324. package/src/css/utils/padding/pad-top-sm.css +0 -35
  325. package/src/css/utils/padding/pad-top.css +0 -34
  326. package/src/css/utils/padding/spaced-lg.css +0 -41
  327. package/src/css/utils/padding/spaced-md.css +0 -41
  328. package/src/css/utils/padding/spaced-sm.css +0 -41
  329. package/src/css/utils/padding/spaced.css +0 -40
  330. package/src/css/utils/position/index.css +0 -1
  331. package/src/css/utils/position/position.css +0 -28
  332. package/src/css/utils/pull/index.css +0 -4
  333. package/src/css/utils/pull/pull-lg.css +0 -130
  334. package/src/css/utils/pull/pull-md.css +0 -130
  335. package/src/css/utils/pull/pull-sm.css +0 -130
  336. package/src/css/utils/pull/pull.css +0 -122
  337. package/src/css/utils/push/index.css +0 -4
  338. package/src/css/utils/push/push-lg.css +0 -130
  339. package/src/css/utils/push/push-md.css +0 -130
  340. package/src/css/utils/push/push-sm.css +0 -130
  341. package/src/css/utils/push/push.css +0 -122
  342. package/src/css/utils/radius/index.css +0 -1
  343. package/src/css/utils/radius/radius.css +0 -35
  344. package/src/css/utils/size/height.css +0 -25
  345. package/src/css/utils/size/index.css +0 -6
  346. package/src/css/utils/size/size-lg.css +0 -184
  347. package/src/css/utils/size/size-md.css +0 -184
  348. package/src/css/utils/size/size-sm.css +0 -184
  349. package/src/css/utils/size/size-xs.css +0 -184
  350. package/src/css/utils/size/size.css +0 -182
  351. package/src/css/utils/size/width.css +0 -25
  352. package/src/css/utils/typography/index.css +0 -4
  353. package/src/css/utils/typography/typography-lg.css +0 -17
  354. package/src/css/utils/typography/typography-md.css +0 -17
  355. package/src/css/utils/typography/typography-sm.css +0 -17
  356. package/src/css/utils/typography/typography.css +0 -241
package/gulp/utilities.js DELETED
@@ -1,150 +0,0 @@
1
- /* =========================================================================== *\
2
- Utility functions
3
- \* =========================================================================== */
4
-
5
-
6
- // Require plugins
7
- const chalk = require('chalk');
8
- const fancyLog = require('fancy-log');
9
- const moment = require('moment');
10
-
11
- // Load node modules
12
- const del = require('del');
13
- const path = require('path');
14
-
15
-
16
- // Banner to add to the top of files
17
- const banner = [
18
- "/**",
19
- " * @build " + moment().format("llll Z"),
20
- " */",
21
- ""
22
- ].join("\n");
23
-
24
-
25
- /**
26
- * Deletes a file
27
- *
28
- * @param {string} file The file to delete
29
- * @param {string} src The file source path
30
- * @param {string} dest The build destination path
31
- * @param {string} type The type of file. Used in the console message
32
- */
33
- function deleteFile(file, src, dest, type) {
34
-
35
- // Get the relative path to the file
36
- var srcPath = path.relative(path.resolve(src), file);
37
-
38
- // Remove "../" from the path as it causes the destination path to be incorrect
39
- srcPath = srcPath.replace(/(\.\.\/)+/, '');
40
-
41
- // Output message of what is being deleted
42
- log(dest + '/' + srcPath, 'Deleting ' + type);
43
-
44
- // Combine the destination path and the source path to get the full path to the destination file
45
- let destPath = path.resolve(dest, srcPath);
46
-
47
- // Delete the file
48
- del.sync(destPath);
49
- }
50
-
51
-
52
- /**
53
- * Process an array of data synchronously.
54
- *
55
- * @link https://gist.github.com/steve-taylor/5075717
56
- * Updated slightly to be ES6
57
- *
58
- * @param data An array of data.
59
- * @param processData A function that processes an item of data.
60
- * Signature: function(item, i, callback), where {@code item} is the i'th item,
61
- * {@code i} is the loop index value and {@code calback} is the
62
- * parameterless function to call on completion of processing an item.
63
- */
64
- function doSynchronousLoop(data, processData, done) {
65
- if (data.length > 0) {
66
- const loop = (data, i, processData, done) => {
67
- processData(data[i], i, () => {
68
- if (++i < data.length) {
69
- loop(data, i, processData, done);
70
- } else {
71
- done();
72
- }
73
- });
74
- };
75
- loop(data, 0, processData, done);
76
- } else {
77
- done();
78
- }
79
- }
80
-
81
- /**
82
- * Flattens an array and joins two together
83
- * @param {Array} prev
84
- * @param {Array} current
85
- * @returns {Array}
86
- */
87
- function flatten(prev, current) {
88
- return prev.concat(current.src);
89
- }
90
-
91
- /**
92
- * Logs the current file being dealt with
93
- * @param {object} file The file object
94
- * @param {string} [prefix] The log prefix
95
- */
96
- function logFile(file, prefix) {
97
- prefix = prefix || 'Using'
98
- log(path.relative(file.cwd, file.path), prefix);
99
- }
100
-
101
-
102
- /**
103
- * Log something with an optional prefix
104
- * @param {string} content The string to log
105
- * @param {string} [prefix] The log prefix
106
- */
107
- function log(content, prefix) {
108
- if (typeof prefix !== 'undefined' && prefix.length > 0) {
109
- fancyLog(chalk.cyan(prefix) + ' ' + chalk.magenta(content));
110
- } else {
111
- fancyLog(chalk.magenta(content));
112
- }
113
- }
114
-
115
- /**
116
- * Logs moving a file from one location to another
117
- * @param {string} message The text to prefix the files
118
- * @param {object|string} file The file being moved
119
- * @param {string} dest The destination location
120
- */
121
- function logFileTo(message, file, dest) {
122
- if (typeof file === 'string') {
123
- fancyLog(chalk.cyan(message) + ' ' + chalk.blue(file) + ' to ' + chalk.green(dest));
124
- } else {
125
- fancyLog(chalk.cyan(message) + ' ' + chalk.blue(path.relative(file.cwd, file.path)) + ' to ' + chalk.green(dest));
126
- }
127
- }
128
-
129
- /**
130
- * Error Handler
131
- * @param err
132
- */
133
- const onError = (err) => {
134
- console.log(err);
135
- if (typeof this.emit === 'function') {
136
- this.emit('end');
137
- }
138
- };
139
-
140
- // Export module
141
- module.exports = {
142
- banner: banner,
143
- deleteFile: deleteFile,
144
- flatten: flatten,
145
- log: log,
146
- logFile: logFile,
147
- logFileTo: logFileTo,
148
- onError: onError,
149
- synchLoop: doSynchronousLoop
150
- };
package/gulpfile.js DELETED
@@ -1,37 +0,0 @@
1
- // Configuration
2
- const config = require('./gulp/config.js');
3
-
4
- // Load gulp
5
- const gulp = require('gulp');
6
-
7
- // Load gulp modules
8
- const css = require('./gulp/css');
9
-
10
- /**
11
- * Watch for file changes and then process the files
12
- * @param {function} done
13
- */
14
- function watch(done) {
15
- // CSS
16
- gulp.watch(config.paths.watch.css, {events: 'all'}, css.css);
17
-
18
- done();
19
- }
20
-
21
- // Set the display properties of the theme pull function
22
- watch.description = 'Watch for file changes and then process the files';
23
-
24
-
25
- // Build tasks
26
- const build = gulp.series(
27
- css.css
28
- );
29
-
30
- // Export gulp methods
31
- module.exports = {
32
- build: build,
33
- default: gulp.series(build, watch),
34
- css: css.css,
35
- stylelint: css.stylelint,
36
- watch: watch
37
- };
@@ -1,12 +0,0 @@
1
- # Base
2
-
3
- Base styles for web applications. Styles are built upon
4
- [Normalize.css](https://github.com/necolas/normalize.css).
5
-
6
- Creates a "layer" of base element styles. If these styles are spread across
7
- modules other than this one, things can get unpredictable. Lots of styles are
8
- based on those found in Reboot / Bootstrap v4 with some other more or less
9
- opinionated changes.
10
-
11
- **Note:** A base font-size: 62.5% is declared on the `<html>` for intuitiv
12
- `rem` conversion to and from pixels.
@@ -1,145 +0,0 @@
1
- /* ==========================================================================
2
- Base
3
- ========================================================================== */
4
-
5
- :root {
6
- --base-body-background: #fff;
7
- }
8
-
9
- /**
10
- * Add smooth scrolling by default.
11
- * Disable it for those who prefer reduced motion
12
- * @link https://ashleemboyer.com/accessible-smooth-scroll-to-top-buttons-with-little-code
13
- */
14
- html {
15
- scroll-behavior: smooth;
16
-
17
- @media (prefers-reduced-motion: reduce) {
18
- scroll-behavior: auto;
19
- }
20
- }
21
-
22
- /**
23
- * 1. By default, `<body>` has no `background-color` so we set one
24
- * as a best practice.
25
- */
26
-
27
- body {
28
- background: var(--base-body-background); /* 1 */
29
- }
30
-
31
- /**
32
- * 1. Style alt text.
33
- * 2. Scale image fluidly within its container. Making this default has some
34
- * known issues but can be very convenient when users are inserting images
35
- * onto a page with a rich text editor.
36
- * See https://github.com/twbs/bootstrap/issues/18178
37
- * 3. Align middle to prevent white space created by aligning to text baseline.
38
- */
39
-
40
- img {
41
- font-style: italic; /* 1 */
42
- height: auto; /* 2 */
43
- max-width: 100%; /* 2 */
44
- vertical-align: middle; /* 3 */
45
- }
46
-
47
- /**
48
- * 1. Remove default border from iframes
49
- */
50
-
51
- iframe {
52
- border: 0; /* 1 */
53
- }
54
-
55
- /**
56
- * iOS "clickable elements" fix for role="button"
57
- *
58
- * Fixes "clickability" issue (and more generally, the firing of events such as
59
- * focus as well) for traditionally non-focusable elements with role="button"
60
- * see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
61
- */
62
-
63
- [role='button'] {
64
- cursor: pointer;
65
- }
66
-
67
- /**
68
- * Suppress the focus outline on elements that cannot be accessed via keyboard.
69
- * This prevents an unwanted focus outline from appearing around elements that
70
- * might still respond to pointer events.
71
- */
72
-
73
- [tabindex='-1']:focus {
74
- outline: none !important;
75
- }
76
-
77
- /**
78
- * Avoid 300ms click delay on touch devices that support the `touch-action` CSS
79
- * property.
80
- *
81
- * In particular, unlike most other browsers, IE11+Edge on Windows 10 on touch
82
- * devices and IE Mobile 10-11 DON'T remove the click delay when
83
- * `<meta name="viewport" content="width=device-width">` is present. However,
84
- * they DO support removing the click delay via `touch-action: manipulation`.
85
- * See:
86
- * - http://v4-alpha.getbootstrap.com/content/reboot/#click-delay-optimization-for-touch
87
- * - http://caniuse.com/#feat=css-touch-action
88
- * - http://patrickhlauke.github.io/touch/tests/results/#suppressing-300ms-delay
89
- */
90
-
91
- a,
92
- area,
93
- button,
94
- [role='button'],
95
- input,
96
- label,
97
- select,
98
- summary,
99
- textarea {
100
- touch-action: manipulation;
101
- }
102
-
103
- /**
104
- * Work around a Firefox/IE bug where the transparent `button` background
105
- * results in a loss of the default `button` focus styles.
106
- * Based on SUIT CSS: https://github.com/suitcss/base/blob/master/lib/base.css.
107
- * Also see https://css-tricks.com/copy-the-browsers-native-focus-styles/ for "Highlight"
108
- */
109
- button:focus-visible {
110
- outline: 1px dotted;
111
- /* stylelint-disable */
112
- outline: 2px auto Highlight;
113
- outline: 2px auto -webkit-focus-ring-color;
114
- /* stylelint-enable */
115
- outline-offset: 1px;
116
- }
117
-
118
- /**
119
- * Always hide an element with the `hidden` HTML attribute (from PureCSS).
120
- */
121
-
122
- [hidden] {
123
- display: none !important;
124
- }
125
-
126
- /**
127
- * Use a more intuitive box-sizing model
128
- * See: https://www.joshwcomeau.com/css/custom-css-reset
129
- */
130
-
131
- *,
132
- *::before,
133
- *::after {
134
- box-sizing: border-box;
135
- }
136
-
137
- /**
138
- * Remove the focus outline for mouse uses but preserve for keyboard users with
139
- * :focus-visible
140
- * @link https://twitter.com/LeaVerou/status/1045768279753666562
141
- * @link https://css-tricks.com/the-focus-visible-trick/
142
- */
143
- :focus:not(:focus-visible) {
144
- outline: none;
145
- }
@@ -1,36 +0,0 @@
1
- /* ==========================================================================
2
- Code
3
- ========================================================================== */
4
-
5
- :root {
6
- --base-code-fontFamily: monospace;
7
- --base-code-fontSize: 90%;
8
- --base-code-fontWeight: inherit;
9
- --base-code-letterSpacing: normal;
10
- --base-code-lineHeight: 1.5;
11
- --base-code-spacing: 20px;
12
- }
13
-
14
- /**
15
- * Inline and block code styles
16
- */
17
-
18
- code,
19
- kbd,
20
- pre,
21
- samp {
22
- color: inherit;
23
- font-family: var(--base-code-fontFamily);
24
- font-size: var(--base-code-fontSize);
25
- font-weight: var(--base-code-fontWeight);
26
- letter-spacing: var(--base-code-letterSpacing);
27
- line-height: var(--base-code-lineHeight);
28
- }
29
-
30
- /**
31
- * Blocks of code or pre-formatted text
32
- */
33
-
34
- pre {
35
- margin: 0 0 var(--base-code-spacing);
36
- }
@@ -1,67 +0,0 @@
1
- /* ==========================================================================
2
- Forms
3
- ========================================================================== */
4
-
5
- fieldset {
6
- border: 0;
7
- margin: 0;
8
- padding: 0;
9
- }
10
-
11
- /**
12
- * 1. Allow labels can use `margin` for spacing.
13
- */
14
-
15
- label {
16
- display: inline-block; /* 1 */
17
- }
18
-
19
- /**
20
- * 1. iOS adds rounded borders by default
21
- * 2. Normalize includes `font: inherit;`, so `font-family`. `font-size`, etc
22
- * are properly inherited. However, `line-height` isn't addressed there.
23
- * Using this ensures we don't need to unnecessarily redeclare the global
24
- * font stack.
25
- * 3. Remove all `margin`s so our classes don't have to do it themselves.
26
- */
27
-
28
- input,
29
- button,
30
- select,
31
- textarea {
32
- border-radius: 0; /* 1 */
33
- line-height: inherit; /* 2 */
34
- margin: 0; /* 3 */
35
- }
36
-
37
- /**
38
- * 1. Only allow for vertical resizing to prevent layouts from breaking.
39
- * 2. Easier to read default alignment.
40
- */
41
-
42
- textarea {
43
- resize: vertical; /* 1 */
44
- vertical-align: top; /* 2 */
45
- }
46
-
47
- /**
48
- * 1. Overrides the extra rounded corners on search inputs in iOS so that our
49
- * custom classes can properly style them without using an attribute selector.
50
- */
51
-
52
- input[type='search'] {
53
- -webkit-appearance: none; /* 1 */
54
- }
55
-
56
- /**
57
- * Add some right margin to radio buttons and checkboxes
58
- */
59
- input[type='radio'],
60
- input[type='checkbox'] {
61
- margin-right: 5px;
62
- }
63
-
64
- html input[disabled],
65
- html input[readonly] {
66
- background: #eee;
67
- }
@@ -1,7 +0,0 @@
1
- @import 'normalize.css/normalize';
2
- @import './base.css';
3
- @import './code.css';
4
- @import './forms.css';
5
- @import './tables.css';
6
- @import './typography.css';
7
- @import './print.css';
@@ -1,77 +0,0 @@
1
- /* =========================================================================== *\
2
- Print styles
3
- Based off of HTML5 Boilerplate print styles in their /css/main.css file
4
- Inlined to avoid the additional HTTP request
5
- \* =========================================================================== */
6
-
7
-
8
-
9
- @media print {
10
- *,
11
- *::before,
12
- *::after {
13
- background: transparent !important;
14
- box-shadow: none !important;
15
- color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */
16
- text-shadow: none !important;
17
- }
18
-
19
- a,
20
- a:visited {
21
- text-decoration: underline;
22
- }
23
-
24
- a[href]::after {
25
- content: ' (' attr(href) ')';
26
- }
27
-
28
- abbr[title]::after {
29
- content: ' (' attr(title) ')';
30
- }
31
-
32
- /*
33
- * Don't show links that are fragment identifiers,
34
- * or use the `javascript:` pseudo protocol
35
- */
36
-
37
- a[href^='#']::after,
38
- a[href^='javascript:']::after {
39
- content: '';
40
- }
41
-
42
- pre {
43
- white-space: pre-wrap !important;
44
- }
45
-
46
- pre,
47
- blockquote {
48
- border: 1px solid #999;
49
- page-break-inside: avoid;
50
- }
51
-
52
- /*
53
- * Printing Tables:
54
- * http://css-discuss.incutio.com/wiki/Printing_Tables
55
- */
56
-
57
- thead {
58
- display: table-header-group;
59
- }
60
-
61
- tr,
62
- img {
63
- page-break-inside: avoid;
64
- }
65
-
66
- p,
67
- h2,
68
- h3 {
69
- orphans: 3;
70
- widows: 3;
71
- }
72
-
73
- h2,
74
- h3 {
75
- page-break-after: avoid;
76
- }
77
- }
@@ -1,38 +0,0 @@
1
- /* ==========================================================================
2
- Tables
3
- ========================================================================== */
4
-
5
- :root {
6
- --base-tables-heading-color: inherit;
7
- --base-tables-spacing: 20px;
8
- }
9
-
10
- table {
11
- border-collapse: collapse;
12
- border-spacing: 0;
13
- margin-bottom: var(--base-tables-spacing);
14
- }
15
-
16
- td,
17
- th {
18
- padding: 6px;
19
- vertical-align: top;
20
- }
21
-
22
- th {
23
- color: var(--base-tables-heading-color);
24
- }
25
-
26
- /**
27
- * Keep text alignment consistent, reset default centered text
28
- */
29
-
30
- caption,
31
- th {
32
- text-align: left;
33
- }
34
-
35
- caption {
36
- caption-side: bottom;
37
- margin-top: var(--base-tables-spacing);
38
- }