yamlcss 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (213) hide show
  1. checksums.yaml +7 -0
  2. data/.travis.yml +12 -0
  3. data/Gemfile +10 -0
  4. data/Gemfile.lock +56 -0
  5. data/LICENSE.txt +59 -0
  6. data/Rakefile +23 -0
  7. data/Readme.md +120 -0
  8. data/VERSIONS.md +5 -0
  9. data/bin/yamlcss +6 -0
  10. data/lib/yamlcss.rb +22 -0
  11. data/lib/yamlcss/engine.rb +7 -0
  12. data/lib/yamlcss/generator.rb +84 -0
  13. data/lib/yamlcss/version.rb +4 -0
  14. data/vendor/assets/stylesheets/_iehacks.scss +3 -0
  15. data/vendor/assets/stylesheets/_yaml.scss +3 -0
  16. data/yaml/Gruntfile.js +199 -0
  17. data/yaml/License.txt +36 -0
  18. data/yaml/Readme.md +64 -0
  19. data/yaml/changelog.md +307 -0
  20. data/yaml/config.rb +25 -0
  21. data/yaml/demos/css/custom-grids.css +27 -0
  22. data/yaml/demos/css/flexible-columns.css +26 -0
  23. data/yaml/demos/css/flexible-grids.css +26 -0
  24. data/yaml/demos/css/rtl-support.css +31 -0
  25. data/yaml/demos/css/screen/screen-custom-grids.css +41 -0
  26. data/yaml/demos/css/screen/screen-rtl-support.css +182 -0
  27. data/yaml/demos/custom-grid.html +129 -0
  28. data/yaml/demos/flexible-columns.html +124 -0
  29. data/yaml/demos/flexible-grid.html +142 -0
  30. data/yaml/demos/rtl-support.html +127 -0
  31. data/yaml/docs/assets/css/icons/external_link.png +0 -0
  32. data/yaml/docs/assets/css/icons/hcalendar.png +0 -0
  33. data/yaml/docs/assets/css/icons/hcard.png +0 -0
  34. data/yaml/docs/assets/css/icons/icon-geo.png +0 -0
  35. data/yaml/docs/assets/css/icons/icon-hatom.png +0 -0
  36. data/yaml/docs/assets/css/icons/icon-haudio.png +0 -0
  37. data/yaml/docs/assets/css/icons/icon-hcalendar-add.png +0 -0
  38. data/yaml/docs/assets/css/icons/icon-hcalendar-download.png +0 -0
  39. data/yaml/docs/assets/css/icons/icon-hcalendar.png +0 -0
  40. data/yaml/docs/assets/css/icons/icon-hcard-add.png +0 -0
  41. data/yaml/docs/assets/css/icons/icon-hcard-download.png +0 -0
  42. data/yaml/docs/assets/css/icons/icon-hcard.png +0 -0
  43. data/yaml/docs/assets/css/icons/icon-hresume.png +0 -0
  44. data/yaml/docs/assets/css/icons/icon-rel-tag.png +0 -0
  45. data/yaml/docs/assets/css/icons/icon-xfn.png +0 -0
  46. data/yaml/docs/assets/css/icons/xfn/xfn-child.png +0 -0
  47. data/yaml/docs/assets/css/icons/xfn/xfn-colleague-met.png +0 -0
  48. data/yaml/docs/assets/css/icons/xfn/xfn-colleague.png +0 -0
  49. data/yaml/docs/assets/css/icons/xfn/xfn-friend-met.png +0 -0
  50. data/yaml/docs/assets/css/icons/xfn/xfn-friend.png +0 -0
  51. data/yaml/docs/assets/css/icons/xfn/xfn-me.png +0 -0
  52. data/yaml/docs/assets/css/icons/xfn/xfn-parent.png +0 -0
  53. data/yaml/docs/assets/css/icons/xfn/xfn-small.png +0 -0
  54. data/yaml/docs/assets/css/icons/xfn/xfn-spouse.png +0 -0
  55. data/yaml/docs/assets/css/icons/xfn/xfn-sweetheart-met.png +0 -0
  56. data/yaml/docs/assets/css/icons/xfn/xfn-sweetheart.png +0 -0
  57. data/yaml/docs/assets/css/layout-min.css +3 -0
  58. data/yaml/docs/assets/css/layout.css +3262 -0
  59. data/yaml/docs/assets/images/demo-custom-grid.png +0 -0
  60. data/yaml/docs/assets/images/demo-flex-column.png +0 -0
  61. data/yaml/docs/assets/images/demo-flex-grid.png +0 -0
  62. data/yaml/docs/assets/images/demo-rtl.png +0 -0
  63. data/yaml/docs/assets/images/yaml-solo-transparent-small.png +0 -0
  64. data/yaml/docs/assets/images/yaml-solo-transparent.png +0 -0
  65. data/yaml/docs/assets/js/domscript.js +209 -0
  66. data/yaml/docs/assets/js/jquery.gridbuilder.js +131 -0
  67. data/yaml/docs/assets/js/snippet/ZeroClipboard.swf +0 -0
  68. data/yaml/docs/assets/js/snippet/jquery.snippet.css +116 -0
  69. data/yaml/docs/assets/js/snippet/jquery.snippet.js +782 -0
  70. data/yaml/docs/assets/js/snippet/jquery.snippet.min.css +40 -0
  71. data/yaml/docs/assets/js/snippet/jquery.snippet.min.js +12 -0
  72. data/yaml/docs/assets/js/snippet/snippet.css +296 -0
  73. data/yaml/docs/index.html +3845 -0
  74. data/yaml/lib/html5shiv/html5shiv-printshiv.js +11 -0
  75. data/yaml/lib/html5shiv/html5shiv.js +8 -0
  76. data/yaml/lib/jquery-1.10.1.min.js +6 -0
  77. data/yaml/lib/jquery-migrate-1.2.1.min.js +2 -0
  78. data/yaml/package.json +20 -0
  79. data/yaml/sass/docs/assets/css/_screen.scss +786 -0
  80. data/yaml/sass/docs/assets/css/layout.scss +28 -0
  81. data/yaml/sass/static-build/add-ons/accessible-tabs/tabs.scss +15 -0
  82. data/yaml/sass/static-build/add-ons/microformats/microformats.scss +18 -0
  83. data/yaml/sass/static-build/add-ons/rtl-support/core/base-rtl.scss +20 -0
  84. data/yaml/sass/static-build/add-ons/rtl-support/forms/gray-theme-rtl.scss +16 -0
  85. data/yaml/sass/static-build/add-ons/rtl-support/navigation/hlist-rtl.scss +18 -0
  86. data/yaml/sass/static-build/add-ons/rtl-support/navigation/vlist-rtl.scss +18 -0
  87. data/yaml/sass/static-build/add-ons/rtl-support/screen/typography-rtl.scss +16 -0
  88. data/yaml/sass/static-build/core/base.scss +19 -0
  89. data/yaml/sass/static-build/core/iehacks.scss +19 -0
  90. data/yaml/sass/static-build/forms/gray-theme.scss +14 -0
  91. data/yaml/sass/static-build/navigation/hlist.scss +16 -0
  92. data/yaml/sass/static-build/navigation/vlist.scss +16 -0
  93. data/yaml/sass/static-build/print/print.scss +15 -0
  94. data/yaml/sass/static-build/screen/grid-960gs-12.scss +15 -0
  95. data/yaml/sass/static-build/screen/grid-960gs-16.scss +15 -0
  96. data/yaml/sass/static-build/screen/grid-blueprint.scss +15 -0
  97. data/yaml/sass/static-build/screen/grid-fluid-12col.scss +15 -0
  98. data/yaml/sass/static-build/screen/screen-FULLPAGE-layout.scss +15 -0
  99. data/yaml/sass/static-build/screen/screen-PAGE-layout.scss +15 -0
  100. data/yaml/sass/static-build/screen/typography.scss +16 -0
  101. data/yaml/sass/yaml-sass/_yaml-var-globals.scss +39 -0
  102. data/yaml/sass/yaml-sass/_yaml-var-typography.scss +80 -0
  103. data/yaml/sass/yaml-sass/add-ons/accessible-tabs/_tabs.scss +139 -0
  104. data/yaml/sass/yaml-sass/add-ons/accessible-tabs/jquery.tabs.js +266 -0
  105. data/yaml/sass/yaml-sass/add-ons/microformats/_microformats.scss +179 -0
  106. data/yaml/sass/yaml-sass/add-ons/microformats/icons/external_link.png +0 -0
  107. data/yaml/sass/yaml-sass/add-ons/microformats/icons/hcalendar.png +0 -0
  108. data/yaml/sass/yaml-sass/add-ons/microformats/icons/hcard.png +0 -0
  109. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-geo.png +0 -0
  110. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hatom.png +0 -0
  111. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-haudio.png +0 -0
  112. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcalendar-add.png +0 -0
  113. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcalendar-download.png +0 -0
  114. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcalendar.png +0 -0
  115. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcard-add.png +0 -0
  116. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcard-download.png +0 -0
  117. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcard.png +0 -0
  118. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hresume.png +0 -0
  119. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-rel-tag.png +0 -0
  120. data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-xfn.png +0 -0
  121. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-child.png +0 -0
  122. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-colleague-met.png +0 -0
  123. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-colleague.png +0 -0
  124. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-friend-met.png +0 -0
  125. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-friend.png +0 -0
  126. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-me.png +0 -0
  127. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-parent.png +0 -0
  128. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-small.png +0 -0
  129. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-spouse.png +0 -0
  130. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-sweetheart-met.png +0 -0
  131. data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-sweetheart.png +0 -0
  132. data/yaml/sass/yaml-sass/add-ons/rtl-support/core/_base-rtl.scss +177 -0
  133. data/yaml/sass/yaml-sass/add-ons/rtl-support/forms/_gray-theme-rtl.scss +34 -0
  134. data/yaml/sass/yaml-sass/add-ons/rtl-support/navigation/_hlist-rtl.scss +42 -0
  135. data/yaml/sass/yaml-sass/add-ons/rtl-support/navigation/_vlist-rtl.scss +45 -0
  136. data/yaml/sass/yaml-sass/add-ons/rtl-support/screen/_typography-rtl.scss +30 -0
  137. data/yaml/sass/yaml-sass/add-ons/syncheight/jquery.syncheight.js +112 -0
  138. data/yaml/sass/yaml-sass/core/_base.scss +15 -0
  139. data/yaml/sass/yaml-sass/core/_iehacks.scss +426 -0
  140. data/yaml/sass/yaml-sass/core/base-modules/_accessibility.scss +48 -0
  141. data/yaml/sass/yaml-sass/core/base-modules/_columns.scss +27 -0
  142. data/yaml/sass/yaml-sass/core/base-modules/_float-handling.scss +32 -0
  143. data/yaml/sass/yaml-sass/core/base-modules/_forms-core.scss +296 -0
  144. data/yaml/sass/yaml-sass/core/base-modules/_grids-core.scss +55 -0
  145. data/yaml/sass/yaml-sass/core/base-modules/_normalization.scss +165 -0
  146. data/yaml/sass/yaml-sass/core/base-modules/_print-core.scss +36 -0
  147. data/yaml/sass/yaml-sass/core/js/yaml-focusfix.js +70 -0
  148. data/yaml/sass/yaml-sass/forms/_gray-theme.scss +475 -0
  149. data/yaml/sass/yaml-sass/mixins/_yaml-mixins-core.scss +248 -0
  150. data/yaml/sass/yaml-sass/navigation/_hlist.scss +106 -0
  151. data/yaml/sass/yaml-sass/navigation/_vlist.scss +129 -0
  152. data/yaml/sass/yaml-sass/print/_print.scss +61 -0
  153. data/yaml/sass/yaml-sass/screen/_grid-960gs-12.scss +4 -0
  154. data/yaml/sass/yaml-sass/screen/_grid-960gs-16.scss +4 -0
  155. data/yaml/sass/yaml-sass/screen/_grid-blueprint.scss +4 -0
  156. data/yaml/sass/yaml-sass/screen/_grid-fluid-12col.scss +4 -0
  157. data/yaml/sass/yaml-sass/screen/_screen-FULLPAGE-layout.scss +171 -0
  158. data/yaml/sass/yaml-sass/screen/_screen-PAGE-layout.scss +165 -0
  159. data/yaml/sass/yaml-sass/screen/_typography.scss +485 -0
  160. data/yaml/yaml/add-ons/accessible-tabs/jquery.tabs.js +266 -0
  161. data/yaml/yaml/add-ons/accessible-tabs/tabs.css +136 -0
  162. data/yaml/yaml/add-ons/microformats/icons/external_link.png +0 -0
  163. data/yaml/yaml/add-ons/microformats/icons/hcalendar.png +0 -0
  164. data/yaml/yaml/add-ons/microformats/icons/hcard.png +0 -0
  165. data/yaml/yaml/add-ons/microformats/icons/icon-geo.png +0 -0
  166. data/yaml/yaml/add-ons/microformats/icons/icon-hatom.png +0 -0
  167. data/yaml/yaml/add-ons/microformats/icons/icon-haudio.png +0 -0
  168. data/yaml/yaml/add-ons/microformats/icons/icon-hcalendar-add.png +0 -0
  169. data/yaml/yaml/add-ons/microformats/icons/icon-hcalendar-download.png +0 -0
  170. data/yaml/yaml/add-ons/microformats/icons/icon-hcalendar.png +0 -0
  171. data/yaml/yaml/add-ons/microformats/icons/icon-hcard-add.png +0 -0
  172. data/yaml/yaml/add-ons/microformats/icons/icon-hcard-download.png +0 -0
  173. data/yaml/yaml/add-ons/microformats/icons/icon-hcard.png +0 -0
  174. data/yaml/yaml/add-ons/microformats/icons/icon-hresume.png +0 -0
  175. data/yaml/yaml/add-ons/microformats/icons/icon-rel-tag.png +0 -0
  176. data/yaml/yaml/add-ons/microformats/icons/icon-xfn.png +0 -0
  177. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-child.png +0 -0
  178. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-colleague-met.png +0 -0
  179. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-colleague.png +0 -0
  180. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-friend-met.png +0 -0
  181. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-friend.png +0 -0
  182. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-me.png +0 -0
  183. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-parent.png +0 -0
  184. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-small.png +0 -0
  185. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-spouse.png +0 -0
  186. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-sweetheart-met.png +0 -0
  187. data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-sweetheart.png +0 -0
  188. data/yaml/yaml/add-ons/microformats/microformats.css +167 -0
  189. data/yaml/yaml/add-ons/rtl-support/core/base-rtl.css +167 -0
  190. data/yaml/yaml/add-ons/rtl-support/core/base-rtl.min.css +3 -0
  191. data/yaml/yaml/add-ons/rtl-support/forms/gray-theme-rtl.css +44 -0
  192. data/yaml/yaml/add-ons/rtl-support/navigation/hlist-rtl.css +48 -0
  193. data/yaml/yaml/add-ons/rtl-support/navigation/vlist-rtl.css +54 -0
  194. data/yaml/yaml/add-ons/rtl-support/screen/typography-rtl.css +38 -0
  195. data/yaml/yaml/add-ons/syncheight/jquery.syncheight.js +112 -0
  196. data/yaml/yaml/core/base.css +705 -0
  197. data/yaml/yaml/core/base.min.css +3 -0
  198. data/yaml/yaml/core/iehacks.css +468 -0
  199. data/yaml/yaml/core/iehacks.min.css +3 -0
  200. data/yaml/yaml/core/js/yaml-focusfix.js +70 -0
  201. data/yaml/yaml/forms/gray-theme.css +676 -0
  202. data/yaml/yaml/navigation/hlist.css +109 -0
  203. data/yaml/yaml/navigation/vlist.css +144 -0
  204. data/yaml/yaml/print/print.css +42 -0
  205. data/yaml/yaml/screen/grid-960gs-12.css +164 -0
  206. data/yaml/yaml/screen/grid-960gs-16.css +212 -0
  207. data/yaml/yaml/screen/grid-blueprint.css +308 -0
  208. data/yaml/yaml/screen/grid-fluid-12col.css +164 -0
  209. data/yaml/yaml/screen/screen-FULLPAGE-layout.css +184 -0
  210. data/yaml/yaml/screen/screen-PAGE-layout.css +196 -0
  211. data/yaml/yaml/screen/typography.css +486 -0
  212. data/yamlcss.gemspec +30 -0
  213. metadata +314 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 682ee013170f2cc438116a2f0d18d1cac11dfe90
4
+ data.tar.gz: 9ab63c55bedf102e69f2d8e464dc18af0ed0907b
5
+ SHA512:
6
+ metadata.gz: ee7785b07507b228ad1bbd26ab081cecf04b17baa15ab9f363dc41ddd854ec7603fe9d20bddfb165e2dfb4a3ee1aa107a296a94de5fa9ee53f0405bd8bc0c407
7
+ data.tar.gz: 95702503b76d01950e6473b118015b39a2fe7e10d6a4d0f0c98cdb7ef881f607e330b23dd3e093efa1183ef5ac6a4f217ab1395e8393e06d7705ceb4aeb9bcf1
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+
3
+ cache: bundler
4
+
5
+ rvm:
6
+ - 2.0.0
7
+
8
+ script:
9
+ - bundle exec rake --trace test
10
+
11
+ before_install:
12
+ - git submodule update --init --recursive
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+
3
+ group :test do
4
+ # Style checkers
5
+ gem 'rake'
6
+ gem 'travis-lint'
7
+ gem 'rubocop'
8
+ gem 'reek'
9
+ gem 'scss-lint'
10
+ end
@@ -0,0 +1,56 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ast (1.1.0)
5
+ colorize (0.5.8)
6
+ ffi (1.9.3)
7
+ hashr (0.0.22)
8
+ json (1.8.1)
9
+ listen (1.1.6)
10
+ rb-fsevent (>= 0.9.3)
11
+ rb-inotify (>= 0.9)
12
+ rb-kqueue (>= 0.2)
13
+ parser (2.1.4)
14
+ ast (~> 1.1)
15
+ slop (~> 3.4, >= 3.4.5)
16
+ powerpack (0.0.9)
17
+ rainbow (1.99.2)
18
+ rake (10.1.1)
19
+ rb-fsevent (0.9.4)
20
+ rb-inotify (0.9.3)
21
+ ffi (>= 0.5.0)
22
+ rb-kqueue (0.2.0)
23
+ ffi (>= 0.5.0)
24
+ reek (1.3.6)
25
+ ruby2ruby (~> 2.0.7)
26
+ ruby_parser (~> 3.2)
27
+ sexp_processor
28
+ rubocop (0.17.0)
29
+ json (~> 1.8)
30
+ parser (~> 2.1.3)
31
+ powerpack (~> 0.0.6)
32
+ rainbow (~> 1.99.1)
33
+ ruby2ruby (2.0.7)
34
+ ruby_parser (~> 3.1)
35
+ sexp_processor (~> 4.0)
36
+ ruby_parser (3.3.0)
37
+ sexp_processor (~> 4.1)
38
+ sass (3.3.0.rc.1)
39
+ listen (~> 1.1.0)
40
+ scss-lint (0.17.1)
41
+ colorize (= 0.5.8)
42
+ sass (= 3.3.0.rc.1)
43
+ sexp_processor (4.4.1)
44
+ slop (3.4.7)
45
+ travis-lint (1.7.0)
46
+ hashr (~> 0.0.22)
47
+
48
+ PLATFORMS
49
+ ruby
50
+
51
+ DEPENDENCIES
52
+ rake
53
+ reek
54
+ rubocop
55
+ scss-lint
56
+ travis-lint
@@ -0,0 +1,59 @@
1
+ License for the YAML Gem
2
+ ========================
3
+
4
+ Copyright (c) 2014 Brain Gourmets GmbH
5
+
6
+ The YAML Gem is published under the MIT license (all except for the yaml/
7
+ directory).
8
+
9
+ The MIT License (MIT)
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in
19
+ all copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
27
+ THE SOFTWARE.
28
+
29
+
30
+ License for the YAML framework
31
+ ==============================
32
+
33
+ Copyright (c) 2005-2013 Dirk Jesse
34
+
35
+ YAML under Creative Commons License (CC-BY 2.0)
36
+ ===============================================
37
+
38
+ The YAML framework is published under the Creative Commons Attribution 2.0 License (CC-BY 2.0), which permits
39
+ both private and commercial use (http://creativecommons.org/licenses/by/2.0/).
40
+
41
+ Condition: For the free use of the YAML framework, a backlink to the YAML homepage (http://www.yaml.de) in a
42
+ suitable place (e.g.: footer of the website or in the imprint) is required.
43
+
44
+ In general it would be nice to get a short note when new YAML-based projects are released. If you are highly
45
+ pleased with YAML, perhaps you would like to take a look at my Amazon wish list?
46
+ https://www.amazon.de/gp/registry/wishlist/108Q0YYJ49UC2/
47
+
48
+ YAML under Commercial Distribution License (YAML-CDL)
49
+ =====================================================
50
+
51
+ If you are a commercial software developer and you want to release your software under a license that doesn't
52
+ fit to the Creative Commons Attribution 2.0 License], you may purchase a commercial license. We offer the
53
+ following commercial license models:
54
+
55
+ - Project Related License
56
+ - General License
57
+ - OEM License
58
+
59
+ Full license texts and contact information are available at: http://www.yaml.de/license.html
@@ -0,0 +1,23 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be
3
+ # available to Rake.
4
+
5
+ task default: :test
6
+
7
+ task test: [:travis_lint, :rubocop, :reek, :scss_lint]
8
+
9
+ task :travis_lint do
10
+ sh 'travis-lint'
11
+ end
12
+
13
+ task :rubocop do
14
+ sh 'rubocop Gemfile Rakefile yamlcss.gemspec lib/'
15
+ end
16
+
17
+ task :reek do
18
+ sh 'reek Gemfile Rakefile yamlcss.gemspec lib/'
19
+ end
20
+
21
+ task :scss_lint do
22
+ sh 'scss-lint vendor/assets/stylesheets/'
23
+ end
@@ -0,0 +1,120 @@
1
+ # YAML CSS Framework as Gem for Ruby on Rails
2
+
3
+ [![Build Status](https://travis-ci.org/braingourmets/yaml-gem.png?branch=master)](https://travis-ci.org/braingourmets/yaml-gem)
4
+ [![Code Climate](https://codeclimate.com/github/braingourmets/yaml-gem.png)](https://codeclimate.com/github/braingourmets/yaml-gem)
5
+
6
+ YAML (*Yet Another Multicolumn Layout*) is a modular CSS framework for truly
7
+ flexible, accessible and responsive websites. YAML is focussed on device
8
+ independent screen design and provides bullet-proof modules for flexible
9
+ layouts. This is a perfect starting point and the key to truly responsive
10
+ design.
11
+
12
+ * Latest version: 4.1.2
13
+ * Website: http://www.yaml.de
14
+
15
+ ## Documentation
16
+
17
+ ### Requirements
18
+
19
+ * Ruby >= 1.9.3
20
+
21
+ * Sass 3.2+ (if you want to use YAML Sass files)
22
+
23
+ ## Install for Rails 3.1+
24
+
25
+ In your Gemfile:
26
+
27
+ gem 'yamlcss'
28
+
29
+ Then run:
30
+
31
+ $ bundle install
32
+
33
+ Restart your server. Then rename application`.css` to application`.css.scss`:
34
+
35
+ mv app/assets/stylesheets/application.css app/assets/stylesheets/application.css.scss
36
+
37
+ Import YAML at the beginning of application.css.scss. All additional
38
+ stylesheets must be imported below YAML:
39
+
40
+ @import "yaml";
41
+
42
+ ## Non-Rails projects
43
+
44
+ YAML includes an easy way to generate a directory with all the necessary
45
+ files.
46
+ For command line help: `$ yaml help`
47
+
48
+ ### Install (YAML v4.1+)
49
+
50
+ gem install yamlcss
51
+
52
+ Install YAML into the current directory by generating the `yaml` folder:
53
+
54
+ yaml install
55
+
56
+ The generated folder will contain all the YAML files (CSS & Sass). It is
57
+ recommended not to add or modify the YAML files so that you can update YAML
58
+ easily.
59
+
60
+ You can specify a target directory using the `path` flag:
61
+
62
+ yaml install --path my/custom/path/
63
+
64
+ ### Import Sass
65
+
66
+ Lastly, import the YAML core at the beginning of your stylesheet(s):
67
+
68
+ @import 'yaml/sass/yaml-sass/core/base';
69
+
70
+ For your IE hacks stylesheet, use:
71
+
72
+ @import 'yaml/sass/yaml-sass/core/iehacks';
73
+
74
+ ### Import CSS
75
+
76
+ If you're still using pure CSS, you'll find the important files in the
77
+ directory *yaml/yaml*:
78
+
79
+ @import url("yaml/yaml/core/base.min.css");
80
+
81
+ License
82
+ -------
83
+
84
+ YAML Gem is Copyright (c) 2014 Brain Gourmets GmbH. It is free software, and
85
+ may be redistributed under the terms specified in the LICENSE.txt file.
86
+
87
+ License for the YAML framework
88
+ ------------------------------
89
+
90
+ Copyright (c) 2005-2013 Dirk Jesse
91
+
92
+ ### YAML under Creative Commons License (CC-BY 2.0)
93
+
94
+ The YAML framework is published under the [Creative Commons Attribution 2.0
95
+ License (CC-BY 2.0)](http://creativecommons.org/licenses/by/2.0/), which
96
+ permits both private and commercial use.
97
+
98
+ *Condition: For the free use of the YAML framework, a backlink to the YAML
99
+ homepage (<http://www.yaml.de>) in a suitable place (e.g.: footer of the
100
+ website or in the imprint) is required.*
101
+
102
+ In general it would be nice to get a short note when new YAML-based projects
103
+ are released. If you are highly pleased with YAML, perhaps you would like to
104
+ take a look at my
105
+ [Amazon wish](https://www.amazon.de/gp/registry/wishlist/108Q0YYJ49UC2/) list?
106
+
107
+ ### YAML under Commercial Distribution License (YAML-CDL)
108
+
109
+ If you are a commercial software developer and you want to release your
110
+ software under a license that doesn't fit to the [Creative Commons
111
+ Attribution 2.0 License](http://creativecommons.org/licenses/by/2.0/), you may
112
+ purchase a commercial license. We offer the following commercial license
113
+ models:
114
+
115
+ - Project Related License
116
+ - General License
117
+ - OEM License
118
+
119
+ Full license texts and contact information are available at:
120
+ <http://www.yaml.de/license.html>
@@ -0,0 +1,5 @@
1
+ # Bundled Versions
2
+
3
+ | Gem | YAML |
4
+ |--------|--------|
5
+ | 1.0.0 | 4.2.1 |
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # CodeKit needs relative paths.
4
+ require File.dirname(__FILE__) + '/../lib/yamlcss.rb'
5
+
6
+ YamlCss::Generator.start
@@ -0,0 +1,22 @@
1
+ # CodeKit needs relative paths.
2
+ dir = File.dirname(__FILE__)
3
+ $LOAD_PATH.unshift dir unless $LOAD_PATH.include?(dir)
4
+
5
+ require 'yamlcss/generator'
6
+
7
+ require 'sass' unless defined?(Sass)
8
+
9
+ # Check if Rails and Rails Engine is defined and define Sass load path.
10
+ module YamlCss
11
+ if defined?(Rails) && defined?(Rails::Engine)
12
+ # Define Engine for Rails version > 3.2 and < 4.0.
13
+ class Engine < ::Rails::Engine
14
+ require 'yamlcss/engine'
15
+ end
16
+ else
17
+ Sass.load_paths << File.expand_path(
18
+ '../../vendor/assets/stylesheets',
19
+ __FILE__
20
+ )
21
+ end
22
+ end
@@ -0,0 +1,7 @@
1
+ # Define Engine for Rails version > 3.2 and < 4.0.
2
+ module YamlCss
3
+ # Define Engine for Rails version > 3.2 and < 4.0.
4
+ class Engine < Rails::Engine
5
+ # auto wire
6
+ end
7
+ end
@@ -0,0 +1,84 @@
1
+ require 'yamlcss/version'
2
+ require 'fileutils'
3
+ require 'thor'
4
+
5
+ # YAML gemerator with install methods.
6
+ module YamlCss
7
+ # Use Thor for own generator.
8
+ class Generator < Thor
9
+ map %w(-v --version) => :version
10
+
11
+ desc 'install', 'Install YAML into your project'
12
+ method_options path: :string, force: :boolean
13
+ def install
14
+ if yaml_files_already_exist? && !options[:force]
15
+ puts 'YAML files already installed, doing nothing.'
16
+ else
17
+ install_files
18
+ puts "YAML files installed to #{install_path}/"
19
+ end
20
+ end
21
+
22
+ desc 'update', 'Update Bourbon'
23
+ method_options path: :string
24
+ def update
25
+ if yaml_files_already_exist?
26
+ remove_yaml_directory
27
+ install_files
28
+ puts 'YAML files updated.'
29
+ else
30
+ puts 'No existing YAML installation. Doing nothing.'
31
+ end
32
+ end
33
+
34
+ desc 'version', 'Show YAML version'
35
+ def version
36
+ say "YAML #{YamlCss::VERSION}"
37
+ end
38
+
39
+ private
40
+
41
+ def yaml_files_already_exist?
42
+ install_path.exist?
43
+ end
44
+
45
+ def install_path
46
+ options_path = options[:path]
47
+ if options_path
48
+ new_install_path = Pathname.new(File.join(options_path, 'yaml'))
49
+ else
50
+ new_install_path = Pathname.new('yaml')
51
+ end
52
+ @install_path ||= new_install_path
53
+ end
54
+
55
+ def install_files
56
+ make_install_directory
57
+ copy_in_scss_files
58
+ end
59
+
60
+ def remove_yaml_directory
61
+ FileUtils.rm_rf('yaml')
62
+ end
63
+
64
+ def make_install_directory
65
+ FileUtils.mkdir_p(install_path)
66
+ end
67
+
68
+ def copy_in_scss_files
69
+ FileUtils.cp_r(Generator.all_stylesheets, install_path)
70
+ end
71
+
72
+ def self.all_stylesheets
73
+ Dir["#{Generator.stylesheets_directory}/*"]
74
+ end
75
+
76
+ def self.stylesheets_directory
77
+ File.join(Generator.top_level_directory, 'yaml')
78
+ end
79
+
80
+ def self.top_level_directory
81
+ File.dirname(File.dirname(File.dirname(__FILE__)))
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,4 @@
1
+ # Set the Gem version number.
2
+ module YamlCss
3
+ VERSION = '1.0.0'
4
+ end
@@ -0,0 +1,3 @@
1
+ // YAML IE hacks
2
+
3
+ @import '../../../yaml/sass/yaml-sass/core/iehacks';
@@ -0,0 +1,3 @@
1
+ // YAML core
2
+
3
+ @import '../../../yaml/sass/yaml-sass/core/base';
@@ -0,0 +1,199 @@
1
+ module.exports = function(grunt) {
2
+
3
+ grunt.initConfig({
4
+ pkg: grunt.file.readJSON('package.json'),
5
+
6
+ // remove all files from yaml folder
7
+ clean: ['yaml'],
8
+
9
+ // compile YAML build
10
+ compass: {
11
+ build: {
12
+ options: {
13
+ sassDir : 'sass/static-build',
14
+ cssDir : 'yaml',
15
+ importPath : 'sass',
16
+ imagesDir : 'yaml',
17
+ outputStyle : 'expanded',
18
+ noLineComments : true
19
+ }
20
+ },
21
+ docs: {
22
+ options: {
23
+ sassDir : 'sass/docs',
24
+ cssDir : 'docs',
25
+ importPath : 'sass',
26
+ imagesDir : 'yaml',
27
+ outputStyle : 'expanded',
28
+ noLineComments : true
29
+ }
30
+ },
31
+ css: {
32
+ options: {
33
+ sassDir : 'sass/css',
34
+ cssDir : 'css',
35
+ importPath : 'sass',
36
+ imagesDir : 'yaml',
37
+ outputStyle : 'expanded',
38
+ noLineComments : true
39
+ }
40
+ }
41
+ },
42
+
43
+ jshint: {
44
+ options: {
45
+ curly: true,
46
+ eqeqeq: true,
47
+ immed: true,
48
+ latedef: true,
49
+ newcap: true,
50
+ noarg: true,
51
+ sub: true,
52
+ undef: true,
53
+ unused: true,
54
+ boss: true,
55
+ eqnull: true,
56
+ browser: true,
57
+ globals: {
58
+ jQuery: true
59
+ }
60
+ },
61
+ gruntfile: {
62
+ src: 'Gruntfile.js',
63
+ options: {
64
+ globals: {
65
+ module: true
66
+ }
67
+ }
68
+ },
69
+ yaml: [
70
+ 'yaml/core/**/*.js'
71
+ ],
72
+ addons: [
73
+ 'yaml/add-ons/**/*.js'
74
+ ]
75
+ },
76
+
77
+ 'string-replace': {
78
+ stripCharset: {
79
+ files: {
80
+ './': ['yaml/**/*.css','docs/assets/**/*.css']
81
+ },
82
+ options: {
83
+ replacements: [{
84
+ pattern : /@charset "utf-8";\cM\cJ/ig,
85
+ replacement : ''
86
+ },
87
+ {
88
+ pattern : /@charset "utf-8";\cJ/ig,
89
+ replacement : ''
90
+ }]
91
+ }
92
+ },
93
+ setNamespace: {
94
+ files: {
95
+ './': 'yaml/**/*.css'
96
+ },
97
+ options: {
98
+ replacements: [{
99
+ pattern : /\.ym-/ig,
100
+ replacement : '.<%= pkg.yamlPrefix %>'
101
+ }]
102
+ }
103
+ },
104
+ setVersion: {
105
+ files: {
106
+ './': ['yaml/**/*.css','docs/assets/**/*.css']
107
+ },
108
+ options: {
109
+ replacements: [{
110
+ pattern : /### version ###/ig,
111
+ replacement : '<%= pkg.version %>'
112
+ }]
113
+ }
114
+ },
115
+ // needed for misconfigured Windows systems that don't force UTF8 output correctly ...
116
+ winUTF8fix: {
117
+ files: {
118
+ './': ['yaml/**/*.css','docs/assets/**/*.css']
119
+ },
120
+ options: {
121
+ replacements: [{
122
+ pattern : /ä/ig,
123
+ replacement : 'ä'
124
+ },
125
+ {
126
+ pattern : /Ä/ig,
127
+ replacement : 'Ä'
128
+ },
129
+ {
130
+ pattern : /├Â/ig,
131
+ replacement : 'ö'
132
+ },
133
+ {
134
+ pattern : /Ö/ig,
135
+ replacement : 'Ö'
136
+ },
137
+ {
138
+ pattern : /├╝/ig,
139
+ replacement : 'ü'
140
+ },
141
+ {
142
+ pattern : /Ü/ig,
143
+ replacement : 'Ü'
144
+ },
145
+ {
146
+ pattern : /ß/ig,
147
+ replacement : 'ß'
148
+ }]
149
+ }
150
+ }
151
+ },
152
+
153
+ cssmin: {
154
+ compress: {
155
+ options: {
156
+ banner: '/*! <%= pkg.name %> v<%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) */\n'
157
+ },
158
+ files: [{
159
+ expand : true, // Enable dynamic expansion.
160
+ cwd : 'yaml/', // Src matches are relative to this path.
161
+ src : ['core/*.css','add-ons/rtl-support/core/*.css'], // Actual pattern(s) to match.
162
+ dest : 'yaml/', // Destination path prefix.
163
+ ext : '.min.css' // Dest filepaths will have this extension.
164
+ }]
165
+ }
166
+ },
167
+
168
+ copy: {
169
+ main: {
170
+ files: [
171
+ {expand: true, cwd: 'sass/yaml-sass/', src: ['**/*.js'], dest: 'yaml/'}, // makes all src relative to cwd
172
+ {expand: true, cwd: 'sass/yaml-sass/', src: ['**/*.png', '**/*.gif', '**/*.jpg'], dest: 'yaml/'} // makes all src relative to cwd
173
+ ]
174
+ }
175
+ },
176
+
177
+ watch: {
178
+ files: 'sass/**/*.scss',
179
+ tasks: 'compass'
180
+ }
181
+
182
+ });
183
+
184
+ grunt.loadNpmTasks('grunt-contrib-clean');
185
+ grunt.loadNpmTasks('grunt-contrib-compass');
186
+ grunt.loadNpmTasks('grunt-string-replace');
187
+ grunt.loadNpmTasks('grunt-contrib-cssmin');
188
+ grunt.loadNpmTasks('grunt-contrib-jshint');
189
+ grunt.loadNpmTasks('grunt-contrib-watch');
190
+ grunt.loadNpmTasks('grunt-contrib-copy');
191
+
192
+ // Default Task: Compile defined subfolders in sass/ ('static-build' excluded)
193
+ grunt.registerTask('default', ['clean', 'copy', 'compass:css', 'compass:docs']);
194
+
195
+ // Build YAML
196
+ grunt.registerTask('build', ['clean', 'copy', 'compass', 'string-replace', 'cssmin','jshint']);
197
+ // Build YAML and don't remove @charset rules
198
+ grunt.registerTask('build-utf8', ['clean', 'copy', 'compass', 'string-replace:setNamespace', 'string-replace:setVersion', 'string-replace:winUTF8fix', 'cssmin','jshint']);
199
+ };