compass-unsemantic 0.1 → 0.1.2
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.
- checksums.yaml +15 -0
- data/stylesheets/_compass-unsemantic.sass +241 -0
- metadata +8 -11
- data/stylesheets/_compass-unsemantic.scss +0 -13
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MWNhYzgwN2E3ZDZmOGFkNGJiYTk3Yzg4MDI4ZjgwYWJlYjJmZTYzMg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OTNlNjRhMDFmYzFlZjViZDRiODJiYWJiM2U2MjQyOTU1OTk2N2I5Mg==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YTVkZTQ0Njg3MmZlMGE4MjdmMGM0MTkwNTVmMjVjZTA2ODVmYjdjMTNlMGEx
|
10
|
+
Zjc4MTE1MmRiMTI0NjZhYTQ4MWI4NDczYjgzYjIzZDYwNTQzMWVjZWZhNDJm
|
11
|
+
NTg4OTJlNWRhM2VhM2U4OTcwOTlkZWFmMjc4NzFhMTg2YmUxNmE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTc0NDY4NmRiMjA3MGM1OTllNjcxZjIyOWVkZWNhZDVmMjgzMDhhODI3OWYz
|
14
|
+
ZjJiOTJmMDA5ODUzNDY1NTgxYzA2OTJiNDViYjllNTJjZWNkNzBkNzAxMGU1
|
15
|
+
ODBmYjBiYWU0ODllZGY2MDMyMDM2NmY3NDkwNzkwYTMzM2I4Mzk=
|
@@ -0,0 +1,241 @@
|
|
1
|
+
// I Decided to just copy the code from unsemantic-vars and paste inside of here.
|
2
|
+
// This way I only have to make a call @import "compass-unsemantic" instead of @import "sass/partials/unsemantic-vars";
|
3
|
+
// The reasoning is because I will always be rolling my own instead of using unsemantic's pre-defined files.
|
4
|
+
// I am up for suggestions on how to make this process better.
|
5
|
+
|
6
|
+
// For Reference only
|
7
|
+
// @import "sass/partials/unsemantic-vars";
|
8
|
+
|
9
|
+
// This is to help with the Windows 8 snap mode
|
10
|
+
@import "sass/partials/unsemantic-ie-snap"
|
11
|
+
|
12
|
+
// This is the Unsemantic Responsive File NOT including Tablet size
|
13
|
+
//@import "sass/partials/unsemantic-grid-responsive";
|
14
|
+
|
15
|
+
// This is the Unsemantic Responsive File including Tablet size
|
16
|
+
// @import "sass/partials/unsemantic-grid-responsive-tablet";
|
17
|
+
|
18
|
+
// These mixins are intended to be used from:
|
19
|
+
//
|
20
|
+
// * _unsemantic-grid-base.sass
|
21
|
+
// * _unsemantic-grid-mobile.sass
|
22
|
+
// * _unsemantic-grid-desktop.sass
|
23
|
+
//
|
24
|
+
// But could be used in your own styles, via class
|
25
|
+
// names of your choice. You don't *have* to be
|
26
|
+
// unsemantic. That's entirely up to you! :)
|
27
|
+
|
28
|
+
// If you don't need IE7 support, set a flag in the top-level scope.
|
29
|
+
//
|
30
|
+
// $unsemantic-ie7-support: false
|
31
|
+
//
|
32
|
+
// If you do not declare that variable, the default setting is true.
|
33
|
+
|
34
|
+
@import "compass/css3"
|
35
|
+
|
36
|
+
// `Variables
|
37
|
+
//----------------------------------------------------------------------------------------------------
|
38
|
+
|
39
|
+
$unsemantic-ie7-support: true !default
|
40
|
+
|
41
|
+
$container-max-width: 1200px !default
|
42
|
+
|
43
|
+
$gutter-half: 10px !default
|
44
|
+
|
45
|
+
$lang-forward: left !default
|
46
|
+
|
47
|
+
$lang-reverse: right !default
|
48
|
+
|
49
|
+
// `Clear floated elements.
|
50
|
+
//----------------------------------------------------------------------------------------------------
|
51
|
+
|
52
|
+
// http://sonspring.com/journal/clearing-floats
|
53
|
+
|
54
|
+
%clear
|
55
|
+
clear: both
|
56
|
+
display: block
|
57
|
+
overflow: hidden
|
58
|
+
visibility: hidden
|
59
|
+
width: 0
|
60
|
+
height: 0
|
61
|
+
|
62
|
+
// http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified
|
63
|
+
|
64
|
+
%clearfix:before,
|
65
|
+
%clearfix:after
|
66
|
+
content: "."
|
67
|
+
display: block
|
68
|
+
overflow: hidden
|
69
|
+
visibility: hidden
|
70
|
+
font-size: 0
|
71
|
+
line-height: 0
|
72
|
+
width: 0
|
73
|
+
height: 0
|
74
|
+
|
75
|
+
%clearfix:after
|
76
|
+
clear: both
|
77
|
+
|
78
|
+
@if $unsemantic-ie7-support
|
79
|
+
%clearfix
|
80
|
+
/* <IE7> */
|
81
|
+
*zoom: 1
|
82
|
+
/* </IE7> */
|
83
|
+
|
84
|
+
// `Container
|
85
|
+
//----------------------------------------------------------------------------------------------------
|
86
|
+
|
87
|
+
%grid-container
|
88
|
+
@extend %clearfix
|
89
|
+
margin-left: auto
|
90
|
+
margin-right: auto
|
91
|
+
max-width: $container-max-width
|
92
|
+
|
93
|
+
// Set if gutter is non-zero
|
94
|
+
@if $gutter-half != 0
|
95
|
+
padding-left: $gutter-half
|
96
|
+
padding-right: $gutter-half
|
97
|
+
|
98
|
+
// `Grid columns.
|
99
|
+
//----------------------------------------------------------------------------------------------------
|
100
|
+
|
101
|
+
%grid-columns-all
|
102
|
+
+box-sizing(border-box)
|
103
|
+
|
104
|
+
// Set if gutter is non-zero
|
105
|
+
@if $gutter-half != 0
|
106
|
+
padding-left: $gutter-half
|
107
|
+
padding-right: $gutter-half
|
108
|
+
|
109
|
+
@if $unsemantic-ie7-support
|
110
|
+
// [1] Remove padding, since IE7 doesn't
|
111
|
+
// support "box-sizing: border-box".
|
112
|
+
|
113
|
+
/* <IE7> */
|
114
|
+
*padding-left: 0
|
115
|
+
*padding-right: 0
|
116
|
+
/* </IE7> */
|
117
|
+
|
118
|
+
//
|
119
|
+
// [2] Fake what would normally be padding,
|
120
|
+
// for browsers that support box-sizing.
|
121
|
+
& > *
|
122
|
+
/* <IE7> */
|
123
|
+
*margin-left: expression((!this.className.match(/grid-[1-9]/) && this.currentStyle.display === "block" && this.currentStyle.width === "auto") && "#{$gutter-half}")
|
124
|
+
*margin-right: expression((!this.className.match(/grid-[1-9]/) && this.currentStyle.display === "block" && this.currentStyle.width === "auto") && "#{$gutter-half}")
|
125
|
+
/* </IE7> */
|
126
|
+
|
127
|
+
// `Push & Pull, to rearrange column order (for potential "SEO").
|
128
|
+
//----------------------------------------------------------------------------------------------------
|
129
|
+
|
130
|
+
// Remove padding, if it's being used
|
131
|
+
// as a parent for other grid columns.
|
132
|
+
%grid-parent
|
133
|
+
padding-left: 0
|
134
|
+
padding-right: 0
|
135
|
+
|
136
|
+
// Allows columns to be offset +/- left.
|
137
|
+
%grid-columns-push-pull
|
138
|
+
position: relative
|
139
|
+
|
140
|
+
// `Hide on desktop/tablet/mobile.
|
141
|
+
//----------------------------------------------------------------------------------------------------
|
142
|
+
|
143
|
+
%hide
|
144
|
+
display: none !important
|
145
|
+
|
146
|
+
// `Grid columns.
|
147
|
+
//----------------------------------------------------------------------------------------------------
|
148
|
+
|
149
|
+
//
|
150
|
+
// For 5 through 95 percent.
|
151
|
+
//
|
152
|
+
|
153
|
+
@for $i from 1 through 19
|
154
|
+
$num: $i * 5
|
155
|
+
$decimal: $num / 100
|
156
|
+
$percent: $num * 1%
|
157
|
+
|
158
|
+
%grid-#{$num}
|
159
|
+
float: $lang-forward
|
160
|
+
width: $percent
|
161
|
+
|
162
|
+
@if $unsemantic-ie7-support
|
163
|
+
/* <IE7> */
|
164
|
+
*width: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
|
165
|
+
/* </IE7> */
|
166
|
+
|
167
|
+
%prefix-#{$num}
|
168
|
+
margin-#{$lang-forward}: $percent
|
169
|
+
|
170
|
+
%suffix-#{$num}
|
171
|
+
margin-#{$lang-reverse}: $percent
|
172
|
+
|
173
|
+
%push-#{$num}
|
174
|
+
#{$lang-forward}: $percent
|
175
|
+
|
176
|
+
@if $unsemantic-ie7-support
|
177
|
+
/* <IE7> */
|
178
|
+
*#{$lang-forward}: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
|
179
|
+
/* </IE7> */
|
180
|
+
|
181
|
+
%pull-#{$num}
|
182
|
+
#{$lang-forward}: $percent * -1
|
183
|
+
|
184
|
+
@if $unsemantic-ie7-support
|
185
|
+
/* <IE7> */
|
186
|
+
*#{$lang-forward}: expression(Math.floor(#{$decimal * -1} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
|
187
|
+
/* </IE7> */
|
188
|
+
|
189
|
+
//
|
190
|
+
// For one-third and two-thirds.
|
191
|
+
//
|
192
|
+
|
193
|
+
@for $i from 1 through 2
|
194
|
+
$num: $i * 33
|
195
|
+
$one-third: 1/3
|
196
|
+
$decimal: $i * $one-third
|
197
|
+
$percent: ($num + $decimal) * 1%
|
198
|
+
|
199
|
+
// Percentage based widths.
|
200
|
+
%grid-#{$num}
|
201
|
+
float: $lang-forward
|
202
|
+
width: $percent
|
203
|
+
|
204
|
+
@if $unsemantic-ie7-support
|
205
|
+
/* <IE7> */
|
206
|
+
*width: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
|
207
|
+
/* </IE7> */
|
208
|
+
|
209
|
+
// Prefix, to add extra columns before.
|
210
|
+
%prefix-#{$num}
|
211
|
+
margin-#{$lang-forward}: $percent
|
212
|
+
|
213
|
+
// Suffix, to add extra columns after.
|
214
|
+
%suffix-#{$num}
|
215
|
+
margin-#{$lang-reverse}: $percent
|
216
|
+
|
217
|
+
// Push & Pull, to rearrange column order (for potential "SEO").
|
218
|
+
%push-#{$num}
|
219
|
+
#{$lang-forward}: $percent
|
220
|
+
|
221
|
+
@if $unsemantic-ie7-support
|
222
|
+
/* <IE7> */
|
223
|
+
*#{$lang-forward}: expression(Math.floor(#{$decimal} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
|
224
|
+
/* </IE7> */
|
225
|
+
|
226
|
+
%pull-#{$num}
|
227
|
+
#{$lang-forward}: $percent * -1
|
228
|
+
|
229
|
+
@if $unsemantic-ie7-support
|
230
|
+
/* <IE7> */
|
231
|
+
*#{$lang-forward}: expression(Math.floor(#{$decimal * -1} * (this.parentNode.offsetWidth - parseFloat(this.parentNode.currentStyle.paddingLeft) - parseFloat(this.parentNode.currentStyle.paddingRight))) + "px")
|
232
|
+
/* </IE7> */
|
233
|
+
|
234
|
+
//
|
235
|
+
// Full width, just line-break.
|
236
|
+
//
|
237
|
+
|
238
|
+
%grid-100
|
239
|
+
@extend %clearfix
|
240
|
+
clear: both
|
241
|
+
width: 100%
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-unsemantic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Myoung
|
@@ -14,7 +13,6 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: compass
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,19 +20,19 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0.11'
|
30
|
-
description: Unsemantic library as a Gem that follows Compass Plugin.
|
27
|
+
description: Unsemantic library as a Gem that follows Compass Plugin. This Gem is
|
28
|
+
not finished.
|
31
29
|
email: email@myounghong.com
|
32
30
|
executables: []
|
33
31
|
extensions: []
|
34
32
|
extra_rdoc_files: []
|
35
33
|
files:
|
36
34
|
- lib/compass-unsemantic.rb
|
37
|
-
- stylesheets/_compass-unsemantic.
|
35
|
+
- stylesheets/_compass-unsemantic.sass
|
38
36
|
- stylesheets/javascripts/adapt.min.js
|
39
37
|
- stylesheets/javascripts/demo.js
|
40
38
|
- stylesheets/javascripts/html5.js
|
@@ -116,26 +114,25 @@ files:
|
|
116
114
|
- stylesheets/stylesheets/unsemantic-grid-tablet.css
|
117
115
|
homepage: http://www.myounghong.com/
|
118
116
|
licenses: []
|
117
|
+
metadata: {}
|
119
118
|
post_install_message:
|
120
119
|
rdoc_options: []
|
121
120
|
require_paths:
|
122
121
|
- lib
|
123
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
123
|
requirements:
|
126
124
|
- - ! '>='
|
127
125
|
- !ruby/object:Gem::Version
|
128
126
|
version: '0'
|
129
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
128
|
requirements:
|
132
129
|
- - ! '>='
|
133
130
|
- !ruby/object:Gem::Version
|
134
131
|
version: '0'
|
135
132
|
requirements: []
|
136
133
|
rubyforge_project:
|
137
|
-
rubygems_version:
|
134
|
+
rubygems_version: 2.0.3
|
138
135
|
signing_key:
|
139
|
-
specification_version:
|
140
|
-
summary: Unsemantic as a Gem Compass Plugin
|
136
|
+
specification_version: 4
|
137
|
+
summary: Unsemantic as a Gem Compass Plugin. (Not Finished)
|
141
138
|
test_files: []
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is your framework's main stylesheet. Use it to import all default modules.
|
2
|
-
|
3
|
-
// For Reference only
|
4
|
-
// @import "sass/partials/unsemantic-vars";
|
5
|
-
|
6
|
-
// This is to help with the Windows 8 snap mode
|
7
|
-
@import "sass/partials/unsemantic-ie-snap";
|
8
|
-
|
9
|
-
// This is the Unsemantic Responsive File NOT including Tablet size
|
10
|
-
//@import "sass/partials/unsemantic-grid-responsive";
|
11
|
-
|
12
|
-
// This is the Unsemantic Responsive File including Tablet size
|
13
|
-
@import "sass/partials/unsemantic-grid-responsive-tablet";
|