compass-vikingR-template 1.2.4

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 (53) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +97 -0
  3. data/lib/compass-vikingR-template.rb +60 -0
  4. data/lib/config.rb +8 -0
  5. data/templates/project/css/dev.css +3 -0
  6. data/templates/project/files/compass_watch.bat +1 -0
  7. data/templates/project/files/readme.txt +31 -0
  8. data/templates/project/files/screenshot.jpg +0 -0
  9. data/templates/project/ie-old/favicon.ico +0 -0
  10. data/templates/project/ie-old/images/as.jpg +0 -0
  11. data/templates/project/ie-old/images/bg_span_wol.gif +0 -0
  12. data/templates/project/ie-old/images/f.jpg +0 -0
  13. data/templates/project/ie-old/images/gc.jpg +0 -0
  14. data/templates/project/ie-old/images/h.jpg +0 -0
  15. data/templates/project/ie-old/images/ie.jpg +0 -0
  16. data/templates/project/ie-old/images/mf.jpg +0 -0
  17. data/templates/project/ie-old/images/op.jpg +0 -0
  18. data/templates/project/ie-old/images/td1.jpg +0 -0
  19. data/templates/project/ie-old/images/td2.jpg +0 -0
  20. data/templates/project/ie-old/images/td3.jpg +0 -0
  21. data/templates/project/ie-old/index.html +175 -0
  22. data/templates/project/images/favicon.png +0 -0
  23. data/templates/project/images/loading.gif +0 -0
  24. data/templates/project/images/noimg.jpg +0 -0
  25. data/templates/project/index.html +29 -0
  26. data/templates/project/index.php +79 -0
  27. data/templates/project/js/example.js +3 -0
  28. data/templates/project/js/head.min.js +9 -0
  29. data/templates/project/js/init.js +49 -0
  30. data/templates/project/js/ph.js +33 -0
  31. data/templates/project/js/ph.min.js +2 -0
  32. data/templates/project/js/rform.js +228 -0
  33. data/templates/project/js/scripts.js +3 -0
  34. data/templates/project/manifest.rb +78 -0
  35. data/templates/project/sass/_all.scss +1 -0
  36. data/templates/project/sass/_browsers.scss +49 -0
  37. data/templates/project/sass/_buttons.scss +54 -0
  38. data/templates/project/sass/_content.scss +7 -0
  39. data/templates/project/sass/_default.scss +252 -0
  40. data/templates/project/sass/_footer.scss +5 -0
  41. data/templates/project/sass/_formstyle.scss +130 -0
  42. data/templates/project/sass/_global.scss +38 -0
  43. data/templates/project/sass/_header.scss +5 -0
  44. data/templates/project/sass/_icons.scss +40 -0
  45. data/templates/project/sass/_layout.scss +3 -0
  46. data/templates/project/sass/_mixins.scss +318 -0
  47. data/templates/project/sass/_reset.scss +455 -0
  48. data/templates/project/sass/_responsive.scss +25 -0
  49. data/templates/project/sass/_rforms.scss +213 -0
  50. data/templates/project/sass/_typography.scss +105 -0
  51. data/templates/project/sass/_variables.scss +69 -0
  52. data/templates/project/sass/index.scss +35 -0
  53. metadata +95 -0
@@ -0,0 +1,318 @@
1
+ // Mixins
2
+
3
+ @mixin legacy-pie-clearfix {
4
+ &:after {
5
+ content: "\0020";
6
+ height: 0;
7
+ clear: both;
8
+ overflow: hidden;
9
+ visibility: hidden;
10
+ display: inline-block;
11
+ width: 100%;
12
+ }
13
+ }
14
+ @mixin pie-clearfix {
15
+ &:after {
16
+ content: "";
17
+ display: table;
18
+ clear: both;
19
+ }
20
+ }
21
+ @mixin reset-box-model {
22
+ margin: 0;
23
+ padding: 0;
24
+ border: 0;
25
+ outline: none;
26
+ }
27
+ @mixin no-bullets{
28
+ list-style: none;
29
+ li {
30
+ margin-left: 0;
31
+ }
32
+ }
33
+ @mixin dib($align: top){
34
+ display: inline-block;
35
+ vertical-align: $align;
36
+ }
37
+ // Icons
38
+ @mixin icons($name) {
39
+ @include icons-sprite($name);
40
+ height: icons-sprite-height($name);
41
+ width: icons-sprite-width($name);
42
+ }
43
+ @mixin centerWidthIcons($name) {
44
+ margin-left: -(icons-sprite-width($name)/2);
45
+ }
46
+ @mixin centerHeightIcons($name) {
47
+ margin-top: -(icons-sprite-height($name)/2);
48
+ }
49
+ @mixin iconsPos($fileName, $distance, $alignmentHeight, $size: "right"){
50
+ @include icons($fileName);
51
+ margin-#{$size}: $distance;
52
+ @if $alignmentHeight{
53
+ @include centerHeightIcons($fileName);
54
+ }
55
+ else{
56
+ @include centerWidthIcons($fileName);
57
+ }
58
+ }
59
+
60
+ // Size
61
+ // ** Responsive Web Design *width*--
62
+ @mixin rwd-width($el-width, $parent-width: $standard) {
63
+ width: $el-width * 100% / $parent-width;
64
+ }
65
+ @function rwd-width-val($el-width, $parent-width: $standard){
66
+ @return $el-width * 100% / $parent-width;
67
+ }
68
+
69
+ // Animation
70
+ @mixin animation($name, $value) {
71
+ @include experimental(animation, $name $value, -moz, -webkit, -o, -ms, not -khtml);
72
+ }
73
+ @mixin keyframes($name) {
74
+ @-webkit-keyframes #{$name} {
75
+ @content;
76
+ }
77
+ @-moz-keyframes #{$name} {
78
+ @content;
79
+ }
80
+ @-ms-keyframes #{$name} {
81
+ @content;
82
+ }
83
+ @keyframes #{$name} {
84
+ @content;
85
+ }
86
+ }
87
+
88
+ // Arrows
89
+ @mixin arrowBorder($side, $height, $color){
90
+ $mirrorSide: opposite-position($side);
91
+ border:{
92
+ #{$side}:{
93
+ width: $height;
94
+ color: $color;
95
+ }
96
+ #{$mirrorSide}:{
97
+ width: 0;
98
+ }
99
+ }
100
+ }
101
+ @mixin arrow($side, $width, $height, $color, $once: true, $pos: true){
102
+ $top: "top";
103
+ $bottom: "bottom";
104
+ $left: "left";
105
+
106
+ @if $once{
107
+ @include pseudoAbsPos;
108
+ }
109
+
110
+ @if $pos{
111
+ $secPos: null;
112
+ @if $side == $top or $side == $bottom { $secPos: $left}
113
+ @else{ $secPos: $top }
114
+
115
+ #{$side}: 100%;
116
+ #{$secPos}: 50%;
117
+ margin-#{$secPos}: -$width;
118
+ }
119
+ @else{
120
+ @content;
121
+ }
122
+
123
+ border: $width solid transparent;
124
+ @include arrowBorder($side, $height, $color);
125
+ }
126
+
127
+ // Grids
128
+ // ** Add just the horizontal grid to an element's background
129
+ @mixin column-grid-background($myoffset, $total: $grid-background-total-columns, $column: $grid-background-column-width, $gutter: $grid-background-gutter-width, $offset: $grid-background-offset, $column-color: $grid-background-column-color, $gutter-color: $grid-background-gutter-color, $force-fluid: $grid-background-force-fluid) {
130
+ @if $show-grid-backgrounds and $show-column-grid-backgrounds {
131
+ @include background-image(get-column-gradient($total, $column, $gutter, $offset, $column-color, $gutter-color, $force-fluid));
132
+ background-position: $myoffset 0;
133
+ }
134
+ }
135
+ @function columnWidth($numberOfColumns, $gutterWidth, $fullWidth){
136
+ $contentWidth: $fullWidth - $gutterWidth; // Content width;
137
+ $numberOfGutter: $numberOfColumns - 1; // Number of gutter;
138
+ $columnWidth: ($contentWidth - ($numberOfGutter*$gutterWidth))/$numberOfColumns; // Column width;
139
+ @return $columnWidth;
140
+ }
141
+ @mixin grids($numberOfColumns: 12, $gutterWidth: 20, $fullWidth: 960){
142
+ // Default
143
+ $title: "Grid System";
144
+ $desc: "Column Grid";
145
+ $grid-background-column-color: rgba(251, 188, 188, .5);
146
+ // Function
147
+ $myoffset: ($gutterWidth/2)+px;
148
+ $ColumnWwidth: columnWidth($numberOfColumns, $gutterWidth, $fullWidth);
149
+ $name: $fullWidth + " " + $title + ": " + $numberOfColumns + ", " + $desc + " " + $numberOfColumns + "x" + $ColumnWwidth + "x" + $gutterWidth;
150
+ // Settings
151
+ $grid-background-total-columns: $numberOfColumns;
152
+ $grid-background-column-width: $ColumnWwidth;
153
+ $grid-background-gutter-width: $gutterWidth;
154
+
155
+ display: block;
156
+ position: absolute;
157
+ top: 0;
158
+ left: 50%;
159
+ margin-left: -($grid/2);
160
+
161
+ width: $grid;
162
+ height: 100%;
163
+
164
+ @include column-grid-background($myoffset);
165
+
166
+ &:before{
167
+ content: '#{$name}';
168
+
169
+ position: fixed;
170
+ top: 5px;
171
+ left: 5px;
172
+
173
+ font: italic 10px/normal Arial, Helvetica, sans-serif;
174
+ color: #444;
175
+ }
176
+ }
177
+ // Font
178
+ // ** Bulletproof font face
179
+ @mixin fontFace($name, $fontFiles, $svgFontName: $fontFiles, $folder: $fontFiles){
180
+ @font-face {
181
+ font-family: $name;
182
+ src: url('../fonts/#{$folder}/#{$fontFiles}.eot?#iefix') format('embedded-opentype'), // IE6-IE9
183
+ url('../fonts/#{$folder}/#{$fontFiles}.woff') format('woff'), // Modern Browsers
184
+ url('../fonts/#{$folder}/#{$fontFiles}.ttf') format('truetype'), // Safari, Android, iOS
185
+ url('../fonts/#{$folder}/#{$fontFiles}.svg##{$svgFontName}') format('svg'); // Legacy iOS
186
+ }
187
+ }
188
+ // ** Responsive Web Design *font-size*
189
+ @mixin adjust-font-size-to($to-size, $lines: lines-for-font-size($to-size), $from-size: $base-font-size) {
190
+ @if not $relative-font-sizing and $from-size != $base-font-size {
191
+ @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
192
+ }
193
+ font-size: $font-unit * $to-size / $from-size;
194
+ }
195
+ @function adjust-font-size-to-val($to-size, $lines: lines-for-font-size($to-size), $from-size: $base-font-size){
196
+ @if not $relative-font-sizing and $from-size != $base-font-size {
197
+ @warn "$relative-font-sizing is false but a relative font size was passed to adjust-font-size-to";
198
+ }
199
+ @return $font-unit * $to-size / $from-size;
200
+ }
201
+ @mixin rem-font-size($fontUnit){
202
+ $defaultFontSize: $base-font-size;
203
+ font-size: $fontUnit;
204
+ font-size: $fontUnit/$defaultFontSize+rem;
205
+ }
206
+ @function rem-font-size($fontUnit){
207
+ $defaultFontSize: $base-font-size;
208
+ @return $fontUnit/$defaultFontSize+rem;
209
+ }
210
+ @mixin photoshopLetterSpacing($photoshopValue){
211
+ $cssValue: $photoshopValue/1000;
212
+ letter-spacing: $cssValue+em;
213
+ }
214
+
215
+ @mixin centerBlock($Static, $Max: false, $Min: false){
216
+ @if ($Static){
217
+ width: $Static;
218
+ }
219
+ @if($Max){
220
+ max-width: $Max;
221
+ }
222
+ @if($Min){
223
+ min-width: $Min;
224
+ }
225
+ margin: auto;
226
+ }
227
+ // ** Align icons
228
+ @mixin alignIcon($top){
229
+ @include pos(relative, #{$top}px, false, false, false, false);
230
+ }
231
+ // ** Pseudo
232
+ @mixin pseudoAbsPos($top: false, $right: false, $bottom: false, $left: false, $zIndex: false){
233
+ @include pos(absolute, $top, $right, $bottom, $left, $zIndex);
234
+
235
+ content: '';
236
+ }
237
+ @mixin pos($pos, $top: false, $right: false, $bottom: false, $left: false, $zIndex: false){
238
+ @if $pos == "absolute"{
239
+ @extend .absolute;
240
+ }
241
+ @else if $pos == "relative"{
242
+ @extend .relative;
243
+ }
244
+ @else if $pos == "fixed"{
245
+ @extend .fixed;
246
+ }
247
+ @else{
248
+ position: $pos;
249
+ }
250
+ @if $top{
251
+ top: $top;
252
+ }
253
+ @if $right{
254
+ right: $right;
255
+ }
256
+ @if $bottom{
257
+ bottom: $bottom;
258
+ }
259
+ @if $left{
260
+ left: $left;
261
+ }
262
+ @if $zIndex{
263
+ z-index: $zIndex;
264
+ }
265
+ }
266
+
267
+ // Background
268
+ @mixin strongGradient($size, $beginColor, $endColor, $separator){
269
+ background-color: $beginColor;
270
+ @include background-image(linear-gradient($size, $beginColor, $beginColor $separator, $endColor $separator, $endColor));
271
+ }
272
+ @mixin rgbaBox($red, $green, $blue, $opacity, $color){
273
+ background-color: $color;
274
+ background-color: rgba($red, $green, $blue, $opacity);
275
+ }
276
+ @mixin svg-bg-with-fallback($file_name) {
277
+ @include dib(middle);
278
+
279
+ height: icons-sprite-height($file_name);
280
+ width: icons-sprite-width($file_name);
281
+
282
+ background-repeat: no-repeat;
283
+ background-image: inline-image('svg/#{$file_name}.svg', image/svg\+xml);
284
+
285
+ html.no-svg & {
286
+ @include icons-sprite($file_name);
287
+ }
288
+ }
289
+
290
+ // Form
291
+ @mixin fieldEvent($border, $background, $color){
292
+ @if $border{
293
+ border-color: $border;
294
+ }
295
+ @if $background{
296
+ background: $background;
297
+ }
298
+ @if $color{
299
+ color: $color;
300
+ }
301
+ }
302
+ // ** Placeholder
303
+ @mixin placeholder($name, $color){
304
+ &#{$name}{
305
+ color: $color;
306
+ opacity: 1;
307
+ }
308
+ @if $name == ".text-placeholder"{
309
+ &#{$name}:focus{
310
+ opacity: 0;
311
+ }
312
+ }
313
+ @else{
314
+ &:focus#{$name}{
315
+ opacity: 0;
316
+ }
317
+ }
318
+ }