bootstrap_farsi 3.2.0.1 → 3.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +1 -1
  4. data/app/assets/javascripts/twitter/bootstrap.js +5 -4
  5. data/app/assets/javascripts/twitter/bootstrap/affix.js +46 -26
  6. data/app/assets/javascripts/twitter/bootstrap/alert.js +7 -5
  7. data/app/assets/javascripts/twitter/bootstrap/button.js +27 -17
  8. data/app/assets/javascripts/twitter/bootstrap/carousel.js +35 -21
  9. data/app/assets/javascripts/twitter/bootstrap/collapse.js +68 -27
  10. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +55 -41
  11. data/app/assets/javascripts/twitter/bootstrap/modal.js +88 -31
  12. data/app/assets/javascripts/twitter/bootstrap/popover.js +5 -10
  13. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +28 -26
  14. data/app/assets/javascripts/twitter/bootstrap/tab.js +45 -18
  15. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +111 -54
  16. data/app/assets/javascripts/twitter/bootstrap/transition.js +2 -2
  17. data/app/frameworks/twitter/bootstrap/alerts.less +5 -0
  18. data/app/frameworks/twitter/bootstrap/badges.less +14 -3
  19. data/app/frameworks/twitter/bootstrap/bootstrap.less +7 -1
  20. data/app/frameworks/twitter/bootstrap/button-groups.less +21 -17
  21. data/app/frameworks/twitter/bootstrap/buttons.less +19 -10
  22. data/app/frameworks/twitter/bootstrap/carousel.less +40 -11
  23. data/app/frameworks/twitter/bootstrap/close.less +1 -0
  24. data/app/frameworks/twitter/bootstrap/code.less +1 -0
  25. data/app/frameworks/twitter/bootstrap/component-animations.less +3 -1
  26. data/app/frameworks/twitter/bootstrap/dropdowns.less +9 -8
  27. data/app/frameworks/twitter/bootstrap/forms.less +123 -50
  28. data/app/frameworks/twitter/bootstrap/glyphicons.less +75 -3
  29. data/app/frameworks/twitter/bootstrap/input-groups.less +8 -3
  30. data/app/frameworks/twitter/bootstrap/jumbotron.less +10 -4
  31. data/app/frameworks/twitter/bootstrap/list-group.less +10 -11
  32. data/app/frameworks/twitter/bootstrap/media.less +40 -30
  33. data/app/frameworks/twitter/bootstrap/mixins.less +1 -0
  34. data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +2 -1
  35. data/app/frameworks/twitter/bootstrap/mixins/border-radius.less +9 -1
  36. data/app/frameworks/twitter/bootstrap/mixins/buttons.less +19 -4
  37. data/app/frameworks/twitter/bootstrap/mixins/forms.less +5 -1
  38. data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +3 -3
  39. data/app/frameworks/twitter/bootstrap/mixins/grid.less +4 -4
  40. data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +2 -2
  41. data/app/frameworks/twitter/bootstrap/mixins/image.less +0 -1
  42. data/app/frameworks/twitter/bootstrap/mixins/labels.less +1 -1
  43. data/app/frameworks/twitter/bootstrap/mixins/list-group.less +2 -1
  44. data/app/frameworks/twitter/bootstrap/mixins/pagination.less +2 -1
  45. data/app/frameworks/twitter/bootstrap/mixins/reset-text.less +18 -0
  46. data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +1 -1
  47. data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +2 -1
  48. data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +8 -5
  49. data/app/frameworks/twitter/bootstrap/modals.less +3 -3
  50. data/app/frameworks/twitter/bootstrap/navbar.less +30 -25
  51. data/app/frameworks/twitter/bootstrap/navs.less +1 -1
  52. data/app/frameworks/twitter/bootstrap/normalize.less +12 -13
  53. data/app/frameworks/twitter/bootstrap/pager.less +1 -2
  54. data/app/frameworks/twitter/bootstrap/pagination.less +5 -4
  55. data/app/frameworks/twitter/bootstrap/panels.less +36 -8
  56. data/app/frameworks/twitter/bootstrap/popovers.less +7 -9
  57. data/app/frameworks/twitter/bootstrap/print.less +96 -96
  58. data/app/frameworks/twitter/bootstrap/progress-bars.less +1 -19
  59. data/app/frameworks/twitter/bootstrap/responsive-embed.less +10 -9
  60. data/app/frameworks/twitter/bootstrap/scaffolding.less +12 -1
  61. data/app/frameworks/twitter/bootstrap/tables.less +14 -13
  62. data/app/frameworks/twitter/bootstrap/theme.less +49 -16
  63. data/app/frameworks/twitter/bootstrap/thumbnails.less +1 -1
  64. data/app/frameworks/twitter/bootstrap/tooltip.less +15 -9
  65. data/app/frameworks/twitter/bootstrap/type.less +2 -13
  66. data/app/frameworks/twitter/bootstrap/utilities.less +0 -2
  67. data/app/frameworks/twitter/bootstrap/variables.less +44 -21
  68. data/bootstrap_farsi.gemspec +1 -1
  69. data/lib/bootstrap_farsi/version.rb +1 -1
  70. metadata +5 -4
@@ -12,7 +12,7 @@
12
12
  background-color: @thumbnail-bg;
13
13
  border: 1px solid @thumbnail-border;
14
14
  border-radius: @thumbnail-border-radius;
15
- .transition(all .2s ease-in-out);
15
+ .transition(border .2s ease-in-out);
16
16
 
17
17
  > img,
18
18
  a > img {
@@ -8,9 +8,11 @@
8
8
  position: absolute;
9
9
  z-index: @zindex-tooltip;
10
10
  display: block;
11
- visibility: visible;
11
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
12
+ // So reset our font and text properties to avoid inheriting weird values.
13
+ .reset-text();
12
14
  font-size: @font-size-small;
13
- line-height: 1.4;
15
+
14
16
  .opacity(0);
15
17
 
16
18
  &.in { .opacity(@tooltip-opacity); }
@@ -26,7 +28,6 @@
26
28
  padding: 3px 8px;
27
29
  color: @tooltip-color;
28
30
  text-align: center;
29
- text-decoration: none;
30
31
  background-color: @tooltip-bg;
31
32
  border-radius: @border-radius-base;
32
33
  }
@@ -39,6 +40,7 @@
39
40
  border-color: transparent;
40
41
  border-style: solid;
41
42
  }
43
+ // Note: Deprecated .top-left, .top-right, .bottom-left, and .bottom-right as of v3.3.1
42
44
  .tooltip {
43
45
  &.top .tooltip-arrow {
44
46
  bottom: 0;
@@ -49,13 +51,15 @@
49
51
  }
50
52
  &.top-left .tooltip-arrow {
51
53
  bottom: 0;
52
- .left(@tooltip-arrow-width);
54
+ right: @tooltip-arrow-width;
55
+ margin-bottom: -@tooltip-arrow-width;
53
56
  border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
54
57
  border-top-color: @tooltip-arrow-color;
55
58
  }
56
59
  &.top-right .tooltip-arrow {
57
60
  bottom: 0;
58
- .right(@tooltip-arrow-width);
61
+ left: @tooltip-arrow-width;
62
+ margin-bottom: -@tooltip-arrow-width;
59
63
  border-width: @tooltip-arrow-width @tooltip-arrow-width 0;
60
64
  border-top-color: @tooltip-arrow-color;
61
65
  }
@@ -75,20 +79,22 @@
75
79
  }
76
80
  &.bottom .tooltip-arrow {
77
81
  top: 0;
78
- .left(50%);
79
- .margin-left(-@tooltip-arrow-width);
82
+ left: 50%;
83
+ margin-left: -@tooltip-arrow-width;
80
84
  border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
81
85
  border-bottom-color: @tooltip-arrow-color;
82
86
  }
83
87
  &.bottom-left .tooltip-arrow {
84
88
  top: 0;
85
- .left(@tooltip-arrow-width);
89
+ right: @tooltip-arrow-width;
90
+ margin-top: -@tooltip-arrow-width;
86
91
  border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
87
92
  border-bottom-color: @tooltip-arrow-color;
88
93
  }
89
94
  &.bottom-right .tooltip-arrow {
90
95
  top: 0;
91
- .right(@tooltip-arrow-width);
96
+ left: @tooltip-arrow-width;
97
+ margin-top: -@tooltip-arrow-width;
92
98
  border-width: 0 @tooltip-arrow-width @tooltip-arrow-width;
93
99
  border-bottom-color: @tooltip-arrow-color;
94
100
  }
@@ -80,11 +80,6 @@ small,
80
80
  font-size: floor((100% * @font-size-small / @font-size-base));
81
81
  }
82
82
 
83
- // Undo browser default styling
84
- cite {
85
- font-style: normal;
86
- }
87
-
88
83
  mark,
89
84
  .mark {
90
85
  background-color: @state-warning-bg;
@@ -216,7 +211,7 @@ dd {
216
211
  &:extend(.clearfix all); // Clear the floated `dt` if an empty `dd` is present
217
212
  }
218
213
 
219
- @media (min-width: @grid-float-breakpoint) {
214
+ @media (min-width: @dl-horizontal-breakpoint) {
220
215
  dt {
221
216
  .float(left);
222
217
  width: (@dl-horizontal-offset - 20);
@@ -243,7 +238,7 @@ abbr[data-original-title] {
243
238
  }
244
239
  .initialism {
245
240
  font-size: 90%;
246
- text-transform: uppercase;
241
+ .text-uppercase();
247
242
  }
248
243
 
249
244
  // Blockquotes
@@ -299,12 +294,6 @@ blockquote.pull-right {
299
294
  }
300
295
  }
301
296
 
302
- // Quotes
303
- blockquote:before,
304
- blockquote:after {
305
- content: "";
306
- }
307
-
308
297
  // Addresses
309
298
  address {
310
299
  margin-bottom: @line-height-computed;
@@ -44,7 +44,6 @@
44
44
 
45
45
  .hidden {
46
46
  display: none !important;
47
- visibility: hidden !important;
48
47
  }
49
48
 
50
49
 
@@ -53,5 +52,4 @@
53
52
 
54
53
  .affix {
55
54
  position: fixed;
56
- .translate3d(0, 0, 0);
57
55
  }
@@ -7,13 +7,14 @@
7
7
  //
8
8
  //## Gray and brand colors for use across Bootstrap.
9
9
 
10
- @gray-darker: lighten(#000, 13.5%); // #222
11
- @gray-dark: lighten(#000, 20%); // #333
12
- @gray: lighten(#000, 33.5%); // #555
13
- @gray-light: lighten(#000, 46.7%); // #777
14
- @gray-lighter: lighten(#000, 93.5%); // #eee
15
-
16
- @brand-primary: #428bca;
10
+ @gray-base: #000;
11
+ @gray-darker: lighten(@gray-base, 13.5%); // #222
12
+ @gray-dark: lighten(@gray-base, 20%); // #333
13
+ @gray: lighten(@gray-base, 33.5%); // #555
14
+ @gray-light: lighten(@gray-base, 46.7%); // #777
15
+ @gray-lighter: lighten(@gray-base, 93.5%); // #eee
16
+
17
+ @brand-primary: darken(#428bca, 6.5%); // #337ab7
17
18
  @brand-success: #5cb85c;
18
19
  @brand-info: #5bc0de;
19
20
  @brand-warning: #f0ad4e;
@@ -33,6 +34,8 @@
33
34
  @link-color: @brand-primary;
34
35
  //** Link hover color set via `darken()` function.
35
36
  @link-hover-color: darken(@link-color, 15%);
37
+ //** Link hover decoration.
38
+ @link-hover-decoration: underline;
36
39
 
37
40
 
38
41
  //== Typography
@@ -96,7 +99,7 @@
96
99
  @padding-xs-vertical: 1px;
97
100
  @padding-xs-horizontal: 5px;
98
101
 
99
- @line-height-large: 1.33;
102
+ @line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome
100
103
  @line-height-small: 1.5;
101
104
 
102
105
  @border-radius-base: 4px;
@@ -167,6 +170,11 @@
167
170
 
168
171
  @btn-link-disabled-color: @gray-light;
169
172
 
173
+ // Allows for customizing button radius independently from global border radius
174
+ @btn-border-radius-base: @border-radius-base;
175
+ @btn-border-radius-large: @border-radius-large;
176
+ @btn-border-radius-small: @border-radius-small;
177
+
170
178
 
171
179
  //== Forms
172
180
  //
@@ -181,13 +189,21 @@
181
189
  @input-color: @gray;
182
190
  //** `<input>` border color
183
191
  @input-border: #ccc;
184
- //** `<input>` border radius
192
+
193
+ // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
194
+ //** Default `.form-control` border radius
195
+ // This has no effect on `<select>`s in some browsers, due to the limited stylability of `<select>`s in CSS.
185
196
  @input-border-radius: @border-radius-base;
197
+ //** Large `.form-control` border radius
198
+ @input-border-radius-large: @border-radius-large;
199
+ //** Small `.form-control` border radius
200
+ @input-border-radius-small: @border-radius-small;
201
+
186
202
  //** Border color for inputs on focus
187
203
  @input-border-focus: #66afe9;
188
204
 
189
205
  //** Placeholder text color
190
- @input-color-placeholder: @gray-light;
206
+ @input-color-placeholder: #999;
191
207
 
192
208
  //** Default `.form-control` height
193
209
  @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
@@ -196,6 +212,9 @@
196
212
  //** Small `.form-control` height
197
213
  @input-height-small: (floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2);
198
214
 
215
+ //** `.form-group` margin
216
+ @form-group-margin-bottom: 15px;
217
+
199
218
  @legend-color: @gray-dark;
200
219
  @legend-border-color: #e5e5e5;
201
220
 
@@ -204,6 +223,9 @@
204
223
  //** Border color for textual input addons
205
224
  @input-group-addon-border-color: @input-border;
206
225
 
226
+ //** Disabled cursor for form controls and buttons.
227
+ @cursor-disabled: not-allowed;
228
+
207
229
 
208
230
  //== Dropdowns
209
231
  //
@@ -315,17 +337,17 @@
315
337
  //## Define the maximum width of `.container` for different screen sizes.
316
338
 
317
339
  // Small screen / tablet
318
- @container-tablet: ((720px + @grid-gutter-width));
340
+ @container-tablet: (720px + @grid-gutter-width);
319
341
  //** For `@screen-sm-min` and up.
320
342
  @container-sm: @container-tablet;
321
343
 
322
344
  // Medium screen / desktop
323
- @container-desktop: ((940px + @grid-gutter-width));
345
+ @container-desktop: (940px + @grid-gutter-width);
324
346
  //** For `@screen-md-min` and up.
325
347
  @container-md: @container-desktop;
326
348
 
327
349
  // Large screen / wide desktop
328
- @container-large-desktop: ((1140px + @grid-gutter-width));
350
+ @container-large-desktop: (1140px + @grid-gutter-width);
329
351
  //** For `@screen-lg-min` and up.
330
352
  @container-lg: @container-large-desktop;
331
353
 
@@ -366,14 +388,14 @@
366
388
  @navbar-default-toggle-border-color: #ddd;
367
389
 
368
390
 
369
- // Inverted navbar
391
+ //=== Inverted navbar
370
392
  // Reset inverted navbar basics
371
- @navbar-inverse-color: @gray-light;
393
+ @navbar-inverse-color: lighten(@gray-light, 15%);
372
394
  @navbar-inverse-bg: #222;
373
395
  @navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
374
396
 
375
397
  // Inverted navbar links
376
- @navbar-inverse-link-color: @gray-light;
398
+ @navbar-inverse-link-color: lighten(@gray-light, 15%);
377
399
  @navbar-inverse-link-hover-color: #fff;
378
400
  @navbar-inverse-link-hover-bg: transparent;
379
401
  @navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
@@ -403,8 +425,6 @@
403
425
  @nav-disabled-link-color: @gray-light;
404
426
  @nav-disabled-link-hover-color: @gray-light;
405
427
 
406
- @nav-open-link-hover-color: #fff;
407
-
408
428
  //== Tabs
409
429
  @nav-tabs-border-color: #ddd;
410
430
 
@@ -469,6 +489,7 @@
469
489
  @jumbotron-bg: @gray-lighter;
470
490
  @jumbotron-heading-color: inherit;
471
491
  @jumbotron-font-size: ceil((@font-size-base * 1.5));
492
+ @jumbotron-heading-font-size: ceil((@font-size-base * 4.5));
472
493
 
473
494
 
474
495
  //== Form states and alerts
@@ -529,7 +550,7 @@
529
550
  //** Popover arrow width
530
551
  @popover-arrow-width: 10px;
531
552
  //** Popover arrow color
532
- @popover-arrow-color: #fff;
553
+ @popover-arrow-color: @popover-bg;
533
554
 
534
555
  //** Popover outer arrow width
535
556
  @popover-arrow-outer-width: (@popover-arrow-width + 1);
@@ -628,6 +649,8 @@
628
649
  @progress-bg: #f5f5f5;
629
650
  //** Progress bar text color
630
651
  @progress-bar-color: #fff;
652
+ //** Variable for setting rounded corners on progress bar.
653
+ @progress-border-radius: @border-radius-base;
631
654
 
632
655
  //** Default progress bar color
633
656
  @progress-bar-bg: @brand-primary;
@@ -840,7 +863,7 @@
840
863
  @page-header-border-color: @gray-lighter;
841
864
  //** Width of horizontal description list titles
842
865
  @dl-horizontal-offset: @component-offset-horizontal;
866
+ //** Point at which .dl-horizontal becomes horizontal
867
+ @dl-horizontal-breakpoint: @grid-float-breakpoint;
843
868
  //** Horizontal line color.
844
869
  @hr-border: @gray-lighter;
845
-
846
-
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Aref Aslani"]
10
10
  spec.email = ["arefaslani@gmail.com"]
11
11
  spec.summary = %q{Twitter Bootstrap less right to left.}
12
- spec.description = %q{Twitter Bootstrap less for rtl languages e.g. persian or arabic.}
12
+ spec.description = %q{Twitter Bootstrap less with for rtl languages e.g. persian or arabic.}
13
13
  spec.homepage = "https://github.com/arefaslani/bootstrap_farsi"
14
14
  spec.license = "MIT"
15
15
 
@@ -1,3 +1,3 @@
1
1
  module BootstrapFarsi
2
- VERSION = "3.2.0.1"
2
+ VERSION = "3.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_farsi
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0.1
4
+ version: 3.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aref Aslani
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-05 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Twitter Bootstrap less for rtl languages e.g. persian or arabic.
83
+ description: Twitter Bootstrap less with for rtl languages e.g. persian or arabic.
84
84
  email:
85
85
  - arefaslani@gmail.com
86
86
  executables: []
@@ -156,6 +156,7 @@ files:
156
156
  - app/frameworks/twitter/bootstrap/mixins/panels.less
157
157
  - app/frameworks/twitter/bootstrap/mixins/progress-bar.less
158
158
  - app/frameworks/twitter/bootstrap/mixins/reset-filter.less
159
+ - app/frameworks/twitter/bootstrap/mixins/reset-text.less
159
160
  - app/frameworks/twitter/bootstrap/mixins/resize.less
160
161
  - app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less
161
162
  - app/frameworks/twitter/bootstrap/mixins/size.less
@@ -209,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
210
  version: '0'
210
211
  requirements: []
211
212
  rubyforge_project:
212
- rubygems_version: 2.2.2
213
+ rubygems_version: 2.5.1
213
214
  signing_key:
214
215
  specification_version: 4
215
216
  summary: Twitter Bootstrap less right to left.