spaceless 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +10 -11
- data/app/assets/stylesheets/spaceless/zerospace-webfont.css.scss +9 -12
- data/lib/spaceless.rb +10 -2
- data/lib/spaceless/version.rb +1 -1
- data/spaceless.gemspec +3 -2
- metadata +20 -4
data/README.md
CHANGED
@@ -1,35 +1,34 @@
|
|
1
|
-
A SASS library which helps to remove space between blocks. It uses special font with zero-with space for container of blocks which have to be without space between.
|
1
|
+
A rails-based SASS library which helps to remove space between blocks. It uses special font with zero-with space for container of blocks which have to be without space between.
|
2
2
|
|
3
3
|
Installation
|
4
4
|
------------
|
5
5
|
|
6
6
|
Add gem spaceless to your project's Gemfile:
|
7
7
|
|
8
|
-
|
9
|
-
gem 'sass' # or sass-rails
|
10
|
-
gem 'spaceless'
|
11
|
-
end
|
8
|
+
gem 'spaceless'
|
12
9
|
|
13
|
-
|
10
|
+
If you don't use Rails add Spaceless.load_paths to your Sprockets `environment`:
|
11
|
+
|
12
|
+
Spaceless.load_paths.each {|path| environment.append_path path }
|
13
|
+
|
14
|
+
Then include library to your sass-code:
|
14
15
|
|
15
16
|
@import 'spaceless';
|
16
17
|
|
17
|
-
|
18
|
+
And setup $font-family variable. For example:
|
18
19
|
|
19
20
|
$font-family: Helvetica, Arial, sans-serif;
|
20
21
|
|
21
|
-
And add `-r grids` to your `sass --watch` command if you use it.
|
22
|
-
|
23
22
|
Usage
|
24
23
|
-----
|
25
24
|
|
26
|
-
Extend
|
25
|
+
Extend parent block from .spaceless:
|
27
26
|
|
28
27
|
.container {
|
29
28
|
@extend .spaceless;
|
30
29
|
}
|
31
30
|
|
32
|
-
Or include a mixin
|
31
|
+
Or include a mixin:
|
33
32
|
|
34
33
|
.container {
|
35
34
|
@include spaceless;
|
@@ -1,15 +1,12 @@
|
|
1
|
-
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on August 27, 2012 */
|
2
|
-
|
3
1
|
@font-face {
|
4
|
-
|
5
|
-
|
6
|
-
|
2
|
+
font-family: 'zerospace';
|
3
|
+
src: stylesheet-url('spaceless/zerospace-webfont.eot');
|
4
|
+
}
|
7
5
|
|
8
6
|
@font-face {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
}
|
7
|
+
font-family: 'zerospace';
|
8
|
+
src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABEcABAAAAAAL3wAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABbAAAABwAAAAcYktQQUdERUYAAAGIAAAAHQAAACAANAAET1MvMgAAAagAAABBAAAAYG+XQ/ZjbWFwAAAB7AAAAF0AAAFqxN4sU2N2dCAAAAJMAAAABgAAAAYFEQBEZnBnbQAAAlQAAAGxAAACZVO0L6dnbHlmAAAECAAAARsAAAEk5UYzmGhlYWQAAAUkAAAALwAAADb8HmbWaGhlYQAABVQAAAAdAAAAJAwtBnBobXR4AAAFdAAAABoAAAAcG14AjmxvY2EAAAWQAAAAEAAAABAA4gF0bWF4cAAABaAAAAAgAAAAIAEhAGpuYW1lAAAFwAAACuUAACeinkCnAHBvc3QAABCoAAAAOQAAAE9pNX+0cHJlcAAAEOQAAAAuAAAALrDyKxR3ZWJmAAARFAAAAAYAAAAGXaFQOwAAAAEAAAAAyYlvMQAAAADMYNLwAAAAAMxhDh942mNgZGBg4ANiCQYQYGJgBEI2IGYB8xgABIwAOQAAAHjaY2BmrWacwMDKwMJqzHKWgYFhFoRmOsuQxtLPgAoYkTn+3iEKDA4MvA8Y2DL+ZTDOYt3GIIumRoGBEQBQrQs3AAAAeNpjYGBgZoBgGQZGBhBIAfIYwXwWBg8gzcfAwcDEwAZk8TIoMBgwLHjA8P8/WCUyn/H/1/+P/1/5n6rABjUHCTACdcMEGZmABBO6AogTkAELw2AFrGTpAgCWmRAXAAAAAAAARAURAAB42l1Ru05bQRDdDQ8DgcTYIDnaFLOZkMZ7oQUJxNWNYmQ7heUIaTdykYtxAR9AgUQN2q8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6b2hGoPcd9YgMjI8xhTi7BVcu8wl267NiiWfb+8QzUCK1d6nf7hnSdYkehTXwtS+eI+JDndVr9FCsyDzVIi9utktITpbUOOfHaXdx/XkLeF+i9pO9zGif3oXXwLfS2wMUJPRduGqCAd5bTlBOtus9pdx7ziijrgo5zYFHG1sAl83SMFXjfT9ErtLVV1xfIcuwqBypPoSSi55/reowElkAT904yVyLAKiURNN7EvhfQRUM1UNf7Ul9CogGHRKbwGHerdfDeqaTYrubrgampwoLd4xU4aUAmTezTwbnGEdZqlljimRfo73r4EpyL/pueHI/0zKNhPqNdG4qgut7Kh5yITTAPjhORdl0/j0pfEnmabqkmj0q9toGpdcm8gfU1MKoOnXRUDkzNCWz2TKm/1BVOSn1G1Cd4bJe0hVK2lmPH7eIvZC27t2DY8X+Mm/SmUtkpJbJ9Zfu/MJdvyn+szjR/5RzjCv8beIH/Z70wLymT/IA+36c++y+cw/8Bb7CIVgAAAHjaY2BiAIP/6QxpDNgAOwMDIxMjMwMzgzAjCyMrW3pOZUGGIXtpXqaBgYELhHY0ANGuQAEAGSwKzAAAALgB/4WwAY0AS7AIUFixAQGOWbFGBitYIbAQWUuwFFJYIbCAWR2wBitcWFmwFCsAAAABUDtdoAAA) format('woff'),
|
9
|
+
stylesheet-url('spaceless/zerospace-webfont.ttf') format('truetype');
|
10
|
+
font-weight: normal;
|
11
|
+
font-style: normal;
|
12
|
+
}
|
data/lib/spaceless.rb
CHANGED
@@ -1,6 +1,14 @@
|
|
1
|
-
require 'sass'
|
2
1
|
require "spaceless/version"
|
3
2
|
|
4
3
|
module Spaceless
|
5
|
-
|
4
|
+
def self.load_paths
|
5
|
+
[File.expand_path('../../app/assets/stylesheets/', __FILE__),]
|
6
|
+
end
|
6
7
|
end
|
8
|
+
|
9
|
+
if defined? Rails
|
10
|
+
module Spaceless
|
11
|
+
class Engine < ::Rails::Engine
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/spaceless/version.rb
CHANGED
data/spaceless.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/spaceless/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Vadim Rastyagaev"]
|
6
6
|
gem.email = ["abc@oktoberliner.ru"]
|
7
|
-
gem.description = %q{A SASS library which helps to remove space between blocks}
|
8
|
-
gem.summary = %q{A SASS library which helps to remove space between blocks}
|
7
|
+
gem.description = %q{A sprockets-based SASS library which helps to remove space between blocks}
|
8
|
+
gem.summary = %q{A sprockets-based SASS library which helps to remove space between blocks}
|
9
9
|
gem.homepage = "https://github.com/whitescape/spaceless"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
@@ -15,4 +15,5 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
gem.version = Spaceless::VERSION
|
17
17
|
gem.add_dependency 'sass', '>= 3.1'
|
18
|
+
gem.add_dependency 'sprockets', '>= 2'
|
18
19
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spaceless
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
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-02-
|
12
|
+
date: 2013-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -27,7 +27,23 @@ dependencies:
|
|
27
27
|
- - ! '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.1'
|
30
|
-
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sprockets
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2'
|
46
|
+
description: A sprockets-based SASS library which helps to remove space between blocks
|
31
47
|
email:
|
32
48
|
- abc@oktoberliner.ru
|
33
49
|
executables: []
|
@@ -70,5 +86,5 @@ rubyforge_project:
|
|
70
86
|
rubygems_version: 1.8.23
|
71
87
|
signing_key:
|
72
88
|
specification_version: 3
|
73
|
-
summary: A SASS library which helps to remove space between blocks
|
89
|
+
summary: A sprockets-based SASS library which helps to remove space between blocks
|
74
90
|
test_files: []
|