bootstrap_farsi 3.2.0.1 → 3.3.6

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.
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
@@ -1,8 +1,8 @@
1
1
  /* ========================================================================
2
- * Bootstrap: transition.js v3.2.0
2
+ * Bootstrap: transition.js v3.3.6
3
3
  * http://getbootstrap.com/javascript/#transitions
4
4
  * ========================================================================
5
- * Copyright 2011-2014 Twitter, Inc.
5
+ * Copyright 2011-2015 Twitter, Inc.
6
6
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
7
7
  * ======================================================================== */
8
8
 
@@ -18,6 +18,7 @@
18
18
  // Specified for the h4 to prevent conflicts of changing @headings-color
19
19
  color: inherit;
20
20
  }
21
+
21
22
  // Provide class for links that match alerts
22
23
  .alert-link {
23
24
  font-weight: @alert-link-font-weight;
@@ -28,6 +29,7 @@
28
29
  > ul {
29
30
  margin-bottom: 0;
30
31
  }
32
+
31
33
  > p + p {
32
34
  margin-top: 5px;
33
35
  }
@@ -57,12 +59,15 @@
57
59
  .alert-success {
58
60
  .alert-variant(@alert-success-bg; @alert-success-border; @alert-success-text);
59
61
  }
62
+
60
63
  .alert-info {
61
64
  .alert-variant(@alert-info-bg; @alert-info-border; @alert-info-text);
62
65
  }
66
+
63
67
  .alert-warning {
64
68
  .alert-variant(@alert-warning-bg; @alert-warning-border; @alert-warning-text);
65
69
  }
70
+
66
71
  .alert-danger {
67
72
  .alert-variant(@alert-danger-bg; @alert-danger-border; @alert-danger-text);
68
73
  }
@@ -12,7 +12,7 @@
12
12
  font-weight: @badge-font-weight;
13
13
  color: @badge-color;
14
14
  line-height: @badge-line-height;
15
- vertical-align: baseline;
15
+ vertical-align: middle;
16
16
  white-space: nowrap;
17
17
  text-align: center;
18
18
  background-color: @badge-bg;
@@ -28,7 +28,9 @@
28
28
  position: relative;
29
29
  top: -1px;
30
30
  }
31
- .btn-xs & {
31
+
32
+ .btn-xs &,
33
+ .btn-group-xs > .btn & {
32
34
  top: 0;
33
35
  padding: 1px 5px;
34
36
  }
@@ -44,11 +46,20 @@
44
46
  }
45
47
 
46
48
  // Account for badges in navs
47
- a.list-group-item.active > &,
49
+ .list-group-item.active > &,
48
50
  .nav-pills > .active > a > & {
49
51
  color: @badge-active-color;
50
52
  background-color: @badge-active-bg;
51
53
  }
54
+
55
+ .list-group-item > & {
56
+ .float(right);
57
+ }
58
+
59
+ .list-group-item > & + & {
60
+ .margin-right(5px);
61
+ }
62
+
52
63
  .nav-pills > li > a > & {
53
64
  .margin-left(3px);
54
65
  }
@@ -1,4 +1,10 @@
1
- // bi-app
1
+ /*!
2
+ * Bootstrap v3.3.6 (http://zerox.me/projects/bootstrap/)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/zeroxme/bootstrap-3-arabic/blob/master/LICENSE)
5
+ */
6
+
7
+ // bi-app
2
8
  @import "bi-app/bi-app-rtl";
3
9
 
4
10
  // Core variables and mixins
@@ -18,10 +18,6 @@
18
18
  &.active {
19
19
  z-index: 2;
20
20
  }
21
- &:focus {
22
- // Remove focus outline when dropdown JS adds it after closing the menu
23
- outline: 0;
24
- }
25
21
  }
26
22
  }
27
23
 
@@ -40,6 +36,7 @@
40
36
  .margin-left(-5px); // Offset the first child's margin
41
37
  &:extend(.clearfix all);
42
38
 
39
+ .btn,
43
40
  .btn-group,
44
41
  .input-group {
45
42
  .float(left);
@@ -75,13 +72,13 @@
75
72
  .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
76
73
  border-radius: 0;
77
74
  }
78
- .btn-group > .btn-group:first-child {
75
+ .btn-group > .btn-group:first-child:not(:last-child) {
79
76
  > .btn:last-child,
80
77
  > .dropdown-toggle {
81
78
  .border-right-radius(0);
82
79
  }
83
80
  }
84
- .btn-group > .btn-group:last-child > .btn:first-child {
81
+ .btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
85
82
  .border-left-radius(0);
86
83
  }
87
84
 
@@ -176,12 +173,12 @@
176
173
  border-radius: 0;
177
174
  }
178
175
  &:first-child:not(:last-child) {
179
- .border-top-right-radius(@border-radius-base);
176
+ .border-top-radius(@btn-border-radius-base);
180
177
  .border-bottom-radius(0);
181
178
  }
182
179
  &:last-child:not(:first-child) {
183
- .border-bottom-left-radius(@border-radius-base);
184
180
  .border-top-radius(0);
181
+ .border-bottom-radius(@btn-border-radius-base);
185
182
  }
186
183
  }
187
184
  .btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
@@ -198,7 +195,6 @@
198
195
  }
199
196
 
200
197
 
201
-
202
198
  // Justified button groups
203
199
  // ----------------------
204
200
 
@@ -226,15 +222,23 @@
226
222
  // Checkbox and radio options
227
223
  //
228
224
  // In order to support the browser's form validation feedback, powered by the
229
- // `required` attribute, we have to "hide" the inputs via `opacity`. We cannot
230
- // use `display: none;` or `visibility: hidden;` as that also hides the popover.
225
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
226
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
227
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
228
+ // certain cases which is prevented by using `clip` and `pointer-events`.
231
229
  // This way, we ensure a DOM element is visible to position the popover from.
232
230
  //
233
- // See https://github.com/twbs/bootstrap/pull/12794 for more.
231
+ // See https://github.com/twbs/bootstrap/pull/12794 and
232
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
234
233
 
235
- [data-toggle="buttons"] > .btn > input[type="radio"],
236
- [data-toggle="buttons"] > .btn > input[type="checkbox"] {
237
- position: absolute;
238
- z-index: -1;
239
- .opacity(0);
234
+ [data-toggle="buttons"] {
235
+ > .btn,
236
+ > .btn-group > .btn {
237
+ input[type="radio"],
238
+ input[type="checkbox"] {
239
+ position: absolute;
240
+ clip: rect(0,0,0,0);
241
+ pointer-events: none;
242
+ }
243
+ }
240
244
  }
@@ -12,23 +12,26 @@
12
12
  font-weight: @btn-font-weight;
13
13
  text-align: center;
14
14
  vertical-align: middle;
15
+ touch-action: manipulation;
15
16
  cursor: pointer;
16
17
  background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
17
18
  border: 1px solid transparent;
18
19
  white-space: nowrap;
19
- .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
20
+ .button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @btn-border-radius-base);
20
21
  .user-select(none);
21
22
 
22
23
  &,
23
24
  &:active,
24
25
  &.active {
25
- &:focus {
26
+ &:focus,
27
+ &.focus {
26
28
  .tab-focus();
27
29
  }
28
30
  }
29
31
 
30
32
  &:hover,
31
- &:focus {
33
+ &:focus,
34
+ &.focus {
32
35
  color: @btn-default-color;
33
36
  text-decoration: none;
34
37
  }
@@ -43,11 +46,17 @@
43
46
  &.disabled,
44
47
  &[disabled],
45
48
  fieldset[disabled] & {
46
- cursor: not-allowed;
47
- pointer-events: none; // Future-proof disabling of clicks
49
+ cursor: @cursor-disabled;
48
50
  .opacity(.65);
49
51
  .box-shadow(none);
50
52
  }
53
+
54
+ a& {
55
+ &.disabled,
56
+ fieldset[disabled] & {
57
+ pointer-events: none; // Future-proof disabling of clicks on `<a>` elements
58
+ }
59
+ }
51
60
  }
52
61
 
53
62
 
@@ -85,11 +94,11 @@
85
94
  .btn-link {
86
95
  color: @link-color;
87
96
  font-weight: normal;
88
- cursor: pointer;
89
97
  border-radius: 0;
90
98
 
91
99
  &,
92
100
  &:active,
101
+ &.active,
93
102
  &[disabled],
94
103
  fieldset[disabled] & {
95
104
  background-color: transparent;
@@ -104,7 +113,7 @@
104
113
  &:hover,
105
114
  &:focus {
106
115
  color: @link-hover-color;
107
- text-decoration: underline;
116
+ text-decoration: @link-hover-decoration;
108
117
  background-color: transparent;
109
118
  }
110
119
  &[disabled],
@@ -123,14 +132,14 @@
123
132
 
124
133
  .btn-lg {
125
134
  // line-height: ensure even-numbered height of button next to large input
126
- .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
135
+ .button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @btn-border-radius-large);
127
136
  }
128
137
  .btn-sm {
129
138
  // line-height: ensure proper height of button next to small input
130
- .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
139
+ .button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
131
140
  }
132
141
  .btn-xs {
133
- .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
142
+ .button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @btn-border-radius-small);
134
143
  }
135
144
 
136
145
 
@@ -18,12 +18,37 @@
18
18
  position: relative;
19
19
  .carousel-transition(.6s ease-in-out);
20
20
 
21
+
21
22
  // Account for jankitude on images
22
23
  > img,
23
24
  > a > img {
24
25
  &:extend(.img-responsive);
25
26
  line-height: 1;
26
27
  }
28
+
29
+ // WebKit CSS3 transforms for supported devices
30
+ @media all and (transform-3d), (-webkit-transform-3d) {
31
+ .transition-transform(~'0.6s ease-in-out');
32
+ .backface-visibility(~'hidden');
33
+ .perspective(1000px);
34
+
35
+ &.next,
36
+ &.active.right {
37
+ .translate3d(100%, 0, 0);
38
+ .left(0);
39
+ }
40
+ &.prev,
41
+ &.active.left {
42
+ .translate3d(-100%, 0, 0);
43
+ .left(0);
44
+ }
45
+ &.next.left,
46
+ &.prev.right,
47
+ &.active {
48
+ .translate3d(0, 0, 0);
49
+ .left(0);
50
+ }
51
+ }
27
52
  }
28
53
 
29
54
  > .active,
@@ -47,7 +72,7 @@
47
72
  .left(100%);
48
73
  }
49
74
  > .prev {
50
- .left(-100%);
75
+ .left(100%);
51
76
  }
52
77
  > .next.left,
53
78
  > .prev.right {
@@ -69,7 +94,6 @@
69
94
  .carousel-control {
70
95
  position: absolute;
71
96
  top: 0;
72
- left: 0;
73
97
  bottom: 0;
74
98
  width: @carousel-control-width;
75
99
  .opacity(@carousel-control-opacity);
@@ -77,15 +101,18 @@
77
101
  color: @carousel-control-color;
78
102
  text-align: center;
79
103
  text-shadow: @carousel-text-shadow;
104
+ background-color: rgba(0, 0, 0, 0); // Fix IE9 click-thru bug
80
105
  // We can't have this transition here because WebKit cancels the carousel
81
106
  // animation if you trip this while in the middle of another animation.
82
107
 
83
108
  // Set gradients for backgrounds
84
109
  &.left {
110
+ .left(0);
111
+ .right(auto);
85
112
  }
86
113
  &.right {
87
- left: auto;
88
- right: 0;
114
+ .left(auto);
115
+ .right(0);
89
116
  }
90
117
 
91
118
  // Hover/focus state
@@ -104,6 +131,7 @@
104
131
  .glyphicon-chevron-right {
105
132
  position: absolute;
106
133
  top: 50%;
134
+ margin-top: -10px;
107
135
  z-index: 5;
108
136
  display: inline-block;
109
137
  }
@@ -121,7 +149,7 @@
121
149
  .icon-next {
122
150
  width: 20px;
123
151
  height: 20px;
124
- margin-top: -10px;
152
+ line-height: 1;
125
153
  font-family: serif;
126
154
  }
127
155
 
@@ -169,6 +197,7 @@
169
197
  // Internet Explorer 8-9 does not support clicks on elements without a set
170
198
  // `background-color`. We cannot use `filter` since that's not viewed as a
171
199
  // background color by the browser. Thus, a hack is needed.
200
+ // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
172
201
  //
173
202
  // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
174
203
  // set alpha transparency for the best results possible.
@@ -212,18 +241,18 @@
212
241
  .glyphicon-chevron-right,
213
242
  .icon-prev,
214
243
  .icon-next {
215
- width: 30px;
216
- height: 30px;
217
- margin-top: -15px;
218
- font-size: 30px;
244
+ width: (@carousel-control-font-size * 1.5);
245
+ height: (@carousel-control-font-size * 1.5);
246
+ margin-top: (@carousel-control-font-size / -2);
247
+ font-size: (@carousel-control-font-size * 1.5);
219
248
  }
220
249
  .glyphicon-chevron-left,
221
250
  .icon-prev {
222
- .margin-left(-15px);
251
+ .margin-left((@carousel-control-font-size / -2));
223
252
  }
224
253
  .glyphicon-chevron-right,
225
254
  .icon-next {
226
- .margin-right(-15px);
255
+ .margin-right((@carousel-control-font-size / -2));
227
256
  }
228
257
  }
229
258
 
@@ -23,6 +23,7 @@
23
23
  // Additional properties for button version
24
24
  // iOS requires the button element instead of an anchor tag.
25
25
  // If you want the anchor version, it requires `href="#"`.
26
+ // See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
26
27
  button& {
27
28
  padding: 0;
28
29
  cursor: pointer;
@@ -33,6 +33,7 @@ kbd {
33
33
  kbd {
34
34
  padding: 0;
35
35
  font-size: 100%;
36
+ font-weight: bold;
36
37
  box-shadow: none;
37
38
  }
38
39
  }
@@ -27,5 +27,7 @@
27
27
  position: relative;
28
28
  height: 0;
29
29
  overflow: hidden;
30
- .transition(height .35s ease);
30
+ .transition-property(~"height, visibility");
31
+ .transition-duration(.35s);
32
+ .transition-timing-function(ease);
31
33
  }
@@ -10,12 +10,14 @@
10
10
  height: 0;
11
11
  .margin-left(2px);
12
12
  vertical-align: middle;
13
- border-top: @caret-width-base solid;
13
+ border-top: @caret-width-base dashed;
14
+ border-top: @caret-width-base solid ~"\9"; // IE8
14
15
  .border-right(@caret-width-base solid transparent);
15
16
  .border-left(@caret-width-base solid transparent);
16
17
  }
17
18
 
18
19
  // The dropdown wrapper (div)
20
+ .dropup,
19
21
  .dropdown {
20
22
  position: relative;
21
23
  }
@@ -103,16 +105,15 @@
103
105
  &:focus {
104
106
  color: @dropdown-link-disabled-color;
105
107
  }
106
- }
107
- // Nuke hover/focus effects
108
- .dropdown-menu > .disabled > a {
108
+
109
+ // Nuke hover/focus effects
109
110
  &:hover,
110
111
  &:focus {
111
112
  text-decoration: none;
112
113
  background-color: transparent;
113
114
  background-image: none; // Remove CSS gradient
114
115
  .reset-filter();
115
- cursor: not-allowed;
116
+ cursor: @cursor-disabled;
116
117
  }
117
118
  }
118
119
 
@@ -184,14 +185,15 @@
184
185
  // Reverse the caret
185
186
  .caret {
186
187
  border-top: 0;
187
- border-bottom: @caret-width-base solid;
188
+ border-bottom: @caret-width-base dashed;
189
+ border-bottom: @caret-width-base solid ~"\9"; // IE8
188
190
  content: "";
189
191
  }
190
192
  // Different positioning for bottom up menu
191
193
  .dropdown-menu {
192
194
  top: auto;
193
195
  bottom: 100%;
194
- margin-bottom: 1px;
196
+ margin-bottom: 2px;
195
197
  }
196
198
  }
197
199
 
@@ -212,4 +214,3 @@
212
214
  }
213
215
  }
214
216
  }
215
-