zazz 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/README.md +38 -0
- data/Rakefile +1 -0
- data/lib/zazz.rb +7 -0
- data/lib/zazz/version.rb +5 -0
- data/stylesheets/_zazz.sass +59 -0
- data/zazz.gemspec +29 -0
- metadata +87 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
Zazz
|
2
|
+
====
|
3
|
+
|
4
|
+
A handy collection of [Sass](http://sass-lang.com/) mixins, wrapped up in a gem.
|
5
|
+
|
6
|
+
Requires Compass and a crazy-new alpha version of Sass (3.2) that has support for
|
7
|
+
[content blocks](http://thesassway.com/intermediate/responsive-web-design-part-2).
|
8
|
+
|
9
|
+
Installation
|
10
|
+
------------
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
# In your Gemfile...
|
14
|
+
gem 'zazz'
|
15
|
+
```
|
16
|
+
|
17
|
+
```sass
|
18
|
+
// In your sass/scss file...
|
19
|
+
@import 'zazz'
|
20
|
+
```
|
21
|
+
|
22
|
+
The Mixins
|
23
|
+
----------
|
24
|
+
|
25
|
+
- no_float
|
26
|
+
- float_left
|
27
|
+
- float_right
|
28
|
+
- centered_container($width)
|
29
|
+
- underline_on_hover_only
|
30
|
+
- horizontal_list
|
31
|
+
- device($device)
|
32
|
+
|
33
|
+
License
|
34
|
+
-------
|
35
|
+
Copyright (c) 2012 Zeke Sikelianos
|
36
|
+
All Rights Reserved.
|
37
|
+
|
38
|
+
Licensed under the [MIT license](http://www.opensource.org/licenses/mit-license.php)
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/lib/zazz.rb
ADDED
data/lib/zazz/version.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
=no_float
|
2
|
+
display: block
|
3
|
+
float: none
|
4
|
+
clear: both
|
5
|
+
overflow: hidden
|
6
|
+
|
7
|
+
=float_left
|
8
|
+
display: block
|
9
|
+
clear: none
|
10
|
+
float: left
|
11
|
+
|
12
|
+
=float_right
|
13
|
+
display: block
|
14
|
+
clear: none
|
15
|
+
float: right
|
16
|
+
|
17
|
+
=centered_container($width)
|
18
|
+
margin-left: auto
|
19
|
+
margin-right: auto
|
20
|
+
position: relative
|
21
|
+
width: $width
|
22
|
+
|
23
|
+
=underline_on_hover_only
|
24
|
+
text-decoration: none
|
25
|
+
&:hover
|
26
|
+
text-decoration: underline
|
27
|
+
|
28
|
+
=horizontal_list
|
29
|
+
float: none
|
30
|
+
clear: both
|
31
|
+
overflow: hidden
|
32
|
+
margin: 0
|
33
|
+
padding: 0
|
34
|
+
li
|
35
|
+
float: left
|
36
|
+
clear: none
|
37
|
+
margin: 0
|
38
|
+
padding: 2px 10px
|
39
|
+
border-right: 1px solid #DDD
|
40
|
+
&:first-child, &.first
|
41
|
+
padding-left: 0
|
42
|
+
&:last-child, &.last
|
43
|
+
padding-right: 0
|
44
|
+
border-right: none
|
45
|
+
|
46
|
+
=device($device)
|
47
|
+
@if $device == phone
|
48
|
+
@media only screen and (max-width: 767px)
|
49
|
+
@content
|
50
|
+
@else if $device == desktop
|
51
|
+
@media only screen and (min-width: 768px)
|
52
|
+
@content
|
53
|
+
|
54
|
+
// @else if $device == coolphone
|
55
|
+
// @media only screen and (min-width: 480px) and (max-width: 767px)
|
56
|
+
// @content
|
57
|
+
// @else if $device == tablet
|
58
|
+
// @media only screen and (min-width: 768px) and (max-width: 959px)
|
59
|
+
// @content
|
data/zazz.gemspec
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "zazz/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "zazz"
|
7
|
+
s.version = Compass::Zazz::VERSION
|
8
|
+
s.authors = ["Zeke Sikelianos"]
|
9
|
+
s.email = ["zeke@sikelianos.com"]
|
10
|
+
s.homepage = "http://zeke.sikelianos.com"
|
11
|
+
s.summary = %q{A collection of handy Sass mixins.}
|
12
|
+
s.description = %q{The zazz gem provides an ever-growing collection of Sass mixins to solve layout problems that are common to most projects.}
|
13
|
+
|
14
|
+
s.rubyforge_project = "zazz"
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.files += %w(README.md)
|
18
|
+
s.files += Dir.glob("stylesheets/**/*.*")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
|
23
|
+
s.rubygems_version = %q{1.8.10}
|
24
|
+
s.add_development_dependency("rake")
|
25
|
+
|
26
|
+
s.add_dependency("compass", [">= 0.11"])
|
27
|
+
# gotta use this funky version to get the new content 'blocks'
|
28
|
+
s.add_dependency("sass", ["~> 3.2.0.alpha.76"])
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: zazz
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Zeke Sikelianos
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-02-22 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: &70315502301900 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *70315502301900
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: compass
|
27
|
+
requirement: &70315502301380 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.11'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70315502301380
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: sass
|
38
|
+
requirement: &70315502498600 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ~>
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.2.0.alpha.76
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *70315502498600
|
47
|
+
description: The zazz gem provides an ever-growing collection of Sass mixins to solve
|
48
|
+
layout problems that are common to most projects.
|
49
|
+
email:
|
50
|
+
- zeke@sikelianos.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- .gitignore
|
56
|
+
- Gemfile
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- lib/zazz.rb
|
60
|
+
- lib/zazz/version.rb
|
61
|
+
- stylesheets/_zazz.sass
|
62
|
+
- zazz.gemspec
|
63
|
+
homepage: http://zeke.sikelianos.com
|
64
|
+
licenses: []
|
65
|
+
post_install_message:
|
66
|
+
rdoc_options: []
|
67
|
+
require_paths:
|
68
|
+
- lib
|
69
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
none: false
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubyforge_project: zazz
|
83
|
+
rubygems_version: 1.8.10
|
84
|
+
signing_key:
|
85
|
+
specification_version: 3
|
86
|
+
summary: A collection of handy Sass mixins.
|
87
|
+
test_files: []
|