bootstrap_farsi 3.2.0.1
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 +7 -0
- data/.gitignore +14 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +100 -0
- data/Rakefile +2 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap.js +6 -0
- data/app/assets/javascripts/twitter/bootstrap/.DS_Store +0 -0
- data/app/assets/javascripts/twitter/bootstrap/affix.js +142 -0
- data/app/assets/javascripts/twitter/bootstrap/alert.js +92 -0
- data/app/assets/javascripts/twitter/bootstrap/button.js +110 -0
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +223 -0
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +151 -0
- data/app/assets/javascripts/twitter/bootstrap/modal.js +280 -0
- data/app/assets/javascripts/twitter/bootstrap/popover.js +113 -0
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +170 -0
- data/app/assets/javascripts/twitter/bootstrap/tab.js +128 -0
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +457 -0
- data/app/assets/javascripts/twitter/bootstrap/transition.js +59 -0
- data/app/frameworks/twitter/bootstrap/alerts.less +68 -0
- data/app/frameworks/twitter/bootstrap/badges.less +55 -0
- data/app/frameworks/twitter/bootstrap/bi-app/bi-app-ltr.less +12 -0
- data/app/frameworks/twitter/bootstrap/bi-app/bi-app-rtl.less +16 -0
- data/app/frameworks/twitter/bootstrap/bi-app/mixins.less +326 -0
- data/app/frameworks/twitter/bootstrap/bi-app/variables-ltr.less +16 -0
- data/app/frameworks/twitter/bootstrap/bi-app/variables-rtl.less +16 -0
- data/app/frameworks/twitter/bootstrap/bootstrap.less +53 -0
- data/app/frameworks/twitter/bootstrap/breadcrumbs.less +26 -0
- data/app/frameworks/twitter/bootstrap/button-groups.less +240 -0
- data/app/frameworks/twitter/bootstrap/buttons.less +157 -0
- data/app/frameworks/twitter/bootstrap/carousel.less +241 -0
- data/app/frameworks/twitter/bootstrap/close.less +33 -0
- data/app/frameworks/twitter/bootstrap/code.less +69 -0
- data/app/frameworks/twitter/bootstrap/component-animations.less +31 -0
- data/app/frameworks/twitter/bootstrap/dropdowns.less +215 -0
- data/app/frameworks/twitter/bootstrap/forms.less +540 -0
- data/app/frameworks/twitter/bootstrap/glyphicons.less +233 -0
- data/app/frameworks/twitter/bootstrap/grid.less +84 -0
- data/app/frameworks/twitter/bootstrap/input-groups.less +166 -0
- data/app/frameworks/twitter/bootstrap/jumbotron.less +48 -0
- data/app/frameworks/twitter/bootstrap/labels.less +64 -0
- data/app/frameworks/twitter/bootstrap/list-group.less +131 -0
- data/app/frameworks/twitter/bootstrap/media.less +56 -0
- data/app/frameworks/twitter/bootstrap/mixins.less +39 -0
- data/app/frameworks/twitter/bootstrap/mixins/alerts.less +14 -0
- data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/border-radius.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/buttons.less +50 -0
- data/app/frameworks/twitter/bootstrap/mixins/center-block.less +7 -0
- data/app/frameworks/twitter/bootstrap/mixins/clearfix.less +22 -0
- data/app/frameworks/twitter/bootstrap/mixins/forms.less +81 -0
- data/app/frameworks/twitter/bootstrap/mixins/gradients.less +59 -0
- data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +91 -0
- data/app/frameworks/twitter/bootstrap/mixins/grid.less +122 -0
- data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +21 -0
- data/app/frameworks/twitter/bootstrap/mixins/image.less +34 -0
- data/app/frameworks/twitter/bootstrap/mixins/labels.less +12 -0
- data/app/frameworks/twitter/bootstrap/mixins/list-group.less +29 -0
- data/app/frameworks/twitter/bootstrap/mixins/nav-divider.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/nav-vertical-align.less +9 -0
- data/app/frameworks/twitter/bootstrap/mixins/opacity.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/pagination.less +23 -0
- data/app/frameworks/twitter/bootstrap/mixins/panels.less +24 -0
- data/app/frameworks/twitter/bootstrap/mixins/progress-bar.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/reset-filter.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/resize.less +6 -0
- data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +15 -0
- data/app/frameworks/twitter/bootstrap/mixins/size.less +10 -0
- data/app/frameworks/twitter/bootstrap/mixins/tab-focus.less +9 -0
- data/app/frameworks/twitter/bootstrap/mixins/table-row.less +28 -0
- data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/text-overflow.less +8 -0
- data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +224 -0
- data/app/frameworks/twitter/bootstrap/modals.less +150 -0
- data/app/frameworks/twitter/bootstrap/navbar.less +655 -0
- data/app/frameworks/twitter/bootstrap/navs.less +242 -0
- data/app/frameworks/twitter/bootstrap/normalize.less +425 -0
- data/app/frameworks/twitter/bootstrap/pager.less +55 -0
- data/app/frameworks/twitter/bootstrap/pagination.less +88 -0
- data/app/frameworks/twitter/bootstrap/panels.less +243 -0
- data/app/frameworks/twitter/bootstrap/popovers.less +133 -0
- data/app/frameworks/twitter/bootstrap/print.less +101 -0
- data/app/frameworks/twitter/bootstrap/progress-bars.less +105 -0
- data/app/frameworks/twitter/bootstrap/responsive-embed.less +34 -0
- data/app/frameworks/twitter/bootstrap/responsive-utilities.less +194 -0
- data/app/frameworks/twitter/bootstrap/scaffolding.less +150 -0
- data/app/frameworks/twitter/bootstrap/tables.less +233 -0
- data/app/frameworks/twitter/bootstrap/theme.less +258 -0
- data/app/frameworks/twitter/bootstrap/thumbnails.less +36 -0
- data/app/frameworks/twitter/bootstrap/tooltip.less +95 -0
- data/app/frameworks/twitter/bootstrap/type.less +313 -0
- data/app/frameworks/twitter/bootstrap/utilities.less +57 -0
- data/app/frameworks/twitter/bootstrap/variables.less +846 -0
- data/app/frameworks/twitter/bootstrap/wells.less +29 -0
- data/bootstrap_farsi.gemspec +27 -0
- data/lib/bootstrap_farsi.rb +7 -0
- data/lib/bootstrap_farsi/engine.rb +7 -0
- data/lib/bootstrap_farsi/version.rb +3 -0
- metadata +216 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Jumbotron
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.jumbotron {
|
|
7
|
+
padding: @jumbotron-padding;
|
|
8
|
+
margin-bottom: @jumbotron-padding;
|
|
9
|
+
color: @jumbotron-color;
|
|
10
|
+
background-color: @jumbotron-bg;
|
|
11
|
+
|
|
12
|
+
h1,
|
|
13
|
+
.h1 {
|
|
14
|
+
color: @jumbotron-heading-color;
|
|
15
|
+
}
|
|
16
|
+
p {
|
|
17
|
+
margin-bottom: (@jumbotron-padding / 2);
|
|
18
|
+
font-size: @jumbotron-font-size;
|
|
19
|
+
font-weight: 200;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> hr {
|
|
23
|
+
border-top-color: darken(@jumbotron-bg, 10%);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.container & {
|
|
27
|
+
border-radius: @border-radius-large; // Only round corners at higher resolutions if contained in a container
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.container {
|
|
31
|
+
max-width: 100%;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@media screen and (min-width: @screen-sm-min) {
|
|
35
|
+
padding-top: (@jumbotron-padding * 1.6);
|
|
36
|
+
padding-bottom: (@jumbotron-padding * 1.6);
|
|
37
|
+
|
|
38
|
+
.container & {
|
|
39
|
+
.padding-left((@jumbotron-padding * 2));
|
|
40
|
+
.padding-right((@jumbotron-padding * 2));
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
h1,
|
|
44
|
+
.h1 {
|
|
45
|
+
font-size: (@font-size-base * 4.5);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Labels
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
.label {
|
|
6
|
+
display: inline;
|
|
7
|
+
padding: .2em .6em .3em;
|
|
8
|
+
font-size: 75%;
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
color: @label-color;
|
|
12
|
+
text-align: center;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
vertical-align: baseline;
|
|
15
|
+
border-radius: .25em;
|
|
16
|
+
|
|
17
|
+
// Add hover effects, but only for links
|
|
18
|
+
a& {
|
|
19
|
+
&:hover,
|
|
20
|
+
&:focus {
|
|
21
|
+
color: @label-link-hover-color;
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Empty labels collapse automatically (not available in IE8)
|
|
28
|
+
&:empty {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Quick fix for labels in buttons
|
|
33
|
+
.btn & {
|
|
34
|
+
position: relative;
|
|
35
|
+
top: -1px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Colors
|
|
40
|
+
// Contextual variations (linked labels get darker on :hover)
|
|
41
|
+
|
|
42
|
+
.label-default {
|
|
43
|
+
.label-variant(@label-default-bg);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.label-primary {
|
|
47
|
+
.label-variant(@label-primary-bg);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.label-success {
|
|
51
|
+
.label-variant(@label-success-bg);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.label-info {
|
|
55
|
+
.label-variant(@label-info-bg);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.label-warning {
|
|
59
|
+
.label-variant(@label-warning-bg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.label-danger {
|
|
63
|
+
.label-variant(@label-danger-bg);
|
|
64
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
//
|
|
2
|
+
// List groups
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Base class
|
|
7
|
+
//
|
|
8
|
+
// Easily usable on <ul>, <ol>, or <div>.
|
|
9
|
+
|
|
10
|
+
.list-group {
|
|
11
|
+
// No need to set list-style: none; since .list-group-item is block level
|
|
12
|
+
margin-bottom: 20px;
|
|
13
|
+
.padding-left(0); // reset padding because ul and ol
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// Individual list items
|
|
18
|
+
//
|
|
19
|
+
// Use on `li`s or `div`s within the `.list-group` parent.
|
|
20
|
+
|
|
21
|
+
.list-group-item {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: block;
|
|
24
|
+
padding: 10px 15px;
|
|
25
|
+
// Place the border on the list items and negative margin up for better styling
|
|
26
|
+
margin-bottom: -1px;
|
|
27
|
+
background-color: @list-group-bg;
|
|
28
|
+
border: 1px solid @list-group-border;
|
|
29
|
+
|
|
30
|
+
// Round the first and last items
|
|
31
|
+
&:first-child {
|
|
32
|
+
.border-top-radius(@list-group-border-radius);
|
|
33
|
+
}
|
|
34
|
+
&:last-child {
|
|
35
|
+
margin-bottom: 0;
|
|
36
|
+
.border-bottom-radius(@list-group-border-radius);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Align badges within list items
|
|
40
|
+
> .badge {
|
|
41
|
+
.float(right);
|
|
42
|
+
}
|
|
43
|
+
> .badge + .badge {
|
|
44
|
+
.margin-right(5px);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// Linked list items
|
|
50
|
+
//
|
|
51
|
+
// Use anchor elements instead of `li`s or `div`s to create linked list items.
|
|
52
|
+
// Includes an extra `.active` modifier class for showing selected items.
|
|
53
|
+
|
|
54
|
+
a.list-group-item {
|
|
55
|
+
color: @list-group-link-color;
|
|
56
|
+
|
|
57
|
+
.list-group-item-heading {
|
|
58
|
+
color: @list-group-link-heading-color;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Hover state
|
|
62
|
+
&:hover,
|
|
63
|
+
&:focus {
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
color: @list-group-link-hover-color;
|
|
66
|
+
background-color: @list-group-hover-bg;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.list-group-item {
|
|
71
|
+
// Disabled state
|
|
72
|
+
&.disabled,
|
|
73
|
+
&.disabled:hover,
|
|
74
|
+
&.disabled:focus {
|
|
75
|
+
background-color: @list-group-disabled-bg;
|
|
76
|
+
color: @list-group-disabled-color;
|
|
77
|
+
|
|
78
|
+
// Force color to inherit for custom content
|
|
79
|
+
.list-group-item-heading {
|
|
80
|
+
color: inherit;
|
|
81
|
+
}
|
|
82
|
+
.list-group-item-text {
|
|
83
|
+
color: @list-group-disabled-text-color;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Active class on item itself, not parent
|
|
88
|
+
&.active,
|
|
89
|
+
&.active:hover,
|
|
90
|
+
&.active:focus {
|
|
91
|
+
z-index: 2; // Place active items above their siblings for proper border styling
|
|
92
|
+
color: @list-group-active-color;
|
|
93
|
+
background-color: @list-group-active-bg;
|
|
94
|
+
border-color: @list-group-active-border;
|
|
95
|
+
|
|
96
|
+
// Force color to inherit for custom content
|
|
97
|
+
.list-group-item-heading,
|
|
98
|
+
.list-group-item-heading > small,
|
|
99
|
+
.list-group-item-heading > .small {
|
|
100
|
+
color: inherit;
|
|
101
|
+
}
|
|
102
|
+
.list-group-item-text {
|
|
103
|
+
color: @list-group-active-text-color;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
// Contextual variants
|
|
110
|
+
//
|
|
111
|
+
// Add modifier classes to change text and background color on individual items.
|
|
112
|
+
// Organizationally, this must come after the `:hover` states.
|
|
113
|
+
|
|
114
|
+
.list-group-item-variant(success; @state-success-bg; @state-success-text);
|
|
115
|
+
.list-group-item-variant(info; @state-info-bg; @state-info-text);
|
|
116
|
+
.list-group-item-variant(warning; @state-warning-bg; @state-warning-text);
|
|
117
|
+
.list-group-item-variant(danger; @state-danger-bg; @state-danger-text);
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
// Custom content options
|
|
121
|
+
//
|
|
122
|
+
// Extra classes for creating well-formatted content within `.list-group-item`s.
|
|
123
|
+
|
|
124
|
+
.list-group-item-heading {
|
|
125
|
+
margin-top: 0;
|
|
126
|
+
margin-bottom: 5px;
|
|
127
|
+
}
|
|
128
|
+
.list-group-item-text {
|
|
129
|
+
margin-bottom: 0;
|
|
130
|
+
line-height: 1.3;
|
|
131
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// Media objects
|
|
2
|
+
// Source: http://stubbornella.org/content/?p=497
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Common styles
|
|
7
|
+
// -------------------------
|
|
8
|
+
|
|
9
|
+
// Clear the floats
|
|
10
|
+
.media,
|
|
11
|
+
.media-body {
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
zoom: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Proper spacing between instances of .media
|
|
17
|
+
.media,
|
|
18
|
+
.media .media {
|
|
19
|
+
margin-top: 15px;
|
|
20
|
+
}
|
|
21
|
+
.media:first-child {
|
|
22
|
+
margin-top: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// For images and videos, set to block
|
|
26
|
+
.media-object {
|
|
27
|
+
display: block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Reset margins on headings for tighter default spacing
|
|
31
|
+
.media-heading {
|
|
32
|
+
margin: 0 0 5px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// Media image alignment
|
|
37
|
+
// -------------------------
|
|
38
|
+
|
|
39
|
+
.media {
|
|
40
|
+
> .pull-left {
|
|
41
|
+
.margin-right(10px);
|
|
42
|
+
}
|
|
43
|
+
> .pull-right {
|
|
44
|
+
.margin-left(10px);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
// Media list variation
|
|
50
|
+
// -------------------------
|
|
51
|
+
|
|
52
|
+
// Undo default ul/ol styles
|
|
53
|
+
.media-list {
|
|
54
|
+
.padding-left(0);
|
|
55
|
+
list-style: none;
|
|
56
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Mixins
|
|
2
|
+
// --------------------------------------------------
|
|
3
|
+
|
|
4
|
+
// Utilities
|
|
5
|
+
@import "mixins/hide-text.less";
|
|
6
|
+
@import "mixins/opacity.less";
|
|
7
|
+
@import "mixins/image.less";
|
|
8
|
+
@import "mixins/labels.less";
|
|
9
|
+
@import "mixins/reset-filter.less";
|
|
10
|
+
@import "mixins/resize.less";
|
|
11
|
+
@import "mixins/responsive-visibility.less";
|
|
12
|
+
@import "mixins/size.less";
|
|
13
|
+
@import "mixins/tab-focus.less";
|
|
14
|
+
@import "mixins/text-emphasis.less";
|
|
15
|
+
@import "mixins/text-overflow.less";
|
|
16
|
+
@import "mixins/vendor-prefixes.less";
|
|
17
|
+
|
|
18
|
+
// Components
|
|
19
|
+
@import "mixins/alerts.less";
|
|
20
|
+
@import "mixins/buttons.less";
|
|
21
|
+
@import "mixins/panels.less";
|
|
22
|
+
@import "mixins/pagination.less";
|
|
23
|
+
@import "mixins/list-group.less";
|
|
24
|
+
@import "mixins/nav-divider.less";
|
|
25
|
+
@import "mixins/forms.less";
|
|
26
|
+
@import "mixins/progress-bar.less";
|
|
27
|
+
@import "mixins/table-row.less";
|
|
28
|
+
|
|
29
|
+
// Skins
|
|
30
|
+
@import "mixins/background-variant.less";
|
|
31
|
+
@import "mixins/border-radius.less";
|
|
32
|
+
@import "mixins/gradients.less";
|
|
33
|
+
|
|
34
|
+
// Layout
|
|
35
|
+
@import "mixins/clearfix.less";
|
|
36
|
+
@import "mixins/center-block.less";
|
|
37
|
+
@import "mixins/nav-vertical-align.less";
|
|
38
|
+
@import "mixins/grid-framework.less";
|
|
39
|
+
@import "mixins/grid.less";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Alerts
|
|
2
|
+
|
|
3
|
+
.alert-variant(@background; @border; @text-color) {
|
|
4
|
+
background-color: @background;
|
|
5
|
+
border-color: @border;
|
|
6
|
+
color: @text-color;
|
|
7
|
+
|
|
8
|
+
hr {
|
|
9
|
+
border-top-color: darken(@border, 5%);
|
|
10
|
+
}
|
|
11
|
+
.alert-link {
|
|
12
|
+
color: darken(@text-color, 10%);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Button variants
|
|
2
|
+
//
|
|
3
|
+
// Easily pump out default styles, as well as :hover, :focus, :active,
|
|
4
|
+
// and disabled options for all buttons
|
|
5
|
+
|
|
6
|
+
.button-variant(@color; @background; @border) {
|
|
7
|
+
color: @color;
|
|
8
|
+
background-color: @background;
|
|
9
|
+
border-color: @border;
|
|
10
|
+
|
|
11
|
+
&:hover,
|
|
12
|
+
&:focus,
|
|
13
|
+
&:active,
|
|
14
|
+
&.active,
|
|
15
|
+
.open > .dropdown-toggle& {
|
|
16
|
+
color: @color;
|
|
17
|
+
background-color: darken(@background, 10%);
|
|
18
|
+
border-color: darken(@border, 12%);
|
|
19
|
+
}
|
|
20
|
+
&:active,
|
|
21
|
+
&.active,
|
|
22
|
+
.open > .dropdown-toggle& {
|
|
23
|
+
background-image: none;
|
|
24
|
+
}
|
|
25
|
+
&.disabled,
|
|
26
|
+
&[disabled],
|
|
27
|
+
fieldset[disabled] & {
|
|
28
|
+
&,
|
|
29
|
+
&:hover,
|
|
30
|
+
&:focus,
|
|
31
|
+
&:active,
|
|
32
|
+
&.active {
|
|
33
|
+
background-color: @background;
|
|
34
|
+
border-color: @border;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.badge {
|
|
39
|
+
color: @background;
|
|
40
|
+
background-color: @color;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Button sizes
|
|
45
|
+
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
|
46
|
+
padding: @padding-vertical @padding-horizontal;
|
|
47
|
+
font-size: @font-size;
|
|
48
|
+
line-height: @line-height;
|
|
49
|
+
border-radius: @border-radius;
|
|
50
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Clearfix
|
|
2
|
+
//
|
|
3
|
+
// For modern browsers
|
|
4
|
+
// 1. The space content is one way to avoid an Opera bug when the
|
|
5
|
+
// contenteditable attribute is included anywhere else in the document.
|
|
6
|
+
// Otherwise it causes space to appear at the top and bottom of elements
|
|
7
|
+
// that are clearfixed.
|
|
8
|
+
// 2. The use of `table` rather than `block` is only necessary if using
|
|
9
|
+
// `:before` to contain the top-margins of child elements.
|
|
10
|
+
//
|
|
11
|
+
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
|
12
|
+
|
|
13
|
+
.clearfix() {
|
|
14
|
+
&:before,
|
|
15
|
+
&:after {
|
|
16
|
+
content: " "; // 1
|
|
17
|
+
display: table; // 2
|
|
18
|
+
}
|
|
19
|
+
&:after {
|
|
20
|
+
clear: both;
|
|
21
|
+
}
|
|
22
|
+
}
|