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
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
.jumbotron {
|
7
|
-
padding:
|
7
|
+
padding-top: @jumbotron-padding;
|
8
|
+
padding-bottom: @jumbotron-padding;
|
8
9
|
margin-bottom: @jumbotron-padding;
|
9
10
|
color: @jumbotron-color;
|
10
11
|
background-color: @jumbotron-bg;
|
@@ -13,6 +14,7 @@
|
|
13
14
|
.h1 {
|
14
15
|
color: @jumbotron-heading-color;
|
15
16
|
}
|
17
|
+
|
16
18
|
p {
|
17
19
|
margin-bottom: (@jumbotron-padding / 2);
|
18
20
|
font-size: @jumbotron-font-size;
|
@@ -23,8 +25,11 @@
|
|
23
25
|
border-top-color: darken(@jumbotron-bg, 10%);
|
24
26
|
}
|
25
27
|
|
26
|
-
.container
|
28
|
+
.container &,
|
29
|
+
.container-fluid & {
|
27
30
|
border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container
|
31
|
+
.padding-left ((@grid-gutter-width / 2));
|
32
|
+
.padding-right((@grid-gutter-width / 2));
|
28
33
|
}
|
29
34
|
|
30
35
|
.container {
|
@@ -35,14 +40,15 @@
|
|
35
40
|
padding-top: (@jumbotron-padding * 1.6);
|
36
41
|
padding-bottom: (@jumbotron-padding * 1.6);
|
37
42
|
|
38
|
-
.container
|
43
|
+
.container &,
|
44
|
+
.container-fluid & {
|
39
45
|
.padding-left((@jumbotron-padding * 2));
|
40
46
|
.padding-right((@jumbotron-padding * 2));
|
41
47
|
}
|
42
48
|
|
43
49
|
h1,
|
44
50
|
.h1 {
|
45
|
-
font-size:
|
51
|
+
font-size: @jumbotron-heading-font-size;
|
46
52
|
}
|
47
53
|
}
|
48
54
|
}
|
@@ -35,23 +35,16 @@
|
|
35
35
|
margin-bottom: 0;
|
36
36
|
.border-bottom-radius(@list-group-border-radius);
|
37
37
|
}
|
38
|
-
|
39
|
-
// Align badges within list items
|
40
|
-
> .badge {
|
41
|
-
.float(right);
|
42
|
-
}
|
43
|
-
> .badge + .badge {
|
44
|
-
.margin-right(5px);
|
45
|
-
}
|
46
38
|
}
|
47
39
|
|
48
40
|
|
49
|
-
//
|
41
|
+
// Interactive list items
|
50
42
|
//
|
51
|
-
// Use anchor elements instead of `li`s or `div`s to create
|
43
|
+
// Use anchor or button elements instead of `li`s or `div`s to create interactive items.
|
52
44
|
// Includes an extra `.active` modifier class for showing selected items.
|
53
45
|
|
54
|
-
a.list-group-item
|
46
|
+
a.list-group-item,
|
47
|
+
button.list-group-item {
|
55
48
|
color: @list-group-link-color;
|
56
49
|
|
57
50
|
.list-group-item-heading {
|
@@ -67,6 +60,11 @@ a.list-group-item {
|
|
67
60
|
}
|
68
61
|
}
|
69
62
|
|
63
|
+
button.list-group-item {
|
64
|
+
width: 100%;
|
65
|
+
.text-align(left);
|
66
|
+
}
|
67
|
+
|
70
68
|
.list-group-item {
|
71
69
|
// Disabled state
|
72
70
|
&.disabled,
|
@@ -74,6 +72,7 @@ a.list-group-item {
|
|
74
72
|
&.disabled:focus {
|
75
73
|
background-color: @list-group-disabled-bg;
|
76
74
|
color: @list-group-disabled-color;
|
75
|
+
cursor: @cursor-disabled;
|
77
76
|
|
78
77
|
// Force color to inherit for custom content
|
79
78
|
.list-group-item-heading {
|
@@ -1,54 +1,64 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
|
4
|
-
|
1
|
+
.media {
|
2
|
+
// Proper spacing between instances of .media
|
3
|
+
margin-top: 15px;
|
5
4
|
|
6
|
-
|
7
|
-
|
5
|
+
&:first-child {
|
6
|
+
margin-top: 0;
|
7
|
+
}
|
8
|
+
}
|
8
9
|
|
9
|
-
// Clear the floats
|
10
10
|
.media,
|
11
11
|
.media-body {
|
12
|
-
overflow: hidden;
|
13
12
|
zoom: 1;
|
13
|
+
overflow: hidden;
|
14
14
|
}
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
.media .media {
|
19
|
-
margin-top: 15px;
|
20
|
-
}
|
21
|
-
.media:first-child {
|
22
|
-
margin-top: 0;
|
16
|
+
.media-body {
|
17
|
+
width: 10000px;
|
23
18
|
}
|
24
19
|
|
25
|
-
// For images and videos, set to block
|
26
20
|
.media-object {
|
27
21
|
display: block;
|
22
|
+
|
23
|
+
// Fix collapse in webkit from max-width: 100% and display: table-cell.
|
24
|
+
&.img-thumbnail {
|
25
|
+
max-width: none;
|
26
|
+
}
|
28
27
|
}
|
29
28
|
|
30
|
-
|
31
|
-
.media-
|
32
|
-
|
29
|
+
.media-right,
|
30
|
+
.media > .pull-right {
|
31
|
+
.padding-left(10px);
|
33
32
|
}
|
34
33
|
|
34
|
+
.media-left,
|
35
|
+
.media > .pull-left {
|
36
|
+
.padding-right(10px);
|
37
|
+
}
|
35
38
|
|
36
|
-
|
37
|
-
|
39
|
+
.media-left,
|
40
|
+
.media-right,
|
41
|
+
.media-body {
|
42
|
+
display: table-cell;
|
43
|
+
vertical-align: top;
|
44
|
+
}
|
38
45
|
|
39
|
-
.media {
|
40
|
-
|
41
|
-
.margin-right(10px);
|
42
|
-
}
|
43
|
-
> .pull-right {
|
44
|
-
.margin-left(10px);
|
45
|
-
}
|
46
|
+
.media-middle {
|
47
|
+
vertical-align: middle;
|
46
48
|
}
|
47
49
|
|
50
|
+
.media-bottom {
|
51
|
+
vertical-align: bottom;
|
52
|
+
}
|
48
53
|
|
49
|
-
//
|
50
|
-
|
54
|
+
// Reset margins on headings for tighter default spacing
|
55
|
+
.media-heading {
|
56
|
+
margin-top: 0;
|
57
|
+
margin-bottom: 5px;
|
58
|
+
}
|
51
59
|
|
60
|
+
// Media list variation
|
61
|
+
//
|
52
62
|
// Undo default ul/ol styles
|
53
63
|
.media-list {
|
54
64
|
.padding-left(0);
|
@@ -11,6 +11,7 @@
|
|
11
11
|
@import "mixins/responsive-visibility.less";
|
12
12
|
@import "mixins/size.less";
|
13
13
|
@import "mixins/tab-focus.less";
|
14
|
+
@import "mixins/reset-text.less";
|
14
15
|
@import "mixins/text-emphasis.less";
|
15
16
|
@import "mixins/text-overflow.less";
|
16
17
|
@import "mixins/vendor-prefixes.less";
|
@@ -4,7 +4,15 @@
|
|
4
4
|
border-top-right-radius: @radius;
|
5
5
|
border-top-left-radius: @radius;
|
6
6
|
}
|
7
|
+
.border-right-radius(@radius) {
|
8
|
+
border-bottom-right-radius: @radius;
|
9
|
+
border-top-right-radius: @radius;
|
10
|
+
}
|
7
11
|
.border-bottom-radius(@radius) {
|
8
12
|
border-bottom-right-radius: @radius;
|
9
13
|
border-bottom-left-radius: @radius;
|
10
|
-
}
|
14
|
+
}
|
15
|
+
.border-left-radius(@radius) {
|
16
|
+
border-bottom-left-radius: @radius;
|
17
|
+
border-top-left-radius: @radius;
|
18
|
+
}
|
@@ -8,14 +8,31 @@
|
|
8
8
|
background-color: @background;
|
9
9
|
border-color: @border;
|
10
10
|
|
11
|
-
&:hover,
|
12
11
|
&:focus,
|
12
|
+
&.focus {
|
13
|
+
color: @color;
|
14
|
+
background-color: darken(@background, 10%);
|
15
|
+
border-color: darken(@border, 25%);
|
16
|
+
}
|
17
|
+
&:hover {
|
18
|
+
color: @color;
|
19
|
+
background-color: darken(@background, 10%);
|
20
|
+
border-color: darken(@border, 12%);
|
21
|
+
}
|
13
22
|
&:active,
|
14
23
|
&.active,
|
15
24
|
.open > .dropdown-toggle& {
|
16
25
|
color: @color;
|
17
26
|
background-color: darken(@background, 10%);
|
18
27
|
border-color: darken(@border, 12%);
|
28
|
+
|
29
|
+
&:hover,
|
30
|
+
&:focus,
|
31
|
+
&.focus {
|
32
|
+
color: @color;
|
33
|
+
background-color: darken(@background, 17%);
|
34
|
+
border-color: darken(@border, 25%);
|
35
|
+
}
|
19
36
|
}
|
20
37
|
&:active,
|
21
38
|
&.active,
|
@@ -25,11 +42,9 @@
|
|
25
42
|
&.disabled,
|
26
43
|
&[disabled],
|
27
44
|
fieldset[disabled] & {
|
28
|
-
&,
|
29
45
|
&:hover,
|
30
46
|
&:focus,
|
31
|
-
|
32
|
-
&.active {
|
47
|
+
&.focus {
|
33
48
|
background-color: @background;
|
34
49
|
border-color: @border;
|
35
50
|
}
|
@@ -10,7 +10,11 @@
|
|
10
10
|
.radio,
|
11
11
|
.checkbox,
|
12
12
|
.radio-inline,
|
13
|
-
.checkbox-inline
|
13
|
+
.checkbox-inline,
|
14
|
+
&.radio label,
|
15
|
+
&.checkbox label,
|
16
|
+
&.radio-inline label,
|
17
|
+
&.checkbox-inline label {
|
14
18
|
color: @text-color;
|
15
19
|
}
|
16
20
|
// Set the border and box shadow on specific inputs to match
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
.make-grid-columns() {
|
7
7
|
// Common styles for all sizes of grid columns, widths 1-12
|
8
|
-
.col(@index)
|
8
|
+
.col(@index) { // initial
|
9
9
|
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
10
10
|
.col((@index + 1), @item);
|
11
11
|
}
|
@@ -27,7 +27,7 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
.float-grid-columns(@class) {
|
30
|
-
.col(@index)
|
30
|
+
.col(@index) { // initial
|
31
31
|
@item: ~".col-@{class}-@{index}";
|
32
32
|
.col((@index + 1), @item);
|
33
33
|
}
|
@@ -60,7 +60,7 @@
|
|
60
60
|
}
|
61
61
|
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
|
62
62
|
.col-@{class}-pull-@{index} {
|
63
|
-
right
|
63
|
+
.right(percentage((@index / @grid-columns)));
|
64
64
|
}
|
65
65
|
}
|
66
66
|
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
|
@@ -6,15 +6,15 @@
|
|
6
6
|
.container-fixed(@gutter: @grid-gutter-width) {
|
7
7
|
.margin-right(auto);
|
8
8
|
.margin-left(auto);
|
9
|
-
.padding-left((@gutter / 2));
|
10
|
-
.padding-right((@gutter / 2));
|
9
|
+
.padding-left(floor((@gutter / 2)));
|
10
|
+
.padding-right(ceil((@gutter / 2)));
|
11
11
|
&:extend(.clearfix all);
|
12
12
|
}
|
13
13
|
|
14
14
|
// Creates a wrapper for a series of columns
|
15
15
|
.make-row(@gutter: @grid-gutter-width) {
|
16
|
-
.margin-left((@gutter / -2));
|
17
|
-
.margin-right((@gutter / -2));
|
16
|
+
.margin-left(ceil((@gutter / -2)));
|
17
|
+
.margin-right(floor((@gutter / -2)));
|
18
18
|
&:extend(.clearfix all);
|
19
19
|
}
|
20
20
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
// CSS image replacement
|
2
2
|
//
|
3
|
-
// Heads up! v3 launched with
|
3
|
+
// Heads up! v3 launched with only `.hide-text()`, but per our pattern for
|
4
4
|
// mixins being reused as classes with the same name, this doesn't hold up. As
|
5
5
|
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
|
6
6
|
//
|
7
7
|
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
8
8
|
|
9
|
-
// Deprecated as of v3.0.1 (
|
9
|
+
// Deprecated as of v3.0.1 (has been removed in v4)
|
10
10
|
.hide-text() {
|
11
11
|
font: ~"0/0" a;
|
12
12
|
color: transparent;
|
@@ -8,7 +8,6 @@
|
|
8
8
|
// Keep images from scaling beyond the width of their parents.
|
9
9
|
.img-responsive(@display: block) {
|
10
10
|
display: @display;
|
11
|
-
width: 100% \9; // Force IE10 and below to size SVG images correctly
|
12
11
|
max-width: 100%; // Part 1: Set a maximum relative to the parent
|
13
12
|
height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching
|
14
13
|
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
// Pagination
|
2
2
|
|
3
|
-
.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @border-radius) {
|
3
|
+
.pagination-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
4
4
|
> li {
|
5
5
|
> a,
|
6
6
|
> span {
|
7
7
|
padding: @padding-vertical @padding-horizontal;
|
8
8
|
font-size: @font-size;
|
9
|
+
line-height: @line-height;
|
9
10
|
}
|
10
11
|
&:first-child {
|
11
12
|
> a,
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.reset-text() {
|
2
|
+
font-family: @font-family-base;
|
3
|
+
// We deliberately do NOT reset font-size.
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: normal;
|
6
|
+
letter-spacing: normal;
|
7
|
+
line-break: auto;
|
8
|
+
line-height: @line-height-base;
|
9
|
+
.text-align(left); // Fallback for where `start` is not supported
|
10
|
+
text-align: start;
|
11
|
+
text-decoration: none;
|
12
|
+
text-shadow: none;
|
13
|
+
text-transform: none;
|
14
|
+
white-space: normal;
|
15
|
+
word-break: normal;
|
16
|
+
word-spacing: normal;
|
17
|
+
word-wrap: normal;
|
18
|
+
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
// More easily include all the states for responsive-utilities.less.
|
5
5
|
.responsive-visibility() {
|
6
6
|
display: block !important;
|
7
|
-
table& { display: table; }
|
7
|
+
table& { display: table !important; }
|
8
8
|
tr& { display: table-row !important; }
|
9
9
|
th&,
|
10
10
|
td& { display: table-cell !important; }
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Vendor Prefixes
|
2
2
|
//
|
3
3
|
// All vendor mixins are deprecated as of v3.2.0 due to the introduction of
|
4
|
-
// Autoprefixer in our Gruntfile. They
|
4
|
+
// Autoprefixer in our Gruntfile. They have been removed in v4.
|
5
5
|
|
6
6
|
// - Animations
|
7
7
|
// - Backface visibility
|
@@ -54,7 +54,7 @@
|
|
54
54
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
55
55
|
// Default value is `visible`, but can be changed to `hidden`
|
56
56
|
|
57
|
-
.backface-visibility(@visibility){
|
57
|
+
.backface-visibility(@visibility) {
|
58
58
|
-webkit-backface-visibility: @visibility;
|
59
59
|
-moz-backface-visibility: @visibility;
|
60
60
|
backface-visibility: @visibility;
|
@@ -99,9 +99,12 @@
|
|
99
99
|
|
100
100
|
// Placeholder text
|
101
101
|
.placeholder(@color: @input-color-placeholder) {
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
// Firefox
|
103
|
+
&::-moz-placeholder {
|
104
|
+
color: @color;
|
105
|
+
opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526
|
106
|
+
}
|
107
|
+
&:-ms-input-placeholder { color: @color; } // Internet Explorer 10+
|
105
108
|
&::-webkit-input-placeholder { color: @color; } // Safari and Chrome
|
106
109
|
}
|
107
110
|
|