easy-bootstrap 0.0.1

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.
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Calvin Kaye
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.
@@ -0,0 +1,29 @@
1
+ # Easy::Bootstrap
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'easy-bootstrap'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install easy-bootstrap
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1,8 @@
1
+ @import 'bootstrap';
2
+
3
+ /* @import 'compass'; */
4
+
5
+ @import 'sass/responsive-tables';
6
+ @import 'sass/custom-mixins';
7
+ @import 'sass/bootstrap-overrides';
8
+ @import 'sass/layout';
@@ -0,0 +1,48 @@
1
+ /* ==========================================================================
2
+ BOOTSTRAP OVERRIDES / MAIN STYLES
3
+ ========================================================================== */
4
+
5
+ body {
6
+ text-rendering: optimizeLegibility;
7
+ -webkit-font-smoothing: antialiased;
8
+ }
9
+
10
+ .navbar-inner {
11
+ background: white;
12
+ border-radius: 0px;
13
+ box-shadow: none;
14
+ }
15
+
16
+ footer {
17
+ border-top: 1px solid #d4d4d4;
18
+ margin: 40px 0 0 0;
19
+ padding: 20px 0;
20
+ text-align: center;
21
+ background: #d4d4d4;
22
+ }
23
+
24
+ .container-margin {
25
+ margin-bottom: 20px;
26
+ }
27
+
28
+ .btn {
29
+ border-radius: 3px;
30
+ }
31
+
32
+ .table-bordered thead:first-child tr:first-child>th:first-child, .table-bordered tbody:first-child tr:first-child>td:first-child {
33
+ -webkit-border-top-left-radius: none;
34
+ border-top-left-radius: none;
35
+ -moz-border-radius-topleft: none;
36
+ }
37
+
38
+ .showcase {
39
+ padding: 180px 0;
40
+ color: #FFFFFF;
41
+ background: #944242;
42
+ margin-bottom: 20px;
43
+ text-align: center;
44
+ }
45
+
46
+ .showcase h1 {
47
+ font-size: 50px;
48
+ }
@@ -0,0 +1,49 @@
1
+ /*
2
+ MEDIA QUERIES
3
+ COMPATIBILITY: CHROME, SAFARI, FIREFOX, IE 9+ ;
4
+ USAGE: @include respond_to(mobile);
5
+ =========================================================================
6
+ */
7
+
8
+ $mobile_width: 479px;
9
+ $tablet_width: 767px;
10
+ $standard_screen: 959px;
11
+ $large_screen: 1200px;
12
+
13
+ @mixin respond_to($media) {
14
+ @if $media == mobile {
15
+ @media only screen and (max-width: $mobile_width) { @content; }
16
+ }
17
+ @else if $media == tablet {
18
+ @media only screen and (min-width: $mobile_width + 1) and (max-width: $tablet_width - 1) { @content; }
19
+ }
20
+ @else if $media == all_mobile {
21
+ @media only screen and (min-width: $tablet_width) { @content; }
22
+ }
23
+ @else if $media == standard_screen {
24
+ @media only screen and (min-width: $tablet_width + 1) and (max-width: $standard_screen - 1) { @content; }
25
+ }
26
+ @else if $media == large_screen {
27
+ @media only screen and (min-width: $standard_screen + 1) { @content; }
28
+ }
29
+ }
30
+
31
+ /*
32
+ CLEARFIX
33
+ COMPATIBILITY: CHROME, SAFARI, FIREFOX, IE ;
34
+ USAGE: @include clearfix;
35
+ =========================================================================
36
+ */
37
+
38
+ @mixin clearfix {
39
+ zoom:1;
40
+ &:before, &:after {
41
+ content: "\0020";
42
+ display: block;
43
+ height: 0;
44
+ overflow: hidden;
45
+ }
46
+ &:after {
47
+ clear: both;
48
+ }
49
+ }
@@ -0,0 +1,25 @@
1
+ /* Foundation v2.1.4 http://foundation.zurb.com */
2
+ /* Artfully masterminded by ZURB */
3
+ /* Responsive Table Fix */
4
+
5
+ table th { font-weight: bold; }
6
+ table td, table th { padding: 9px 10px; text-align: left; }
7
+
8
+ /* Mobile */
9
+ @media only screen and (max-width: 767px) {
10
+
11
+ table.responsive { margin-bottom: 0; }
12
+
13
+ .pinned { position: absolute; left: 0; top: 0; background: #fff; width: 35%; overflow: hidden; overflow-x: scroll; border-right: 1px solid #ccc; border-left: 1px solid #ccc; }
14
+ .pinned table { border-right: none; border-left: none; width: 100%; }
15
+ .pinned table th, .pinned table td { white-space: nowrap; }
16
+ .pinned td:last-child { border-bottom: 0; }
17
+
18
+ div.table-wrapper { position: relative; margin-bottom: 20px; overflow: hidden; border-right: 1px solid #ccc; }
19
+ div.table-wrapper div.scrollable table { margin-left: 35%; }
20
+ div.table-wrapper div.scrollable { overflow: scroll; overflow-y: hidden; }
21
+
22
+ table.responsive td, table.responsive th { position: relative; white-space: nowrap; overflow: hidden; }
23
+ table.responsive th:first-child, table.responsive td:first-child, table.responsive td:first-child, table.responsive.pinned td { display: none; }
24
+
25
+ }
@@ -0,0 +1,3 @@
1
+ require 'easy/bootstrap/engine'
2
+ require 'bootstrap-sass'
3
+ require 'compass-rails'
@@ -0,0 +1,6 @@
1
+ module Easy
2
+ module Bootstrap
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: easy-bootstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ryan French
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass-rails
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.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: '3.2'
46
+ - !ruby/object:Gem::Dependency
47
+ name: bootstrap-sass
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 2.2.2.0
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.2.2.0
62
+ - !ruby/object:Gem::Dependency
63
+ name: compass-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: Abletech's version of Twitter Bootstrap
79
+ email:
80
+ - ryan.french@abletech.co.nz
81
+ executables: []
82
+ extensions: []
83
+ extra_rdoc_files: []
84
+ files:
85
+ - lib/easy/bootstrap/engine.rb
86
+ - lib/easy-bootstrap.rb
87
+ - app/assets/stylesheets/easy-bootstrap.css.scss
88
+ - app/assets/stylesheets/sass/_bootstrap-overrides.scss
89
+ - app/assets/stylesheets/sass/_custom-mixins.scss
90
+ - app/assets/stylesheets/sass/_layout.scss
91
+ - app/assets/stylesheets/sass/_responsive-tables.scss
92
+ - README.md
93
+ - LICENSE
94
+ homepage: https://github.com/AbleTech/easy-bootstrap
95
+ licenses: []
96
+ post_install_message:
97
+ rdoc_options: []
98
+ require_paths:
99
+ - lib
100
+ required_ruby_version: !ruby/object:Gem::Requirement
101
+ none: false
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ segments:
107
+ - 0
108
+ hash: -937216502952827885
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ none: false
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ segments:
116
+ - 0
117
+ hash: -937216502952827885
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 1.8.24
121
+ signing_key:
122
+ specification_version: 3
123
+ summary: easy-bootstrap provides common Abletech styling
124
+ test_files: []