bootstrap-sass-rtl 2.3.1.2 → 2.3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.markdown +2 -2
- data/Rakefile +10 -0
- data/Vendorfile +1 -1
- data/bootstrap-sass-rtl.gemspec +3 -1
- data/lib/bootstrap/sass/rtl/version.rb +1 -1
- data/test/bootstrap_sass_rtl_test.rb +34 -0
- data/test/dummy/.gitignore +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +4 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +17 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +1 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/test_helper.rb +7 -0
- data/vendor/assets/stylesheets/bootstrap-rtl/_dropdowns.scss +11 -0
- data/vendor/assets/stylesheets/bootstrap-rtl/_mixins.scss +25 -19
- data/vendor/assets/stylesheets/bootstrap-rtl/bootstrap.scss +1 -1
- data/vendor/assets/stylesheets/bootstrap-rtl/responsive.scss +1 -1
- metadata +58 -6
data/.gitignore
CHANGED
data/README.markdown
CHANGED
@@ -7,8 +7,8 @@ RTL version of [bootstrap-sass](https://github.com/thomas-mcdonald/bootstrap-sas
|
|
7
7
|
Gemfile:
|
8
8
|
|
9
9
|
gem 'sass-rails', '~> 3.2'
|
10
|
-
gem 'bootstrap-sass', '~> 2.3.
|
11
|
-
gem 'bootstrap-sass-rtl', '~> 2.3.
|
10
|
+
gem 'bootstrap-sass', '~> 2.3.2.0'
|
11
|
+
gem 'bootstrap-sass-rtl', '~> 2.3.2.0'
|
12
12
|
|
13
13
|
### CSS
|
14
14
|
|
data/Rakefile
CHANGED
data/Vendorfile
CHANGED
data/bootstrap-sass-rtl.gemspec
CHANGED
@@ -18,8 +18,10 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "
|
21
|
+
spec.add_dependency "railties", ">= 3.1"
|
22
|
+
spec.add_dependency "bootstrap-sass", "~> 2.3.2"
|
22
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
23
24
|
spec.add_development_dependency "rake"
|
24
25
|
spec.add_development_dependency "vendorer"
|
26
|
+
spec.add_development_dependency "tzinfo"
|
25
27
|
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class BootstrapSassRtlTest < ActionDispatch::IntegrationTest
|
4
|
+
teardown { clean_cache }
|
5
|
+
|
6
|
+
test "engine is loaded" do
|
7
|
+
assert_equal ::Rails::Engine, Bootstrap::Sass::Rtl::Engine.superclass
|
8
|
+
end
|
9
|
+
|
10
|
+
test "bootstrap.css inside bootstrap-rtl is served" do
|
11
|
+
get "/assets/bootstrap-rtl/bootstrap.css"
|
12
|
+
assert_response :success
|
13
|
+
end
|
14
|
+
|
15
|
+
test "responsive.css within bootstrap-rtl is served" do
|
16
|
+
get "/assets/bootstrap-rtl/responsive.css"
|
17
|
+
assert_response :success
|
18
|
+
end
|
19
|
+
|
20
|
+
test "bootstrap-rtl.css is served" do
|
21
|
+
get "/assets/bootstrap-rtl.css"
|
22
|
+
assert_response :success
|
23
|
+
end
|
24
|
+
|
25
|
+
test "bootstrap-responsive-rtl.css is served" do
|
26
|
+
get "/assets/bootstrap-responsive-rtl.css"
|
27
|
+
assert_response :success
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
def clean_cache
|
32
|
+
FileUtils.rm_rf File.expand_path("../dummy/tmp", __FILE__)
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
require "sprockets/railtie"
|
4
|
+
|
5
|
+
Bundler.require(:default, :development)
|
6
|
+
|
7
|
+
module Dummy
|
8
|
+
class Application < Rails::Application
|
9
|
+
config.encoding = "utf-8"
|
10
|
+
config.assets.enabled = true
|
11
|
+
config.assets.version = '1.0'
|
12
|
+
|
13
|
+
# replacement for environments/*.rb
|
14
|
+
config.active_support.deprecation = :stderr
|
15
|
+
config.eager_load = false
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Dummy::Application.config.secret_token = "9a00ffacf0d050be204617d05f11da73f13e9e16eec482cc8e7d62a036e2defc1d621ba7c88156a0e66ffde3d6420a1e251c1d420f1c63afd1f16732052abff3"
|
data/test/test_helper.rb
ADDED
@@ -135,6 +135,17 @@
|
|
135
135
|
}
|
136
136
|
}
|
137
137
|
|
138
|
+
// Backdrop to catch body clicks on mobile, etc.
|
139
|
+
// ---------------------------
|
140
|
+
.dropdown-backdrop {
|
141
|
+
position: fixed;
|
142
|
+
right: 0;
|
143
|
+
left: 0;
|
144
|
+
bottom: 0;
|
145
|
+
top: 0;
|
146
|
+
z-index: $zindexDropdown - 10;
|
147
|
+
}
|
148
|
+
|
138
149
|
// left aligned dropdowns
|
139
150
|
// ---------------------------
|
140
151
|
.pull-right > .dropdown-menu {
|
@@ -436,6 +436,17 @@
|
|
436
436
|
background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
|
437
437
|
background-image: linear-gradient($deg, $startColor, $endColor); // Standard, IE10
|
438
438
|
}
|
439
|
+
@mixin gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
440
|
+
background-color: mix($midColor, $endColor, 80%);
|
441
|
+
background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
|
442
|
+
background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
|
443
|
+
background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
|
444
|
+
background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
|
445
|
+
background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor);
|
446
|
+
background-repeat: no-repeat;
|
447
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
448
|
+
}
|
449
|
+
|
439
450
|
@mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
|
440
451
|
background-color: mix($midColor, $endColor, 80%);
|
441
452
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
|
@@ -578,16 +589,14 @@
|
|
578
589
|
}
|
579
590
|
|
580
591
|
@mixin grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
581
|
-
@
|
582
|
-
.span#{$
|
583
|
-
$gridColumns: $gridColumns - 1;
|
592
|
+
@for $i from 1 through $gridColumns {
|
593
|
+
.span#{$i} { @include grid-core-span($i, $gridColumnWidth, $gridGutterWidth); }
|
584
594
|
}
|
585
595
|
}
|
586
596
|
|
587
597
|
@mixin grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
588
|
-
@
|
589
|
-
.offset#{$
|
590
|
-
$gridColumns: $gridColumns - 1;
|
598
|
+
@for $i from 1 through $gridColumns {
|
599
|
+
.offset#{$i} { @include grid-core-offset($i, $gridColumnWidth, $gridGutterWidth); }
|
591
600
|
}
|
592
601
|
}
|
593
602
|
|
@@ -627,17 +636,15 @@
|
|
627
636
|
}
|
628
637
|
|
629
638
|
@mixin grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
630
|
-
@
|
631
|
-
.span#{$
|
632
|
-
$gridColumns: $gridColumns - 1;
|
639
|
+
@for $i from 1 through $gridColumns {
|
640
|
+
.span#{$i} { @include grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
|
633
641
|
}
|
634
642
|
}
|
635
643
|
|
636
644
|
@mixin grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
637
|
-
@
|
638
|
-
.offset#{$
|
639
|
-
.offset#{$
|
640
|
-
$gridColumns: $gridColumns - 1;
|
645
|
+
@for $i from 1 through $gridColumns {
|
646
|
+
.offset#{$i} { @include grid-fluid-offset($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
|
647
|
+
.offset#{$i}:first-child { @include grid-fluid-offset-first-child($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
|
641
648
|
}
|
642
649
|
}
|
643
650
|
|
@@ -675,13 +682,12 @@
|
|
675
682
|
}
|
676
683
|
|
677
684
|
@mixin grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
678
|
-
@
|
679
|
-
input.span#{$
|
680
|
-
textarea.span#{$
|
681
|
-
.uneditable-input.span#{$
|
682
|
-
@include grid-input-span($
|
685
|
+
@for $i from 1 through $gridColumns {
|
686
|
+
input.span#{$i},
|
687
|
+
textarea.span#{$i},
|
688
|
+
.uneditable-input.span#{$i} {
|
689
|
+
@include grid-input-span($i, $gridColumnWidth, $gridGutterWidth);
|
683
690
|
}
|
684
|
-
$gridColumns: $gridColumns - 1;
|
685
691
|
}
|
686
692
|
}
|
687
693
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-sass-rtl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,6 +11,22 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2013-06-24 00:00:00.000000000 Z
|
13
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.1'
|
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.1'
|
14
30
|
- !ruby/object:Gem::Dependency
|
15
31
|
name: bootstrap-sass
|
16
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -18,7 +34,7 @@ dependencies:
|
|
18
34
|
requirements:
|
19
35
|
- - ~>
|
20
36
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.3.
|
37
|
+
version: 2.3.2
|
22
38
|
type: :runtime
|
23
39
|
prerelease: false
|
24
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +42,7 @@ dependencies:
|
|
26
42
|
requirements:
|
27
43
|
- - ~>
|
28
44
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.3.
|
45
|
+
version: 2.3.2
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: bundler
|
32
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +91,22 @@ dependencies:
|
|
75
91
|
- - ! '>='
|
76
92
|
- !ruby/object:Gem::Version
|
77
93
|
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: tzinfo
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
78
110
|
description: RTL version of bootstrap-sass
|
79
111
|
email:
|
80
112
|
- subosito@gmail.com
|
@@ -91,6 +123,16 @@ files:
|
|
91
123
|
- bootstrap-sass-rtl.gemspec
|
92
124
|
- lib/bootstrap/sass/rtl.rb
|
93
125
|
- lib/bootstrap/sass/rtl/version.rb
|
126
|
+
- test/bootstrap_sass_rtl_test.rb
|
127
|
+
- test/dummy/.gitignore
|
128
|
+
- test/dummy/app/assets/stylesheets/application.css
|
129
|
+
- test/dummy/config.ru
|
130
|
+
- test/dummy/config/application.rb
|
131
|
+
- test/dummy/config/boot.rb
|
132
|
+
- test/dummy/config/environment.rb
|
133
|
+
- test/dummy/config/initializers/secret_token.rb
|
134
|
+
- test/dummy/config/routes.rb
|
135
|
+
- test/test_helper.rb
|
94
136
|
- vendor/assets/stylesheets/bootstrap-responsive-rtl.scss
|
95
137
|
- vendor/assets/stylesheets/bootstrap-rtl.scss
|
96
138
|
- vendor/assets/stylesheets/bootstrap-rtl/_accordion.scss
|
@@ -149,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
191
|
version: '0'
|
150
192
|
segments:
|
151
193
|
- 0
|
152
|
-
hash: -
|
194
|
+
hash: -2615533733729831386
|
153
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
196
|
none: false
|
155
197
|
requirements:
|
@@ -158,11 +200,21 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
200
|
version: '0'
|
159
201
|
segments:
|
160
202
|
- 0
|
161
|
-
hash: -
|
203
|
+
hash: -2615533733729831386
|
162
204
|
requirements: []
|
163
205
|
rubyforge_project:
|
164
206
|
rubygems_version: 1.8.23
|
165
207
|
signing_key:
|
166
208
|
specification_version: 3
|
167
209
|
summary: RTL version of bootstrap-sass
|
168
|
-
test_files:
|
210
|
+
test_files:
|
211
|
+
- test/bootstrap_sass_rtl_test.rb
|
212
|
+
- test/dummy/.gitignore
|
213
|
+
- test/dummy/app/assets/stylesheets/application.css
|
214
|
+
- test/dummy/config.ru
|
215
|
+
- test/dummy/config/application.rb
|
216
|
+
- test/dummy/config/boot.rb
|
217
|
+
- test/dummy/config/environment.rb
|
218
|
+
- test/dummy/config/initializers/secret_token.rb
|
219
|
+
- test/dummy/config/routes.rb
|
220
|
+
- test/test_helper.rb
|