mod_bootstrap 0.1.0

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: 5fd37e9717c0e416c9a79d1413b4f1f62280f86a
4
+ data.tar.gz: 7040aa1089c5e1d8a0cdcc1f6acdbebf51f857ef
5
+ SHA512:
6
+ metadata.gz: e38f744b15d8e4849bee96fa99ebfef4cc9731caad5cd15c99f27c9cb7fab137ed024bd19375694a19515510defb6978f4a4fe0b4a5227e86d0e477948e62d79
7
+ data.tar.gz: 4ed367eda738d7f0264452adc95fd8c026cc13d1ea48d0ce02cb445a1e256d2b3949b58c21725117421d1eaf30f95d88775a7d578499beeaa3118cbb402ba630
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.2
5
+ before_install: gem install bundler -v 1.16.0
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in mod_bootstrap.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Arjun Ghimire
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ # ModBootstrap
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/mod_bootstrap`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'bootstrap-sass'
13
+ gem 'mod_bootstrap'
14
+ ```
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install bootstrap-sass
23
+ $ gem install mod_bootstrap
24
+
25
+ ## Usage
26
+
27
+ Import Bootstrap styles in `app/assets/stylesheets/application.scss`:
28
+
29
+ ```scss
30
+ // "bootstrap-sprockets" must be imported before "bootstrap" and "bootstrap/variables"
31
+ @import "bootstrap-sprockets";
32
+ @import "bootstrap";
33
+ @import "mod_bootstrap";
34
+ ```
35
+
36
+ Require Bootstrap Javascripts in `app/assets/javascripts/application.js`:
37
+
38
+ ```js
39
+ //= require jquery
40
+ //= require bootstrap-sprockets
41
+ ```
42
+
43
+ `bootstrap-sprockets` and `bootstrap` [should not both be included](https://github.com/twbs/bootstrap-sass/issues/829#issuecomment-75153827) in `application.js`.
44
+
45
+ `bootstrap-sprockets` provides individual Bootstrap Javascript files (`alert.js` or `dropdown.js`, for example), while
46
+ `bootstrap` provides a concatenated file containing all Bootstrap Javascripts.
47
+ ## Development
48
+
49
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
50
+
51
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
52
+
53
+ ## Contributing
54
+
55
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/mod_bootstrap.
56
+
57
+ ## License
58
+
59
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "mod_bootstrap"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,5 @@
1
+ require "mod_bootstrap/version"
2
+
3
+ module ModBootstrap
4
+ class Engine < ::Rails::Engine; end
5
+ end
@@ -0,0 +1,3 @@
1
+ module ModBootstrap
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,36 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "mod_bootstrap/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mod_bootstrap"
8
+ spec.version = ModBootstrap::VERSION
9
+ spec.authors = ["Arjun Ghimire"]
10
+ spec.email = ["arjunghimire0714@gmail.com"]
11
+
12
+ spec.summary = "Write a short summary, because RubyGems requires one.}"
13
+ spec.description = "Write a longer description or delete this line.}"
14
+ spec.homepage = "https://github.com/Arjunghimire/mod_bootstrap.git"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ end
@@ -0,0 +1,317 @@
1
+ #accordion{
2
+ .panel-heading{
3
+ padding: 15px 30px;
4
+ background: #F9F7F3 !important;
5
+ }
6
+ .panel-title > a {
7
+ font-weight: bold;
8
+ font-size: 16px;
9
+ color: #66615b;
10
+ text-decoration: none;
11
+ &:hover{
12
+ color: #EB5E28;
13
+ }
14
+ }
15
+ .panel-default > .panel-heading + .panel-collapse > .panel-body{
16
+ border-top-color: #F9F7F3 !important;
17
+ background: #F9F7F3 !important;
18
+ padding: 5px 30px;
19
+ }
20
+
21
+ }
22
+ /* Sweep To Top */
23
+ .stdr,.stpr {
24
+ display: inline-block;
25
+ vertical-align: middle;
26
+ -webkit-transform: perspective(1px) translateZ(0);
27
+ transform: perspective(1px) translateZ(0);
28
+ box-shadow: 0 0 1px transparent;
29
+ position: relative;
30
+ -webkit-transition-property: color;
31
+ transition-property: color;
32
+ -webkit-transition-duration: 0.3s;
33
+ transition-duration: 0.3s;
34
+ }
35
+ .stdr:before,.stpr:before {
36
+ content: "";
37
+ position: absolute;
38
+ z-index: -1;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ bottom: 0;
43
+ -webkit-transform: scaleY(0);
44
+ transform: scaleY(0);
45
+ -webkit-transform-origin: 50% 100%;
46
+ transform-origin: 50% 100%;
47
+ -webkit-transition-property: transform;
48
+ transition-property: transform;
49
+ -webkit-transition-duration: 0.3s;
50
+ transition-duration: 0.3s;
51
+ -webkit-transition-timing-function: ease-out;
52
+ transition-timing-function: ease-out;
53
+ border-radius: 25px;
54
+ }
55
+ .stdr:hover, .stdr:focus, .stdr:active,.stpr:hover, .stpr:focus, .stpr:active {
56
+ color: white;
57
+ }
58
+ .stdr:hover:before, .stdr:focus:before, .stdr:active:before,.stpr:hover:before, .stpr:focus:before, .stpr:active:before {
59
+ -webkit-transform: scaleY(1);
60
+ transform: scaleY(1);
61
+ }
62
+ .stdr:before{
63
+ background: #66615B;
64
+ }
65
+ .stpr:before {
66
+ background: #F3BB45;
67
+ }
68
+
69
+ /* Button Groups */
70
+
71
+ .btn{
72
+ padding: 9px 15px;
73
+ margin-bottom: 5px;
74
+ }
75
+ .btn:hover,.btn:active, .btn:focus{
76
+ outline: 0 !important;
77
+ }
78
+ .blank-btn{
79
+ background-color: #e0e0e0;
80
+ font-weight: 600;
81
+ color: #111111;
82
+ }
83
+ .blank-btn:hover,.blank-btn:active,.blank-btn:focus{
84
+ color: #111111;
85
+ border: 1px solid #e0e0e0;
86
+ }
87
+ .default-btn{
88
+ background-color: #080604;
89
+ font-weight: 600;
90
+ color: #FFFFFF;
91
+ }
92
+ .default-btn:hover,.default-btn:active,.default-btn:focus{
93
+ color: #FFFFFF;
94
+ }
95
+ .primary-btn{
96
+ background-color: #46b6b9;
97
+ color: #FFFFFF;
98
+ font-weight: 600;
99
+ }
100
+ .primary-btn:hover,.primary-btn:active,.primary-btn:focus{
101
+ color: #FFFFFF;
102
+ }
103
+ .info-btn{
104
+ background-color: #16bbea;
105
+ font-weight: 600;
106
+ color: #FFFFFF;
107
+ }
108
+ .info-btn:hover,.info-btn:active,.info-btn:focus{
109
+ color: #FFFFFF;
110
+ }
111
+ .success-btn{
112
+ background-color: #4cd88a;
113
+ color: #FFFFFF;
114
+ font-weight: 600;
115
+ }
116
+ .success-btn:hover,.success-btn:active,.success-btn:focus{
117
+ color: #FFFFFF;
118
+ }
119
+
120
+ .warning-btn{
121
+ background-color: #ffb927;
122
+ font-weight: 600;
123
+ color: #FFFFFF;
124
+ }
125
+ .warning-btn:hover,.warning-btn:active,.warning-btn:focus{
126
+ color: #FFFFFF;
127
+ }
128
+ .danger-btn{
129
+ background-color: #f35012;
130
+ color: #FFFFFF;
131
+ font-weight: 600;
132
+ }
133
+ .danger-btn:hover,.danger-btn:active,.danger-btn:focus{
134
+ color: #FFFFFF;
135
+ }
136
+
137
+ .unfil-blank-btn{
138
+ border: 2px solid #ddd;
139
+ font-weight: 600;
140
+ color: #111111;
141
+ background-color: #FFFFFF;
142
+ }
143
+ .unfil-blank-btn:hover,.unfil-blank-btn:active,.unfil-blank-btn:focus{
144
+ background-color: #FFFFFF;
145
+ color: #111111;
146
+ }
147
+ .unfil-default-btn{
148
+ border: 2px solid #66615B;
149
+ font-weight: 600;
150
+ color: #66615B;
151
+ background-color: #FFFFFF;
152
+ }
153
+ .unfil-default-btn:hover,.unfil-default-btn:active,.unfil-default-btn:focus{
154
+ background-color: #66615B;
155
+ color: #111111;
156
+ }
157
+ .unfil-primary-btn{
158
+ border: 2px solid #7a9e9f;
159
+ background-color: #FFFFFF;
160
+ font-weight: 600;
161
+ color: #7a9e9f;
162
+ }
163
+ .unfil-primary-btn:hover,.unfil-primary-btn:active,.unfil-primary-btn:focus{
164
+ background-color: #7a9e9f;
165
+ color: #FFFFFF;
166
+ }
167
+ .unfil-info-btn{
168
+ background-color: #FFFFFF;
169
+ font-weight: 600;
170
+ color: #6BB3C8;
171
+ border: 2px solid #6BB3C8;
172
+
173
+ }
174
+ .unfil-info-btn:hover,.unfil-info-btn:active,.unfil-info-btn:focus{
175
+ background-color: #6BB3C8;
176
+ color: #FFFFFF;
177
+ }
178
+ .unfil-success-btn{
179
+ background-color: #FFFFFF;
180
+ color: #7ac29a;
181
+ font-weight: 600;
182
+ border: 2px solid #7ac29a;
183
+ }
184
+ .unfil-success-btn:hover,.unfil-success-btn:active,.unfil-success-btn:focus{
185
+ background-color: #7ac29a;
186
+ color: #FFFFFF;
187
+ }
188
+
189
+ .unfil-warning-btn{
190
+ background-color: #FFFFFF;
191
+ font-weight: 600;
192
+ border: 2px solid #F3BB45;
193
+ color: #F3BB45;
194
+ }
195
+ .unfil-warning-btn:hover,.unfil-warning-btn:active,.unfil-warning-btn:focus{
196
+ color: #FFFFFF;
197
+ background-color: #F3BB45;
198
+ }
199
+ .unfil-danger-btn{
200
+ background-color: #FFFFFF;
201
+ color: #EB5E28;
202
+ font-weight: 600;
203
+ border: 2px solid #EB5E28;
204
+ }
205
+ .unfil-danger-btn:hover,.unfil-danger-btn:active,.unfil-danger-btn:focus{
206
+ color: #FFFFFF;
207
+ background-color: #EB5E28;
208
+ }
209
+
210
+ .ln-btn{
211
+ min-width: 140px !important;
212
+ }
213
+ .df-btn{
214
+
215
+ }
216
+ .rd-btn{
217
+ border-radius: 25px !important;
218
+ }
219
+ .rec-btn{
220
+ border-radius: 0 !important;
221
+ }
222
+ .circle-img{
223
+ border-radius: 100%;
224
+ }
225
+
226
+ /* Breadcrumb */
227
+
228
+
229
+
230
+
231
+ /* alerts */
232
+
233
+ .info-alert{
234
+ background-color: #16bbea;
235
+ font-weight: 600;
236
+ color: #FFFFFF;
237
+ }
238
+ .success-alert{
239
+ background-color: #4cd88a;
240
+ color: #FFFFFF;
241
+ font-weight: 600;
242
+ }
243
+ .warning-alert{
244
+ background-color: #ffb927;
245
+ font-weight: 600;
246
+ color: #FFFFFF;
247
+ }
248
+ .danger-alert{
249
+ background-color: #f35012;
250
+ color: #FFFFFF;
251
+ font-weight: 600;
252
+ }
253
+ .alert-link{
254
+ color: #FFFFFF;
255
+ &:hover{
256
+ color: #FFFFFF;
257
+ }
258
+ }
259
+
260
+
261
+ /* navbar */
262
+
263
+ .default-navbar{
264
+ background-color: #FFFFFF;
265
+ box-shadow: 0 3px 12px #dadada;
266
+ a{
267
+ color: #333;
268
+ }
269
+
270
+ }
271
+ .navbar{
272
+ border-radius: 0;
273
+ border: 0;
274
+ }
275
+
276
+ /* global code */
277
+ .bgcolordefault{
278
+ background-color: #F3F2EE;
279
+ border-color: 1px solid #e8e7e3;
280
+ }
281
+
282
+
283
+ /* form group */
284
+ .default-form-control{
285
+ background-color: #fbfbfa;
286
+ border: 1px solid #e8e7e3;
287
+ border-radius: 4px;
288
+ color: #66615b;
289
+ font-size: 14px;
290
+ padding: 7px 18px;
291
+ height: 40px;
292
+ -webkit-box-shadow: none;
293
+ display: block;
294
+ box-shadow: none;
295
+ width: 100%;
296
+ }
297
+ .default-form-control:focus{
298
+ background-color: #fff;
299
+ transition: 0.5s ease-in background-color;
300
+ outline: none;
301
+ }
302
+ .default-inline-form-control{
303
+ background-color: #F3F2EE;
304
+ border: 1px solid #e8e7e3;
305
+ border-radius: 4px;
306
+ color: #66615b;
307
+ font-size: 14px;
308
+ width: 100%;
309
+ padding: 7px 18px;
310
+ height: 40px;
311
+ -webkit-box-shadow: none;
312
+ box-shadow: none;
313
+ }
314
+ .default-inline-form-control:focus{
315
+ background-color: #fff;
316
+ transition: 0.5s ease-in background-color;
317
+ }
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mod_bootstrap
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Arjun Ghimire
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-01-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: Write a longer description or delete this line.}
56
+ email:
57
+ - arjunghimire0714@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".travis.yml"
65
+ - Gemfile
66
+ - LICENSE.txt
67
+ - README.md
68
+ - Rakefile
69
+ - bin/console
70
+ - bin/setup
71
+ - lib/mod_bootstrap.rb
72
+ - lib/mod_bootstrap/version.rb
73
+ - mod_bootstrap.gemspec
74
+ - vendor/assets/stylesheets/mod_bootstrap.scss
75
+ homepage: https://github.com/Arjunghimire/mod_bootstrap.git
76
+ licenses:
77
+ - MIT
78
+ metadata:
79
+ allowed_push_host: https://rubygems.org
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.6.13
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Write a short summary, because RubyGems requires one.}
100
+ test_files: []