simpodSass 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7b296da0da28dfdcf2015ab2c97ac5b5192c5eb9
4
+ data.tar.gz: 76d61480ff4431a1bc9f64c0fa90ee9013b3c5e6
5
+ SHA512:
6
+ metadata.gz: 60e5fd9a2f4db1e0a3b182fd226731db0f32a4d4a41b39e2d447ffac35f88afa4b6c73198cf8e1eebc0b6b0094f78713419d2739e170d29d367fad337d2256c2
7
+ data.tar.gz: 574f11d3f3968932722ffefc33236e7b63cbcf202a623296f1500b0b2ee7e041b76361ea6bac652d07a533a53ce73c24eb4485ecb5f2c7c0fb4b70ba2d2cc490
data/lib/simpodSass.rb ADDED
@@ -0,0 +1,17 @@
1
+ base_directory = File.expand_path(File.join(File.dirname(__FILE__), '..'))
2
+ simpodSass_stylesheets_path = File.join(base_directory, 'stylesheets')
3
+
4
+ if (defined? Compass)
5
+ Compass::Frameworks.register(
6
+ "simpodSass",
7
+ :path => base_directory
8
+ )
9
+ else
10
+ ENV["SASS_PATH"] = [ENV["SASS_PATH"], simpodSass_stylesheets_path].compact.join(File::PATH_SEPARATOR)
11
+ end
12
+
13
+
14
+ module SimpodSass
15
+ VERSION = "0.0.2"
16
+ DATE = "2014-10-18"
17
+ end
@@ -0,0 +1,4 @@
1
+ @import "simpodSass/colors";
2
+ @import "simpodSass/font";
3
+ @import "simpodSass/flex";
4
+ @import "simpodSass/modifiers";
@@ -0,0 +1,16 @@
1
+ $alto: #dbdbdb !default;
2
+ $black: #000 !default;
3
+ $doveGray: #6d6c6c !default;
4
+ $mercury: #e5e5e5 !default;
5
+ $white: #fff !default;
6
+ $gray: #808080 !default;
7
+ $emperor: #514649 !default;
8
+ $ironsideGray: #676662 !default;
9
+ $hintOfRed: #fbf9f9 !default;
10
+ $mineShaft: #323232 !default;
11
+ $mountainMeadow: #1ab385 !default;
12
+ $scorpion: #695f62 !default;
13
+ $springWood: #f8f6f1 !default;
14
+ $whiteIce: #ddf9f1 !default;
15
+ $iceberg: #daf4f0 !default;
16
+ $westar: #dcd9d2 !default;
@@ -0,0 +1,228 @@
1
+
2
+ // https://github.com/mastastealth/sass-flex-mixin
3
+ //
4
+ // ======== Flexbox Mixins ==============
5
+ // ------------------------
6
+ // Copyright (c) 2013 Brian Franco
7
+ //
8
+ // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9
+ // The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
+ // ------------------------
12
+ //
13
+ // This is a set of mixins for those who want to mess
14
+ // around with flexbox using the native support of current
15
+ // browsers. For full support table check: http://caniuse.com/flexbox
16
+ //
17
+ // Basically this will use:
18
+ // Fallback, old syntax (IE10, Safari, mobile webkit browsers)
19
+ // Prefixed standard syntax (Chrome)
20
+ // Final standards syntax (FF, Opera 12.1)
21
+ //
22
+ // ------------------------
23
+ // This was inspired by:
24
+ // http://dev.opera.com/articles/view/advanced-cross-browser-flexbox/
25
+ // With help from:
26
+ // http://www.w3.org/TR/css3-flexbox/
27
+ // http://the-echoplex.net/flexyboxes/
28
+ // http://msdn.microsoft.com/en-us/library/ie/hh772069%28v=vs.85%29.aspx
29
+ // Compass experimental utilities was inspired by:
30
+ // https://gist.github.com/joseph-turner/5674311
31
+
32
+ @import "compass/css3/deprecated-support";
33
+
34
+
35
+ // Flexbox Inits
36
+ // display: flex | inline-flex
37
+
38
+ @mixin flexbox {
39
+ @include experimental-value(display, box, -moz, -webkit, not -o, not -ms, not -khtml, not official);
40
+ @include experimental-value(display, flex, -moz, -webkit, not -o, not -ms, not -khtml, official);
41
+ @include experimental-value(display, flexbox, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
42
+ }
43
+
44
+ @mixin inline-flex {
45
+ @include experimental-value(display, inline-box, not -moz, -webkit, not -o, not -ms, not -khtml, not official);
46
+ @include experimental-value(display, inline-flex, -moz, -webkit, not -o, not -ms, not -khtml, official);
47
+ @include experimental-value(display, inline-flexbox, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
48
+ }
49
+
50
+ // Flexbox Direction
51
+ // Values: row | row-reverse | column | column-reverse
52
+ // Default: row
53
+
54
+ @mixin flex-direction($value) {
55
+ $direction-value: normal;
56
+ $orient-value: horizontal;
57
+
58
+ @if $value == "row-reverse" {
59
+ $direction-value: reverse;
60
+ } @else if $value == "column" {
61
+ $orient-value: vertical;
62
+ } @else if $value == "column-reverse" {
63
+ $direction-value: reverse;
64
+ $orient-value: vertical;
65
+ }
66
+
67
+ @include experimental(box-direction, $direction-value, not -moz, -webkit, not -o, not -ms, not -khtml, not official);
68
+ @include experimental(box-orient, $orient-value, not -moz, -webkit, not -o, not -ms, not -khtml, not official);
69
+ @include experimental(flex-direction, $value, -moz, -webkit, not -o, -ms, not -khtml, official);
70
+ }
71
+
72
+ // Shorter version
73
+ @mixin flex-dir($value) {
74
+ @include flex-direction($value);
75
+ }
76
+
77
+ // Flexbox Wrap
78
+ // Values: nowrap | wrap | wrap-reverse
79
+ // Default: nowrap
80
+
81
+ @mixin flex-wrap($value) {
82
+ // No Webkit Box fallback
83
+ $wrap-value: $value;
84
+
85
+ @if $value == "nowrap" {
86
+ $wrap-value: none;
87
+ }
88
+
89
+ @include experimental(flex-wrap, $wrap-value, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
90
+ @include experimental(flex-wrap, $value, -moz, -webkit, not -o, not -ms, not -khtml, official);
91
+ }
92
+
93
+ // Flexbox Flow (shorthand)
94
+ // Values: <flex-direction> | <flex-wrap>
95
+ // Default: row nowrap
96
+
97
+ @mixin flex-flow($values) {
98
+ // No Webkit Box fallback
99
+ @include experimental(flex-flow, $values, -moz, -webkit, not -o, -ms, not -khtml, official);
100
+ }
101
+
102
+ // Flexbox Order
103
+ // Default: 0
104
+
105
+ @mixin order($int) {
106
+ @include experimental(box-ordinal-group, $int, -moz, -webkit, not -o, not -ms, not -khtml, not official);
107
+ @include experimental(flex-order, $int, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
108
+ @include experimental(order, $int, -moz, -webkit, not -o, -ms, not -khtml, official);
109
+ }
110
+
111
+ // Flexbox Grow
112
+ // Default: 0
113
+
114
+ @mixin flex-grow($int) {
115
+ @include experimental(flex-grow, $int, -moz, -webkit, not -o, not -ms, not -khtml, official);
116
+ @include experimental(flex-positive, $int, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
117
+ }
118
+
119
+ // Flexbox Shrink
120
+ // Default: 1
121
+
122
+ @mixin flex-shrink($int) {
123
+ @include experimental(flex-shrink, $int, -moz, -webkit, not -o, not -ms, not -khtml, official);
124
+ @include experimental(flex-negative, $int, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
125
+ }
126
+
127
+ // Flexbox Basis
128
+ // Values: Like "width"
129
+ // Default: auto
130
+
131
+ @mixin flex-basis($value) {
132
+ @include experimental(flex-basis, $value, -moz, -webkit, not -o, not -ms, not -khtml, official);
133
+ @include experimental(flex-preferred-size, $value, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
134
+ }
135
+
136
+ // Flexbox "Flex" (shorthand)
137
+ // Values: <flex-grow> <flex-shrink> || <flex-basis>
138
+ // Default: 0 1 auto
139
+
140
+ @mixin flex($values, $flex-width: false) {
141
+ @include experimental(box-flex, nth($values,1), -moz, -webkit, not -o, not -ms, not -khtml, not official);
142
+ @include experimental(flex, $values, -moz, -webkit, not -o, -ms, not -khtml, official);
143
+ @if $flex-width {
144
+ width: $flex-width;
145
+ }
146
+ }
147
+
148
+ // Flexbox Justify Content
149
+ // Values: flex-start | flex-end | center | space-between | space-around
150
+ // Default: flex-start
151
+ // (space-* values not supported in older syntaxes)
152
+
153
+ @mixin justify-content($value) {
154
+ $pack-value: $value;
155
+
156
+ @if $value == "flex-start" {
157
+ $pack-value: start;
158
+ }
159
+ @else if $value == "flex-end" {
160
+ $pack-value: end
161
+ }
162
+
163
+ @include experimental(box-pack, $pack-value, not -moz, -webkit, not -o, not -ms, not -khtml, not official);
164
+ @include experimental(flex-pack, $pack-value, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
165
+ @include experimental(justify-content, $value, -moz, -webkit, not -o, not -ms, not -khtml, official);
166
+ }
167
+
168
+ // Shorter version
169
+ @mixin flex-just($value) {
170
+ @include justify-content($value);
171
+ }
172
+
173
+ // Flexbox Align Items
174
+ // Values: flex-start | flex-end | center | baseline | stretch
175
+ // Default: stretch
176
+
177
+ @mixin align-items($value) {
178
+ $align-value: $value;
179
+
180
+ @if $value == "flex-start" {
181
+ $align-value: start;
182
+ }
183
+ @else if $value == "flex-end" {
184
+ $align-value: end;
185
+ }
186
+
187
+ @include experimental(box-align, $align-value, not -moz, -webkit, not -o, not -ms, not -khtml, not official);
188
+ @include experimental(flex-align, $align-value, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
189
+ @include experimental(align-items, $value, -moz, -webkit, not -o, not -ms, not -khtml, official);
190
+ }
191
+
192
+ // Flexbox Align Self
193
+ // Values: auto | flex-start | flex-end | center | baseline | stretch
194
+ // Default: auto
195
+
196
+ @mixin align-self($value) {
197
+ // No Webkit Box Fallback
198
+ $align-value: $value;
199
+
200
+ @if $value == "flex-start" {
201
+ $align-value: start;
202
+ }
203
+ @else if $value == "flex-end" {
204
+ $align-value: end;
205
+ }
206
+
207
+ @include experimental(flex-item-align, $align-value, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
208
+ @include experimental(align-self, $value, -moz, -webkit, not -o, not -ms, not -khtml, official);
209
+ }
210
+
211
+ // Flexbox Align Content
212
+ // Values: flex-start | flex-end | center | space-between | space-around | stretch
213
+ // Default: stretch
214
+
215
+ @mixin align-content($value) {
216
+ // No Webkit Box Fallback
217
+ $align-value: $value;
218
+
219
+ @if $value == "flex-start" {
220
+ $align-value: start;
221
+ }
222
+ @else if $value == "flex-end" {
223
+ $align-value: end;
224
+ }
225
+
226
+ @include experimental(flex-line-pack, $align-value, not -moz, not -webkit, not -o, -ms, not -khtml, not official);
227
+ @include experimental(align-content, $value, -moz, -webkit, not -o, not -ms, not -khtml, official);
228
+ }
@@ -0,0 +1,12 @@
1
+ $fontSize: 16 !default;
2
+ $lineHeight: 1.5 !default;
3
+
4
+ @mixin font-size($size: $fontSize) {
5
+ font-size: $size + px;
6
+ font-size: $size / $fontSize + rem;
7
+ }
8
+
9
+ @mixin line-height($line: $lineHeight) {
10
+ line-height: $line * $fontSize + px;
11
+ line-height: $line + rem;
12
+ }
@@ -0,0 +1,33 @@
1
+ @mixin absoluteStretch($height: true) {
2
+ position: absolute;
3
+ left: 0;
4
+ right: 0;
5
+ @if $height {
6
+ top: 0;
7
+ bottom: 0;
8
+ }
9
+ }
10
+
11
+ @mixin hover-focus-active() {
12
+ &:hover,
13
+ &:focus,
14
+ &:active { @content }
15
+ }
16
+
17
+ @mixin placeholderColor($color) {
18
+
19
+ ::-webkit-input-placeholder { /* WebKit browsers */
20
+ color: $color;
21
+ }
22
+ :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
23
+ color: $color;
24
+ opacity: 1;
25
+ }
26
+ ::-moz-placeholder { /* Mozilla Firefox 19+ */
27
+ color: $color;
28
+ opacity: 1;
29
+ }
30
+ :-ms-input-placeholder { /* Internet Explorer 10+ */
31
+ color: $color;
32
+ }
33
+ }
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simpodSass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Šimon Podlipský
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sass
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: compass
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.1'
41
+ description: ''
42
+ email:
43
+ - simon@podlipsky.net
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - lib/simpodSass.rb
49
+ - stylesheets/_simpodSass.scss
50
+ - stylesheets/simpodSass/_colors.scss
51
+ - stylesheets/simpodSass/_flex.scss
52
+ - stylesheets/simpodSass/_font.scss
53
+ - stylesheets/simpodSass/_modifiers.scss
54
+ homepage: https://github.com/simPod/simpodSass
55
+ licenses:
56
+ - MIT
57
+ - GPL-2.0
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '1.2'
73
+ requirements: []
74
+ rubyforge_project: simpodSass
75
+ rubygems_version: 2.0.14
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Sass pack with usefull mixins and variables
79
+ test_files: []