compass-unsemantic 0.1

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 (82) hide show
  1. data/lib/compass-unsemantic.rb +3 -0
  2. data/stylesheets/_compass-unsemantic.scss +13 -0
  3. data/stylesheets/javascripts/adapt.min.js +1 -0
  4. data/stylesheets/javascripts/demo.js +76 -0
  5. data/stylesheets/javascripts/html5.js +4 -0
  6. data/stylesheets/javascripts/jquery.js +5 -0
  7. data/stylesheets/sass/demo.sass +4 -0
  8. data/stylesheets/sass/ie-rtl.sass +10 -0
  9. data/stylesheets/sass/ie.sass +3 -0
  10. data/stylesheets/sass/partials/_demo.sass +50 -0
  11. data/stylesheets/sass/partials/_ie.sass +8 -0
  12. data/stylesheets/sass/partials/_reset.sass +187 -0
  13. data/stylesheets/sass/partials/_text.sass +71 -0
  14. data/stylesheets/sass/partials/_unsemantic-grid-base-tablet.sass +60 -0
  15. data/stylesheets/sass/partials/_unsemantic-grid-base.sass +54 -0
  16. data/stylesheets/sass/partials/_unsemantic-grid-desktop.sass +96 -0
  17. data/stylesheets/sass/partials/_unsemantic-grid-mobile.sass +96 -0
  18. data/stylesheets/sass/partials/_unsemantic-grid-responsive-tablet.sass +22 -0
  19. data/stylesheets/sass/partials/_unsemantic-grid-responsive.sass +17 -0
  20. data/stylesheets/sass/partials/_unsemantic-grid-tablet.sass +96 -0
  21. data/stylesheets/sass/partials/_unsemantic-ie-snap.sass +12 -0
  22. data/stylesheets/sass/partials/_unsemantic-vars.sass +224 -0
  23. data/stylesheets/sass/unsemantic-grid-base-no-ie7-rtl.sass +11 -0
  24. data/stylesheets/sass/unsemantic-grid-base-no-ie7.sass +4 -0
  25. data/stylesheets/sass/unsemantic-grid-base-rtl.sass +9 -0
  26. data/stylesheets/sass/unsemantic-grid-base-tablet-no-ie7-rtl.sass +11 -0
  27. data/stylesheets/sass/unsemantic-grid-base-tablet-no-ie7.sass +5 -0
  28. data/stylesheets/sass/unsemantic-grid-base-tablet-rtl.sass +9 -0
  29. data/stylesheets/sass/unsemantic-grid-base-tablet.sass +4 -0
  30. data/stylesheets/sass/unsemantic-grid-base.sass +2 -0
  31. data/stylesheets/sass/unsemantic-grid-desktop-no-ie7-rtl.sass +10 -0
  32. data/stylesheets/sass/unsemantic-grid-desktop-no-ie7.sass +3 -0
  33. data/stylesheets/sass/unsemantic-grid-desktop-rtl.sass +8 -0
  34. data/stylesheets/sass/unsemantic-grid-desktop.sass +1 -0
  35. data/stylesheets/sass/unsemantic-grid-mobile-no-ie7-rtl.sass +10 -0
  36. data/stylesheets/sass/unsemantic-grid-mobile-no-ie7.sass +3 -0
  37. data/stylesheets/sass/unsemantic-grid-mobile-rtl.sass +8 -0
  38. data/stylesheets/sass/unsemantic-grid-mobile.sass +1 -0
  39. data/stylesheets/sass/unsemantic-grid-responsive-no-ie7-rtl.sass +10 -0
  40. data/stylesheets/sass/unsemantic-grid-responsive-no-ie7.sass +3 -0
  41. data/stylesheets/sass/unsemantic-grid-responsive-rtl.sass +8 -0
  42. data/stylesheets/sass/unsemantic-grid-responsive-tablet-no-ie7-rtl.sass +10 -0
  43. data/stylesheets/sass/unsemantic-grid-responsive-tablet-no-ie7.sass +3 -0
  44. data/stylesheets/sass/unsemantic-grid-responsive-tablet-rtl.sass +8 -0
  45. data/stylesheets/sass/unsemantic-grid-responsive-tablet.sass +1 -0
  46. data/stylesheets/sass/unsemantic-grid-responsive.sass +1 -0
  47. data/stylesheets/sass/unsemantic-grid-tablet-no-ie7-rtl.sass +10 -0
  48. data/stylesheets/sass/unsemantic-grid-tablet-no-ie7.sass +3 -0
  49. data/stylesheets/sass/unsemantic-grid-tablet-rtl.sass +8 -0
  50. data/stylesheets/sass/unsemantic-grid-tablet.sass +1 -0
  51. data/stylesheets/stylesheets/demo.css +303 -0
  52. data/stylesheets/stylesheets/ie-rtl.css +1463 -0
  53. data/stylesheets/stylesheets/ie.css +1463 -0
  54. data/stylesheets/stylesheets/unsemantic-grid-base-no-ie7-rtl.css +55 -0
  55. data/stylesheets/stylesheets/unsemantic-grid-base-no-ie7.css +55 -0
  56. data/stylesheets/stylesheets/unsemantic-grid-base-rtl.css +71 -0
  57. data/stylesheets/stylesheets/unsemantic-grid-base-tablet-no-ie7-rtl.css +55 -0
  58. data/stylesheets/stylesheets/unsemantic-grid-base-tablet-no-ie7.css +55 -0
  59. data/stylesheets/stylesheets/unsemantic-grid-base-tablet-rtl.css +71 -0
  60. data/stylesheets/stylesheets/unsemantic-grid-base-tablet.css +71 -0
  61. data/stylesheets/stylesheets/unsemantic-grid-base.css +71 -0
  62. data/stylesheets/stylesheets/unsemantic-grid-desktop-no-ie7-rtl.css +490 -0
  63. data/stylesheets/stylesheets/unsemantic-grid-desktop-no-ie7.css +490 -0
  64. data/stylesheets/stylesheets/unsemantic-grid-desktop-rtl.css +685 -0
  65. data/stylesheets/stylesheets/unsemantic-grid-desktop.css +685 -0
  66. data/stylesheets/stylesheets/unsemantic-grid-mobile-no-ie7-rtl.css +490 -0
  67. data/stylesheets/stylesheets/unsemantic-grid-mobile-no-ie7.css +490 -0
  68. data/stylesheets/stylesheets/unsemantic-grid-mobile-rtl.css +685 -0
  69. data/stylesheets/stylesheets/unsemantic-grid-mobile.css +685 -0
  70. data/stylesheets/stylesheets/unsemantic-grid-responsive-no-ie7-rtl.css +1044 -0
  71. data/stylesheets/stylesheets/unsemantic-grid-responsive-no-ie7.css +1044 -0
  72. data/stylesheets/stylesheets/unsemantic-grid-responsive-rtl.css +1450 -0
  73. data/stylesheets/stylesheets/unsemantic-grid-responsive-tablet-no-ie7-rtl.css +1536 -0
  74. data/stylesheets/stylesheets/unsemantic-grid-responsive-tablet-no-ie7.css +1536 -0
  75. data/stylesheets/stylesheets/unsemantic-grid-responsive-tablet-rtl.css +2137 -0
  76. data/stylesheets/stylesheets/unsemantic-grid-responsive-tablet.css +2137 -0
  77. data/stylesheets/stylesheets/unsemantic-grid-responsive.css +1450 -0
  78. data/stylesheets/stylesheets/unsemantic-grid-tablet-no-ie7-rtl.css +490 -0
  79. data/stylesheets/stylesheets/unsemantic-grid-tablet-no-ie7.css +490 -0
  80. data/stylesheets/stylesheets/unsemantic-grid-tablet-rtl.css +685 -0
  81. data/stylesheets/stylesheets/unsemantic-grid-tablet.css +685 -0
  82. metadata +141 -0
@@ -0,0 +1,12 @@
1
+ //
2
+ // Fix for IE in Windows 8 "snap" mode.
3
+ //
4
+ // http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design
5
+ //
6
+ // Without affecting Windows Phone IE.
7
+ //
8
+ // http://timkadlec.com/2013/01/windows-phone-8-and-device-width
9
+ //
10
+ @media screen and (max-width: 400px)
11
+ @-ms-viewport
12
+ width: 320px
@@ -0,0 +1,224 @@
1
+ // These mixins are intended to be used from:
2
+ //
3
+ // * _unsemantic-grid-base.sass
4
+ // * _unsemantic-grid-mobile.sass
5
+ // * _unsemantic-grid-desktop.sass
6
+ //
7
+ // But could be used in your own styles, via class
8
+ // names of your choice. You don't *have* to be
9
+ // unsemantic. That's entirely up to you! :)
10
+
11
+ // If you don't need IE7 support, set a flag in the top-level scope.
12
+ //
13
+ // $unsemantic-ie7-support: false
14
+ //
15
+ // If you do not declare that variable, the default setting is true.
16
+
17
+ @import "compass/css3"
18
+
19
+ // `Variables
20
+ //----------------------------------------------------------------------------------------------------
21
+
22
+ $unsemantic-ie7-support: true !default
23
+
24
+ $container-max-width: 1200px !default
25
+
26
+ $gutter-half: 10px !default
27
+
28
+ $lang-forward: left !default
29
+
30
+ $lang-reverse: right !default
31
+
32
+ // `Clear floated elements.
33
+ //----------------------------------------------------------------------------------------------------
34
+
35
+ // http://sonspring.com/journal/clearing-floats
36
+
37
+ %clear
38
+ clear: both
39
+ display: block
40
+ overflow: hidden
41
+ visibility: hidden
42
+ width: 0
43
+ height: 0
44
+
45
+ // http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified
46
+
47
+ %clearfix:before,
48
+ %clearfix:after
49
+ content: "."
50
+ display: block
51
+ overflow: hidden
52
+ visibility: hidden
53
+ font-size: 0
54
+ line-height: 0
55
+ width: 0
56
+ height: 0
57
+
58
+ %clearfix:after
59
+ clear: both
60
+
61
+ @if $unsemantic-ie7-support
62
+ %clearfix
63
+ /* <IE7> */
64
+ *zoom: 1
65
+ /* </IE7> */
66
+
67
+ // `Container
68
+ //----------------------------------------------------------------------------------------------------
69
+
70
+ %grid-container
71
+ @extend %clearfix
72
+ margin-left: auto
73
+ margin-right: auto
74
+ max-width: $container-max-width
75
+
76
+ // Set if gutter is non-zero
77
+ @if $gutter-half != 0
78
+ padding-left: $gutter-half
79
+ padding-right: $gutter-half
80
+
81
+ // `Grid columns.
82
+ //----------------------------------------------------------------------------------------------------
83
+
84
+ %grid-columns-all
85
+ +box-sizing(border-box)
86
+
87
+ // Set if gutter is non-zero
88
+ @if $gutter-half != 0
89
+ padding-left: $gutter-half
90
+ padding-right: $gutter-half
91
+
92
+ @if $unsemantic-ie7-support
93
+ // [1] Remove padding, since IE7 doesn't
94
+ // support "box-sizing: border-box".
95
+
96
+ /* <IE7> */
97
+ *padding-left: 0
98
+ *padding-right: 0
99
+ /* </IE7> */
100
+
101
+ //
102
+ // [2] Fake what would normally be padding,
103
+ // for browsers that support box-sizing.
104
+ & > *
105
+ /* <IE7> */
106
+ *margin-left: expression((!this.className.match(/grid-[1-9]/) && this.currentStyle.display === "block" && this.currentStyle.width === "auto") && "#{$gutter-half}")
107
+ *margin-right: expression((!this.className.match(/grid-[1-9]/) && this.currentStyle.display === "block" && this.currentStyle.width === "auto") && "#{$gutter-half}")
108
+ /* </IE7> */
109
+
110
+ // `Push & Pull, to rearrange column order (for potential "SEO").
111
+ //----------------------------------------------------------------------------------------------------
112
+
113
+ // Remove padding, if it's being used
114
+ // as a parent for other grid columns.
115
+ %grid-parent
116
+ padding-left: 0
117
+ padding-right: 0
118
+
119
+ // Allows columns to be offset +/- left.
120
+ %grid-columns-push-pull
121
+ position: relative
122
+
123
+ // `Hide on desktop/tablet/mobile.
124
+ //----------------------------------------------------------------------------------------------------
125
+
126
+ %hide
127
+ display: none !important
128
+
129
+ // `Grid columns.
130
+ //----------------------------------------------------------------------------------------------------
131
+
132
+ //
133
+ // For 5 through 95 percent.
134
+ //
135
+
136
+ @for $i from 1 through 19
137
+ $num: $i * 5
138
+ $decimal: $num / 100
139
+ $percent: $num * 1%
140
+
141
+ %grid-#{$num}
142
+ float: $lang-forward
143
+ width: $percent
144
+
145
+ @if $unsemantic-ie7-support
146
+ /* <IE7> */
147
+ *width: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
148
+ /* </IE7> */
149
+
150
+ %prefix-#{$num}
151
+ margin-#{$lang-forward}: $percent
152
+
153
+ %suffix-#{$num}
154
+ margin-#{$lang-reverse}: $percent
155
+
156
+ %push-#{$num}
157
+ #{$lang-forward}: $percent
158
+
159
+ @if $unsemantic-ie7-support
160
+ /* <IE7> */
161
+ *#{$lang-forward}: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
162
+ /* </IE7> */
163
+
164
+ %pull-#{$num}
165
+ #{$lang-forward}: $percent * -1
166
+
167
+ @if $unsemantic-ie7-support
168
+ /* <IE7> */
169
+ *#{$lang-forward}: expression(Math.floor(#{$decimal * -1} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
170
+ /* </IE7> */
171
+
172
+ //
173
+ // For one-third and two-thirds.
174
+ //
175
+
176
+ @for $i from 1 through 2
177
+ $num: $i * 33
178
+ $one-third: 1/3
179
+ $decimal: $i * $one-third
180
+ $percent: ($num + $decimal) * 1%
181
+
182
+ // Percentage based widths.
183
+ %grid-#{$num}
184
+ float: $lang-forward
185
+ width: $percent
186
+
187
+ @if $unsemantic-ie7-support
188
+ /* <IE7> */
189
+ *width: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
190
+ /* </IE7> */
191
+
192
+ // Prefix, to add extra columns before.
193
+ %prefix-#{$num}
194
+ margin-#{$lang-forward}: $percent
195
+
196
+ // Suffix, to add extra columns after.
197
+ %suffix-#{$num}
198
+ margin-#{$lang-reverse}: $percent
199
+
200
+ // Push & Pull, to rearrange column order (for potential "SEO").
201
+ %push-#{$num}
202
+ #{$lang-forward}: $percent
203
+
204
+ @if $unsemantic-ie7-support
205
+ /* <IE7> */
206
+ *#{$lang-forward}: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
207
+ /* </IE7> */
208
+
209
+ %pull-#{$num}
210
+ #{$lang-forward}: $percent * -1
211
+
212
+ @if $unsemantic-ie7-support
213
+ /* <IE7> */
214
+ *#{$lang-forward}: expression(Math.floor(#{$decimal * -1} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
215
+ /* </IE7> */
216
+
217
+ //
218
+ // Full width, just line-break.
219
+ //
220
+
221
+ %grid-100
222
+ @extend %clearfix
223
+ clear: both
224
+ width: 100%
@@ -0,0 +1,11 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-ie-snap"
11
+ @import "partials/unsemantic-grid-base"
@@ -0,0 +1,4 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ @import "partials/unsemantic-ie-snap"
4
+ @import "partials/unsemantic-grid-base"
@@ -0,0 +1,9 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-ie-snap"
9
+ @import "partials/unsemantic-grid-base"
@@ -0,0 +1,11 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-ie-snap"
11
+ @import "partials/unsemantic-grid-base-tablet"
@@ -0,0 +1,5 @@
1
+ $unsemantic-with-tablet: true
2
+ $unsemantic-ie7-support: false
3
+
4
+ @import "partials/unsemantic-ie-snap"
5
+ @import "partials/unsemantic-grid-base"
@@ -0,0 +1,9 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-ie-snap"
9
+ @import "partials/unsemantic-grid-base-tablet"
@@ -0,0 +1,4 @@
1
+ $unsemantic-with-tablet: true
2
+
3
+ @import "partials/unsemantic-ie-snap"
4
+ @import "partials/unsemantic-grid-base"
@@ -0,0 +1,2 @@
1
+ @import "partials/unsemantic-ie-snap"
2
+ @import "partials/unsemantic-grid-base"
@@ -0,0 +1,10 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-grid-desktop"
@@ -0,0 +1,3 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ @import "partials/unsemantic-grid-desktop"
@@ -0,0 +1,8 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-grid-desktop"
@@ -0,0 +1 @@
1
+ @import "partials/unsemantic-grid-desktop"
@@ -0,0 +1,10 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-grid-mobile"
@@ -0,0 +1,3 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ @import "partials/unsemantic-grid-mobile"
@@ -0,0 +1,8 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-grid-mobile"
@@ -0,0 +1 @@
1
+ @import "partials/unsemantic-grid-mobile"
@@ -0,0 +1,10 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-grid-responsive"
@@ -0,0 +1,3 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ @import "partials/unsemantic-grid-responsive"
@@ -0,0 +1,8 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-grid-responsive"
@@ -0,0 +1,10 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-grid-responsive-tablet"
@@ -0,0 +1,3 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ @import "partials/unsemantic-grid-responsive-tablet"
@@ -0,0 +1,8 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-grid-responsive-tablet"
@@ -0,0 +1 @@
1
+ @import "partials/unsemantic-grid-responsive-tablet"
@@ -0,0 +1 @@
1
+ @import "partials/unsemantic-grid-responsive"
@@ -0,0 +1,10 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ //
4
+ // For right-to-left languages.
5
+ // (Hebrew, Arabic, etc.)
6
+ //
7
+ $lang-forward: right
8
+ $lang-reverse: left
9
+
10
+ @import "partials/unsemantic-grid-tablet"
@@ -0,0 +1,3 @@
1
+ $unsemantic-ie7-support: false
2
+
3
+ @import "partials/unsemantic-grid-tablet"
@@ -0,0 +1,8 @@
1
+ //
2
+ // For right-to-left languages.
3
+ // (Hebrew, Arabic, etc.)
4
+ //
5
+ $lang-forward: right
6
+ $lang-reverse: left
7
+
8
+ @import "partials/unsemantic-grid-tablet"