breakup 0.2.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/Makefile +33 -0
- data/examples/example_oldie.scss +5 -13
- data/lib/breakup/version.rb +1 -1
- data/package.json +31 -0
- data/sache.json +5 -0
- data/stylesheets/_breakup.scss +1 -1
- data/test/example_allblocks.scss +6 -0
- data/test/example_oldie.scss +8 -0
- data/test/example_wideonly.scss +6 -0
- data/test/expected/example_allblocks.css +9 -0
- data/test/expected/example_oldie.css +5 -0
- data/test/expected/example_wideonly.css +3 -0
- data/test/partials/_component.scss +11 -0
- data/test/partials/_global_variables.scss +5 -0
- metadata +14 -2
data/.gitignore
CHANGED
data/Makefile
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
PATH := node_modules/.bin:$(PATH)
|
2
|
+
SHELL := /bin/bash
|
3
|
+
|
4
|
+
source_files := $(wildcard stylesheets/*.scss)
|
5
|
+
test_files := $(wildcard test/*.scss)
|
6
|
+
|
7
|
+
expected_output_folder := test/expected
|
8
|
+
libsass_output_folder := build/libsass
|
9
|
+
rubysass_output_folder := build/rubysass
|
10
|
+
|
11
|
+
libsass_output_files := $(test_files:%.scss=build/libsass/%.css)
|
12
|
+
rubysass_output_files := $(test_files:%.scss=build/rubysass/%.css)
|
13
|
+
|
14
|
+
|
15
|
+
.PHONY: all clean test
|
16
|
+
|
17
|
+
all: test
|
18
|
+
|
19
|
+
build/libsass/test/%.css: test/%.scss
|
20
|
+
mkdir -p build/libsass/test
|
21
|
+
node-sass $< $@
|
22
|
+
|
23
|
+
build/rubysass/test/%.css: test/%.scss
|
24
|
+
mkdir -p build/rubysass/test
|
25
|
+
sass $< $@
|
26
|
+
|
27
|
+
|
28
|
+
test: $(source_files) $(libsass_output_files) $(rubysass_output_files)
|
29
|
+
diff -u --ignore-blank-lines $(expected_output_folder) $(rubysass_output_folder)/test
|
30
|
+
diff -u --ignore-blank-lines $(expected_output_folder) $(libsass_output_folder)/test
|
31
|
+
|
32
|
+
clean:
|
33
|
+
rm -rf build
|
data/examples/example_oldie.scss
CHANGED
@@ -1,14 +1,6 @@
|
|
1
|
-
.
|
2
|
-
background-color: red;
|
3
|
-
}
|
1
|
+
@import '../stylesheets/breakup.scss';
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
}
|
10
|
-
@media (min-width: 36em) {
|
11
|
-
.component {
|
12
|
-
background-color: green;
|
13
|
-
}
|
14
|
-
}
|
3
|
+
$breakup-included-blocks: ('basic' 'thin' 'wide' 'full');
|
4
|
+
|
5
|
+
@import 'partials/global_variables';
|
6
|
+
@import 'partials/component';
|
data/lib/breakup/version.rb
CHANGED
data/package.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"name": "breakup-sass",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"author": {
|
5
|
+
"name": "Ben Scott",
|
6
|
+
"email": "ben@reload.me.uk"
|
7
|
+
},
|
8
|
+
"description": "Build multiple stylesheets based off globally defined breakpoints",
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git://github.com/bpscott/breakup"
|
12
|
+
},
|
13
|
+
"files": [
|
14
|
+
"stylesheets",
|
15
|
+
"README.md",
|
16
|
+
"LICENSE.txt"
|
17
|
+
],
|
18
|
+
"devDependencies": {
|
19
|
+
"node-sass": "0.9.3"
|
20
|
+
},
|
21
|
+
"keywords": [
|
22
|
+
"breakup",
|
23
|
+
"media-queries",
|
24
|
+
"sass",
|
25
|
+
"css"
|
26
|
+
],
|
27
|
+
"license": "MIT",
|
28
|
+
"bugs": {
|
29
|
+
"url": "https://github.com/bpscott/breakup/issues"
|
30
|
+
}
|
31
|
+
}
|
data/sache.json
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
{
|
2
|
+
"name": "Breakup",
|
3
|
+
"description": "Breakup is a Sass component that allows you to create multiple CSS files from a single Sass partial by wrapping your code within breakpoint blocks. It allows you to abstract what your Sass partials folder looks like from what CSS files you create. Because of this you can easily create per-breakpoint CSS files (e.g. base, mobile, tablet and desktop) and fallback files where no styles are wrapped (e.g. for oldIE which does not support media queries).",
|
4
|
+
"tags": ["media-queries", "rwd", "responsive-web-design", "dry"]
|
5
|
+
}
|
data/stylesheets/_breakup.scss
CHANGED
@@ -68,7 +68,7 @@ $breakup-breakpoints-allow-naked: () !default;
|
|
68
68
|
// displaying naked content (i.e. not wrapped in a media
|
69
69
|
// query).
|
70
70
|
@mixin breakup-media($declaration, $allow-naked: false) {
|
71
|
-
@if
|
71
|
+
@if $breakup-naked != true {
|
72
72
|
@media #{$declaration} {
|
73
73
|
@content;
|
74
74
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-07-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -52,6 +52,7 @@ extra_rdoc_files: []
|
|
52
52
|
files:
|
53
53
|
- .gitignore
|
54
54
|
- LICENSE.txt
|
55
|
+
- Makefile
|
55
56
|
- README.md
|
56
57
|
- breakup.gemspec
|
57
58
|
- examples/example_allblocks.css
|
@@ -64,8 +65,18 @@ files:
|
|
64
65
|
- examples/partials/_global_variables.scss
|
65
66
|
- lib/breakup.rb
|
66
67
|
- lib/breakup/version.rb
|
68
|
+
- package.json
|
69
|
+
- sache.json
|
67
70
|
- script/examples-watch
|
68
71
|
- stylesheets/_breakup.scss
|
72
|
+
- test/example_allblocks.scss
|
73
|
+
- test/example_oldie.scss
|
74
|
+
- test/example_wideonly.scss
|
75
|
+
- test/expected/example_allblocks.css
|
76
|
+
- test/expected/example_oldie.css
|
77
|
+
- test/expected/example_wideonly.css
|
78
|
+
- test/partials/_component.scss
|
79
|
+
- test/partials/_global_variables.scss
|
69
80
|
homepage: https://github.com/bpscott/breakup
|
70
81
|
licenses: []
|
71
82
|
post_install_message:
|
@@ -96,3 +107,4 @@ summary: Breakup is a Sass component that allows you to create multiple CSS file
|
|
96
107
|
mobile, tablet and desktop) and fallback files where no styles are wrapped (e.g.
|
97
108
|
for oldIE which does not support media queries).
|
98
109
|
test_files: []
|
110
|
+
has_rdoc:
|