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,26 @@
1
+ /**
2
+ * "Yet Another Multicolumn Layout" - YAML CSS Framework
3
+ *
4
+ * central stylesheet - layout example "flexible-columns"
5
+ *
6
+ * @copyright Copyright 2005-2012, Dirk Jesse
7
+ * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
8
+ * YAML-CDL (http://www.yaml.de/license.html)
9
+ * @link http://www.yaml.de
10
+ */
11
+
12
+ /* Google Font API */
13
+ @import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700|Droid+Sans:700);
14
+
15
+ /* import core styles | Basis-Stylesheets einbinden */
16
+ @import url(../../yaml/core/base.css);
17
+
18
+ /* import screen layout | Screen-Layout einbinden */
19
+ @import url(../../yaml/navigation/hlist.css);
20
+ @import url(../../yaml/forms/gray-theme.css);
21
+
22
+ @import url(../../yaml/screen/typography.css);
23
+ @import url(../../yaml/screen/screen-PAGE-layout.css);
24
+
25
+ /* import print layout | Druck-Layout einbinden */
26
+ @import url(../../yaml/print/print.css);
@@ -0,0 +1,26 @@
1
+ /**
2
+ * "Yet Another Multicolumn Layout" - YAML CSS Framework
3
+ *
4
+ * central stylesheet - layout example "flexible-grids"
5
+ *
6
+ * @copyright Copyright 2005-2012, Dirk Jesse
7
+ * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
8
+ * YAML-CDL (http://www.yaml.de/license.html)
9
+ * @link http://www.yaml.de
10
+ */
11
+
12
+ /* Google Font API */
13
+ @import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700|Droid+Sans:700);
14
+
15
+ /* import core styles | Basis-Stylesheets einbinden */
16
+ @import url(../../yaml/core/base.css);
17
+
18
+ /* import screen layout | Screen-Layout einbinden */
19
+ @import url(../../yaml/navigation/hlist.css);
20
+ @import url(../../yaml/forms/gray-theme.css);
21
+
22
+ @import url(../../yaml/screen/typography.css);
23
+ @import url(../../yaml/screen/screen-FULLPAGE-layout.css);
24
+
25
+ /* import print layout | Druck-Layout einbinden */
26
+ @import url(../../yaml/print/print.css);
@@ -0,0 +1,31 @@
1
+ /**
2
+ * "Yet Another Multicolumn Layout" - YAML CSS Framework
3
+ *
4
+ * central stylesheet - layout example "rtl-support"
5
+ *
6
+ * @copyright Copyright 2005-2012, Dirk Jesse
7
+ * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
8
+ * YAML-CDL (http://www.yaml.de/license.html)
9
+ * @link http://www.yaml.de
10
+ */
11
+
12
+ /* Google Font API */
13
+ @import url(http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700|Droid+Sans:700);
14
+
15
+ /* import core styles | Basis-Stylesheets einbinden */
16
+ @import url(../../yaml/core/base.css);
17
+ @import url(../../yaml/add-ons/rtl-support/core/base-rtl.css);
18
+
19
+ /* import screen layout | Screen-Layout einbinden */
20
+ @import url(../../yaml/navigation/hlist.css);
21
+ @import url(../../yaml/add-ons/rtl-support/navigation/hlist-rtl.css);
22
+ @import url(../../yaml/forms/gray-theme.css);
23
+ @import url(../../yaml/add-ons/rtl-support/forms/gray-theme-rtl.css);
24
+
25
+ @import url(../../yaml/screen/typography.css);
26
+ @import url(../../yaml/add-ons/rtl-support/screen/typography-rtl.css);
27
+
28
+ @import url(screen/screen-rtl-support.css);
29
+
30
+ /* import print layout | Druck-Layout einbinden */
31
+ @import url(../../yaml/print/print.css);
@@ -0,0 +1,41 @@
1
+ /**
2
+ * "Yet Another Multicolumn Layout" - YAML CSS Framework
3
+ *
4
+ * screen stylesheet - layout example "custom grids"
5
+ *
6
+ * @copyright Copyright 2005-2012, Dirk Jesse
7
+ * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
8
+ * YAML-CDL (http://www.yaml.de/license.html)
9
+ * @link http://www.yaml.de
10
+ */
11
+
12
+ @media screen {
13
+
14
+ /* Basic Element Styling */
15
+ div.ym-gbox {
16
+ margin-bottom: 21px; /* 1.5em - px value to reduce rounding errors in IE */
17
+ line-height: 19px; /* 1.3571em - px value to reduce rounding errors in IE */
18
+ background: rgb(240,220,220);
19
+ background: rgba(128,0,0,.1);
20
+ border: 1px #800 solid;
21
+ text-align: center;
22
+ }
23
+
24
+ }
25
+
26
+ @media screen and ( max-width: 759px ) {
27
+
28
+ .ym-wrapper {
29
+ width: auto;
30
+ }
31
+
32
+ .ym-gl,
33
+ .ym-gr {
34
+ margin:0;
35
+ float: none;
36
+ width: auto !important;
37
+ position:static;
38
+ }
39
+
40
+ .ym-gbox { padding: 0; }
41
+ }
@@ -0,0 +1,182 @@
1
+ /**
2
+ * "Yet Another Multicolumn Layout" - YAML CSS Framework
3
+ *
4
+ * screen stylesheet - layout example "rtl-support"
5
+ *
6
+ * @copyright Copyright 2005-2012, Dirk Jesse
7
+ * @license CC-BY 2.0 (http://creativecommons.org/licenses/by/2.0/),
8
+ * YAML-CDL (http://www.yaml.de/license.html)
9
+ * @link http://www.yaml.de
10
+ */
11
+
12
+ @media screen {
13
+
14
+ /* force vertical scrollbar */
15
+ body {
16
+ overflow-y: scroll;
17
+ }
18
+
19
+ /* Layout Module Configuration */
20
+ .ym-wrapper {
21
+ min-width: 760px;
22
+ max-width: 80em;
23
+ margin: 0 auto;
24
+ }
25
+
26
+ .ym-wbox { padding: 10px; }
27
+
28
+ /* Basic Element Styling */
29
+ header {
30
+ background: #444;
31
+ color: #ccc;
32
+ padding: 1.5em;
33
+ }
34
+
35
+ header h1 {
36
+ background: transparent;
37
+ color: #fff;
38
+ }
39
+
40
+ nav {
41
+ background: #222222;
42
+ }
43
+
44
+ main {
45
+ padding: 1.5em 0 0 0;
46
+ }
47
+
48
+ footer {
49
+ background: #eee;
50
+ color: #444;
51
+ padding: 1.5em;
52
+ }
53
+
54
+ footer p {
55
+ margin: 0;
56
+ }
57
+
58
+ /* Column-Set Configuration: 1-3 (sidebar left) */
59
+ /* content */
60
+ .ym-col1 {
61
+ width: 75%;
62
+ }
63
+ /* sidebar */
64
+ .ym-col3 {
65
+ margin-left:75%;
66
+ margin-right:0;
67
+ }
68
+
69
+ .ym-col1 .ym-cbox { padding: 0 0 0 1.5em; }
70
+ .ym-col3 .ym-cbox { padding: 0 1.5em 0 0; }
71
+ .ym-gbox { padding: 0 0 0 1.5em; }
72
+
73
+ .ym-skiplinks a.ym-skip:focus,
74
+ .ym-skiplinks a.ym-skip:active {
75
+ color:#fff;
76
+ background:#333;
77
+ border-bottom:1px #000 solid;
78
+ padding:10px 0;
79
+ text-align: center;
80
+ text-decoration:none;
81
+ }
82
+ }
83
+
84
+ /* reset fallback values in modern browsers */
85
+ @media screen and ( min-width: 0px ) {
86
+ .ym-wrapper {
87
+ min-width: 0px;
88
+ }
89
+ }
90
+
91
+ @media screen and ( max-width: 740px ) {
92
+
93
+ /* Linearisation for Grid- and Column-Module, based on CSS class .linearize-level-1 */
94
+ .linearize-level-1,
95
+ .linearize-level-1 > [class*="ym-g"],
96
+ .linearize-level-1 > [class*="ym-col"] {
97
+ display: block;
98
+ float: none;
99
+ padding: 0;
100
+ margin: 0;
101
+ width: 100% !important;
102
+ }
103
+
104
+ .linearize-level-1 > [class*="ym-g"] > [class*="ym-gbox"],
105
+ .linearize-level-1 > [class*="ym-col"] > [class*="ym-cbox"] {
106
+ overflow: hidden; /* optional for containing floats */
107
+ padding: 0;
108
+ margin: 0;
109
+ }
110
+
111
+ nav .ym-hlist ul {
112
+ padding-right: 10px;
113
+ }
114
+
115
+ .ym-searchform {
116
+ display:block;
117
+ float: none;
118
+ width: auto;
119
+ padding-right: 10px;
120
+ text-align: right;
121
+ }
122
+
123
+ .ym-searchform input[type="search"] {
124
+ width: 14%;
125
+ }
126
+ }
127
+
128
+ @media screen and ( max-width: 480px) {
129
+
130
+ .ym-wbox {
131
+ padding: 0;
132
+ }
133
+
134
+ header {
135
+ padding: 0.75em 10px;
136
+ }
137
+
138
+ footer,
139
+ main,
140
+ nav .ym-hlist ul,
141
+ .ym-searchform {
142
+ padding-left: 10px;
143
+ padding-right: 10px;
144
+ }
145
+
146
+ header h1 {
147
+ font-size: 1.5em;
148
+ line-height: 1em;
149
+ margin: 0;
150
+ }
151
+
152
+ /* Linearisation for Grid- and Column-Module, based on CSS class .linearize-level-2 */
153
+ .linearize-level-2,
154
+ .linearize-level-2 > [class*="ym-g"],
155
+ .linearize-level-2 > [class*="ym-col"] {
156
+ display: block;
157
+ float: none;
158
+ padding: 0;
159
+ margin: 0;
160
+ width: 100% !important;
161
+ }
162
+
163
+ .linearize-level-2 > [class*="ym-g"] > [class*="ym-gbox"],
164
+ .linearize-level-2 > [class*="ym-col"] > [class*="ym-cbox"] {
165
+ overflow: hidden; /* optional for containing floats */
166
+ padding: 0;
167
+ margin: 0;
168
+ }
169
+
170
+ .ym-searchform,
171
+ nav .ym-hlist ul,
172
+ nav .ym-hlist li {
173
+ display:block;
174
+ float: none;
175
+ width: auto;
176
+ text-align: right;
177
+ }
178
+
179
+ .ym-searchform input[type="search"] {
180
+ width: 75%;
181
+ }
182
+ }
@@ -0,0 +1,129 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <title>Demo: Custom Grid Layout &ndash; YAML CSS Framework</title>
6
+
7
+ <!-- Mobile viewport optimisation -->
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+
10
+ <!-- (en) Add your meta data here -->
11
+ <!-- (de) Fuegen Sie hier ihre Meta-Daten ein -->
12
+
13
+ <link href="./css/custom-grids.css" rel="stylesheet" type="text/css"/>
14
+ <!--[if lte IE 7]>
15
+ <link href="../yaml/core/iehacks.css" rel="stylesheet" type="text/css" />
16
+ <![endif]-->
17
+
18
+ <!--[if lt IE 9]>
19
+ <script src="../lib/html5shiv/html5shiv.js"></script>
20
+ <![endif]-->
21
+ <script src="../lib/jquery-1.10.1.min.js"></script>
22
+ <script src="../docs/assets/js/jquery.gridbuilder.js"></script>
23
+ <script type="text/javascript">
24
+ $(document).ready(function(){
25
+
26
+ $("main .ym-wrapper").gridBuilder({
27
+ color: '#eee', // color of the primary gridlines
28
+ secondaryColor: '#f9f9f9', // color of the secondary gridlines
29
+ vertical: 21, // height of the vertical rhythm
30
+ horizontal: 60, // width of horizontal strokes
31
+ gutter: 20, // width of the gutter between strokes
32
+ });
33
+ });
34
+ </script>
35
+ </head>
36
+ <body>
37
+
38
+ <main>
39
+ <div class="ym-wrapper">
40
+ <h1 class="ym-gbox">YAML 4 &ndash; Custom Grids</h1>
41
+ <p class="ym-gbox">YAML 4 provides several custom grid configurations, eg. a port of the 960 Grid System. This example is responsive
42
+ too and linearizes its content on screen widths lower than 760 Pixels. Of course, you should adjust this to your individual needs.</p>
43
+ <p class="ym-gbox">To define your own individual grid configurations, use the grid-generator-mixin that is provided in YAML's Sass port.</p>
44
+ <h2 class="ym-gbox">12 Column Grid</h2>
45
+ <div class="ym-gbox">940</div>
46
+ <div class="ym-grid linearize-level-1">
47
+ <div class="ym-g960-1 ym-gl"><div class="ym-gbox">60</div></div>
48
+ <div class="ym-g960-11 ym-gl"><div class="ym-gbox">860</div></div>
49
+ <div class="ym-g960-2 ym-gl"><div class="ym-gbox">140</div></div>
50
+ <div class="ym-g960-10 ym-gl"><div class="ym-gbox">780</div></div>
51
+ <div class="ym-g960-3 ym-gl"><div class="ym-gbox">220</div></div>
52
+ <div class="ym-g960-9 ym-gl"><div class="ym-gbox">700</div></div>
53
+ <div class="ym-g960-4 ym-gl"><div class="ym-gbox">300</div></div>
54
+ <div class="ym-g960-8 ym-gl"><div class="ym-gbox">620</div></div>
55
+ <div class="ym-g960-5 ym-gl"><div class="ym-gbox">380</div></div>
56
+ <div class="ym-g960-7 ym-gl"><div class="ym-gbox">540</div></div>
57
+ <div class="ym-g960-6 ym-gl"><div class="ym-gbox">460</div></div>
58
+ <div class="ym-g960-6 ym-gl"><div class="ym-gbox">460</div></div>
59
+ </div>
60
+
61
+ <h3 class="ym-gbox">Push &amp; Pull Classes Available</h3>
62
+ <div class="ym-grid linearize-level-1">
63
+ <div class="ym-g960-1 ym-gl"><div class="ym-gbox">60</div></div>
64
+ </div>
65
+ <div class="ym-grid linearize-level-1">
66
+ <div class="ym-g960-1 ym-push-1 ym-gl"><div class="ym-gbox">60</div></div>
67
+ </div>
68
+ <div class="ym-grid linearize-level-1">
69
+ <div class="ym-g960-1 ym-push-2 ym-gl"><div class="ym-gbox">60</div></div>
70
+ </div>
71
+ <div class="ym-grid linearize-level-1">
72
+ <div class="ym-g960-1 ym-push-3 ym-gl"><div class="ym-gbox">60</div></div>
73
+ </div>
74
+ <div class="ym-grid linearize-level-1">
75
+ <div class="ym-g960-1 ym-push-4 ym-gl"><div class="ym-gbox">60</div></div>
76
+ </div>
77
+ <div class="ym-grid linearize-level-1">
78
+ <div class="ym-g960-1 ym-push-5 ym-gl"><div class="ym-gbox">60</div></div>
79
+ </div>
80
+ <div class="ym-grid linearize-level-1">
81
+ <div class="ym-g960-1 ym-push-6 ym-gl"><div class="ym-gbox">60</div></div>
82
+ </div>
83
+ <div class="ym-grid linearize-level-1">
84
+ <div class="ym-g960-1 ym-push-7 ym-gl"><div class="ym-gbox">60</div></div>
85
+ </div>
86
+ <div class="ym-grid linearize-level-1">
87
+ <div class="ym-g960-1 ym-push-8 ym-gl"><div class="ym-gbox">60</div></div>
88
+ </div>
89
+ <div class="ym-grid linearize-level-1">
90
+ <div class="ym-g960-1 ym-push-9 ym-gl"><div class="ym-gbox">60</div></div>
91
+ </div>
92
+ <div class="ym-grid linearize-level-1">
93
+ <div class="ym-g960-1 ym-push-10 ym-gl"><div class="ym-gbox">60</div></div>
94
+ </div>
95
+ <div class="ym-grid linearize-level-1">
96
+ <div class="ym-g960-1 ym-push-11 ym-gl"><div class="ym-gbox">60</div></div>
97
+ </div>
98
+ <div class="ym-grid linearize-level-1">
99
+ <div class="ym-g960-3 ym-gl">
100
+ <div class="ym-gbox">220</div>
101
+ </div>
102
+ <div class="ym-g960-3 ym-gl">
103
+ <div class="ym-gbox">220</div>
104
+ </div>
105
+ <div class="ym-g960-1 ym-gl">
106
+ <div class="ym-gbox">60</div>
107
+ </div>
108
+ <div class="ym-g960-5 ym-gl">
109
+ <div class="ym-gbox">380</div>
110
+ </div>
111
+ </div>
112
+ <div class="ym-grid linearize-level-1">
113
+ <div class="ym-g960-1 ym-gl">
114
+ <div class="ym-gbox">60</div>
115
+ </div>
116
+ <div class="ym-g960-5 ym-gl">
117
+ <div class="ym-gbox">380</div>
118
+ </div>
119
+ <div class="ym-g960-3 ym-gl">
120
+ <div class="ym-gbox">220</div>
121
+ </div>
122
+ <div class="ym-g960-3 ym-gl">
123
+ <div class="ym-gbox">220</div>
124
+ </div>
125
+ </div>
126
+ </div>
127
+ </main>
128
+ </body>
129
+ </html>
@@ -0,0 +1,124 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8"/>
5
+ <title>Demo: Flexible Column Layout &ndash; YAML CSS Framework</title>
6
+
7
+ <!-- Mobile viewport optimisation -->
8
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
9
+
10
+ <!-- (en) Add your meta data here -->
11
+ <!-- (de) Fuegen Sie hier ihre Meta-Daten ein -->
12
+
13
+ <link href="./css/flexible-columns.css" rel="stylesheet" type="text/css"/>
14
+ <!--[if lte IE 7]>
15
+ <link href="../yaml/core/iehacks.css" rel="stylesheet" type="text/css" />
16
+ <![endif]-->
17
+
18
+ <!--[if lt IE 9]>
19
+ <script src="../lib/html5shiv/html5shiv.js"></script>
20
+ <![endif]-->
21
+ </head>
22
+ <body>
23
+ <ul class="ym-skiplinks">
24
+ <li><a class="ym-skip" href="#nav">Skip to navigation (Press Enter)</a></li>
25
+ <li><a class="ym-skip" href="#main">Skip to main content (Press Enter)</a></li>
26
+ </ul>
27
+
28
+ <div class="ym-wrapper">
29
+ <div class="ym-wbox">
30
+ <header>
31
+ <h1>Project Name</h1>
32
+ </header>
33
+ <nav id="nav">
34
+ <div class="ym-hlist" >
35
+ <ul>
36
+ <li class="active"><strong>Active</strong></li>
37
+ <li><a href="#">Link</a></li>
38
+ <li><a href="#">Link</a></li>
39
+ <li><a href="#">Link</a></li>
40
+ <li><a href="#">Link</a></li>
41
+ </ul>
42
+ <form class="ym-searchform">
43
+ <input class="ym-searchfield" type="search" placeholder="Search..." />
44
+ <input class="ym-searchbutton" type="submit" value="Search" />
45
+ </form>
46
+ </div>
47
+ </nav>
48
+ <main>
49
+ <div class="ym-column linearize-level-1">
50
+ <div class="ym-col1">
51
+ <div class="ym-cbox">
52
+ <section class="box info">
53
+ <h2>Main Content</h2>
54
+ <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
55
+ <a class="ym-button ym-next" href="#">Read More</a>
56
+ </section>
57
+ <section class="ym-grid linearize-level-2">
58
+ <article class="ym-g50 ym-gl">
59
+ <div class="ym-gbox">
60
+ <!-- content -->
61
+ <h3>Heading</h3>
62
+ <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</p>
63
+ </div>
64
+ </article>
65
+ <article class="ym-g50 ym-gr">
66
+ <div class="ym-gbox">
67
+ <!-- content -->
68
+ <h3>Heading</h3>
69
+ <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</p>
70
+ </div>
71
+ </article>
72
+ </section>
73
+ <section class="ym-grid linearize-level-2">
74
+ <article class="ym-g50 ym-gl">
75
+ <div class="ym-gbox">
76
+ <!-- content -->
77
+ <h3>Heading</h3>
78
+ <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</p>
79
+ </div>
80
+ </article>
81
+ <article class="ym-g50 ym-gr">
82
+ <div class="ym-gbox">
83
+ <!-- content -->
84
+ <h3>Heading</h3>
85
+ <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr.</p>
86
+ </div>
87
+ </article>
88
+ </section>
89
+ </div>
90
+ </div>
91
+ <aside class="ym-col3">
92
+ <div class="ym-cbox">
93
+ <h2>Sidebar</h2>
94
+ <h4>Advertisement</h4>
95
+ <div class="ym-contain-dt">
96
+ <img src="http://dummyimage.com/128x128/cccccc/fff.png" alt="ads" class="float-left bordered"/>
97
+ <img src="http://dummyimage.com/128x128/cccccc/fff.png" alt="ads" class="float-left bordered"/>
98
+ <img src="http://dummyimage.com/128x128/cccccc/fff.png" alt="ads" class="float-left bordered"/>
99
+ <img src="http://dummyimage.com/128x128/cccccc/fff.png" alt="ads" class="float-left bordered"/>
100
+ <img src="http://dummyimage.com/128x128/cccccc/fff.png" alt="ads" class="float-left bordered"/>
101
+ <img src="http://dummyimage.com/128x128/cccccc/fff.png" alt="ads" class="float-left bordered"/>
102
+ </div>
103
+ <h4>Widget</h4>
104
+ <ul>
105
+ <li>Item 1</li>
106
+ <li>Item 2</li>
107
+ <li>Item 3</li>
108
+ <li>Item 4</li>
109
+ <li>Item 5</li>
110
+ </ul>
111
+ </div>
112
+ </aside>
113
+ </div>
114
+ </main>
115
+ <footer>
116
+ <p>© Company 2012 &ndash; Layout based on <a href="http://www.yaml.de">YAML</a></p>
117
+ </footer>
118
+ </div>
119
+ </div>
120
+
121
+ <!-- full skip link functionality in webkit browsers -->
122
+ <script src="../yaml/core/js/yaml-focusfix.js"></script>
123
+ </body>
124
+ </html>