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
@@ -1,101 +1,101 @@
1
- //
2
- // Basic print styles
3
- // --------------------------------------------------
4
- // Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
1
+ /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
2
+
3
+ // ==========================================================================
4
+ // Print styles.
5
+ // Inlined to avoid the additional HTTP request: h5bp.com/r
6
+ // ==========================================================================
5
7
 
6
8
  @media print {
9
+ *,
10
+ *:before,
11
+ *:after {
12
+ background: transparent !important;
13
+ color: #000 !important; // Black prints faster: h5bp.com/s
14
+ box-shadow: none !important;
15
+ text-shadow: none !important;
16
+ }
17
+
18
+ a,
19
+ a:visited {
20
+ text-decoration: underline;
21
+ }
22
+
23
+ a[href]:after {
24
+ content: " (" attr(href) ")";
25
+ }
26
+
27
+ abbr[title]:after {
28
+ content: " (" attr(title) ")";
29
+ }
30
+
31
+ // Don't show links that are fragment identifiers,
32
+ // or use the `javascript:` pseudo protocol
33
+ a[href^="#"]:after,
34
+ a[href^="javascript:"]:after {
35
+ content: "";
36
+ }
37
+
38
+ pre,
39
+ blockquote {
40
+ border: 1px solid #999;
41
+ page-break-inside: avoid;
42
+ }
43
+
44
+ thead {
45
+ display: table-header-group; // h5bp.com/t
46
+ }
47
+
48
+ tr,
49
+ img {
50
+ page-break-inside: avoid;
51
+ }
52
+
53
+ img {
54
+ max-width: 100% !important;
55
+ }
56
+
57
+ p,
58
+ h2,
59
+ h3 {
60
+ orphans: 3;
61
+ widows: 3;
62
+ }
63
+
64
+ h2,
65
+ h3 {
66
+ page-break-after: avoid;
67
+ }
68
+
69
+ // Bootstrap specific changes start
7
70
 
8
- * {
9
- text-shadow: none !important;
10
- color: #000 !important; // Black prints faster: h5bp.com/s
11
- background: transparent !important;
12
- box-shadow: none !important;
13
- }
14
-
15
- a,
16
- a:visited {
17
- text-decoration: underline;
18
- }
19
-
20
- a[href]:after {
21
- content: " (" attr(href) ")";
22
- }
23
-
24
- abbr[title]:after {
25
- content: " (" attr(title) ")";
26
- }
27
-
28
- // Don't show links for images, or javascript/internal links
29
- a[href^="javascript:"]:after,
30
- a[href^="#"]:after {
31
- content: "";
32
- }
33
-
34
- pre,
35
- blockquote {
36
- border: 1px solid #999;
37
- page-break-inside: avoid;
38
- }
39
-
40
- thead {
41
- display: table-header-group; // h5bp.com/t
42
- }
43
-
44
- tr,
45
- img {
46
- page-break-inside: avoid;
47
- }
48
-
49
- img {
50
- max-width: 100% !important;
51
- }
52
-
53
- p,
54
- h2,
55
- h3 {
56
- orphans: 3;
57
- widows: 3;
58
- }
59
-
60
- h2,
61
- h3 {
62
- page-break-after: avoid;
63
- }
64
-
65
- // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
66
- // Once fixed, we can just straight up remove this.
67
- select {
68
- background: #fff !important;
69
- }
70
-
71
- // Bootstrap components
72
- .navbar {
73
- display: none;
74
- }
75
- .table {
76
- td,
77
- th {
78
- background-color: #fff !important;
79
- }
80
- }
81
- .btn,
82
- .dropup > .btn {
83
- > .caret {
84
- border-top-color: #000 !important;
85
- }
86
- }
87
- .label {
88
- border: 1px solid #000;
89
- }
90
-
91
- .table {
92
- border-collapse: collapse !important;
93
- }
94
- .table-bordered {
95
- th,
96
- td {
97
- border: 1px solid #ddd !important;
98
- }
99
- }
71
+ // Bootstrap components
72
+ .navbar {
73
+ display: none;
74
+ }
75
+ .btn,
76
+ .dropup > .btn {
77
+ > .caret {
78
+ border-top-color: #000 !important;
79
+ }
80
+ }
81
+ .label {
82
+ border: 1px solid #000;
83
+ }
84
+
85
+ .table {
86
+ border-collapse: collapse !important;
87
+
88
+ td,
89
+ th {
90
+ background-color: #fff !important;
91
+ }
92
+ }
93
+ .table-bordered {
94
+ th,
95
+ td {
96
+ border: 1px solid #ddd !important;
97
+ }
98
+ }
100
99
 
100
+ // Bootstrap specific changes end
101
101
  }
@@ -19,7 +19,6 @@
19
19
  }
20
20
 
21
21
 
22
-
23
22
  // Bar itself
24
23
  // -------------------------
25
24
 
@@ -29,7 +28,7 @@
29
28
  height: @line-height-computed;
30
29
  margin-bottom: @line-height-computed;
31
30
  background-color: @progress-bg;
32
- border-radius: @border-radius-base;
31
+ border-radius: @progress-border-radius;
33
32
  .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
34
33
  }
35
34
 
@@ -67,23 +66,6 @@
67
66
  .animation(progress-bar-stripes 2s linear infinite);
68
67
  }
69
68
 
70
- // Account for lower percentages
71
- .progress-bar {
72
- &[aria-valuenow="1"],
73
- &[aria-valuenow="2"] {
74
- min-width: 30px;
75
- }
76
-
77
- &[aria-valuenow="0"] {
78
- color: @gray-light;
79
- min-width: 30px;
80
- background-color: transparent;
81
- background-image: none;
82
- box-shadow: none;
83
- }
84
- }
85
-
86
-
87
69
 
88
70
  // Variations
89
71
  // -------------------------
@@ -12,7 +12,8 @@
12
12
  .embed-responsive-item,
13
13
  iframe,
14
14
  embed,
15
- object {
15
+ object,
16
+ video {
16
17
  position: absolute;
17
18
  top: 0;
18
19
  .left(0);
@@ -21,14 +22,14 @@
21
22
  width: 100%;
22
23
  border: 0;
23
24
  }
25
+ }
24
26
 
25
- // Modifier class for 16:9 aspect ratio
26
- &.embed-responsive-16by9 {
27
- padding-bottom: 56.25%;
28
- }
27
+ // Modifier class for 16:9 aspect ratio
28
+ .embed-responsive-16by9 {
29
+ padding-bottom: 56.25%;
30
+ }
29
31
 
30
- // Modifier class for 4:3 aspect ratio
31
- &.embed-responsive-4by3 {
32
- padding-bottom: 75%;
33
- }
32
+ // Modifier class for 4:3 aspect ratio
33
+ .embed-responsive-4by3 {
34
+ padding-bottom: 75%;
34
35
  }
@@ -52,7 +52,7 @@ a {
52
52
  &:hover,
53
53
  &:focus {
54
54
  color: @link-hover-color;
55
- text-decoration: underline;
55
+ text-decoration: @link-hover-decoration;
56
56
  }
57
57
 
58
58
  &:focus {
@@ -148,3 +148,14 @@ hr {
148
148
  clip: auto;
149
149
  }
150
150
  }
151
+
152
+
153
+ // iOS "clickable elements" fix for role="button"
154
+ //
155
+ // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
156
+ // for traditionally non-focusable elements with role="button"
157
+ // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
158
+
159
+ [role="button"] {
160
+ cursor: pointer;
161
+ }
@@ -6,6 +6,12 @@
6
6
  table {
7
7
  background-color: @table-bg;
8
8
  }
9
+ caption {
10
+ padding-top: @table-cell-padding;
11
+ padding-bottom: @table-cell-padding;
12
+ color: @text-muted;
13
+ .text-align(left);
14
+ }
9
15
  th {
10
16
  .text-align(left);
11
17
  }
@@ -105,11 +111,8 @@ th {
105
111
  // Default zebra-stripe styles (alternating gray and transparent backgrounds)
106
112
 
107
113
  .table-striped {
108
- > tbody > tr:nth-child(odd) {
109
- > td,
110
- > th {
111
- background-color: @table-bg-accent;
112
- }
114
+ > tbody > tr:nth-of-type(odd) {
115
+ background-color: @table-bg-accent;
113
116
  }
114
117
  }
115
118
 
@@ -120,10 +123,7 @@ th {
120
123
 
121
124
  .table-hover {
122
125
  > tbody > tr:hover {
123
- > td,
124
- > th {
125
- background-color: @table-bg-hover;
126
- }
126
+ background-color: @table-bg-hover;
127
127
  }
128
128
  }
129
129
 
@@ -133,7 +133,7 @@ th {
133
133
  // Reset default table behavior
134
134
 
135
135
  table col[class*="col-"] {
136
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
136
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
137
137
  float: none;
138
138
  display: table-column;
139
139
  }
@@ -141,7 +141,7 @@ table {
141
141
  td,
142
142
  th {
143
143
  &[class*="col-"] {
144
- position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
144
+ position: static; // Prevent border hiding in Firefox and IE9-11 (see https://github.com/twbs/bootstrap/issues/11623)
145
145
  float: none;
146
146
  display: table-cell;
147
147
  }
@@ -169,14 +169,15 @@ table {
169
169
  // will display normally.
170
170
 
171
171
  .table-responsive {
172
+ overflow-x: auto;
173
+ min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
174
+
172
175
  @media screen and (max-width: @screen-xs-max) {
173
176
  width: 100%;
174
177
  margin-bottom: (@line-height-computed * 0.75);
175
178
  overflow-y: hidden;
176
- overflow-x: auto;
177
179
  -ms-overflow-style: -ms-autohiding-scrollbar;
178
180
  border: 1px solid @table-border-color;
179
- -webkit-overflow-scrolling: touch;
180
181
 
181
182
  // Tighten up spacing
182
183
  > .table {
@@ -1,3 +1,8 @@
1
+ /*!
2
+ * Bootstrap v3.3.6 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
1
6
 
2
7
  //
3
8
  // Load core variables and mixins
@@ -7,7 +12,6 @@
7
12
  @import "mixins.less";
8
13
 
9
14
 
10
-
11
15
  //
12
16
  // Buttons
13
17
  // --------------------------------------------------
@@ -28,12 +32,22 @@
28
32
  &.active {
29
33
  .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
30
34
  }
35
+
36
+ &.disabled,
37
+ &[disabled],
38
+ fieldset[disabled] & {
39
+ .box-shadow(none);
40
+ }
41
+
42
+ .badge {
43
+ text-shadow: none;
44
+ }
31
45
  }
32
46
 
33
47
  // Mixin for generating new styles
34
48
  .btn-styles(@btn-color: #555) {
35
49
  #gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
36
- .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
50
+ .reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners; see https://github.com/twbs/bootstrap/issues/10620
37
51
  background-repeat: repeat-x;
38
52
  border-color: darken(@btn-color, 14%);
39
53
 
@@ -49,10 +63,18 @@
49
63
  border-color: darken(@btn-color, 14%);
50
64
  }
51
65
 
52
- &:disabled,
53
- &[disabled] {
54
- background-color: darken(@btn-color, 12%);
55
- background-image: none;
66
+ &.disabled,
67
+ &[disabled],
68
+ fieldset[disabled] & {
69
+ &,
70
+ &:hover,
71
+ &:focus,
72
+ &.focus,
73
+ &:active,
74
+ &.active {
75
+ background-color: darken(@btn-color, 12%);
76
+ background-image: none;
77
+ }
56
78
  }
57
79
  }
58
80
 
@@ -74,7 +96,6 @@
74
96
  .btn-danger { .btn-styles(@btn-danger-bg); }
75
97
 
76
98
 
77
-
78
99
  //
79
100
  // Images
80
101
  // --------------------------------------------------
@@ -85,7 +106,6 @@
85
106
  }
86
107
 
87
108
 
88
-
89
109
  //
90
110
  // Dropdowns
91
111
  // --------------------------------------------------
@@ -103,7 +123,6 @@
103
123
  }
104
124
 
105
125
 
106
-
107
126
  //
108
127
  // Navbar
109
128
  // --------------------------------------------------
@@ -116,8 +135,9 @@
116
135
  @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
117
136
  .box-shadow(@shadow);
118
137
 
138
+ .navbar-nav > .open > a,
119
139
  .navbar-nav > .active > a {
120
- #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%));
140
+ #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));
121
141
  .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
122
142
  }
123
143
  }
@@ -129,10 +149,11 @@
129
149
  // Inverted navbar
130
150
  .navbar-inverse {
131
151
  #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
132
- .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
133
-
152
+ .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
153
+ border-radius: @navbar-border-radius;
154
+ .navbar-nav > .open > a,
134
155
  .navbar-nav > .active > a {
135
- #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%));
156
+ #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
136
157
  .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
137
158
  }
138
159
 
@@ -149,6 +170,17 @@
149
170
  border-radius: 0;
150
171
  }
151
172
 
173
+ // Fix active state of dropdown items in collapsed mode
174
+ @media (max-width: @grid-float-breakpoint-max) {
175
+ .navbar .navbar-nav .open .dropdown-menu > .active > a {
176
+ &,
177
+ &:hover,
178
+ &:focus {
179
+ color: #fff;
180
+ #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
181
+ }
182
+ }
183
+ }
152
184
 
153
185
 
154
186
  //
@@ -175,7 +207,6 @@
175
207
  .alert-danger { .alert-styles(@alert-danger-bg); }
176
208
 
177
209
 
178
-
179
210
  //
180
211
  // Progress bars
181
212
  // --------------------------------------------------
@@ -218,8 +249,11 @@
218
249
  text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
219
250
  #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
220
251
  border-color: darken(@list-group-active-border, 7.5%);
221
- }
222
252
 
253
+ .badge {
254
+ text-shadow: none;
255
+ }
256
+ }
223
257
 
224
258
 
225
259
  //
@@ -245,7 +279,6 @@
245
279
  .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
246
280
 
247
281
 
248
-
249
282
  //
250
283
  // Wells
251
284
  // --------------------------------------------------