manhattan-sass 0.4.3

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: 5471cc8acc3915b60d9eb0087e771558f45a6674
4
+ data.tar.gz: deefa2e93e901bf705b854f1ea6fe6be4ca59cbb
5
+ SHA512:
6
+ metadata.gz: 10572e9abb606002610134d7779ef5389d74f9b3d619730553a3f64b05aeb2707a80cdc25926a59e11866d3cf57ccbf53acf38085485cd3b9dc1913de39ce049
7
+ data.tar.gz: 87d88e4be8318c4aa01893b8a575d95c4bbc3a9d114e1b1b45add9c37848fa7f75efa4ed88bea7b26f4127a444d2f0a8f002fb06d4ffea1a8f5f10e34f7aa6c3
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in manhattan.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 John Koht
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # [Manhattan](http://kohactive.github.io/manhattan/)
2
+
3
+ Manhattan is a powerful, mobile-first responsive framework built on top of Bourbon Neat. It's similar to Bootstrap 3 in syntax and usage but approachs the grid system differently.
4
+
5
+ ## Usage
6
+
7
+ TODO: Write usage instructions here
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ gem 'manhattan', github: 'kohactive/manhattan'
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ ## Contributing
21
+
22
+ 1. Fork it
23
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
24
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
25
+ 4. Push to the branch (`git push origin my-new-feature`)
26
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,11 @@
1
+ // Add Bourbon Neat
2
+ @import bourbon
3
+ @import neat
4
+
5
+ // Grid Variables
6
+ @import manhattan/variables
7
+
8
+ // Mixins and the grid
9
+ @import manhattan/mixins
10
+ @import manhattan/grid
11
+ @import manhattan/utilities
@@ -0,0 +1,161 @@
1
+ // Grid
2
+ // ------------------------------------------------------
3
+
4
+
5
+ // Containers, row and general column
6
+ // --------------------------------------
7
+
8
+ // Main containers
9
+ .container
10
+ @include outer-container
11
+
12
+ // Rows
13
+ .row
14
+ @include row()
15
+
16
+ // A basic column without a defined width or height
17
+ .col
18
+ float: left
19
+ display: inline-block
20
+
21
+ [class^="col-"],
22
+ [class*=" col-"]
23
+ padding: $col-padding
24
+
25
+
26
+ // Grid columns
27
+ // --------------------------------------
28
+
29
+ // Common styles for small and large grid columns
30
+ .col-xs-1,
31
+ .col-xs-2,
32
+ .col-xs-3,
33
+ .col-xs-4,
34
+ .col-xs-5,
35
+ .col-xs-6,
36
+ .col-xs-7,
37
+ .col-xs-8,
38
+ .col-xs-9,
39
+ .col-xs-10,
40
+ .col-xs-11,
41
+ .col-xs-12,
42
+ .col-sm-1,
43
+ .col-sm-2,
44
+ .col-sm-3,
45
+ .col-sm-4,
46
+ .col-sm-5,
47
+ .col-sm-6,
48
+ .col-sm-7,
49
+ .col-sm-8,
50
+ .col-sm-9,
51
+ .col-sm-10,
52
+ .col-sm-11,
53
+ .col-sm-12,
54
+ .col-md-1,
55
+ .col-md-2,
56
+ .col-md-3,
57
+ .col-md-4,
58
+ .col-md-5,
59
+ .col-md-6,
60
+ .col-md-7,
61
+ .col-md-8,
62
+ .col-md-9,
63
+ .col-md-10,
64
+ .col-md-11,
65
+ .col-md-12,
66
+ .col-lg-1,
67
+ .col-lg-2,
68
+ .col-lg-3,
69
+ .col-lg-4,
70
+ .col-lg-5,
71
+ .col-lg-6,
72
+ .col-lg-7,
73
+ .col-lg-8,
74
+ .col-lg-9,
75
+ .col-lg-10,
76
+ .col-lg-11,
77
+ .col-lg-12
78
+ position: relative
79
+ // Prevent columns from collapsing when empty
80
+ min-height: 1px
81
+
82
+
83
+ @if $responsive == true
84
+
85
+ // Extra small grid, i.e. phones
86
+ // --------------------------------------
87
+ @include grid-core(xs)
88
+
89
+ // Create the omega core for max-width
90
+ @include media(max-width $screen-xs-max)
91
+ @include omega-core(xs)
92
+
93
+
94
+
95
+ // Small Grid for tablets and large phones
96
+ // --------------------------------------
97
+ @include media(min-width $screen-sm)
98
+ .container
99
+ max-width: $screen-sm
100
+ @include grid-core(sm)
101
+
102
+ // Create the omega core
103
+ @include media(min-width $screen-sm max-width $screen-sm-max)
104
+ @include omega-core(sm)
105
+
106
+
107
+
108
+ // Medium grid for smaller computers
109
+ // --------------------------------------
110
+ @include media(min-width $screen-md)
111
+ .container
112
+ max-width: $screen-md
113
+ @include grid-core(md)
114
+
115
+ // Create the omega core for the screen size
116
+ @include media(min-width $screen-md max-width $screen-lg)
117
+ @include omega-core(md)
118
+
119
+
120
+
121
+ // Large grid for large computers
122
+ // --------------------------------------
123
+ @if $responsive == true
124
+ @include media(min-width $screen-lg)
125
+ // Set .container to become an outer-container with a max-width
126
+ .container
127
+ @include outer-container
128
+
129
+ // Create the grid
130
+ @include grid-core(lg)
131
+ // Create the omega core
132
+ @include omega-core(lg)
133
+
134
+ @else
135
+
136
+ // Set .container to become an outer-container with a max-width
137
+ .container
138
+ @include outer-container
139
+
140
+ .hadouken
141
+ font-size: 12px
142
+
143
+ // Create the grid
144
+ @include grid-core(lg)
145
+ // Create the omega core
146
+ @include omega-core(lg)
147
+
148
+ // For convenience purposes, let's create all size columns so that
149
+ // we can eventually roll out responsive without having to refactor
150
+ // everything
151
+ @include grid-core(xs)
152
+ // Create the omega core
153
+ @include omega-core(xs)
154
+
155
+ @include grid-core(sm)
156
+ // Create the omega core
157
+ @include omega-core(sm)
158
+
159
+ @include grid-core(md)
160
+ // Create the omega core
161
+ @include omega-core(md)
@@ -0,0 +1,63 @@
1
+ // Mixins
2
+ // ------------------------------------------------------
3
+
4
+ // Create the grid for a given size
5
+ // This will loop over the number of columns and create a css class
6
+ // for each. If it's the last gride size, then let's not add a float
7
+ @mixin grid-core($size)
8
+ @for $i from 1 through $grid-columns
9
+ .col-#{$size}-#{$i}
10
+ @include span-columns($i)
11
+
12
+
13
+ // If it's not the screen-xs, then let's add push and pull helper classes
14
+ @if $size != "xs"
15
+ .col-#{$size}-push-#{$i}
16
+ left: flex-grid($i, $grid-columns) + flex-gutter($grid-columns)
17
+ .col-#{$size}-pull-#{$i}
18
+ right: flex-grid($i, $grid-columns) + flex-gutter($grid-columns)
19
+
20
+
21
+ // Create the collapse classes, i.e., .col-lg-collapse-2
22
+ .col-#{$size}-collapse-#{$i}
23
+ // @include span-columns($i, gutterless)
24
+ @include span-columns-gutterless($i)
25
+
26
+
27
+ // Offsetting, i.e., .col-sm-offset-2
28
+ .col-#{$size}-offset-#{$i}
29
+ @include shift($i)
30
+
31
+ // Create columns centering for the given size
32
+ .col-#{$size}-centered
33
+ margin-left: auto !important
34
+ margin-right: auto !important
35
+ float: none !important
36
+
37
+
38
+ // Omega Core builder
39
+ @mixin omega-core($size)
40
+ @for $i from 1 through $grid-columns
41
+ .omega-#{$size}-#{$i}
42
+ > [class^="col-"],
43
+ > [class*=" col-"]
44
+ @include omega(#{$i}n)
45
+
46
+
47
+ // Thoughtbot doesn't want to add a gutterless display type for
48
+ // span columns so we'll use this mixin for now. This will create
49
+ // equal column widths without any margin/gutters
50
+ @mixin span-columns-gutterless($span: $columns of $container-columns)
51
+ $columns: nth($span, 1)
52
+ $container-columns: container-span($span)
53
+
54
+ $direction: get-direction($layout-direction, $default-layout-direction)
55
+ $opposite-direction: get-opposite-direction($direction)
56
+
57
+ display: block
58
+ float: #{$opposite-direction}
59
+
60
+ width: percentage($columns / $container-columns)
61
+
62
+ &:last-child
63
+ width: percentage($columns / $container-columns)
@@ -0,0 +1,24 @@
1
+ // Spacing
2
+ // ------------------------
3
+
4
+ .padless
5
+ @include pad(0)
6
+
7
+ .omega
8
+ @include omega()
9
+
10
+
11
+
12
+
13
+
14
+ // Floats
15
+ // ------------------------
16
+
17
+ .clearfix
18
+ @include clearfix
19
+
20
+ .pull-right
21
+ float: right
22
+
23
+ .pull-left
24
+ float: left
@@ -0,0 +1,42 @@
1
+ // Grid system
2
+ // --------------------------------------------------
3
+
4
+ // Number of columns in the grid system
5
+ $grids-columns: 12 !default
6
+ // Padding, to be divided by two and applied to the left and right of all columns
7
+ $gutter: golden-ratio(1em, 1) !default
8
+
9
+ $max-width: 1200px !default
10
+
11
+ $col-padding: 10px !default
12
+
13
+ // Turn responsive on or off
14
+ $responsive: true !default
15
+
16
+ // Responsive Breakpoints
17
+ // ------------------------------------------------------
18
+
19
+ $screen-xs: 480px !default
20
+ $screen-xs-min: $screen-xs !default
21
+ $screen-phone: $screen-xs-min !default
22
+
23
+ // Small screen / tablet
24
+ $screen-sm: 768px !default
25
+ $screen-sm-min: $screen-sm !default
26
+ $screen-tablet: $screen-sm-min !default
27
+
28
+ // Medium screen / desktop
29
+ $screen-md: 992px !default
30
+ $screen-md-min: $screen-md !default
31
+ $screen-desktop: $screen-md-min !default
32
+
33
+ // Large screen / wide desktop
34
+ $screen-lg: 1200px !default
35
+ $screen-lg-min: $screen-lg !default
36
+ $screen-lg-desktop: $screen-lg-min !default
37
+ $max-width: $screen-lg !default
38
+
39
+ // So media queries don't overlap when required, provide a maximum
40
+ $screen-xs-max: ($screen-sm-min - 1) !default
41
+ $screen-sm-max: ($screen-md-min - 1) !default
42
+ $screen-md-max: ($screen-lg-min - 1) !default
data/lib/manhattan.rb ADDED
@@ -0,0 +1,15 @@
1
+ require "bourbon"
2
+ require "neat"
3
+ require "manhattan/version"
4
+
5
+ unless defined?(Sass)
6
+ require 'sass'
7
+ end
8
+
9
+ module Manhattan
10
+ if defined?(Rails) && defined?(Rails::Engine)
11
+ require "manhattan/engine"
12
+ else
13
+ Sass.load_paths << File.expand_path("../../app/assets/stylesheets", __FILE__)
14
+ end
15
+ end
@@ -0,0 +1,4 @@
1
+ module Manhattan
2
+ class Engine < ::Rails::Engine
3
+ end
4
+ end
@@ -0,0 +1,3 @@
1
+ module Manhattan
2
+ VERSION = "0.4.3"
3
+ end
data/manhattan.gemspec ADDED
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'manhattan/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "manhattan-sass"
8
+ spec.version = Manhattan::VERSION
9
+ spec.authors = ["John Koht", "Andy Richardson"]
10
+ spec.email = ["john@kohactive.com", "andy@kohactive.com"]
11
+ spec.description = "A powerful, mobile-first responsive framework built on Bourbon Neat."
12
+ spec.summary = "A powerful, mobile-first responsive framework built on Bourbon Neat."
13
+ spec.homepage = "https://github.com/johnkoht/manhattan"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+
24
+ spec.add_dependency "bourbon", "~> 4.2"
25
+ spec.add_dependency "neat", "~> 1.7"
26
+ spec.add_dependency "sass", "~> 3.4"
27
+ end
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: manhattan-sass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.3
5
+ platform: ruby
6
+ authors:
7
+ - John Koht
8
+ - Andy Richardson
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-01-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.3'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: bourbon
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '4.2'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '4.2'
56
+ - !ruby/object:Gem::Dependency
57
+ name: neat
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '1.7'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '1.7'
70
+ - !ruby/object:Gem::Dependency
71
+ name: sass
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.4'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '3.4'
84
+ description: A powerful, mobile-first responsive framework built on Bourbon Neat.
85
+ email:
86
+ - john@kohactive.com
87
+ - andy@kohactive.com
88
+ executables: []
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - Gemfile
94
+ - LICENSE.txt
95
+ - README.md
96
+ - Rakefile
97
+ - app/assets/stylesheets/manhattan.sass
98
+ - app/assets/stylesheets/manhattan/_grid.sass
99
+ - app/assets/stylesheets/manhattan/_mixins.sass
100
+ - app/assets/stylesheets/manhattan/_utilities.sass
101
+ - app/assets/stylesheets/manhattan/_variables.sass
102
+ - lib/manhattan.rb
103
+ - lib/manhattan/engine.rb
104
+ - lib/manhattan/version.rb
105
+ - manhattan.gemspec
106
+ homepage: https://github.com/johnkoht/manhattan
107
+ licenses:
108
+ - MIT
109
+ metadata: {}
110
+ post_install_message:
111
+ rdoc_options: []
112
+ require_paths:
113
+ - lib
114
+ required_ruby_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ requirements: []
125
+ rubyforge_project:
126
+ rubygems_version: 2.4.6
127
+ signing_key:
128
+ specification_version: 4
129
+ summary: A powerful, mobile-first responsive framework built on Bourbon Neat.
130
+ test_files: []