gent_styleguide 2.9.2 → 2.12.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 (284) hide show
  1. package/.codeclimate.yml +51 -14
  2. package/CHANGELOG.md +15 -1
  3. package/CONTRIBUTING.md +8 -1
  4. package/README.md +23 -6
  5. package/build/styleguide/js/base-min.js +68 -1
  6. package/build/styleguide/js/breadcrumbs.binding-min.js +13 -1
  7. package/build/styleguide/js/breadcrumbs.functions-min.js +131 -1
  8. package/build/styleguide/js/button-drop-min.js +38 -1
  9. package/build/styleguide/js/button-drop.binding-min.js +13 -1
  10. package/build/styleguide/js/button-drop.functions-min.js +48 -1
  11. package/build/styleguide/js/gallery.binding-min.js +12 -1
  12. package/build/styleguide/js/gallery.functions-min.js +29 -1
  13. package/build/styleguide/js/hamburger-menu.binding-min.js +17 -1
  14. package/build/styleguide/js/hamburger-menu.functions-min.js +166 -1
  15. package/build/styleguide/js/header.binding-min.js +18 -1
  16. package/build/styleguide/js/header.functions-min.js +73 -1
  17. package/build/styleguide/js/input-date.binding-min.js +8 -1
  18. package/build/styleguide/js/input-date.functions-min.js +27 -1
  19. package/build/styleguide/js/input-multiselect-chosen.binding-min.js +31 -1
  20. package/build/styleguide/js/input-multiselect-chosen.functions-min.js +24 -1
  21. package/build/styleguide/js/teaser-collection.binding-min.js +14 -1
  22. package/build/styleguide/sass/00-settings/_vars.scss +2 -3
  23. package/build/styleguide/sass/01-mixins/grid/_default_classes.scss +8 -6
  24. package/build/styleguide/sass/01-mixins/grid/_mixins.scss +22 -20
  25. package/build/styleguide/sass/11-base/forms/_forms.scss +3 -0
  26. package/build/styleguide/sass/11-base/grid/_grid.scss +2 -2
  27. package/build/styleguide/sass/21-atoms/fieldset/_fieldset.scss +1 -1
  28. package/build/styleguide/sass/21-atoms/inputs/input-multiselect-chosen/_input-multiselect-chosen.scss +1 -1
  29. package/build/styleguide/sass/21-atoms/tag/_tag.scss +0 -5
  30. package/build/styleguide/sass/31-molecules/building-blocks/breadcrumbs/_breadcrumbs.scss +33 -37
  31. package/build/styleguide/sass/31-molecules/building-blocks/hamburger-menu/_hamburger-menu.scss +1 -1
  32. package/build/styleguide/sass/31-molecules/status-message/_status-message.scss +1 -0
  33. package/build/styleguide/sass/41-organisms/header/_header.scss +2 -2
  34. package/build/styleguide/sass/main_cli.scss +12 -11
  35. package/nbproject/private/private.properties +1 -0
  36. package/nbproject/private/private.xml +8 -0
  37. package/nbproject/project.properties +5 -0
  38. package/nbproject/project.xml +9 -0
  39. package/package.json +7 -9
  40. package/.github/ISSUE_TEMPLATE.md +0 -32
  41. package/.github/PULL_REQUEST_TEMPLATE.md +0 -30
  42. package/.mdl.style.rb +0 -9
  43. package/.mdlrc +0 -1
  44. package/.travis.yml +0 -27
  45. package/build/styleguide/vendor/chosen-js/README.md +0 -47
  46. package/build/styleguide/vendor/chosen-js/chosen-sprite.png +0 -0
  47. package/build/styleguide/vendor/chosen-js/chosen-sprite@2x.png +0 -0
  48. package/build/styleguide/vendor/chosen-js/chosen.css +0 -490
  49. package/build/styleguide/vendor/chosen-js/chosen.jquery.js +0 -1349
  50. package/build/styleguide/vendor/chosen-js/chosen.jquery.min.js +0 -3
  51. package/build/styleguide/vendor/chosen-js/chosen.min.css +0 -11
  52. package/build/styleguide/vendor/chosen-js/chosen.proto.js +0 -1389
  53. package/build/styleguide/vendor/chosen-js/chosen.proto.min.js +0 -3
  54. package/build/styleguide/vendor/jquery/AUTHORS.txt +0 -301
  55. package/build/styleguide/vendor/jquery/LICENSE.txt +0 -36
  56. package/build/styleguide/vendor/jquery/README.md +0 -67
  57. package/build/styleguide/vendor/jquery/dist/core.js +0 -476
  58. package/build/styleguide/vendor/jquery/dist/jquery.js +0 -10253
  59. package/build/styleguide/vendor/jquery/dist/jquery.min.js +0 -4
  60. package/build/styleguide/vendor/jquery/dist/jquery.min.map +0 -1
  61. package/build/styleguide/vendor/jquery/dist/jquery.slim.js +0 -8160
  62. package/build/styleguide/vendor/jquery/dist/jquery.slim.min.js +0 -4
  63. package/build/styleguide/vendor/jquery/dist/jquery.slim.min.map +0 -1
  64. package/build/styleguide/vendor/jquery/external/sizzle/LICENSE.txt +0 -36
  65. package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.js +0 -2272
  66. package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  67. package/build/styleguide/vendor/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  68. package/build/styleguide/vendor/jquery/package.json +0 -97
  69. package/build/styleguide/vendor/jquery/src/.eslintrc.json +0 -5
  70. package/build/styleguide/vendor/jquery/src/ajax/jsonp.js +0 -102
  71. package/build/styleguide/vendor/jquery/src/ajax/load.js +0 -76
  72. package/build/styleguide/vendor/jquery/src/ajax/parseXML.js +0 -30
  73. package/build/styleguide/vendor/jquery/src/ajax/script.js +0 -77
  74. package/build/styleguide/vendor/jquery/src/ajax/var/location.js +0 -5
  75. package/build/styleguide/vendor/jquery/src/ajax/var/nonce.js +0 -7
  76. package/build/styleguide/vendor/jquery/src/ajax/var/rquery.js +0 -5
  77. package/build/styleguide/vendor/jquery/src/ajax/xhr.js +0 -169
  78. package/build/styleguide/vendor/jquery/src/ajax.js +0 -855
  79. package/build/styleguide/vendor/jquery/src/attributes/attr.js +0 -141
  80. package/build/styleguide/vendor/jquery/src/attributes/classes.js +0 -174
  81. package/build/styleguide/vendor/jquery/src/attributes/prop.js +0 -143
  82. package/build/styleguide/vendor/jquery/src/attributes/support.js +0 -33
  83. package/build/styleguide/vendor/jquery/src/attributes/val.js +0 -190
  84. package/build/styleguide/vendor/jquery/src/attributes.js +0 -13
  85. package/build/styleguide/vendor/jquery/src/callbacks.js +0 -234
  86. package/build/styleguide/vendor/jquery/src/core/DOMEval.js +0 -16
  87. package/build/styleguide/vendor/jquery/src/core/access.js +0 -70
  88. package/build/styleguide/vendor/jquery/src/core/init.js +0 -128
  89. package/build/styleguide/vendor/jquery/src/core/nodeName.js +0 -13
  90. package/build/styleguide/vendor/jquery/src/core/parseHTML.js +0 -65
  91. package/build/styleguide/vendor/jquery/src/core/ready-no-deferred.js +0 -96
  92. package/build/styleguide/vendor/jquery/src/core/ready.js +0 -86
  93. package/build/styleguide/vendor/jquery/src/core/readyException.js +0 -13
  94. package/build/styleguide/vendor/jquery/src/core/stripAndCollapse.js +0 -14
  95. package/build/styleguide/vendor/jquery/src/core/support.js +0 -20
  96. package/build/styleguide/vendor/jquery/src/core/var/rsingleTag.js +0 -6
  97. package/build/styleguide/vendor/jquery/src/core.js +0 -476
  98. package/build/styleguide/vendor/jquery/src/css/addGetHookIf.js +0 -26
  99. package/build/styleguide/vendor/jquery/src/css/adjustCSS.js +0 -71
  100. package/build/styleguide/vendor/jquery/src/css/curCSS.js +0 -65
  101. package/build/styleguide/vendor/jquery/src/css/hiddenVisibleSelectors.js +0 -15
  102. package/build/styleguide/vendor/jquery/src/css/showHide.js +0 -105
  103. package/build/styleguide/vendor/jquery/src/css/support.js +0 -89
  104. package/build/styleguide/vendor/jquery/src/css/var/cssExpand.js +0 -5
  105. package/build/styleguide/vendor/jquery/src/css/var/getStyles.js +0 -17
  106. package/build/styleguide/vendor/jquery/src/css/var/isHiddenWithinTree.js +0 -34
  107. package/build/styleguide/vendor/jquery/src/css/var/rmargin.js +0 -5
  108. package/build/styleguide/vendor/jquery/src/css/var/rnumnonpx.js +0 -7
  109. package/build/styleguide/vendor/jquery/src/css/var/swap.js +0 -26
  110. package/build/styleguide/vendor/jquery/src/css.js +0 -438
  111. package/build/styleguide/vendor/jquery/src/data/Data.js +0 -161
  112. package/build/styleguide/vendor/jquery/src/data/var/acceptData.js +0 -19
  113. package/build/styleguide/vendor/jquery/src/data/var/dataPriv.js +0 -7
  114. package/build/styleguide/vendor/jquery/src/data/var/dataUser.js +0 -7
  115. package/build/styleguide/vendor/jquery/src/data.js +0 -179
  116. package/build/styleguide/vendor/jquery/src/deferred/exceptionHook.js +0 -21
  117. package/build/styleguide/vendor/jquery/src/deferred.js +0 -391
  118. package/build/styleguide/vendor/jquery/src/deprecated.js +0 -40
  119. package/build/styleguide/vendor/jquery/src/dimensions.js +0 -56
  120. package/build/styleguide/vendor/jquery/src/effects/Tween.js +0 -123
  121. package/build/styleguide/vendor/jquery/src/effects/animatedSelector.js +0 -15
  122. package/build/styleguide/vendor/jquery/src/effects.js +0 -699
  123. package/build/styleguide/vendor/jquery/src/event/ajax.js +0 -22
  124. package/build/styleguide/vendor/jquery/src/event/alias.js +0 -29
  125. package/build/styleguide/vendor/jquery/src/event/focusin.js +0 -55
  126. package/build/styleguide/vendor/jquery/src/event/support.js +0 -11
  127. package/build/styleguide/vendor/jquery/src/event/trigger.js +0 -185
  128. package/build/styleguide/vendor/jquery/src/event.js +0 -746
  129. package/build/styleguide/vendor/jquery/src/exports/amd.js +0 -26
  130. package/build/styleguide/vendor/jquery/src/exports/global.js +0 -34
  131. package/build/styleguide/vendor/jquery/src/jquery.js +0 -41
  132. package/build/styleguide/vendor/jquery/src/manipulation/_evalUrl.js +0 -23
  133. package/build/styleguide/vendor/jquery/src/manipulation/buildFragment.js +0 -104
  134. package/build/styleguide/vendor/jquery/src/manipulation/getAll.js +0 -32
  135. package/build/styleguide/vendor/jquery/src/manipulation/setGlobalEval.js +0 -22
  136. package/build/styleguide/vendor/jquery/src/manipulation/support.js +0 -35
  137. package/build/styleguide/vendor/jquery/src/manipulation/var/rcheckableType.js +0 -5
  138. package/build/styleguide/vendor/jquery/src/manipulation/var/rscriptType.js +0 -5
  139. package/build/styleguide/vendor/jquery/src/manipulation/var/rtagName.js +0 -5
  140. package/build/styleguide/vendor/jquery/src/manipulation/wrapMap.js +0 -29
  141. package/build/styleguide/vendor/jquery/src/manipulation.js +0 -488
  142. package/build/styleguide/vendor/jquery/src/offset.js +0 -229
  143. package/build/styleguide/vendor/jquery/src/queue/delay.js +0 -24
  144. package/build/styleguide/vendor/jquery/src/queue.js +0 -145
  145. package/build/styleguide/vendor/jquery/src/selector-native.js +0 -237
  146. package/build/styleguide/vendor/jquery/src/selector-sizzle.js +0 -19
  147. package/build/styleguide/vendor/jquery/src/selector.js +0 -3
  148. package/build/styleguide/vendor/jquery/src/serialize.js +0 -130
  149. package/build/styleguide/vendor/jquery/src/traversing/findFilter.js +0 -106
  150. package/build/styleguide/vendor/jquery/src/traversing/var/dir.js +0 -22
  151. package/build/styleguide/vendor/jquery/src/traversing/var/rneedsContext.js +0 -8
  152. package/build/styleguide/vendor/jquery/src/traversing/var/siblings.js +0 -17
  153. package/build/styleguide/vendor/jquery/src/traversing.js +0 -191
  154. package/build/styleguide/vendor/jquery/src/var/ObjectFunctionString.js +0 -7
  155. package/build/styleguide/vendor/jquery/src/var/arr.js +0 -5
  156. package/build/styleguide/vendor/jquery/src/var/class2type.js +0 -6
  157. package/build/styleguide/vendor/jquery/src/var/concat.js +0 -7
  158. package/build/styleguide/vendor/jquery/src/var/document.js +0 -5
  159. package/build/styleguide/vendor/jquery/src/var/documentElement.js +0 -7
  160. package/build/styleguide/vendor/jquery/src/var/fnToString.js +0 -7
  161. package/build/styleguide/vendor/jquery/src/var/getProto.js +0 -5
  162. package/build/styleguide/vendor/jquery/src/var/hasOwn.js +0 -7
  163. package/build/styleguide/vendor/jquery/src/var/indexOf.js +0 -7
  164. package/build/styleguide/vendor/jquery/src/var/pnum.js +0 -5
  165. package/build/styleguide/vendor/jquery/src/var/push.js +0 -7
  166. package/build/styleguide/vendor/jquery/src/var/rcssNum.js +0 -9
  167. package/build/styleguide/vendor/jquery/src/var/rnothtmlwhite.js +0 -8
  168. package/build/styleguide/vendor/jquery/src/var/slice.js +0 -7
  169. package/build/styleguide/vendor/jquery/src/var/support.js +0 -6
  170. package/build/styleguide/vendor/jquery/src/var/toString.js +0 -7
  171. package/build/styleguide/vendor/jquery/src/wrap.js +0 -77
  172. package/build/styleguide/vendor/lightgallery/.editorconfig +0 -16
  173. package/build/styleguide/vendor/lightgallery/.gitattributes +0 -1
  174. package/build/styleguide/vendor/lightgallery/.jscsrc +0 -7
  175. package/build/styleguide/vendor/lightgallery/.jshintrc +0 -18
  176. package/build/styleguide/vendor/lightgallery/.travis.yml +0 -9
  177. package/build/styleguide/vendor/lightgallery/Gruntfile.js +0 -208
  178. package/build/styleguide/vendor/lightgallery/LICENSE.md +0 -686
  179. package/build/styleguide/vendor/lightgallery/README.md +0 -191
  180. package/build/styleguide/vendor/lightgallery/contributing.md +0 -34
  181. package/build/styleguide/vendor/lightgallery/demo/img/1-1600.jpg +0 -0
  182. package/build/styleguide/vendor/lightgallery/demo/img/1-375.jpg +0 -0
  183. package/build/styleguide/vendor/lightgallery/demo/img/1-480.jpg +0 -0
  184. package/build/styleguide/vendor/lightgallery/demo/img/1.jpg +0 -0
  185. package/build/styleguide/vendor/lightgallery/demo/img/13-1600.jpg +0 -0
  186. package/build/styleguide/vendor/lightgallery/demo/img/13-375.jpg +0 -0
  187. package/build/styleguide/vendor/lightgallery/demo/img/13-480.jpg +0 -0
  188. package/build/styleguide/vendor/lightgallery/demo/img/13.jpg +0 -0
  189. package/build/styleguide/vendor/lightgallery/demo/img/2-1600.jpg +0 -0
  190. package/build/styleguide/vendor/lightgallery/demo/img/2-375.jpg +0 -0
  191. package/build/styleguide/vendor/lightgallery/demo/img/2-480.jpg +0 -0
  192. package/build/styleguide/vendor/lightgallery/demo/img/2.jpg +0 -0
  193. package/build/styleguide/vendor/lightgallery/demo/img/4-1600.jpg +0 -0
  194. package/build/styleguide/vendor/lightgallery/demo/img/4-375.jpg +0 -0
  195. package/build/styleguide/vendor/lightgallery/demo/img/4-480.jpg +0 -0
  196. package/build/styleguide/vendor/lightgallery/demo/img/4.jpg +0 -0
  197. package/build/styleguide/vendor/lightgallery/demo/img/thumb-1.jpg +0 -0
  198. package/build/styleguide/vendor/lightgallery/demo/img/thumb-13.jpg +0 -0
  199. package/build/styleguide/vendor/lightgallery/demo/img/thumb-2.jpg +0 -0
  200. package/build/styleguide/vendor/lightgallery/demo/img/thumb-4.jpg +0 -0
  201. package/build/styleguide/vendor/lightgallery/demo/index.html +0 -162
  202. package/build/styleguide/vendor/lightgallery/dist/css/lg-fb-comment-box.css +0 -57
  203. package/build/styleguide/vendor/lightgallery/dist/css/lg-fb-comment-box.min.css +0 -1
  204. package/build/styleguide/vendor/lightgallery/dist/css/lg-transitions.css +0 -779
  205. package/build/styleguide/vendor/lightgallery/dist/css/lg-transitions.min.css +0 -1
  206. package/build/styleguide/vendor/lightgallery/dist/css/lightgallery.css +0 -982
  207. package/build/styleguide/vendor/lightgallery/dist/css/lightgallery.min.css +0 -1
  208. package/build/styleguide/vendor/lightgallery/dist/fonts/lg.eot +0 -0
  209. package/build/styleguide/vendor/lightgallery/dist/fonts/lg.svg +0 -47
  210. package/build/styleguide/vendor/lightgallery/dist/fonts/lg.ttf +0 -0
  211. package/build/styleguide/vendor/lightgallery/dist/fonts/lg.woff +0 -0
  212. package/build/styleguide/vendor/lightgallery/dist/img/loading.gif +0 -0
  213. package/build/styleguide/vendor/lightgallery/dist/img/video-play.png +0 -0
  214. package/build/styleguide/vendor/lightgallery/dist/img/vimeo-play.png +0 -0
  215. package/build/styleguide/vendor/lightgallery/dist/img/youtube-play.png +0 -0
  216. package/build/styleguide/vendor/lightgallery/dist/js/lightgallery-all.js +0 -3331
  217. package/build/styleguide/vendor/lightgallery/dist/js/lightgallery-all.min.js +0 -5
  218. package/build/styleguide/vendor/lightgallery/dist/js/lightgallery.js +0 -1364
  219. package/build/styleguide/vendor/lightgallery/dist/js/lightgallery.min.js +0 -4
  220. package/build/styleguide/vendor/lightgallery/lib/jquery.mousewheel.min.js +0 -8
  221. package/build/styleguide/vendor/lightgallery/lib/lg.png +0 -0
  222. package/build/styleguide/vendor/lightgallery/lib/picturefill.min.js +0 -4
  223. package/build/styleguide/vendor/lightgallery/lightGallery.jquery.json +0 -27
  224. package/build/styleguide/vendor/lightgallery/modules/lg-autoplay.js +0 -206
  225. package/build/styleguide/vendor/lightgallery/modules/lg-autoplay.min.js +0 -4
  226. package/build/styleguide/vendor/lightgallery/modules/lg-fullscreen.js +0 -116
  227. package/build/styleguide/vendor/lightgallery/modules/lg-fullscreen.min.js +0 -4
  228. package/build/styleguide/vendor/lightgallery/modules/lg-hash.js +0 -101
  229. package/build/styleguide/vendor/lightgallery/modules/lg-hash.min.js +0 -4
  230. package/build/styleguide/vendor/lightgallery/modules/lg-pager.js +0 -105
  231. package/build/styleguide/vendor/lightgallery/modules/lg-pager.min.js +0 -4
  232. package/build/styleguide/vendor/lightgallery/modules/lg-share.js +0 -107
  233. package/build/styleguide/vendor/lightgallery/modules/lg-share.min.js +0 -4
  234. package/build/styleguide/vendor/lightgallery/modules/lg-thumbnail.js +0 -478
  235. package/build/styleguide/vendor/lightgallery/modules/lg-thumbnail.min.js +0 -4
  236. package/build/styleguide/vendor/lightgallery/modules/lg-video.js +0 -317
  237. package/build/styleguide/vendor/lightgallery/modules/lg-video.min.js +0 -4
  238. package/build/styleguide/vendor/lightgallery/modules/lg-zoom.js +0 -527
  239. package/build/styleguide/vendor/lightgallery/modules/lg-zoom.min.js +0 -4
  240. package/build/styleguide/vendor/lightgallery/package.json +0 -60
  241. package/build/styleguide/vendor/lightgallery/selection.json +0 -407
  242. package/build/styleguide/vendor/lightgallery/src/css/lg-fb-comment-box.css +0 -54
  243. package/build/styleguide/vendor/lightgallery/src/css/lg-fb-comment-box.css.map +0 -7
  244. package/build/styleguide/vendor/lightgallery/src/css/lg-transitions.css +0 -776
  245. package/build/styleguide/vendor/lightgallery/src/css/lg-transitions.css.map +0 -7
  246. package/build/styleguide/vendor/lightgallery/src/css/lightgallery.css +0 -979
  247. package/build/styleguide/vendor/lightgallery/src/css/lightgallery.css.map +0 -7
  248. package/build/styleguide/vendor/lightgallery/src/fonts/lg.eot +0 -0
  249. package/build/styleguide/vendor/lightgallery/src/fonts/lg.svg +0 -47
  250. package/build/styleguide/vendor/lightgallery/src/fonts/lg.ttf +0 -0
  251. package/build/styleguide/vendor/lightgallery/src/fonts/lg.woff +0 -0
  252. package/build/styleguide/vendor/lightgallery/src/img/loading.gif +0 -0
  253. package/build/styleguide/vendor/lightgallery/src/img/video-play.png +0 -0
  254. package/build/styleguide/vendor/lightgallery/src/img/vimeo-play.png +0 -0
  255. package/build/styleguide/vendor/lightgallery/src/img/youtube-play.png +0 -0
  256. package/build/styleguide/vendor/lightgallery/src/js/.jshintrc +0 -22
  257. package/build/styleguide/vendor/lightgallery/src/js/lightgallery.js +0 -1342
  258. package/build/styleguide/vendor/lightgallery/src/sass/lg-animations.scss +0 -714
  259. package/build/styleguide/vendor/lightgallery/src/sass/lg-autoplay.scss +0 -36
  260. package/build/styleguide/vendor/lightgallery/src/sass/lg-core.scss +0 -272
  261. package/build/styleguide/vendor/lightgallery/src/sass/lg-fb-comment-box.scss +0 -52
  262. package/build/styleguide/vendor/lightgallery/src/sass/lg-fonts.scss +0 -22
  263. package/build/styleguide/vendor/lightgallery/src/sass/lg-fullscreen.scss +0 -9
  264. package/build/styleguide/vendor/lightgallery/src/sass/lg-mixins.scss +0 -330
  265. package/build/styleguide/vendor/lightgallery/src/sass/lg-pager.scss +0 -89
  266. package/build/styleguide/vendor/lightgallery/src/sass/lg-share.scss +0 -135
  267. package/build/styleguide/vendor/lightgallery/src/sass/lg-theme-default.scss +0 -208
  268. package/build/styleguide/vendor/lightgallery/src/sass/lg-thumbnail.scss +0 -111
  269. package/build/styleguide/vendor/lightgallery/src/sass/lg-transitions.scss +0 -766
  270. package/build/styleguide/vendor/lightgallery/src/sass/lg-variables.scss +0 -57
  271. package/build/styleguide/vendor/lightgallery/src/sass/lg-video.scss +0 -110
  272. package/build/styleguide/vendor/lightgallery/src/sass/lg-zoom.scss +0 -69
  273. package/build/styleguide/vendor/lightgallery/src/sass/lightgallery.scss +0 -15
  274. package/build/styleguide/vendor/lightgallery/src/sass/prepros.cfg +0 -530
  275. package/build/styleguide/vendor/lightgallery/test/.jshintrc +0 -33
  276. package/build/styleguide/vendor/lightgallery/test/lightgallery.html +0 -27
  277. package/build/styleguide/vendor/lightgallery/test/lightgallery_test.js +0 -16
  278. package/build/styleguide/vendor/masonry-layout/README.md +0 -80
  279. package/build/styleguide/vendor/masonry-layout/dist/masonry.pkgd.js +0 -2499
  280. package/build/styleguide/vendor/masonry-layout/dist/masonry.pkgd.min.js +0 -9
  281. package/build/styleguide/vendor/masonry-layout/masonry.js +0 -239
  282. package/postinstall.sh +0 -76
  283. package/version_tag.sh +0 -99
  284. package/yarn.lock +0 -7827
package/.codeclimate.yml CHANGED
@@ -1,27 +1,64 @@
1
+ # This .codeclimate.yml file is based upon the .codeclimate file of gent_base
2
+ # but has less options due a different code base implemented by the style guide only.
1
3
  version: "2"
4
+
5
+ prepare:
6
+ fetch:
7
+ - url: "https://raw.githubusercontent.com/digipolisgent/ci_config-files-and-scripts/master/php/drupal8/.phpmd.xml"
8
+ path: ".phpmd.xml"
9
+ - url: "http://cgit.drupalcode.org/drupal/plain/.csslintrc"
10
+ path: ".csslintrc"
11
+ - url: "https://raw.githubusercontent.com/digipolisgent/ci_config-files-and-scripts/master/php/drupal8/.eslintrc"
12
+ path: ".eslintignore"
13
+ - url: "https://raw.githubusercontent.com/digipolisgent/ci_config-files-and-scripts/master/php/drupal8/.eslintignore"
14
+ path: ".eslintrc"
15
+
16
+ checks:
17
+ argument-count:
18
+ enabled: false
19
+ complex-logic:
20
+ config:
21
+ threshold: 4
22
+ file-lines:
23
+ config:
24
+ threshold: 250
25
+ method-complexity:
26
+ config:
27
+ threshold: 5
28
+ method-count:
29
+ config:
30
+ threshold: 20
31
+ method-lines:
32
+ config:
33
+ threshold: 50
34
+ nested-control-flow:
35
+ config:
36
+ threshold: 4
37
+ return-statements:
38
+ config:
39
+ threshold: 4
40
+ similar-code:
41
+ config:
42
+ threshold: # language-specific defaults. an override will affect all languages.
43
+ identical-code:
44
+ config:
45
+ threshold: # language-specific defaults. an override will affect all languages.
46
+
2
47
  plugins:
3
- git-legal:
48
+ csslint:
49
+ enabled: true
50
+ eslint:
4
51
  enabled: true
5
- config:
6
- allow_affero_copyleft: true
7
- allow_strong_copyleft: true
8
52
  duplication:
9
53
  enabled: true
10
54
  config:
11
55
  languages:
56
+ php:
12
57
  javascript:
13
- markdownlint:
14
- enabled: true
15
- issue_override:
16
- severity: minor
17
58
  fixme:
18
59
  enabled: true
19
- eslint:
60
+ markdownlint:
20
61
  enabled: true
62
+
21
63
  exclude_patterns:
22
64
  - "**/.idea/**/*"
23
- - "**/.github/**/*"
24
- - "**/build/**/*"
25
- - "**/public/**/*"
26
- - "**/node_modules/"
27
- - "**/yarn.lock"
package/CHANGELOG.md CHANGED
@@ -6,7 +6,21 @@ Refer to upcoming changes in our README.md under "Roadmap"
6
6
 
7
7
  ## Changes
8
8
 
9
- All notable changes to `digipolisgent/fractal_styleguide_gent-base`.
9
+ All notable changes to this style guide are documented here.
10
+
11
+ ### 2.11.0
12
+
13
+ * DTGB-140: Removed some files from the NPM package.
14
+ * DTGB-140: Fixed a bug where `npm install` breaks
15
+ the install of the style guide.
16
+ * DTGB-276: Fixed a bug where the breadcrumb alignment was not correct.
17
+
18
+ > **Some markup changes have been introduced so you might need some
19
+ refactoring.**
20
+ * DTGB-397: Changed the markup of radio buttons and checkboxes. They are
21
+ now inside their own fieldset.
22
+ * DTGB-401: Updated links to new public gent_base repository.
23
+ * DTGB-402: Added a required form fields indicator at the top of forms.
10
24
 
11
25
  ### 2.9.0
12
26
 
package/CONTRIBUTING.md CHANGED
@@ -8,8 +8,15 @@
8
8
 
9
9
  Thank you for your interest in contributing to this project. There are several
10
10
  ways to help out, even if you've never worked on an open source project before.
11
+
12
+ > Note that the development of this style guide is not done here. So
13
+ > please do not create any pull requests directly here.
14
+ > Instead use
15
+ > [this repo](https://github.com/digipolisgent/drupal_theme_gent-base) to
16
+ > create your pull requests.
17
+
11
18
  If you've found a bug or want to request a feature, you can report it by
12
- [posting an issue](https://github.com/StadGent/fractal_styleguide_gent-base/issues/new).
19
+ [posting an issue](https://github.com/digipolisgent/drupal_theme_gent-base/issues/new).
13
20
  Be sure to read the [guidelines](#issues) first! If you want to contribute
14
21
  your own work (be it code or documentation), please read the [guidelines](#pull-requests)
15
22
  for submitting a pull request.
package/README.md CHANGED
@@ -10,6 +10,24 @@ a web application in the corporate identity for the city of Ghent..
10
10
  [![Build Status](https://travis-ci.org/StadGent/fractal_styleguide_gent-base.svg?branch=develop)](https://travis-ci.org/StadGent/fractal_styleguide_gent-base)
11
11
  [![Maintainability](https://api.codeclimate.com/v1/badges/1aeba4d73f307d4583b9/maintainability)](https://codeclimate.com/github/StadGent/fractal_styleguide_gent-base/maintainability)
12
12
 
13
+ ## Contributing to the style guide
14
+
15
+ ### Pull requests
16
+
17
+ This repository is a read only version of the style guide part of our own
18
+ Drupal 8 base theme.
19
+
20
+ If you want to develop for this style guide you need to do it in
21
+ [this repository](https://github.com/StadGent/drupal_theme_gent-base)
22
+
23
+ > Please do not create any pull requests directly here.
24
+ > Instead use
25
+ > [this repo](https://github.com/StadGent/drupal_theme_gent-base) to
26
+ > create your pull requests.
27
+
28
+ To contribute to the style guide please refer to the
29
+ [contributing document](CONTRIBUTING.md)
30
+
13
31
  ## Roadmap
14
32
 
15
33
  ### Style guide version 3.x
@@ -19,10 +37,6 @@ a web application in the corporate identity for the city of Ghent..
19
37
  components.
20
38
  * We will probably drop jQuery in favor for native Javascript or another.
21
39
 
22
- ### Upcoming: 2.7.x
23
-
24
- * General changes and fixes to the style guide.
25
-
26
40
  ## Licenses
27
41
 
28
42
  If you are building something for the City of Ghent (Stad Gent) or Digipolis,
@@ -121,7 +135,7 @@ Example:
121
135
  @import '/sass/41-organism-overrides/**/*';
122
136
  ```
123
137
 
124
- Note: When using the style guide you will need to add breakpoint-sass as an
138
+ Note: When using the style guide you will need to add a few dependencies as an
125
139
  includePath inside your gulpfile.js
126
140
 
127
141
  Example:
@@ -129,7 +143,10 @@ Example:
129
143
  ```javascript
130
144
  .pipe(sass({
131
145
  outputStyle: 'compressed',
132
- includePaths: ['node_modules/breakpoint-sass/stylesheets']
146
+ includePaths: [
147
+ 'node_modules/breakpoint-sass/stylesheets',
148
+ 'node_modules/susy/sass'
149
+ ]
133
150
  })).on('error', sass.logError)
134
151
  ```
135
152
 
@@ -1 +1,68 @@
1
- "use strict";var gent_styleguide=function(){return{TabTrap:function(t){var e=-1,n=function(t){var e=t.querySelectorAll('a[href], area[href], input:not([disabled]):not([hidden]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), [tabindex="0"]');return Array.prototype.slice.call(e)}(t);this.next=function(){++e>n.length-1&&(e=0),n[e].focus()},this.back=function(){--e<0&&(e=n.length-1),n[e].focus()},this.home=function(){n[e=0].focus()},this.end=function(){e=n.length-1,n[e].focus()},this.reset=function(){e=-1},this.hasFocusables=n&&n.length>0}}}();
1
+ 'use strict';
2
+
3
+ var gent_styleguide = (function () { // eslint-disable-line no-unused-vars
4
+
5
+ /**
6
+ * Generates a tabTrap object
7
+ *
8
+ * @param {object} container DOM-element
9
+ * @constructor
10
+ */
11
+ function TabTrap(container) {
12
+ var focusPosition = -1;
13
+ var focusables = getFocusables(container);
14
+
15
+ /**
16
+ * Returns all focusable elements within a given container.
17
+ *
18
+ * @param {object} container hamburger DOM-element
19
+ * @return {array} focusable elements
20
+ */
21
+ function getFocusables(container) {
22
+ var focusables = container
23
+ .querySelectorAll('a[href], ' +
24
+ 'area[href], ' +
25
+ 'input:not([disabled]):not([hidden]), ' +
26
+ 'select:not([disabled]), ' +
27
+ 'textarea:not([disabled]), ' +
28
+ 'button:not([disabled]), ' +
29
+ '[tabindex="0"]');
30
+ return Array.prototype.slice.call(focusables);
31
+ }
32
+
33
+ this.next = function () {
34
+ if (++focusPosition > focusables.length - 1) {
35
+ focusPosition = 0;
36
+ }
37
+ focusables[focusPosition].focus();
38
+ };
39
+
40
+ this.back = function () {
41
+ if (--focusPosition < 0) {
42
+ focusPosition = focusables.length - 1;
43
+ }
44
+ focusables[focusPosition].focus();
45
+ };
46
+
47
+ this.home = function () {
48
+ focusPosition = 0;
49
+ focusables[focusPosition].focus();
50
+ };
51
+
52
+ this.end = function () {
53
+ focusPosition = focusables.length - 1;
54
+ focusables[focusPosition].focus();
55
+ };
56
+
57
+ this.reset = function () {
58
+ focusPosition = -1;
59
+ };
60
+
61
+ this.hasFocusables = focusables && focusables.length > 0;
62
+ }
63
+
64
+ return {
65
+ TabTrap: TabTrap
66
+ };
67
+
68
+ })();
@@ -1 +1,13 @@
1
- "use strict";jQuery(window).on("load",function(e){this.gentStyleGuideBreadcrumb.updateMobileBreadcrumb()});
1
+ /**
2
+ * @file
3
+ * Javascript binding of breadcrumb.functions.js
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ (function ($) {
9
+ $(window).on('load', function (e) {
10
+ this.gentStyleGuideBreadcrumb.updateMobileBreadcrumb();
11
+ });
12
+
13
+ })(jQuery);
@@ -1 +1,131 @@
1
- "use strict";var gentStyleGuideBreadcrumb={};!function(e){function r(r,t,a){e("a, span",r).each(function(){var r=e(this),n=r.text().trim();n.length>t&&(n=!1!==a?n.substr(0,t-3).trim()+"...":n.substr(0,t).trim(),r.text(n))})}function t(r,t,a,n,l){null==a&&(a=2),null==n&&(n=a),t=Math.max(t,a+n+1);var i=e("li",r).length;if(i>=t){for(var u=a+1;u<=i-n;u++)e("li:nth-of-type("+u+")",r).hide();var s=e("<li>").append(e("<a>").text(l||"...").attr("href","#").click(function(t){t.preventDefault(),e(this).parent().remove(),e("li",r).show()}));a?e("li:nth-of-type("+a+")",r).after(s):r.prepend(s)}}gentStyleGuideBreadcrumb.updateMobileBreadcrumb=function(){var a=e("ol.breadcrumb, ul.nav--breadcrumb, ul.breadcrumb");if(a.length&&!a.hasClass("gentbe-processed")){a.addClass("gentbe-processed"),a.addClass("mobile-breadcrumb-processed"),e("select.nav--mobile-breadcrumb").remove();var n=a.clone();n.removeAttr("id").addClass("nav--mobile-breadcrumb"),a.after(n),r(a,150),r(n,100),t(a,6),t(n,5,1,2)}}}(jQuery);
1
+ /**
2
+ * @file
3
+ * Breadcrumb handling and rendering.
4
+ */
5
+
6
+ // Breadcrumb namespace definition.
7
+
8
+ 'use strict';
9
+
10
+ var gentStyleGuideBreadcrumb = {};
11
+
12
+ (function ($) {
13
+
14
+ /**
15
+ * Replace the mobile breadcrumb of Gent base by our own.
16
+ *
17
+ * Adds this function to a global gentStyleBreadcrumb namespace.
18
+ */
19
+ gentStyleGuideBreadcrumb.updateMobileBreadcrumb = function () {
20
+ var breadcrumb = $('ol.breadcrumb, ul.nav--breadcrumb, ul.breadcrumb');
21
+ if (breadcrumb.length && !breadcrumb.hasClass('gentbe-processed')) {
22
+ // Prevent duplicate processing by us or Gent base.
23
+ breadcrumb.addClass('gentbe-processed');
24
+ breadcrumb.addClass('mobile-breadcrumb-processed');
25
+
26
+ // Remove the mobile breadcrumb of Gent base.
27
+ $('select.nav--mobile-breadcrumb').remove();
28
+
29
+ // Duplicate the original breadcrumb as mobile version.
30
+ var mobile = breadcrumb.clone();
31
+ mobile.removeAttr('id').addClass('nav--mobile-breadcrumb');
32
+ breadcrumb.after(mobile);
33
+
34
+ // Truncate the labels.
35
+ truncateBreadcrumbLabels_(breadcrumb, 150);
36
+ truncateBreadcrumbLabels_(mobile, 100);
37
+
38
+ // Collapse the trail.
39
+ collapseBreadcrumbTrail_(breadcrumb, 6);
40
+ collapseBreadcrumbTrail_(mobile, 5, 1, 2);
41
+ }
42
+ };
43
+
44
+ /**
45
+ * Truncate the breadcrumb labels to a maximum length.
46
+ *
47
+ * @param {Object} breadcrumb
48
+ * The breadcrumb element as jQuery object.
49
+ * @param {int} length
50
+ * Maximum length of a label.
51
+ * @param {boolean} [ellipsis]
52
+ * Wether an elipsis should be added, defaults to true.
53
+ */
54
+ function truncateBreadcrumbLabels_(breadcrumb, length, ellipsis) {
55
+ $('a, span', breadcrumb).each(function () {
56
+ var element = $(this);
57
+ var text = element.text().trim();
58
+
59
+ if (text.length > length) {
60
+ if (ellipsis !== false) {
61
+ text = text.substr(0, (length - 3)).trim() + '...';
62
+ }
63
+ else {
64
+ text = text.substr(0, length).trim();
65
+ }
66
+
67
+ element.text(text);
68
+ }
69
+ });
70
+ }
71
+
72
+ /**
73
+ * Collapse the breadcrumb trail by hiding some elements.
74
+ *
75
+ * @param {Object} breadcrumb
76
+ * The breadcrumb element as jQuery object.
77
+ * @param {int} min_length
78
+ * Only collapse if the trail has at least this many items.
79
+ * @param {int} [head]
80
+ * Number of items to show at the start of the trail, defaults to 2.
81
+ * @param {int} [tail]
82
+ * Number of items to show at the end of the trail, defaults to the same value as head.
83
+ * @param {string} [text]
84
+ * Text to use as link to show the collapsed items, defaults to "...".
85
+ */
86
+ function collapseBreadcrumbTrail_(breadcrumb, min_length, head, tail, text) {
87
+ // Set the default head and tail.
88
+ if (head == null) {
89
+ head = 2;
90
+ }
91
+
92
+ if (tail == null) {
93
+ tail = head;
94
+ }
95
+
96
+ // Make sure we have a sensible minimum length.
97
+ min_length = Math.max(min_length, (head + tail + 1));
98
+
99
+ // Get the number of items.
100
+ var length = $('li', breadcrumb).length;
101
+
102
+ // Check if the trail has the minimum length.
103
+ if (length >= min_length) {
104
+ // Hide the items.
105
+ for (var i = (head + 1); i <= (length - tail); i++) {
106
+ $('li:nth-of-type(' + i + ')', breadcrumb).hide();
107
+ }
108
+
109
+ // Create the uncollapse link.
110
+ var link = $('<li>').append(
111
+ $('<a>')
112
+ .text(text ? text : '...')
113
+ .attr('href', '#')
114
+ .click(function (e) {
115
+ e.preventDefault();
116
+
117
+ $(this).parent().remove();
118
+ $('li', breadcrumb).show();
119
+ })
120
+ );
121
+
122
+ // Add it.
123
+ if (head) {
124
+ $('li:nth-of-type(' + head + ')', breadcrumb).after(link);
125
+ }
126
+ else {
127
+ breadcrumb.prepend(link);
128
+ }
129
+ }
130
+ }
131
+ })(jQuery);
@@ -1 +1,38 @@
1
- "use strict";!function(o){o(window).on("load",function(){var n=o(".dropbutton-wrapper");n.find(".dropbutton-toggle button").on("click",function(o){o.stopPropagation(),n.hasClass("open")?n.removeClass("open"):n.addClass("open")}),o(document).on("click",function(o){n.removeClass("open")})})}(jQuery);
1
+ 'use strict';
2
+
3
+ (function ($) {
4
+
5
+ /**
6
+ * Invoked after after loading the initial page and after each AJAX request.
7
+ *
8
+ * @param context
9
+ * The DOM context.
10
+ * @param settings
11
+ * Object of additional settings.
12
+ */
13
+ $(window).on('load', dropButtonLoad);
14
+
15
+ /**
16
+ * Replace the mobile breadcrumb of Gent base by our own.
17
+ */
18
+ function dropButtonLoad() {
19
+ var dropButton = $('.dropbutton-wrapper');
20
+ var dropButtonToggle = dropButton.find('.dropbutton-toggle button');
21
+
22
+ dropButtonToggle.on('click', function (e) {
23
+ e.stopPropagation();
24
+ if (dropButton.hasClass('open')) {
25
+ dropButton.removeClass('open');
26
+ }
27
+ else {
28
+ dropButton.addClass('open');
29
+ }
30
+ });
31
+
32
+ $(document).on('click', function (e) {
33
+ dropButton.removeClass('open');
34
+ });
35
+
36
+ }
37
+
38
+ })(jQuery);
@@ -1 +1,13 @@
1
- "use strict";!function(o){o(window).on("load",function(n){o(".dropbutton-wrapper").dropButtonLoad()})}(jQuery);
1
+ /**
2
+ * @file
3
+ * binding of button-drop.functions.js
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ (function ($) {
9
+ $(window).on('load', function (e) {
10
+ $('.dropbutton-wrapper').dropButtonLoad();
11
+ });
12
+
13
+ })(jQuery);
@@ -1 +1,48 @@
1
- "use strict";!function(o){o.fn.extend({dropButtonLoad:function(){var n=o(this);n.find(".dropbutton-toggle button").on("click",function(o){o.stopPropagation(),n.hasClass("open")?n.removeClass("open"):n.addClass("open")}),o(document).on("click",function(o){n.removeClass("open")})}})}(jQuery);
1
+ /**
2
+ * @file
3
+ * Implements a dropdown button.
4
+ *
5
+ * @author
6
+ * Wim Vantomme
7
+ *
8
+ */
9
+ 'use strict';
10
+
11
+ (function ($) {
12
+ $.fn.extend({
13
+
14
+ /**
15
+ * Implements a jQuery extension function.
16
+ *
17
+ * @fires event:click
18
+ */
19
+ dropButtonLoad: function () {
20
+ var dropButton = $(this);
21
+ var dropButtonToggle = dropButton.find('.dropbutton-toggle button');
22
+
23
+ /**
24
+ * Opens or closes the drop-down botton on click.
25
+ *
26
+ * @event click
27
+ */
28
+ dropButtonToggle.on('click', function (e) {
29
+ e.stopPropagation();
30
+ if (dropButton.hasClass('open')) {
31
+ dropButton.removeClass('open');
32
+ }
33
+ else {
34
+ dropButton.addClass('open');
35
+ }
36
+ });
37
+
38
+ /**
39
+ * Closes the drop-down button
40
+ *
41
+ * @event click
42
+ */
43
+ $(document).on('click', function (e) {
44
+ dropButton.removeClass('open');
45
+ });
46
+ }
47
+ });
48
+ })(jQuery);
@@ -1 +1,12 @@
1
- "use strict";!function(e){e(document).ready(function(){var t=e(".gallery");t.length>0&&t.loadLightGallery()})}(jQuery);
1
+ 'use strict';
2
+
3
+ (function ($) {
4
+ $(document).ready(function () {
5
+ var $gallery = $('.gallery');
6
+
7
+ if ($gallery.length > 0) {
8
+ $gallery.loadLightGallery();
9
+ }
10
+ });
11
+
12
+ })(jQuery);
@@ -1 +1,29 @@
1
- "use strict";!function(t){t.fn.extend({loadLightGallery:function(){t(this).lightGallery({download:!1,getCaptionFromTitleOrAlt:!1,counter:!1})}})}(jQuery);
1
+ /**
2
+ * @file
3
+ * Implements the jQuery light gallery plugin.
4
+ *
5
+ * @author
6
+ * Gert-Jan Meire
7
+ *
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ (function ($) {
13
+ $.fn.extend({
14
+
15
+ /**
16
+ * Creates a jQuery extension function.
17
+ *
18
+ */
19
+ loadLightGallery: function () {
20
+ $(this).lightGallery({
21
+ download: false,
22
+ getCaptionFromTitleOrAlt: false,
23
+ counter: false
24
+ });
25
+
26
+ }
27
+
28
+ });
29
+ })(jQuery);
@@ -1 +1,17 @@
1
- "use strict";!function(n){n(window).on("load",function(u){var e=n(".hamburger-menu");e.length>0&&e.loadHamburgerMenu()})}(jQuery);
1
+ /**
2
+ * @file
3
+ * Javascript binding of hamburger-menu.functions.js.
4
+ */
5
+
6
+ 'use strict';
7
+
8
+ (function ($) {
9
+ $(window).on('load', function (e) {
10
+ var $hamburgerMenu = $('.hamburger-menu');
11
+
12
+ if ($hamburgerMenu.length > 0) {
13
+ $hamburgerMenu.loadHamburgerMenu();
14
+ }
15
+ });
16
+
17
+ })(jQuery);