yamlcss 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +12 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +56 -0
- data/LICENSE.txt +59 -0
- data/Rakefile +23 -0
- data/Readme.md +120 -0
- data/VERSIONS.md +5 -0
- data/bin/yamlcss +6 -0
- data/lib/yamlcss.rb +22 -0
- data/lib/yamlcss/engine.rb +7 -0
- data/lib/yamlcss/generator.rb +84 -0
- data/lib/yamlcss/version.rb +4 -0
- data/vendor/assets/stylesheets/_iehacks.scss +3 -0
- data/vendor/assets/stylesheets/_yaml.scss +3 -0
- data/yaml/Gruntfile.js +199 -0
- data/yaml/License.txt +36 -0
- data/yaml/Readme.md +64 -0
- data/yaml/changelog.md +307 -0
- data/yaml/config.rb +25 -0
- data/yaml/demos/css/custom-grids.css +27 -0
- data/yaml/demos/css/flexible-columns.css +26 -0
- data/yaml/demos/css/flexible-grids.css +26 -0
- data/yaml/demos/css/rtl-support.css +31 -0
- data/yaml/demos/css/screen/screen-custom-grids.css +41 -0
- data/yaml/demos/css/screen/screen-rtl-support.css +182 -0
- data/yaml/demos/custom-grid.html +129 -0
- data/yaml/demos/flexible-columns.html +124 -0
- data/yaml/demos/flexible-grid.html +142 -0
- data/yaml/demos/rtl-support.html +127 -0
- data/yaml/docs/assets/css/icons/external_link.png +0 -0
- data/yaml/docs/assets/css/icons/hcalendar.png +0 -0
- data/yaml/docs/assets/css/icons/hcard.png +0 -0
- data/yaml/docs/assets/css/icons/icon-geo.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hatom.png +0 -0
- data/yaml/docs/assets/css/icons/icon-haudio.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hcalendar-add.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hcalendar-download.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hcalendar.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hcard-add.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hcard-download.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hcard.png +0 -0
- data/yaml/docs/assets/css/icons/icon-hresume.png +0 -0
- data/yaml/docs/assets/css/icons/icon-rel-tag.png +0 -0
- data/yaml/docs/assets/css/icons/icon-xfn.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-child.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-colleague-met.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-colleague.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-friend-met.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-friend.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-me.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-parent.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-small.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-spouse.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-sweetheart-met.png +0 -0
- data/yaml/docs/assets/css/icons/xfn/xfn-sweetheart.png +0 -0
- data/yaml/docs/assets/css/layout-min.css +3 -0
- data/yaml/docs/assets/css/layout.css +3262 -0
- data/yaml/docs/assets/images/demo-custom-grid.png +0 -0
- data/yaml/docs/assets/images/demo-flex-column.png +0 -0
- data/yaml/docs/assets/images/demo-flex-grid.png +0 -0
- data/yaml/docs/assets/images/demo-rtl.png +0 -0
- data/yaml/docs/assets/images/yaml-solo-transparent-small.png +0 -0
- data/yaml/docs/assets/images/yaml-solo-transparent.png +0 -0
- data/yaml/docs/assets/js/domscript.js +209 -0
- data/yaml/docs/assets/js/jquery.gridbuilder.js +131 -0
- data/yaml/docs/assets/js/snippet/ZeroClipboard.swf +0 -0
- data/yaml/docs/assets/js/snippet/jquery.snippet.css +116 -0
- data/yaml/docs/assets/js/snippet/jquery.snippet.js +782 -0
- data/yaml/docs/assets/js/snippet/jquery.snippet.min.css +40 -0
- data/yaml/docs/assets/js/snippet/jquery.snippet.min.js +12 -0
- data/yaml/docs/assets/js/snippet/snippet.css +296 -0
- data/yaml/docs/index.html +3845 -0
- data/yaml/lib/html5shiv/html5shiv-printshiv.js +11 -0
- data/yaml/lib/html5shiv/html5shiv.js +8 -0
- data/yaml/lib/jquery-1.10.1.min.js +6 -0
- data/yaml/lib/jquery-migrate-1.2.1.min.js +2 -0
- data/yaml/package.json +20 -0
- data/yaml/sass/docs/assets/css/_screen.scss +786 -0
- data/yaml/sass/docs/assets/css/layout.scss +28 -0
- data/yaml/sass/static-build/add-ons/accessible-tabs/tabs.scss +15 -0
- data/yaml/sass/static-build/add-ons/microformats/microformats.scss +18 -0
- data/yaml/sass/static-build/add-ons/rtl-support/core/base-rtl.scss +20 -0
- data/yaml/sass/static-build/add-ons/rtl-support/forms/gray-theme-rtl.scss +16 -0
- data/yaml/sass/static-build/add-ons/rtl-support/navigation/hlist-rtl.scss +18 -0
- data/yaml/sass/static-build/add-ons/rtl-support/navigation/vlist-rtl.scss +18 -0
- data/yaml/sass/static-build/add-ons/rtl-support/screen/typography-rtl.scss +16 -0
- data/yaml/sass/static-build/core/base.scss +19 -0
- data/yaml/sass/static-build/core/iehacks.scss +19 -0
- data/yaml/sass/static-build/forms/gray-theme.scss +14 -0
- data/yaml/sass/static-build/navigation/hlist.scss +16 -0
- data/yaml/sass/static-build/navigation/vlist.scss +16 -0
- data/yaml/sass/static-build/print/print.scss +15 -0
- data/yaml/sass/static-build/screen/grid-960gs-12.scss +15 -0
- data/yaml/sass/static-build/screen/grid-960gs-16.scss +15 -0
- data/yaml/sass/static-build/screen/grid-blueprint.scss +15 -0
- data/yaml/sass/static-build/screen/grid-fluid-12col.scss +15 -0
- data/yaml/sass/static-build/screen/screen-FULLPAGE-layout.scss +15 -0
- data/yaml/sass/static-build/screen/screen-PAGE-layout.scss +15 -0
- data/yaml/sass/static-build/screen/typography.scss +16 -0
- data/yaml/sass/yaml-sass/_yaml-var-globals.scss +39 -0
- data/yaml/sass/yaml-sass/_yaml-var-typography.scss +80 -0
- data/yaml/sass/yaml-sass/add-ons/accessible-tabs/_tabs.scss +139 -0
- data/yaml/sass/yaml-sass/add-ons/accessible-tabs/jquery.tabs.js +266 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/_microformats.scss +179 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/external_link.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/hcalendar.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/hcard.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-geo.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hatom.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-haudio.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcalendar-add.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcalendar-download.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcalendar.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcard-add.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcard-download.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hcard.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-hresume.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-rel-tag.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/icon-xfn.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-child.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-colleague-met.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-colleague.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-friend-met.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-friend.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-me.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-parent.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-small.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-spouse.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-sweetheart-met.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/microformats/icons/xfn/xfn-sweetheart.png +0 -0
- data/yaml/sass/yaml-sass/add-ons/rtl-support/core/_base-rtl.scss +177 -0
- data/yaml/sass/yaml-sass/add-ons/rtl-support/forms/_gray-theme-rtl.scss +34 -0
- data/yaml/sass/yaml-sass/add-ons/rtl-support/navigation/_hlist-rtl.scss +42 -0
- data/yaml/sass/yaml-sass/add-ons/rtl-support/navigation/_vlist-rtl.scss +45 -0
- data/yaml/sass/yaml-sass/add-ons/rtl-support/screen/_typography-rtl.scss +30 -0
- data/yaml/sass/yaml-sass/add-ons/syncheight/jquery.syncheight.js +112 -0
- data/yaml/sass/yaml-sass/core/_base.scss +15 -0
- data/yaml/sass/yaml-sass/core/_iehacks.scss +426 -0
- data/yaml/sass/yaml-sass/core/base-modules/_accessibility.scss +48 -0
- data/yaml/sass/yaml-sass/core/base-modules/_columns.scss +27 -0
- data/yaml/sass/yaml-sass/core/base-modules/_float-handling.scss +32 -0
- data/yaml/sass/yaml-sass/core/base-modules/_forms-core.scss +296 -0
- data/yaml/sass/yaml-sass/core/base-modules/_grids-core.scss +55 -0
- data/yaml/sass/yaml-sass/core/base-modules/_normalization.scss +165 -0
- data/yaml/sass/yaml-sass/core/base-modules/_print-core.scss +36 -0
- data/yaml/sass/yaml-sass/core/js/yaml-focusfix.js +70 -0
- data/yaml/sass/yaml-sass/forms/_gray-theme.scss +475 -0
- data/yaml/sass/yaml-sass/mixins/_yaml-mixins-core.scss +248 -0
- data/yaml/sass/yaml-sass/navigation/_hlist.scss +106 -0
- data/yaml/sass/yaml-sass/navigation/_vlist.scss +129 -0
- data/yaml/sass/yaml-sass/print/_print.scss +61 -0
- data/yaml/sass/yaml-sass/screen/_grid-960gs-12.scss +4 -0
- data/yaml/sass/yaml-sass/screen/_grid-960gs-16.scss +4 -0
- data/yaml/sass/yaml-sass/screen/_grid-blueprint.scss +4 -0
- data/yaml/sass/yaml-sass/screen/_grid-fluid-12col.scss +4 -0
- data/yaml/sass/yaml-sass/screen/_screen-FULLPAGE-layout.scss +171 -0
- data/yaml/sass/yaml-sass/screen/_screen-PAGE-layout.scss +165 -0
- data/yaml/sass/yaml-sass/screen/_typography.scss +485 -0
- data/yaml/yaml/add-ons/accessible-tabs/jquery.tabs.js +266 -0
- data/yaml/yaml/add-ons/accessible-tabs/tabs.css +136 -0
- data/yaml/yaml/add-ons/microformats/icons/external_link.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/hcalendar.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/hcard.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-geo.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hatom.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-haudio.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hcalendar-add.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hcalendar-download.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hcalendar.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hcard-add.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hcard-download.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hcard.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-hresume.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-rel-tag.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/icon-xfn.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-child.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-colleague-met.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-colleague.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-friend-met.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-friend.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-me.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-parent.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-small.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-spouse.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-sweetheart-met.png +0 -0
- data/yaml/yaml/add-ons/microformats/icons/xfn/xfn-sweetheart.png +0 -0
- data/yaml/yaml/add-ons/microformats/microformats.css +167 -0
- data/yaml/yaml/add-ons/rtl-support/core/base-rtl.css +167 -0
- data/yaml/yaml/add-ons/rtl-support/core/base-rtl.min.css +3 -0
- data/yaml/yaml/add-ons/rtl-support/forms/gray-theme-rtl.css +44 -0
- data/yaml/yaml/add-ons/rtl-support/navigation/hlist-rtl.css +48 -0
- data/yaml/yaml/add-ons/rtl-support/navigation/vlist-rtl.css +54 -0
- data/yaml/yaml/add-ons/rtl-support/screen/typography-rtl.css +38 -0
- data/yaml/yaml/add-ons/syncheight/jquery.syncheight.js +112 -0
- data/yaml/yaml/core/base.css +705 -0
- data/yaml/yaml/core/base.min.css +3 -0
- data/yaml/yaml/core/iehacks.css +468 -0
- data/yaml/yaml/core/iehacks.min.css +3 -0
- data/yaml/yaml/core/js/yaml-focusfix.js +70 -0
- data/yaml/yaml/forms/gray-theme.css +676 -0
- data/yaml/yaml/navigation/hlist.css +109 -0
- data/yaml/yaml/navigation/vlist.css +144 -0
- data/yaml/yaml/print/print.css +42 -0
- data/yaml/yaml/screen/grid-960gs-12.css +164 -0
- data/yaml/yaml/screen/grid-960gs-16.css +212 -0
- data/yaml/yaml/screen/grid-blueprint.css +308 -0
- data/yaml/yaml/screen/grid-fluid-12col.css +164 -0
- data/yaml/yaml/screen/screen-FULLPAGE-layout.css +184 -0
- data/yaml/yaml/screen/screen-PAGE-layout.css +196 -0
- data/yaml/yaml/screen/typography.css +486 -0
- data/yamlcss.gemspec +30 -0
- metadata +314 -0
@@ -0,0 +1,248 @@
|
|
1
|
+
//
|
2
|
+
// CSS3 Mixins
|
3
|
+
//
|
4
|
+
|
5
|
+
// BOX SIZING
|
6
|
+
@mixin ym-box-sizing($type: border-box) {
|
7
|
+
-webkit-box-sizing: $type;
|
8
|
+
-moz-box-sizing: $type;
|
9
|
+
box-sizing: $type;
|
10
|
+
}
|
11
|
+
|
12
|
+
// BOX SHADOW
|
13
|
+
@mixin ym-box-shadow($x: 1px, $y: 1px, $blur: 5px, $color: rgba(0,0,0,.5), $inset: false) {
|
14
|
+
|
15
|
+
@if $inset{
|
16
|
+
-webkit-box-shadow: inset $x $y $blur $color;
|
17
|
+
box-shadow: inset $x $y $blur $color;
|
18
|
+
}
|
19
|
+
@else {
|
20
|
+
-webkit-box-shadow: $x $y $blur $color;
|
21
|
+
box-shadow: $x $y $blur $color;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
// Linear Gradient with two colors for modern browsers without the corresponding IE-filter
|
26
|
+
|
27
|
+
// $direction ==> written in the standard-way: to bottom, to left ...
|
28
|
+
// $solid-color ==> replacement color for the one device that cannot show gradients or IE-filters
|
29
|
+
// $start-color ==> which color to start with
|
30
|
+
// $end-color ==> which color to end with
|
31
|
+
|
32
|
+
// $output ==> defines the output-type of the code
|
33
|
+
// css3 ==> only CSS3-gradients
|
34
|
+
// oldie ==> only IE-filters for oldIE (versions before 9)
|
35
|
+
// both ==> both CSS3 and oldIE versions are printed
|
36
|
+
|
37
|
+
// $fallback ==> fallback color code for browsers that don't support gradients (oldIE)
|
38
|
+
|
39
|
+
// As there is a default direction there is no use for a fourth if-case.
|
40
|
+
|
41
|
+
@mixin ym-linear-gradient($direction: "to bottom", $start-color: #eee, $end-color: #ccc, $output: both, $fallback: $start-color) {
|
42
|
+
$old-direction: top;
|
43
|
+
$very-old-direction:"left top, left bottom";
|
44
|
+
$ie-direction: 0;
|
45
|
+
|
46
|
+
@if $direction == "to right" {
|
47
|
+
$very-old-direction: "left top, right top";
|
48
|
+
$old-direction: left;
|
49
|
+
$ie-direction: 1;
|
50
|
+
}
|
51
|
+
|
52
|
+
@if $output != "oldie" {
|
53
|
+
background-image: -webkit-gradient(linear, #{$very-old-direction}, color-stop(0%,$start-color), color-stop(100%,$end-color));
|
54
|
+
background-image: -webkit-linear-gradient($old-direction, $start-color,$end-color);
|
55
|
+
background-image: -moz-linear-gradient($old-direction, $start-color,$end-color);
|
56
|
+
background-image: -ms-linear-gradient($old-direction, $start-color,$end-color);
|
57
|
+
background-image: unquote("linear-gradient(#{$direction}, #{$start-color},#{$end-color})");
|
58
|
+
}
|
59
|
+
|
60
|
+
@if $output != "css3" {
|
61
|
+
background-color: $fallback;
|
62
|
+
$iecolor1: ie-hex-str($start-color);
|
63
|
+
$iecolor2: ie-hex-str($end-color);
|
64
|
+
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=#{$ie-direction}, startColorstr='#{$iecolor1}', endColorstr='#{$iecolor2}');
|
65
|
+
zoom: 1;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
//
|
70
|
+
// Progessive Linearization
|
71
|
+
//
|
72
|
+
@mixin ym-linearize-grids {
|
73
|
+
&,
|
74
|
+
& > [class*="ym-g"] {
|
75
|
+
/* linearization for grid module */
|
76
|
+
display: block;
|
77
|
+
float: none;
|
78
|
+
padding: 0;
|
79
|
+
margin: 0;
|
80
|
+
width: 100% !important;
|
81
|
+
}
|
82
|
+
|
83
|
+
& > [class*="ym-g"] > [class*="ym-gbox"] {
|
84
|
+
/* reset defined gutter values */
|
85
|
+
margin: 0;
|
86
|
+
padding: 0;
|
87
|
+
/* optional for containing floats */
|
88
|
+
overflow: hidden;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
@mixin ym-linearize-columns {
|
93
|
+
&,
|
94
|
+
& > [class*="ym-c"] {
|
95
|
+
/* linearization for column module */
|
96
|
+
display: block;
|
97
|
+
float: none;
|
98
|
+
padding: 0;
|
99
|
+
margin: 0;
|
100
|
+
width: auto !important;
|
101
|
+
}
|
102
|
+
|
103
|
+
& > [class*="ym-c"] > [class*="ym-cbox"] {
|
104
|
+
/* reset defined gutter values */
|
105
|
+
margin: 0 ;
|
106
|
+
padding: 0;
|
107
|
+
/* optional for containing floats */
|
108
|
+
overflow: hidden;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
@mixin ym-linearize-grids-and-columns {
|
113
|
+
&,
|
114
|
+
& > [class*="ym-c"],
|
115
|
+
& > [class*="ym-g"] {
|
116
|
+
/* linearization for grids and columns module */
|
117
|
+
display: block;
|
118
|
+
float: none;
|
119
|
+
padding: 0;
|
120
|
+
margin: 0;
|
121
|
+
width: auto !important;
|
122
|
+
}
|
123
|
+
|
124
|
+
& > [class*="ym-c"] > [class*="ym-cbox"],
|
125
|
+
& > [class*="ym-g"] > [class*="ym-gbox"] {
|
126
|
+
/* reset defined gutter values */
|
127
|
+
margin: 0;
|
128
|
+
padding: 0;
|
129
|
+
/* optional for containing floats */
|
130
|
+
overflow: hidden;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
@mixin ym-linearize-forms {
|
135
|
+
// linearization for form module
|
136
|
+
& label {
|
137
|
+
float:none;
|
138
|
+
}
|
139
|
+
|
140
|
+
& .ym-label,
|
141
|
+
& .ym-message,
|
142
|
+
& input,
|
143
|
+
& button,
|
144
|
+
& textarea,
|
145
|
+
& select {
|
146
|
+
display: block;
|
147
|
+
float: none;
|
148
|
+
position: static;
|
149
|
+
width: 100% !important;
|
150
|
+
margin-left: 0 !important;
|
151
|
+
}
|
152
|
+
|
153
|
+
// reset grids
|
154
|
+
& .ym-fbox-wrap,
|
155
|
+
& .ym-fbox-wrap [class*="ym-g"] {
|
156
|
+
display: block;
|
157
|
+
float: none;
|
158
|
+
width: 100% !important;
|
159
|
+
margin: 0 !important;
|
160
|
+
padding: 0 !important;
|
161
|
+
}
|
162
|
+
|
163
|
+
// reset columnar settings
|
164
|
+
& input[type="checkbox"],
|
165
|
+
& input[type="radio"],
|
166
|
+
& input[type="image"] {
|
167
|
+
margin-left: 0 !important;
|
168
|
+
width: auto !important;
|
169
|
+
display: inline;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
//
|
174
|
+
// Tools
|
175
|
+
//
|
176
|
+
@mixin ym-clearfix {
|
177
|
+
&:before {
|
178
|
+
content:"";
|
179
|
+
display:table;
|
180
|
+
}
|
181
|
+
|
182
|
+
&:after {
|
183
|
+
clear:both;
|
184
|
+
content:".";
|
185
|
+
display:block;
|
186
|
+
font-size:0;
|
187
|
+
height:0;
|
188
|
+
visibility:hidden;
|
189
|
+
}
|
190
|
+
|
191
|
+
// IE < 8
|
192
|
+
zoom: 1;
|
193
|
+
}
|
194
|
+
|
195
|
+
// CONTAINING FLOATS
|
196
|
+
@mixin ym-contain($type: "dt") {
|
197
|
+
|
198
|
+
@if $type == "oh" {
|
199
|
+
display: block;
|
200
|
+
overflow: hidden;
|
201
|
+
width: 100%;
|
202
|
+
}
|
203
|
+
|
204
|
+
@if $type == "fl" {
|
205
|
+
float: left;
|
206
|
+
width: 100%;
|
207
|
+
}
|
208
|
+
|
209
|
+
@if $type == "dt" {
|
210
|
+
display: table;
|
211
|
+
table-layout: fixed;
|
212
|
+
width: 100%;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
//
|
217
|
+
// YAML4 Custom Grid Generator
|
218
|
+
// Generates CSS for custom grids, based on YAMLs grid-module
|
219
|
+
//
|
220
|
+
@mixin ym-custom-grid($prefix, $columns, $width, $margin-left, $margin-right) {
|
221
|
+
|
222
|
+
$column_width : $width / $columns;
|
223
|
+
|
224
|
+
.ym-wrapper {
|
225
|
+
width: $width;
|
226
|
+
margin: 0 auto;
|
227
|
+
}
|
228
|
+
.ym-gbox {
|
229
|
+
padding-left: 0;
|
230
|
+
padding-right: 0;
|
231
|
+
margin-left: $margin-left;
|
232
|
+
margin-right: $margin-right;
|
233
|
+
}
|
234
|
+
[class*="ym-push-"],
|
235
|
+
[class*="ym-pull-"] { position:relative; }
|
236
|
+
|
237
|
+
@for $i from 1 through $columns {
|
238
|
+
.ym-#{$prefix}-#{$i} { width: $column_width * $i; }
|
239
|
+
}
|
240
|
+
|
241
|
+
@for $i from 1 through $columns - 1 {
|
242
|
+
.ym-push-#{$i} { left: $column_width * $i; }
|
243
|
+
}
|
244
|
+
|
245
|
+
@for $i from 1 through $columns - 1 {
|
246
|
+
.ym-pull-#{$i} { left: -$column_width * $i; }
|
247
|
+
}
|
248
|
+
}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
@import "../yaml-var-globals";
|
2
|
+
@import "../mixins/yaml-mixins-core";
|
3
|
+
|
4
|
+
@media all {
|
5
|
+
.ym-hlist {
|
6
|
+
/* (en) containing floats in IE */
|
7
|
+
/* (de) Einfassen der Floats im IE */
|
8
|
+
width:100%;
|
9
|
+
overflow:hidden;
|
10
|
+
position:relative; //(en|de) Bugfix:IE - collapsing horizontal margins
|
11
|
+
line-height:1em;
|
12
|
+
background: #222;
|
13
|
+
|
14
|
+
ul {
|
15
|
+
margin:0;
|
16
|
+
padding: 0.5em 1.5em;
|
17
|
+
display:inline; // (en|de) Bugfix:IE - Doubled Float Margin Bug
|
18
|
+
float:left; // LTR
|
19
|
+
|
20
|
+
li {
|
21
|
+
display:inline; // (en|de) Bugfix:IE - Doubled Float Margin Bug
|
22
|
+
float:left; // LTR
|
23
|
+
font-size:1.0em;
|
24
|
+
line-height:1;
|
25
|
+
list-style-type:none;
|
26
|
+
margin: 0 .25em 0 0;
|
27
|
+
padding:0;
|
28
|
+
|
29
|
+
a, strong {
|
30
|
+
background:transparent;
|
31
|
+
color:#aaa;
|
32
|
+
display:block;
|
33
|
+
font-size:1em;
|
34
|
+
line-height: 2em;
|
35
|
+
padding: 0 0.5em;
|
36
|
+
font-weight:normal;
|
37
|
+
text-decoration:none;
|
38
|
+
text-shadow: 0 1px 1px rgba(0,0,0,.5);
|
39
|
+
width:auto;
|
40
|
+
}
|
41
|
+
|
42
|
+
a:focus,
|
43
|
+
a:hover,
|
44
|
+
a:active {
|
45
|
+
color: #ccc;
|
46
|
+
background:#666;
|
47
|
+
background: rgba(255,255,255,.25);
|
48
|
+
border-radius: 0.2em;
|
49
|
+
text-decoration:none;
|
50
|
+
outline: 0 none;
|
51
|
+
}
|
52
|
+
|
53
|
+
&.active {
|
54
|
+
background:#666;
|
55
|
+
background: rgba(255,255,255,.3);
|
56
|
+
border-radius: 0.2em;
|
57
|
+
color: #fff;
|
58
|
+
|
59
|
+
strong,
|
60
|
+
a:focus,
|
61
|
+
a:hover,
|
62
|
+
a:active {
|
63
|
+
background:transparent;
|
64
|
+
color:#fff;
|
65
|
+
text-decoration:none;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
/* ------- search form -------- */
|
73
|
+
.ym-searchform {
|
74
|
+
float:right;
|
75
|
+
display: inline;
|
76
|
+
line-height: 2;
|
77
|
+
padding: 0.5em 1.5em;
|
78
|
+
|
79
|
+
.ym-searchfield {
|
80
|
+
-webkit-appearance: none;
|
81
|
+
background: #fff;
|
82
|
+
line-height: 1;
|
83
|
+
padding: 0.25em;
|
84
|
+
width: 12em;
|
85
|
+
border: solid 1px #888;
|
86
|
+
border: solid 1px rgba(255,255,255,.1);
|
87
|
+
outline: none;
|
88
|
+
@include ym-box-shadow(0,1px,3px,rgba(0,0,0,.2),inset);
|
89
|
+
}
|
90
|
+
|
91
|
+
.ym-searchbutton {
|
92
|
+
-webkit-appearance: none;
|
93
|
+
background: #5f5f5f;
|
94
|
+
background: rgba(255,255,255,.2);
|
95
|
+
border-radius: .2em;
|
96
|
+
color: #fff;
|
97
|
+
cursor: pointer;
|
98
|
+
display: inline-block;
|
99
|
+
font-size: 1em;
|
100
|
+
line-height: 1.25;
|
101
|
+
padding: 0.25em;
|
102
|
+
border: solid 1px transparent;
|
103
|
+
text-shadow: 0 1px 1px rgba(0,0,0,.5);
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
@import "../_yaml-var-globals";
|
2
|
+
|
3
|
+
@media all {
|
4
|
+
|
5
|
+
/* 4 navigation levels defined */
|
6
|
+
.ym-vlist {
|
7
|
+
margin:0 0 1.5em 0;
|
8
|
+
list-style-type:none;
|
9
|
+
background: transparent;
|
10
|
+
border: 0 none;
|
11
|
+
|
12
|
+
ul {
|
13
|
+
list-style-type:none;
|
14
|
+
margin:0;
|
15
|
+
padding:0;
|
16
|
+
width:100%;
|
17
|
+
overflow:hidden;
|
18
|
+
border-top:2px #ddd solid;
|
19
|
+
border-bottom:2px #ddd solid;
|
20
|
+
}
|
21
|
+
|
22
|
+
ul ul {
|
23
|
+
border: 0 none;
|
24
|
+
}
|
25
|
+
|
26
|
+
li {
|
27
|
+
float:left; // LTR
|
28
|
+
width:100%;
|
29
|
+
margin:0;
|
30
|
+
padding:0;
|
31
|
+
background-color:#fff;
|
32
|
+
}
|
33
|
+
|
34
|
+
a,
|
35
|
+
strong,
|
36
|
+
span {
|
37
|
+
display:block;
|
38
|
+
padding:3px 0px 3px 10%;
|
39
|
+
text-decoration:none;
|
40
|
+
border-bottom:1px #ddd solid;
|
41
|
+
}
|
42
|
+
|
43
|
+
a,
|
44
|
+
a:visited {
|
45
|
+
color:#444;
|
46
|
+
}
|
47
|
+
|
48
|
+
li span {
|
49
|
+
display:block;
|
50
|
+
font-weight:bold;
|
51
|
+
border-bottom:1px #ddd solid;
|
52
|
+
}
|
53
|
+
|
54
|
+
// active list element
|
55
|
+
li.active {
|
56
|
+
color:#fff;
|
57
|
+
background-color:#444;
|
58
|
+
strong {
|
59
|
+
font-weight:bold;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Level 1
|
64
|
+
li {
|
65
|
+
a,
|
66
|
+
strong,
|
67
|
+
span { width:90%; padding-left:10%; } // LTR
|
68
|
+
|
69
|
+
a:focus,
|
70
|
+
a:hover,
|
71
|
+
a:active { background-color:#888; color:#fff; outline: 0 none; }
|
72
|
+
}
|
73
|
+
|
74
|
+
// Level 2
|
75
|
+
li ul li {
|
76
|
+
a,
|
77
|
+
strong,
|
78
|
+
span { width:80%; padding-left:20%; } // LTR
|
79
|
+
|
80
|
+
a,
|
81
|
+
a:visited { background-color:#f8f8f8; color:#333; }
|
82
|
+
a:focus,
|
83
|
+
a:hover,
|
84
|
+
a:active { background-color:#888; color:#fff; }
|
85
|
+
}
|
86
|
+
|
87
|
+
// Level 3
|
88
|
+
li ul li ul li {
|
89
|
+
a,
|
90
|
+
strong,
|
91
|
+
span { width:70%; padding-left:30%; } // LTR
|
92
|
+
|
93
|
+
a,
|
94
|
+
a:visited{ background-color:#f0f0f0; color:#222; }
|
95
|
+
a:focus,
|
96
|
+
a:hover,
|
97
|
+
a:active { background-color:#888; color:#fff; }
|
98
|
+
}
|
99
|
+
|
100
|
+
// Level 4
|
101
|
+
li ul li ul li ul li {
|
102
|
+
a,
|
103
|
+
strong,
|
104
|
+
span { width:60%; padding-left:40%; } // LTR
|
105
|
+
|
106
|
+
a,
|
107
|
+
a:visited { background-color:#e8e8e8; color:#111; }
|
108
|
+
a:focus,
|
109
|
+
a:hover,
|
110
|
+
a:active { background-color:#888; color:#fff; }
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
/* title */
|
115
|
+
.ym-vtitle {
|
116
|
+
font-weight:bold;
|
117
|
+
font-size:100%;
|
118
|
+
width:90%;
|
119
|
+
padding:3px 0px 3px 10%; // LTR
|
120
|
+
margin:0;
|
121
|
+
color:#444;
|
122
|
+
background-color:#fff;
|
123
|
+
border-top:2px #ddd solid;
|
124
|
+
|
125
|
+
& + ul {
|
126
|
+
border-top:4px #888 solid;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|