flake-scss 0.1.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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1cc735121e7e4fef499d4a341e9f5c32602c97fc
4
+ data.tar.gz: 739b1556aff3b6ea555a3317c3bb17dda3785d14
5
+ SHA512:
6
+ metadata.gz: f9cc99f0e8eb7f45013ff73d18a552a9e0045bd60c83249528d11d090baf29b47c853a947918b0db16951f8ad65e061fea586cb63d445dd2dc84c5c742f39838
7
+ data.tar.gz: 414027b8c74e98f07f2b9336d8fa2097436488cdbc30d036bb2b969a0c39f8ca528101dde52c0832b32b9141e77052eb8ed462250d04ed9bc90c1cfc16746c91
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at mitchel_jager@hotmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in flake-scss.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Mitcheljager
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # Flake::Scss
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/flake/scss`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'flake-scss'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install flake-scss
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/flake-scss. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Flake::Scss project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/flake-scss/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "flake/scss"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,25 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "flake/scss/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "flake-scss"
8
+ spec.version = Flake::Scss::VERSION
9
+ spec.authors = ["Mitcheljager"]
10
+ spec.email = ["mitchel_jager@hotmail.com"]
11
+
12
+ spec.summary = "Highly customizable Utility SCSS Framework"
13
+ spec.homepage = "https://github.com/Mitcheljager/flake-scss"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.15"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ end
@@ -0,0 +1,5 @@
1
+ module Flake
2
+ module Scss
3
+ VERSION = "0.1.1"
4
+ end
5
+ end
data/lib/flake/scss.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "flake/scss/version"
2
+
3
+ module Flake
4
+ module Scss
5
+ class Engine < ::Rails::Engine; end
6
+ end
7
+ end
@@ -0,0 +1,14 @@
1
+ @import "helpers/functions",
2
+ "helpers/breakpoints";
3
+
4
+ @import "general/general",
5
+ "general/display";
6
+
7
+ @import "background/colors";
8
+
9
+ @import "text/colors";
10
+
11
+ @import "sizing/spacing",
12
+ "sizing/grid";
13
+
14
+ @import "layout/flex";
File without changes
@@ -0,0 +1,31 @@
1
+ @import "../helpers/colors-list";
2
+
3
+ $bg-hover: true !default;
4
+ $bg-responsive: false !default;
5
+
6
+ @each $color in $colors {
7
+ $medium: map-get($colors-list, $color);
8
+
9
+ @each $shade, $value in $medium {
10
+ $hover: "";
11
+
12
+ @if $bg-hover {
13
+ $hover: ", .hover\\:bg-#{$color}-#{$shade}:hover";
14
+ }
15
+
16
+ .bg-#{$color}-#{$shade}
17
+ #{$hover} {
18
+ background-color: $value;
19
+ }
20
+
21
+ @if $bg-responsive {
22
+ @each $breakpoint, $breakpoint-value in $breakpoints {
23
+ @include mediaquery($breakpoint) {
24
+ .#{$breakpoint}\:bg-#{$color}-#{$shade} {
25
+ background-color: $value;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,36 @@
1
+ $display-hover: false !default;
2
+ $display-responsive: true !default;
3
+
4
+ $display: () !default;
5
+ @if $display == () {
6
+ $display: (
7
+ inline,
8
+ inline-block,
9
+ block,
10
+ flex,
11
+ inline-flex
12
+ );
13
+ }
14
+
15
+ @each $property in $display {
16
+ $hover: "";
17
+
18
+ @if $display-hover {
19
+ $hover: ", .hover\\:#{$property}:hover";
20
+ }
21
+
22
+ .#{$property}
23
+ #{$hover} {
24
+ display: $property;
25
+ }
26
+
27
+ @if $display-responsive {
28
+ @each $breakpoint, $breakpoint-value in $breakpoints {
29
+ @include mediaquery($breakpoint) {
30
+ .#{$breakpoint}\:#{$property} {
31
+ display: $property;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,9 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ html,
6
+ body {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
@@ -0,0 +1,17 @@
1
+ $breakpoints: () !default;
2
+ @if $breakpoints == () {
3
+ $breakpoints: (
4
+ sm: 560px,
5
+ md: 768px,
6
+ lg: 960px,
7
+ mw: 1200px
8
+ );
9
+ }
10
+
11
+ @mixin mediaquery($size) {
12
+ $query: map-get($breakpoints, $size);
13
+
14
+ @media (min-width: #{$query}) {
15
+ @content;
16
+ }
17
+ }
@@ -0,0 +1,308 @@
1
+ // scss-lint:disable ColorKeyword
2
+ // scss-lint:disable ColorVariable
3
+
4
+ $colors: () !default;
5
+ @if $colors == () {
6
+ $colors: (
7
+ red,
8
+ pink,
9
+ purple,
10
+ deep-purple,
11
+ indigo,
12
+ blue,
13
+ light-blue,
14
+ cyan,
15
+ teal,
16
+ green,
17
+ light-green,
18
+ lime,
19
+ yellow,
20
+ amber,
21
+ orange,
22
+ deep-orange,
23
+ brown,
24
+ gray,
25
+ blue-gray,
26
+ general
27
+ );
28
+ }
29
+
30
+ $colors-list: (
31
+ red: (
32
+ 50: #FFEBEE,
33
+ 100: #FFCDD2,
34
+ 200: #EF9A9A,
35
+ 300: #E57373,
36
+ 400: #EF5350,
37
+ 500: #F44336,
38
+ 600: #E53935,
39
+ 700: #D32F2F,
40
+ 800: #C62828,
41
+ 900: #B71C1C,
42
+ A100: #FF8A80,
43
+ A200: #FF5252,
44
+ A400: #FF1744,
45
+ A700: #D50000
46
+ ), pink: (
47
+ 50: #FCE4EC,
48
+ 100: #F8BBD0,
49
+ 200: #F48FB1,
50
+ 300: #F06292,
51
+ 400: #EC407A,
52
+ 500: #E91E63,
53
+ 600: #D81B60,
54
+ 700: #C2185B,
55
+ 800: #AD1457,
56
+ 900: #880E4F,
57
+ A100: #FF80AB,
58
+ A200: #FF4081,
59
+ A400: #F50057,
60
+ A700: #C51162
61
+ ), purple: (
62
+ 50: #F3E5F5,
63
+ 100: #E1BEE7,
64
+ 200: #CE93D8,
65
+ 300: #BA68C8,
66
+ 400: #AB47BC,
67
+ 500: #9C27B0,
68
+ 600: #8E24AA,
69
+ 700: #7B1FA2,
70
+ 800: #6A1B9A,
71
+ 900: #4A148C,
72
+ A100: #EA80FC,
73
+ A200: #E040FB,
74
+ A400: #D500F9,
75
+ A700: #AA00FF
76
+ ), deep-purple: (
77
+ 50: #EDE7F6,
78
+ 100: #D1C4E9,
79
+ 200: #B39DDB,
80
+ 300: #9575CD,
81
+ 400: #7E57C2,
82
+ 500: #673AB7,
83
+ 600: #5E35B1,
84
+ 700: #512DA8,
85
+ 800: #4527A0,
86
+ 900: #311B92,
87
+ A100: #B388FF,
88
+ A200: #7C4DFF,
89
+ A400: #651FFF,
90
+ A700: #6200EA
91
+ ), indigo: (
92
+ 50: #E8EAF6,
93
+ 100: #C5CAE9,
94
+ 200: #9FA8DA,
95
+ 300: #7986CB,
96
+ 400: #5C6BC0,
97
+ 500: #3F51B5,
98
+ 600: #3949AB,
99
+ 700: #303F9F,
100
+ 800: #283593,
101
+ 900: #1A237E,
102
+ A100: #8C9EFF,
103
+ A200: #536DFE,
104
+ A400: #3D5AFE,
105
+ A700: #304FFE
106
+ ), blue: (
107
+ 50: #E3F2FD,
108
+ 100: #BBDEFB,
109
+ 200: #90CAF9,
110
+ 300: #64B5F6,
111
+ 400: #42A5F5,
112
+ 500: #2196F3,
113
+ 600: #1E88E5,
114
+ 700: #1976D2,
115
+ 800: #1565C0,
116
+ 900: #0D47A1,
117
+ A100: #82B1FF,
118
+ A200: #448AFF,
119
+ A400: #2979FF,
120
+ A700: #2962FF
121
+ ), light-blue: (
122
+ 50: #E1F5FE,
123
+ 100: #B3E5FC,
124
+ 200: #81D4FA,
125
+ 300: #4FC3F7,
126
+ 400: #29B6F6,
127
+ 500: #03A9F4,
128
+ 600: #039BE5,
129
+ 700: #0288D1,
130
+ 800: #0277BD,
131
+ 900: #01579B,
132
+ A100: #80D8FF,
133
+ A200: #40C4FF,
134
+ A400: #00B0FF,
135
+ A700: #0091EA
136
+ ), cyan: (
137
+ 50: #E0F7FA,
138
+ 100: #B2EBF2,
139
+ 200: #80DEEA,
140
+ 300: #4DD0E1,
141
+ 400: #26C6DA,
142
+ 500: #00BCD4,
143
+ 600: #00ACC1,
144
+ 700: #0097A7,
145
+ 800: #00838F,
146
+ 900: #006064,
147
+ A100: #84FFFF,
148
+ A200: #18FFFF,
149
+ A400: #00E5FF,
150
+ A700: #00B8D4
151
+ ), teal: (
152
+ 50: #E0F2F1,
153
+ 100: #B2DFDB,
154
+ 200: #80CBC4,
155
+ 300: #4DB6AC,
156
+ 400: #26A69A,
157
+ 500: #009688,
158
+ 600: #00897B,
159
+ 700: #00796B,
160
+ 800: #00695C,
161
+ 900: #004D40,
162
+ A100: #A7FFEB,
163
+ A200: #64FFDA,
164
+ A400: #1DE9B6,
165
+ A700: #00BFA5
166
+ ), green: (
167
+ 50: #E8F5E9,
168
+ 100: #C8E6C9,
169
+ 200: #A5D6A7,
170
+ 300: #81C784,
171
+ 400: #66BB6A,
172
+ 500: #4CAF50,
173
+ 600: #43A047,
174
+ 700: #388E3C,
175
+ 800: #2E7D32,
176
+ 900: #1B5E20,
177
+ A100: #B9F6CA,
178
+ A200: #69F0AE,
179
+ A400: #00E676,
180
+ A700: #00C853
181
+ ), light-green: (
182
+ 50: #F1F8E9,
183
+ 100: #DCEDC8,
184
+ 200: #C5E1A5,
185
+ 300: #AED581,
186
+ 400: #9CCC65,
187
+ 500: #8BC34A,
188
+ 600: #7CB342,
189
+ 700: #689F38,
190
+ 800: #558B2F,
191
+ 900: #33691E,
192
+ A100: #CCFF90,
193
+ A200: #B2FF59,
194
+ A400: #76FF03,
195
+ A700: #64DD17
196
+ ), lime: (
197
+ 50: #F9FBE7,
198
+ 100: #F0F4C3,
199
+ 200: #E6EE9C,
200
+ 300: #DCE775,
201
+ 400: #D4E157,
202
+ 500: #CDDC39,
203
+ 600: #C0CA33,
204
+ 700: #AFB42B,
205
+ 800: #9E9D24,
206
+ 900: #827717,
207
+ A100: #F4FF81,
208
+ A200: #EEFF41,
209
+ A400: #C6FF00,
210
+ A700: #AEEA00
211
+ ), yellow: (
212
+ 50: #FFFDE7,
213
+ 100: #FFF9C4,
214
+ 200: #FFF59D,
215
+ 300: #FFF176,
216
+ 400: #FFEE58,
217
+ 500: #FFEB3B,
218
+ 600: #FDD835,
219
+ 700: #FBC02D,
220
+ 800: #F9A825,
221
+ 900: #F57F17,
222
+ A100: #FFFF8D,
223
+ A200: #FFFF00,
224
+ A400: #FFEA00,
225
+ A700: #FFD600
226
+ ), amber: (
227
+ 50: #FFF8E1,
228
+ 100: #FFECB3,
229
+ 200: #FFE082,
230
+ 300: #FFD54F,
231
+ 400: #FFCA28,
232
+ 500: #FFC107,
233
+ 600: #FFB300,
234
+ 700: #FFA000,
235
+ 800: #FF8F00,
236
+ 900: #FF6F00,
237
+ A100: #FFE57F,
238
+ A200: #FFD740,
239
+ A400: #FFC400,
240
+ A700: #FFAB00
241
+ ), orange: (
242
+ 50: #FFF3E0,
243
+ 100: #FFE0B2,
244
+ 200: #FFCC80,
245
+ 300: #FFB74D,
246
+ 400: #FFA726,
247
+ 500: #FF9800,
248
+ 600: #FB8C00,
249
+ 700: #F57C00,
250
+ 800: #EF6C00,
251
+ 900: #E65100,
252
+ A100: #FFD180,
253
+ A200: #FFAB40,
254
+ A400: #FF9100,
255
+ A700: #FF6D00
256
+ ), deep-orange: (
257
+ 50: #FBE9E7,
258
+ 100: #FFCCBC,
259
+ 200: #FFAB91,
260
+ 300: #FF8A65,
261
+ 400: #FF7043,
262
+ 500: #FF5722,
263
+ 600: #F4511E,
264
+ 700: #E64A19,
265
+ 800: #D84315,
266
+ 900: #BF360C,
267
+ A100: #FF9E80,
268
+ A200: #FF6E40,
269
+ A400: #FF3D00,
270
+ A700: #DD2C00
271
+ ), brown: (
272
+ 50: #EFEBE9,
273
+ 100: #D7CCC8,
274
+ 200: #BCAAA4,
275
+ 300: #A1887F,
276
+ 400: #8D6E63,
277
+ 500: #795548,
278
+ 600: #6D4C41,
279
+ 700: #5D4037,
280
+ 800: #4E342E,
281
+ 900: #3E2723
282
+ ), gray: (
283
+ 50: #FAFAFA,
284
+ 100: #F5F5F5,
285
+ 200: #EEEEEE,
286
+ 300: #E0E0E0,
287
+ 400: #BDBDBD,
288
+ 500: #9E9E9E,
289
+ 600: #757575,
290
+ 700: #616161,
291
+ 800: #424242,
292
+ 900: #212121
293
+ ), blue-gray: (
294
+ 50: #ECEFF1,
295
+ 100: #CFD8DC,
296
+ 200: #B0BEC5,
297
+ 300: #90A4AE,
298
+ 400: #78909C,
299
+ 500: #607D8B,
300
+ 600: #546E7A,
301
+ 700: #455A64,
302
+ 800: #37474F,
303
+ 900: #263238
304
+ ), general: (
305
+ black: #000000,
306
+ white: #FFFFFF
307
+ ),
308
+ );
@@ -0,0 +1,3 @@
1
+ @function spacing($key: 0) {
2
+ @return map-get($spacing, $key);
3
+ }
@@ -0,0 +1,88 @@
1
+ $flex-responsive: true !default;
2
+
3
+ $flex: () !default;
4
+ @if $flex == () {
5
+ $flex: (
6
+ flex-direction,
7
+ flex-wrap,
8
+ align-items,
9
+ align-self,
10
+ justify-content
11
+ );
12
+ }
13
+
14
+ $flex-list: (
15
+ "flex-direction": (
16
+ "class": "flex",
17
+ "values": (
18
+ row: "row",
19
+ row-reverse: "row-reverse",
20
+ column: "column",
21
+ column-reverse: "column-reverse",
22
+ unset: "unset"
23
+ )
24
+ ), "flex-wrap": (
25
+ "class": "flex",
26
+ "values": (
27
+ wrap: "wrap",
28
+ wrap-reverse: "wrap-reverse",
29
+ nowrap: "no-wrap"
30
+ )
31
+ ), "align-items": (
32
+ "class": "align",
33
+ "values": (
34
+ start: "flex-start",
35
+ end: "flex-end",
36
+ center: "center",
37
+ baseline: "baseline",
38
+ stretch: "stretch"
39
+ )
40
+ ), "align-self": (
41
+ "class": "self",
42
+ "values": (
43
+ start: "flex-start",
44
+ end: "flex-end",
45
+ center: "center",
46
+ baseline: "baseline",
47
+ stretch: "stretch"
48
+ )
49
+ ), "justify-content": (
50
+ "class": "justify",
51
+ "values": (
52
+ start: "flex-start",
53
+ end: "flex-end",
54
+ center: "center",
55
+ between: "space-between",
56
+ around: "space-around"
57
+ )
58
+ )
59
+ );
60
+
61
+ @each $property in $flex {
62
+ $medium: map-get($flex-list, $property);
63
+ $classstart: "";
64
+
65
+ @each $name, $value in $medium {
66
+ @if $name == "class" {
67
+ $classstart: #{$value};
68
+ }
69
+
70
+ @if $name == "values" {
71
+ @each $value-name, $value-value in $value {
72
+ .#{$classstart}-#{$value-name} {
73
+ #{$property}: #{$value-value};
74
+ }
75
+
76
+ @if $flex-responsive {
77
+ @each $breakpoint, $breakpoint-value in $breakpoints {
78
+ @include mediaquery($breakpoint) {
79
+ .#{$breakpoint}\:#{$classstart}-#{$value-name} {
80
+ #{$property}: #{$value-value};
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,58 @@
1
+ $grid-size: 12;
2
+ $grid-full: true !default;
3
+ $grid-single: false !default;
4
+
5
+ @mixin widthify($divide: 0, $division: 0, $breakpoint: 0) {
6
+ $bp: "";
7
+ @if $breakpoint != 0 {
8
+ $bp: "#{$breakpoint}\\:";
9
+ }
10
+
11
+ .#{$bp}w-#{$division}\/#{$divide} {
12
+ width: (100% / $divide) * $division;
13
+ }
14
+ }
15
+
16
+ @if $grid-single {
17
+ @for $i from 1 through $grid-size {
18
+ .w-#{$i} {
19
+ width: (100% / $grid-size) * $i;
20
+ }
21
+
22
+ @each $breakpoint, $breakpoint-value in $breakpoints {
23
+ @include mediaquery($breakpoint) {
24
+ .#{$breakpoint}\:w-#{$i} {
25
+ width: (100% / $grid-size) * $i;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ } @else {
31
+ @for $i from 1 through $grid-size {
32
+ @if $grid-full {
33
+ @for $j from 1 through $i {
34
+ @include widthify($i, $j);
35
+
36
+ @each $breakpoint, $breakpoint-value in $breakpoints {
37
+ @include mediaquery($breakpoint) {
38
+ @include widthify($i, $j, $breakpoint);
39
+ }
40
+ }
41
+ }
42
+ } @else {
43
+ @include widthify($i, 1);
44
+
45
+ @each $breakpoint, $breakpoint-value in $breakpoints {
46
+ @include mediaquery($breakpoint) {
47
+ @include widthify($i, 1, $breakpoint);
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+
54
+ @if map-get($breakpoints, mw) {
55
+ .w-max {
56
+ max-width: map-get($breakpoints, mw);
57
+ }
58
+ }
@@ -0,0 +1,92 @@
1
+ $spacing-responsive: true !default;
2
+
3
+ $spacing: () !default;
4
+ @if $spacing == () {
5
+ $spacing: (
6
+ 0: 0,
7
+ 1: .5rem,
8
+ 2: 1rem,
9
+ 3: 2rem,
10
+ 4: 3rem,
11
+ 5: 4rem,
12
+ auto: auto
13
+ );
14
+ }
15
+
16
+ $spacing-locations: (
17
+ t: "top",
18
+ r: "right",
19
+ b: "bottom",
20
+ l: "left",
21
+ y: (
22
+ "top",
23
+ "bottom"
24
+ ), x: (
25
+ "left",
26
+ "right"
27
+ )
28
+ );
29
+
30
+ $types: (
31
+ m: margin,
32
+ p: padding
33
+ );
34
+
35
+ @mixin paddingmargin($space, $value, $breakpoint: 0, $location: "", $location-value: "") {
36
+ $s: "";
37
+ $bp: "";
38
+ $l: "";
39
+
40
+ @each $type, $type-value in $types {
41
+ @if $breakpoint != 0 {
42
+ $bp: "#{$breakpoint}\\:";
43
+ $s: "-#{$space}";
44
+ } @else {
45
+ $s: "-#{$space}";
46
+ }
47
+
48
+ @if $location != "" {
49
+ $l: "#{$location}";
50
+ }
51
+
52
+ .#{$bp}#{$type}#{$l}#{$s} {
53
+ @each $loc in $location-value {
54
+ $sep: "";
55
+ @if $loc != "" {
56
+ $sep: "-";
57
+ }
58
+
59
+ #{$type-value}#{$sep}#{$loc}: $value;
60
+ }
61
+ }
62
+ }
63
+ }
64
+
65
+ @each $space, $value in $spacing {
66
+ @include paddingmargin($space, $value);
67
+
68
+ @each $location, $location-value in $spacing-locations {
69
+ @include paddingmargin($space, $value, 0, $location, $location-value);
70
+ }
71
+
72
+ @if $spacing-responsive {
73
+ @each $breakpoint, $breakpoint-value in $breakpoints {
74
+ @include mediaquery($breakpoint) {
75
+ @include paddingmargin($space, $value, $breakpoint);
76
+
77
+ @each $location, $location-value in $spacing-locations {
78
+ @include paddingmargin($space, $value, $breakpoint, $location, $location-value);
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ @each $space, $value in $spacing {
86
+ @if type-of($value) == "number" {
87
+ .-mx-#{$space} {
88
+ margin-left: $value * -1;
89
+ margin-right: $value * -1;
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,20 @@
1
+ @import "../helpers/colors-list";
2
+
3
+ $text-colors-hover: true !default;
4
+
5
+ @each $color in $colors {
6
+ $medium: map-get($colors-list, $color);
7
+
8
+ @each $shade, $value in $medium {
9
+ $hover: "";
10
+
11
+ @if $text-colors-hover {
12
+ $hover: ", .hover\\:text-#{$color}-#{$shade}:hover";
13
+ }
14
+
15
+ .text-#{$color}-#{$shade}
16
+ #{$hover} {
17
+ color: $value;
18
+ }
19
+ }
20
+ }
metadata ADDED
@@ -0,0 +1,95 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: flake-scss
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Mitcheljager
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-11-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description:
42
+ email:
43
+ - mitchel_jager@hotmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - CODE_OF_CONDUCT.md
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - bin/console
55
+ - bin/setup
56
+ - flake-scss.gemspec
57
+ - lib/flake/scss.rb
58
+ - lib/flake/scss/version.rb
59
+ - vendor/assets/stylesheets/_flake.scss
60
+ - vendor/assets/stylesheets/_variables.scss
61
+ - vendor/assets/stylesheets/background/_colors.scss
62
+ - vendor/assets/stylesheets/general/_display.scss
63
+ - vendor/assets/stylesheets/general/_general.scss
64
+ - vendor/assets/stylesheets/helpers/_breakpoints.scss
65
+ - vendor/assets/stylesheets/helpers/_colors-list.scss
66
+ - vendor/assets/stylesheets/helpers/_functions.scss
67
+ - vendor/assets/stylesheets/layout/_flex.scss
68
+ - vendor/assets/stylesheets/sizing/_grid.scss
69
+ - vendor/assets/stylesheets/sizing/_spacing.scss
70
+ - vendor/assets/stylesheets/text/_colors.scss
71
+ homepage: https://github.com/Mitcheljager/flake-scss
72
+ licenses:
73
+ - MIT
74
+ metadata: {}
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ required_rubygems_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ requirements: []
90
+ rubyforge_project:
91
+ rubygems_version: 2.6.14
92
+ signing_key:
93
+ specification_version: 4
94
+ summary: Highly customizable Utility SCSS Framework
95
+ test_files: []