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 CHANGED
@@ -1,2 +1,6 @@
1
1
  *.gem
2
2
  .sass-cache
3
+
4
+ build
5
+ node_modules
6
+
@@ -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
@@ -1,14 +1,6 @@
1
- .component {
2
- background-color: red;
3
- }
1
+ @import '../stylesheets/breakup.scss';
4
2
 
5
- @media (max-width: 35.999em) {
6
- .component {
7
- background-color: blue;
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';
@@ -1,3 +1,3 @@
1
1
  module Breakup
2
- VERSION = "0.2.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -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
+ }
@@ -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
+ }
@@ -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 not $breakup-naked {
71
+ @if $breakup-naked != true {
72
72
  @media #{$declaration} {
73
73
  @content;
74
74
  }
@@ -0,0 +1,6 @@
1
+ @import '../stylesheets/breakup.scss';
2
+
3
+ $breakup-included-blocks: ('basic' 'thin' 'wide' 'full');
4
+
5
+ @import 'partials/global_variables';
6
+ @import 'partials/component';
@@ -0,0 +1,8 @@
1
+ @import '../stylesheets/breakup.scss';
2
+
3
+ $breakup-included-blocks: ('basic' 'thin' 'wide' 'full');
4
+ $breakup-naked: true;
5
+ $breakup-breakpoints-allow-naked: ('wide' 'full');
6
+
7
+ @import 'partials/global_variables';
8
+ @import 'partials/component';
@@ -0,0 +1,6 @@
1
+ @import '../stylesheets/breakup.scss';
2
+
3
+ $breakup-included-blocks: ('wide');
4
+
5
+ @import 'partials/global_variables';
6
+ @import 'partials/component';
@@ -0,0 +1,9 @@
1
+ .component {
2
+ background-color: red; }
3
+
4
+ @media (max-width: 35.999em) {
5
+ .component {
6
+ background-color: blue; } }
7
+ @media (min-width: 36em) {
8
+ .component {
9
+ background-color: green; } }
@@ -0,0 +1,5 @@
1
+ .component {
2
+ background-color: red; }
3
+
4
+ .component {
5
+ background-color: green; }
@@ -0,0 +1,3 @@
1
+ @media (min-width: 36em) {
2
+ .component {
3
+ background-color: green; } }
@@ -0,0 +1,11 @@
1
+ @include breakup-block('basic') {
2
+ .component { background-color: red; }
3
+ }
4
+
5
+ @include breakup-breakpoint('thin') {
6
+ .component { background-color: blue; }
7
+ }
8
+
9
+ @include breakup-breakpoint('wide') {
10
+ .component { background-color: green; }
11
+ }
@@ -0,0 +1,5 @@
1
+ $breakup-breakpoints: (
2
+ 'thin' '(max-width: 35.999em)',
3
+ 'wide' '(min-width: 36em)',
4
+ 'full' '(min-width: 61em)'
5
+ );
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.2.1
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: 2013-09-01 00:00:00.000000000 Z
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: