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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/app/assets/javascripts/twitter/bootstrap.js +5 -4
- data/app/assets/javascripts/twitter/bootstrap/affix.js +46 -26
- data/app/assets/javascripts/twitter/bootstrap/alert.js +7 -5
- data/app/assets/javascripts/twitter/bootstrap/button.js +27 -17
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +35 -21
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +68 -27
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +55 -41
- data/app/assets/javascripts/twitter/bootstrap/modal.js +88 -31
- data/app/assets/javascripts/twitter/bootstrap/popover.js +5 -10
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +28 -26
- data/app/assets/javascripts/twitter/bootstrap/tab.js +45 -18
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +111 -54
- data/app/assets/javascripts/twitter/bootstrap/transition.js +2 -2
- data/app/frameworks/twitter/bootstrap/alerts.less +5 -0
- data/app/frameworks/twitter/bootstrap/badges.less +14 -3
- data/app/frameworks/twitter/bootstrap/bootstrap.less +7 -1
- data/app/frameworks/twitter/bootstrap/button-groups.less +21 -17
- data/app/frameworks/twitter/bootstrap/buttons.less +19 -10
- data/app/frameworks/twitter/bootstrap/carousel.less +40 -11
- data/app/frameworks/twitter/bootstrap/close.less +1 -0
- data/app/frameworks/twitter/bootstrap/code.less +1 -0
- data/app/frameworks/twitter/bootstrap/component-animations.less +3 -1
- data/app/frameworks/twitter/bootstrap/dropdowns.less +9 -8
- data/app/frameworks/twitter/bootstrap/forms.less +123 -50
- data/app/frameworks/twitter/bootstrap/glyphicons.less +75 -3
- data/app/frameworks/twitter/bootstrap/input-groups.less +8 -3
- data/app/frameworks/twitter/bootstrap/jumbotron.less +10 -4
- data/app/frameworks/twitter/bootstrap/list-group.less +10 -11
- data/app/frameworks/twitter/bootstrap/media.less +40 -30
- data/app/frameworks/twitter/bootstrap/mixins.less +1 -0
- data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +2 -1
- data/app/frameworks/twitter/bootstrap/mixins/border-radius.less +9 -1
- data/app/frameworks/twitter/bootstrap/mixins/buttons.less +19 -4
- data/app/frameworks/twitter/bootstrap/mixins/forms.less +5 -1
- data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +3 -3
- data/app/frameworks/twitter/bootstrap/mixins/grid.less +4 -4
- data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +2 -2
- data/app/frameworks/twitter/bootstrap/mixins/image.less +0 -1
- data/app/frameworks/twitter/bootstrap/mixins/labels.less +1 -1
- data/app/frameworks/twitter/bootstrap/mixins/list-group.less +2 -1
- data/app/frameworks/twitter/bootstrap/mixins/pagination.less +2 -1
- data/app/frameworks/twitter/bootstrap/mixins/reset-text.less +18 -0
- data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +1 -1
- data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +2 -1
- data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +8 -5
- data/app/frameworks/twitter/bootstrap/modals.less +3 -3
- data/app/frameworks/twitter/bootstrap/navbar.less +30 -25
- data/app/frameworks/twitter/bootstrap/navs.less +1 -1
- data/app/frameworks/twitter/bootstrap/normalize.less +12 -13
- data/app/frameworks/twitter/bootstrap/pager.less +1 -2
- data/app/frameworks/twitter/bootstrap/pagination.less +5 -4
- data/app/frameworks/twitter/bootstrap/panels.less +36 -8
- data/app/frameworks/twitter/bootstrap/popovers.less +7 -9
- data/app/frameworks/twitter/bootstrap/print.less +96 -96
- data/app/frameworks/twitter/bootstrap/progress-bars.less +1 -19
- data/app/frameworks/twitter/bootstrap/responsive-embed.less +10 -9
- data/app/frameworks/twitter/bootstrap/scaffolding.less +12 -1
- data/app/frameworks/twitter/bootstrap/tables.less +14 -13
- data/app/frameworks/twitter/bootstrap/theme.less +49 -16
- data/app/frameworks/twitter/bootstrap/thumbnails.less +1 -1
- data/app/frameworks/twitter/bootstrap/tooltip.less +15 -9
- data/app/frameworks/twitter/bootstrap/type.less +2 -13
- data/app/frameworks/twitter/bootstrap/utilities.less +0 -2
- data/app/frameworks/twitter/bootstrap/variables.less +44 -21
- data/bootstrap_farsi.gemspec +1 -1
- data/lib/bootstrap_farsi/version.rb +1 -1
- metadata +5 -4
@@ -30,10 +30,10 @@
|
|
30
30
|
|
31
31
|
// When fading in the modal, animate it to slide down
|
32
32
|
&.fade .modal-dialog {
|
33
|
-
.
|
33
|
+
.translate(0, -25%);
|
34
34
|
.transition-transform(~"0.3s ease-out");
|
35
35
|
}
|
36
|
-
&.in .modal-dialog { .
|
36
|
+
&.in .modal-dialog { .translate(0, 0) }
|
37
37
|
}
|
38
38
|
.modal-open .modal {
|
39
39
|
overflow-x: hidden;
|
@@ -79,7 +79,7 @@
|
|
79
79
|
.modal-header {
|
80
80
|
padding: @modal-title-padding;
|
81
81
|
border-bottom: 1px solid @modal-header-border-color;
|
82
|
-
|
82
|
+
&:extend(.clearfix all);
|
83
83
|
}
|
84
84
|
// Close icon
|
85
85
|
.modal-header .close {
|
@@ -92,7 +92,7 @@
|
|
92
92
|
.navbar-collapse {
|
93
93
|
max-height: @navbar-collapse-max-height;
|
94
94
|
|
95
|
-
@media (max-width: @screen-xs-min) and (orientation: landscape) {
|
95
|
+
@media (max-device-width: @screen-xs-min) and (orientation: landscape) {
|
96
96
|
max-height: 200px;
|
97
97
|
}
|
98
98
|
}
|
@@ -141,7 +141,6 @@
|
|
141
141
|
.right(0);
|
142
142
|
.left(0);
|
143
143
|
z-index: @zindex-navbar-fixed;
|
144
|
-
.translate3d(0, 0, 0);
|
145
144
|
|
146
145
|
// Undo the rounded corners
|
147
146
|
@media (min-width: @grid-float-breakpoint) {
|
@@ -173,6 +172,10 @@
|
|
173
172
|
text-decoration: none;
|
174
173
|
}
|
175
174
|
|
175
|
+
> img {
|
176
|
+
display: block;
|
177
|
+
}
|
178
|
+
|
176
179
|
@media (min-width: @grid-float-breakpoint) {
|
177
180
|
.navbar > .container &,
|
178
181
|
.navbar > .container-fluid & {
|
@@ -271,26 +274,10 @@
|
|
271
274
|
padding-bottom: @navbar-padding-vertical;
|
272
275
|
}
|
273
276
|
}
|
274
|
-
|
275
|
-
&.navbar-right:last-child {
|
276
|
-
.margin-right(-@navbar-padding-horizontal);
|
277
|
-
}
|
278
277
|
}
|
279
278
|
}
|
280
279
|
|
281
280
|
|
282
|
-
// Component alignment
|
283
|
-
//
|
284
|
-
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
285
|
-
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
286
|
-
// though so that navbar contents properly stack and align in mobile.
|
287
|
-
|
288
|
-
@media (min-width: @grid-float-breakpoint) {
|
289
|
-
.navbar-left { .pull-left(); }
|
290
|
-
.navbar-right { .pull-right(); }
|
291
|
-
}
|
292
|
-
|
293
|
-
|
294
281
|
// Navbar form
|
295
282
|
//
|
296
283
|
// Extension of the `.form-inline` with some extra flavor for optimum display in
|
@@ -311,6 +298,10 @@
|
|
311
298
|
.form-group {
|
312
299
|
@media (max-width: @grid-float-breakpoint-max) {
|
313
300
|
margin-bottom: 5px;
|
301
|
+
|
302
|
+
&:last-child {
|
303
|
+
margin-bottom: 0;
|
304
|
+
}
|
314
305
|
}
|
315
306
|
}
|
316
307
|
|
@@ -326,11 +317,6 @@
|
|
326
317
|
padding-top: 0;
|
327
318
|
padding-bottom: 0;
|
328
319
|
.box-shadow(none);
|
329
|
-
|
330
|
-
// Outdent the form if last child to line up with content down the page
|
331
|
-
&.navbar-right:last-child {
|
332
|
-
.margin-right(-@navbar-padding-horizontal);
|
333
|
-
}
|
334
320
|
}
|
335
321
|
}
|
336
322
|
|
@@ -344,6 +330,8 @@
|
|
344
330
|
}
|
345
331
|
// Menu position and menu caret support for dropups via extra dropup class
|
346
332
|
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
333
|
+
margin-bottom: 0;
|
334
|
+
.border-top-radius(@navbar-border-radius);
|
347
335
|
.border-bottom-radius(0);
|
348
336
|
}
|
349
337
|
|
@@ -375,14 +363,31 @@
|
|
375
363
|
.float(left);
|
376
364
|
.margin-left(@navbar-padding-horizontal);
|
377
365
|
.margin-right(@navbar-padding-horizontal);
|
366
|
+
}
|
367
|
+
}
|
368
|
+
|
378
369
|
|
379
|
-
|
380
|
-
|
370
|
+
// Component alignment
|
371
|
+
//
|
372
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
373
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
374
|
+
// though so that navbar contents properly stack and align in mobile.
|
375
|
+
//
|
376
|
+
// Declared after the navbar components to ensure more specificity on the margins.
|
377
|
+
|
378
|
+
@media (min-width: @grid-float-breakpoint) {
|
379
|
+
.navbar-left { .pull-left(); }
|
380
|
+
.navbar-right {
|
381
|
+
.pull-right();
|
382
|
+
.margin-right(-@navbar-padding-horizontal);
|
383
|
+
|
384
|
+
~ .navbar-right {
|
381
385
|
.margin-right(0);
|
382
386
|
}
|
383
387
|
}
|
384
388
|
}
|
385
389
|
|
390
|
+
|
386
391
|
// Alternate navbars
|
387
392
|
// --------------------------------------------------
|
388
393
|
|
@@ -1,9 +1,9 @@
|
|
1
|
-
/*! normalize.css v3.0.
|
1
|
+
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
|
2
2
|
|
3
3
|
//
|
4
4
|
// 1. Set default font family to sans-serif.
|
5
|
-
// 2. Prevent iOS text size adjust after orientation change,
|
6
|
-
// user zoom.
|
5
|
+
// 2. Prevent iOS and IE text size adjust after device orientation change,
|
6
|
+
// without disabling user zoom.
|
7
7
|
//
|
8
8
|
|
9
9
|
html {
|
@@ -25,7 +25,8 @@ body {
|
|
25
25
|
|
26
26
|
//
|
27
27
|
// Correct `block` display not defined for any HTML5 element in IE 8/9.
|
28
|
-
// Correct `block` display not defined for `details` or `summary` in IE 10/11
|
28
|
+
// Correct `block` display not defined for `details` or `summary` in IE 10/11
|
29
|
+
// and Firefox.
|
29
30
|
// Correct `block` display not defined for `main` in IE 11.
|
30
31
|
//
|
31
32
|
|
@@ -38,6 +39,7 @@ footer,
|
|
38
39
|
header,
|
39
40
|
hgroup,
|
40
41
|
main,
|
42
|
+
menu,
|
41
43
|
nav,
|
42
44
|
section,
|
43
45
|
summary {
|
@@ -69,7 +71,7 @@ audio:not([controls]) {
|
|
69
71
|
|
70
72
|
//
|
71
73
|
// Address `[hidden]` styling not present in IE 8/9/10.
|
72
|
-
// Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
|
74
|
+
// Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
|
73
75
|
//
|
74
76
|
|
75
77
|
[hidden],
|
@@ -85,11 +87,12 @@ template {
|
|
85
87
|
//
|
86
88
|
|
87
89
|
a {
|
88
|
-
background: transparent;
|
90
|
+
background-color: transparent;
|
89
91
|
}
|
90
92
|
|
91
93
|
//
|
92
|
-
// Improve readability
|
94
|
+
// Improve readability of focused elements when they are also in an
|
95
|
+
// active/hover state.
|
93
96
|
//
|
94
97
|
|
95
98
|
a:active,
|
@@ -207,7 +210,6 @@ figure {
|
|
207
210
|
//
|
208
211
|
|
209
212
|
hr {
|
210
|
-
-moz-box-sizing: content-box;
|
211
213
|
box-sizing: content-box;
|
212
214
|
height: 0;
|
213
215
|
}
|
@@ -348,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button {
|
|
348
350
|
|
349
351
|
//
|
350
352
|
// 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
351
|
-
// 2. Address `box-sizing` set to `border-box` in Safari and Chrome
|
352
|
-
// (include `-moz` to future-proof).
|
353
|
+
// 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
|
353
354
|
//
|
354
355
|
|
355
356
|
input[type="search"] {
|
356
357
|
-webkit-appearance: textfield; // 1
|
357
|
-
|
358
|
-
-webkit-box-sizing: content-box; // 2
|
359
|
-
box-sizing: content-box;
|
358
|
+
box-sizing: content-box; //2
|
360
359
|
}
|
361
360
|
|
362
361
|
//
|
@@ -40,6 +40,7 @@
|
|
40
40
|
> li > span {
|
41
41
|
&:hover,
|
42
42
|
&:focus {
|
43
|
+
z-index: 2;
|
43
44
|
color: @pagination-hover-color;
|
44
45
|
background-color: @pagination-hover-bg;
|
45
46
|
border-color: @pagination-hover-border;
|
@@ -51,7 +52,7 @@
|
|
51
52
|
&,
|
52
53
|
&:hover,
|
53
54
|
&:focus {
|
54
|
-
z-index:
|
55
|
+
z-index: 3;
|
55
56
|
color: @pagination-active-color;
|
56
57
|
background-color: @pagination-active-bg;
|
57
58
|
border-color: @pagination-active-border;
|
@@ -69,7 +70,7 @@
|
|
69
70
|
color: @pagination-disabled-color;
|
70
71
|
background-color: @pagination-disabled-bg;
|
71
72
|
border-color: @pagination-disabled-border;
|
72
|
-
cursor:
|
73
|
+
cursor: @cursor-disabled;
|
73
74
|
}
|
74
75
|
}
|
75
76
|
}
|
@@ -79,10 +80,10 @@
|
|
79
80
|
|
80
81
|
// Large
|
81
82
|
.pagination-lg {
|
82
|
-
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
|
83
|
+
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
83
84
|
}
|
84
85
|
|
85
86
|
// Small
|
86
87
|
.pagination-sm {
|
87
|
-
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
|
88
|
+
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
88
89
|
}
|
@@ -36,7 +36,11 @@
|
|
36
36
|
font-size: ceil((@font-size-base * 1.125));
|
37
37
|
color: inherit;
|
38
38
|
|
39
|
-
> a
|
39
|
+
> a,
|
40
|
+
> small,
|
41
|
+
> .small,
|
42
|
+
> small > a,
|
43
|
+
> .small > a {
|
40
44
|
color: inherit;
|
41
45
|
}
|
42
46
|
}
|
@@ -56,7 +60,8 @@
|
|
56
60
|
// any kind of custom content between the two.
|
57
61
|
|
58
62
|
.panel {
|
59
|
-
> .list-group
|
63
|
+
> .list-group,
|
64
|
+
> .panel-collapse > .list-group {
|
60
65
|
margin-bottom: 0;
|
61
66
|
|
62
67
|
.list-group-item {
|
@@ -71,6 +76,7 @@
|
|
71
76
|
.border-top-radius((@panel-border-radius - 1));
|
72
77
|
}
|
73
78
|
}
|
79
|
+
|
74
80
|
// Add border bottom radius for last one
|
75
81
|
&:last-child {
|
76
82
|
.list-group-item:last-child {
|
@@ -79,6 +85,11 @@
|
|
79
85
|
}
|
80
86
|
}
|
81
87
|
}
|
88
|
+
> .panel-heading + .panel-collapse > .list-group {
|
89
|
+
.list-group-item:first-child {
|
90
|
+
.border-top-radius(0);
|
91
|
+
}
|
92
|
+
}
|
82
93
|
}
|
83
94
|
// Collapse space between when there's no additional content.
|
84
95
|
.panel-heading + .list-group {
|
@@ -100,6 +111,11 @@
|
|
100
111
|
> .table-responsive > .table,
|
101
112
|
> .panel-collapse > .table {
|
102
113
|
margin-bottom: 0;
|
114
|
+
|
115
|
+
caption {
|
116
|
+
.padding-left(@panel-body-padding);
|
117
|
+
.padding-right( @panel-body-padding);
|
118
|
+
}
|
103
119
|
}
|
104
120
|
// Add border top radius for first one
|
105
121
|
> .table:first-child,
|
@@ -109,13 +125,16 @@
|
|
109
125
|
> thead:first-child,
|
110
126
|
> tbody:first-child {
|
111
127
|
> tr:first-child {
|
128
|
+
.border-top-left-radius(@panel-border-radius - 1);
|
129
|
+
.border-top-right-radius(@panel-border-radius - 1);
|
130
|
+
|
112
131
|
td:first-child,
|
113
132
|
th:first-child {
|
114
|
-
.border-top-left-radius(
|
133
|
+
.border-top-left-radius(@panel-border-radius - 1);
|
115
134
|
}
|
116
135
|
td:last-child,
|
117
136
|
th:last-child {
|
118
|
-
.border-top-right-radius(
|
137
|
+
.border-top-right-radius(@panel-border-radius - 1);
|
119
138
|
}
|
120
139
|
}
|
121
140
|
}
|
@@ -128,19 +147,24 @@
|
|
128
147
|
> tbody:last-child,
|
129
148
|
> tfoot:last-child {
|
130
149
|
> tr:last-child {
|
150
|
+
.border-bottom-left-radius(@panel-border-radius - 1);
|
151
|
+
.border-bottom-right-radius(@panel-border-radius - 1);
|
152
|
+
|
131
153
|
td:first-child,
|
132
154
|
th:first-child {
|
133
|
-
border-bottom-left-radius
|
155
|
+
.border-bottom-left-radius(@panel-border-radius - 1);
|
134
156
|
}
|
135
157
|
td:last-child,
|
136
158
|
th:last-child {
|
137
|
-
border-bottom-right-radius
|
159
|
+
.border-bottom-right-radius(@panel-border-radius - 1);
|
138
160
|
}
|
139
161
|
}
|
140
162
|
}
|
141
163
|
}
|
142
164
|
> .panel-body + .table,
|
143
|
-
> .panel-body + .table-responsive
|
165
|
+
> .panel-body + .table-responsive,
|
166
|
+
> .table + .panel-body,
|
167
|
+
> .table-responsive + .panel-body {
|
144
168
|
border-top: 1px solid @table-border-color;
|
145
169
|
}
|
146
170
|
> .table > tbody:first-child > tr:first-child th,
|
@@ -202,6 +226,7 @@
|
|
202
226
|
.panel {
|
203
227
|
margin-bottom: 0;
|
204
228
|
border-radius: @panel-border-radius;
|
229
|
+
|
205
230
|
+ .panel {
|
206
231
|
margin-top: 5px;
|
207
232
|
}
|
@@ -209,10 +234,13 @@
|
|
209
234
|
|
210
235
|
.panel-heading {
|
211
236
|
border-bottom: 0;
|
212
|
-
|
237
|
+
|
238
|
+
+ .panel-collapse > .panel-body,
|
239
|
+
+ .panel-collapse > .list-group {
|
213
240
|
border-top: 1px solid @panel-inner-border;
|
214
241
|
}
|
215
242
|
}
|
243
|
+
|
216
244
|
.panel-footer {
|
217
245
|
border-top: 0;
|
218
246
|
+ .panel-collapse .panel-body {
|
@@ -11,7 +11,11 @@
|
|
11
11
|
display: none;
|
12
12
|
max-width: @popover-max-width;
|
13
13
|
padding: 1px;
|
14
|
-
|
14
|
+
// Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.
|
15
|
+
// So reset our font and text properties to avoid inheriting weird values.
|
16
|
+
.reset-text();
|
17
|
+
font-size: @font-size-base;
|
18
|
+
|
15
19
|
background-color: @popover-bg;
|
16
20
|
background-clip: padding-box;
|
17
21
|
border: 1px solid @popover-fallback-border-color;
|
@@ -19,9 +23,6 @@
|
|
19
23
|
border-radius: @border-radius-large;
|
20
24
|
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
21
25
|
|
22
|
-
// Overrides for proper insertion
|
23
|
-
white-space: normal;
|
24
|
-
|
25
26
|
// Offset the popover to account for the popover arrow
|
26
27
|
&.top { margin-top: -@popover-arrow-width; }
|
27
28
|
&.right { margin-left: @popover-arrow-width; }
|
@@ -33,8 +34,6 @@
|
|
33
34
|
margin: 0; // reset heading margin
|
34
35
|
padding: 8px 14px;
|
35
36
|
font-size: @font-size-base;
|
36
|
-
font-weight: normal;
|
37
|
-
line-height: 18px;
|
38
37
|
background-color: @popover-title-bg;
|
39
38
|
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
40
39
|
border-radius: (@border-radius-large - 1) (@border-radius-large - 1) 0 0;
|
@@ -68,7 +67,7 @@
|
|
68
67
|
}
|
69
68
|
|
70
69
|
.popover {
|
71
|
-
&.top .arrow {
|
70
|
+
&.top > .arrow {
|
72
71
|
.left(50%);
|
73
72
|
.margin-left(-@popover-arrow-outer-width);
|
74
73
|
border-bottom-width: 0;
|
@@ -98,7 +97,7 @@
|
|
98
97
|
border-right-color: @popover-arrow-color;
|
99
98
|
}
|
100
99
|
}
|
101
|
-
&.bottom .arrow {
|
100
|
+
&.bottom > .arrow {
|
102
101
|
.left(50%);
|
103
102
|
.margin-left(-@popover-arrow-outer-width);
|
104
103
|
border-top-width: 0;
|
@@ -129,5 +128,4 @@
|
|
129
128
|
bottom: -@popover-arrow-width;
|
130
129
|
}
|
131
130
|
}
|
132
|
-
|
133
131
|
}
|