flatui3-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +102 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/Flat-UI-Icons.dev.svg +140 -0
- data/app/assets/fonts/Flat-UI-Icons.eot +0 -0
- data/app/assets/fonts/Flat-UI-Icons.svg +140 -0
- data/app/assets/fonts/Flat-UI-Icons.ttf +0 -0
- data/app/assets/fonts/Flat-UI-Icons.woff +0 -0
- data/app/assets/fonts/icomoon-session.json +1 -0
- data/app/assets/fonts/lato/lato-black-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-black-webfont.svg +4691 -0
- data/app/assets/fonts/lato/lato-black-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-black-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-bold-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-bold-webfont.svg +5085 -0
- data/app/assets/fonts/lato/lato-bold-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-bold-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.svg +4514 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-bolditalic-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-italic-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-italic-webfont.svg +4514 -0
- data/app/assets/fonts/lato/lato-italic-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-italic-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-light-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-light-webfont.svg +4691 -0
- data/app/assets/fonts/lato/lato-light-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-light-webfont.woff +0 -0
- data/app/assets/fonts/lato/lato-regular-webfont.eot +0 -0
- data/app/assets/fonts/lato/lato-regular-webfont.svg +4691 -0
- data/app/assets/fonts/lato/lato-regular-webfont.ttf +0 -0
- data/app/assets/fonts/lato/lato-regular-webfont.woff +0 -0
- data/app/assets/images/demo/browser-2x.png +0 -0
- data/app/assets/images/demo/browser-author.jpg +0 -0
- data/app/assets/images/demo/browser-pic-1.jpg +0 -0
- data/app/assets/images/demo/browser-pic-2.jpg +0 -0
- data/app/assets/images/demo/browser-pic-3.jpg +0 -0
- data/app/assets/images/demo/browser-pic-4.jpg +0 -0
- data/app/assets/images/demo/browser-pic-5.jpg +0 -0
- data/app/assets/images/demo/browser-pic-6.jpg +0 -0
- data/app/assets/images/demo/browser.png +0 -0
- data/app/assets/images/demo/html-icon.png +0 -0
- data/app/assets/images/demo/logo-mask-2x.png +0 -0
- data/app/assets/images/demo/logo-mask.png +0 -0
- data/app/assets/images/demo/video.jpg +0 -0
- data/app/assets/images/exaple-image.jpg +0 -0
- data/app/assets/images/favicon.ico +0 -0
- data/app/assets/images/footer/logo.png +0 -0
- data/app/assets/images/icons/png/Book.png +0 -0
- data/app/assets/images/icons/png/Calendar.png +0 -0
- data/app/assets/images/icons/png/Chat.png +0 -0
- data/app/assets/images/icons/png/Clipboard.png +0 -0
- data/app/assets/images/icons/png/Compas.png +0 -0
- data/app/assets/images/icons/png/Gift-Box.png +0 -0
- data/app/assets/images/icons/png/Infinity-Loop.png +0 -0
- data/app/assets/images/icons/png/Mail.png +0 -0
- data/app/assets/images/icons/png/Map.png +0 -0
- data/app/assets/images/icons/png/Pensils.png +0 -0
- data/app/assets/images/icons/png/Pocket.png +0 -0
- data/app/assets/images/icons/png/Retina-Ready.png +0 -0
- data/app/assets/images/icons/png/Toilet-Paper.png +0 -0
- data/app/assets/images/icons/png/Watches.png +0 -0
- data/app/assets/images/icons/svg/book.svg +1 -0
- data/app/assets/images/icons/svg/calendar.svg +1 -0
- data/app/assets/images/icons/svg/chat.svg +1 -0
- data/app/assets/images/icons/svg/clipboard.svg +1 -0
- data/app/assets/images/icons/svg/clocks.svg +9 -0
- data/app/assets/images/icons/svg/compas.svg +1 -0
- data/app/assets/images/icons/svg/gift-box.svg +1 -0
- data/app/assets/images/icons/svg/loop.svg +5 -0
- data/app/assets/images/icons/svg/mail.svg +1 -0
- data/app/assets/images/icons/svg/map.svg +1 -0
- data/app/assets/images/icons/svg/paper-bag.svg +1 -0
- data/app/assets/images/icons/svg/pencils.svg +1 -0
- data/app/assets/images/icons/svg/retina.svg +1 -0
- data/app/assets/images/icons/svg/toilet-paper.svg +1 -0
- data/app/assets/images/login/icon.png +0 -0
- data/app/assets/images/login/imac-2x.png +0 -0
- data/app/assets/images/login/imac.png +0 -0
- data/app/assets/images/switch/mask-square.png +0 -0
- data/app/assets/images/switch/mask.png +0 -0
- data/app/assets/images/tile/ribbon-2x.png +0 -0
- data/app/assets/images/tile/ribbon.png +0 -0
- data/app/assets/images/todo/done-2x.png +0 -0
- data/app/assets/images/todo/done.png +0 -0
- data/app/assets/images/todo/search-2x.png +0 -0
- data/app/assets/images/todo/search.png +0 -0
- data/app/assets/images/todo/todo-2x.png +0 -0
- data/app/assets/images/todo/todo.png +0 -0
- data/app/assets/images/video/fullscreen-2x.png +0 -0
- data/app/assets/images/video/fullscreen.png +0 -0
- data/app/assets/images/video/pause-2x.png +0 -0
- data/app/assets/images/video/pause.png +0 -0
- data/app/assets/images/video/play-2x.png +0 -0
- data/app/assets/images/video/play.png +0 -0
- data/app/assets/images/video/poster.jpg +0 -0
- data/app/assets/images/video/volume-full-2x.png +0 -0
- data/app/assets/images/video/volume-full.png +0 -0
- data/app/assets/images/video/volume-off-2x.png +0 -0
- data/app/assets/images/video/volume-off.png +0 -0
- data/app/assets/javascripts/bootstrap-select.js +412 -0
- data/app/assets/javascripts/bootstrap-switch.js +251 -0
- data/app/assets/javascripts/bootstrap-typeahead.js +335 -0
- data/app/assets/javascripts/flatui-checkbox.js +112 -0
- data/app/assets/javascripts/flatui-radio.js +141 -0
- data/app/assets/javascripts/flatui.js +9 -0
- data/app/assets/javascripts/html5shiv.js +8 -0
- data/app/assets/javascripts/icon-font-ie7.js +57 -0
- data/app/assets/javascripts/jquery-ui-1.10.3.min.js +6 -0
- data/app/assets/javascripts/jquery.placeholder.js +157 -0
- data/app/assets/javascripts/jquery.stacktable.js +54 -0
- data/app/assets/javascripts/jquery.tagsinput.js +355 -0
- data/app/assets/javascripts/jquery.ui.touch-punch.min.js +11 -0
- data/app/assets/stylesheets/flatui.less +45 -0
- data/flatui3-rails.gemspec +25 -0
- data/lib/flatui3-rails.rb +1 -0
- data/lib/flatui3/rails.rb +7 -0
- data/lib/flatui3/rails/engine.rb +13 -0
- data/lib/flatui3/rails/version.rb +5 -0
- data/lib/generators/flatui3/override/override_generator.rb +15 -0
- data/lib/generators/flatui3/override/templates/flatui_and_overrides.less +49 -0
- data/vendor/toolkit/flat-ui/flat-ui.less +45 -0
- data/vendor/toolkit/flat-ui/fonts.less +65 -0
- data/vendor/toolkit/flat-ui/icon-font.less +128 -0
- data/vendor/toolkit/flat-ui/mixins.less +365 -0
- data/vendor/toolkit/flat-ui/modules/buttons.less +231 -0
- data/vendor/toolkit/flat-ui/modules/caret.less +31 -0
- data/vendor/toolkit/flat-ui/modules/checkbox-and-radio.less +104 -0
- data/vendor/toolkit/flat-ui/modules/dropdown.less +225 -0
- data/vendor/toolkit/flat-ui/modules/footer.less +75 -0
- data/vendor/toolkit/flat-ui/modules/forms.less +127 -0
- data/vendor/toolkit/flat-ui/modules/input-icons.less +71 -0
- data/vendor/toolkit/flat-ui/modules/login.less +111 -0
- data/vendor/toolkit/flat-ui/modules/navbar.less +487 -0
- data/vendor/toolkit/flat-ui/modules/pager.less +49 -0
- data/vendor/toolkit/flat-ui/modules/pagination.less +153 -0
- data/vendor/toolkit/flat-ui/modules/palette.less +64 -0
- data/vendor/toolkit/flat-ui/modules/progress-bars.less +36 -0
- data/vendor/toolkit/flat-ui/modules/select.less +143 -0
- data/vendor/toolkit/flat-ui/modules/share.less +41 -0
- data/vendor/toolkit/flat-ui/modules/switch.less +150 -0
- data/vendor/toolkit/flat-ui/modules/tagsinput.less +117 -0
- data/vendor/toolkit/flat-ui/modules/tile.less +54 -0
- data/vendor/toolkit/flat-ui/modules/todo.less +107 -0
- data/vendor/toolkit/flat-ui/modules/tooltip.less +55 -0
- data/vendor/toolkit/flat-ui/modules/type.less +126 -0
- data/vendor/toolkit/flat-ui/modules/ui-slider.less +62 -0
- data/vendor/toolkit/flat-ui/modules/video.less +458 -0
- data/vendor/toolkit/flat-ui/scaffolding.less +46 -0
- data/vendor/toolkit/flat-ui/spaces.less +172 -0
- data/vendor/toolkit/flat-ui/variables.less +167 -0
- metadata +248 -0
@@ -0,0 +1,49 @@
|
|
1
|
+
//
|
2
|
+
// Pager
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.pager {
|
6
|
+
background-color: @base;
|
7
|
+
border-radius: @border-radius-large;
|
8
|
+
color: @inverse;
|
9
|
+
font-size: 16px;
|
10
|
+
font-weight: 700;
|
11
|
+
.inline-block();
|
12
|
+
|
13
|
+
li {
|
14
|
+
&:first-child {
|
15
|
+
> a,
|
16
|
+
> span {
|
17
|
+
border-left: none;
|
18
|
+
border-radius: @border-radius-large 0 0 @border-radius-large;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
> a,
|
23
|
+
> span {
|
24
|
+
background: none;
|
25
|
+
border: none;
|
26
|
+
border-left: 2px solid mix(@base, black, 85%);
|
27
|
+
color: @inverse;
|
28
|
+
padding: @pager-padding;
|
29
|
+
text-decoration: none;
|
30
|
+
white-space: nowrap;
|
31
|
+
border-radius: 0 @border-radius-large @border-radius-large 0;
|
32
|
+
|
33
|
+
&:hover, &:focus {
|
34
|
+
background-color: mix(@base, black, 85%);
|
35
|
+
}
|
36
|
+
&:active {
|
37
|
+
background-color: mix(@base, black, 85%);
|
38
|
+
}
|
39
|
+
|
40
|
+
// Add some spacing between the icon and text
|
41
|
+
[class*="fui-"] + span {
|
42
|
+
margin-left: 8px;
|
43
|
+
}
|
44
|
+
span + [class*="fui-"] {
|
45
|
+
margin-left: 8px;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
//
|
2
|
+
// Pagination
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.pagination {
|
6
|
+
position: relative;
|
7
|
+
|
8
|
+
ul {
|
9
|
+
background: @pagination-color;
|
10
|
+
color: @inverse;
|
11
|
+
padding: 0;
|
12
|
+
margin: 0;
|
13
|
+
display: inline-block;
|
14
|
+
border-radius: @border-radius-large;
|
15
|
+
|
16
|
+
li {
|
17
|
+
display: inline-block;
|
18
|
+
margin-right: -3px;
|
19
|
+
vertical-align: middle;
|
20
|
+
|
21
|
+
// Pseudos and states
|
22
|
+
&:first-child {
|
23
|
+
border-radius: @border-radius-large 0 0 @border-radius-large;
|
24
|
+
|
25
|
+
&.previous + li {
|
26
|
+
> a,
|
27
|
+
> span {
|
28
|
+
border-left-width: 5px;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
&:last-child {
|
33
|
+
border-radius: 0 @border-radius-large @border-radius-large 0;
|
34
|
+
margin-right: 0;
|
35
|
+
}
|
36
|
+
&.previous,
|
37
|
+
&.next {
|
38
|
+
> a,
|
39
|
+
> span {
|
40
|
+
background: transparent;
|
41
|
+
border: none;
|
42
|
+
border-right: 2px solid mix(@pagination-color, white, 66%);
|
43
|
+
font-size: ceil(@font-size-base * 1.142); // ~16px
|
44
|
+
margin: 0 9px 0 0;
|
45
|
+
padding: 12px 17px;
|
46
|
+
border-radius: @border-radius-large 0 0 @border-radius-large;
|
47
|
+
|
48
|
+
&,
|
49
|
+
&:hover,
|
50
|
+
&:focus {
|
51
|
+
border-color: mix(@pagination-color, white, 66%) !important;
|
52
|
+
}
|
53
|
+
|
54
|
+
@media (max-width: 480px) {
|
55
|
+
& {
|
56
|
+
margin-right: 0;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
&.next {
|
62
|
+
margin-left: 9px;
|
63
|
+
|
64
|
+
> a,
|
65
|
+
> span {
|
66
|
+
border-left: 2px solid mix(@pagination-color, white, 66%);
|
67
|
+
border-right: none;
|
68
|
+
margin: 0;
|
69
|
+
border-radius: 0 @border-radius-large @border-radius-large 0;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
&.active {
|
73
|
+
> a,
|
74
|
+
> span {
|
75
|
+
background-color: @inverse;
|
76
|
+
border-color: @inverse;
|
77
|
+
border-width: 2px !important;
|
78
|
+
color: @pagination-color;
|
79
|
+
margin: 10px 5px 9px;
|
80
|
+
|
81
|
+
&:hover,
|
82
|
+
&:focus {
|
83
|
+
background-color: @inverse;
|
84
|
+
border-color: @inverse;
|
85
|
+
color: @pagination-color;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
&.previous,
|
89
|
+
&.next {
|
90
|
+
border-color: mix(@pagination-color, white, 66%);
|
91
|
+
}
|
92
|
+
&.previous {
|
93
|
+
margin-right: 6px;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
// Link
|
98
|
+
> a,
|
99
|
+
> span {
|
100
|
+
display: inline-block;
|
101
|
+
background: @inverse;
|
102
|
+
border: 5px solid @pagination-color;
|
103
|
+
color: @inverse;
|
104
|
+
line-height: 16px;
|
105
|
+
margin: 7px 2px 6px;
|
106
|
+
min-width: 0;
|
107
|
+
min-height: 16px;
|
108
|
+
padding: 0 4px;
|
109
|
+
border-radius: 50px;
|
110
|
+
.transition(~"background .2s ease-out, border-color 0s ease-out, color .2s ease-out");
|
111
|
+
|
112
|
+
&:hover,
|
113
|
+
&:focus {
|
114
|
+
background-color: @firm;
|
115
|
+
border-color: @firm;
|
116
|
+
color: @inverse;
|
117
|
+
.transition(~"background .2s ease-out, border-color .2s ease-out, color .2s ease-out");
|
118
|
+
}
|
119
|
+
&:active {
|
120
|
+
background-color: mix(@firm, black, 85%);
|
121
|
+
border-color: mix(@firm, black, 85%);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
// Navigation buttons
|
128
|
+
> .btn {
|
129
|
+
&.previous,
|
130
|
+
&.next {
|
131
|
+
margin-right: 8px;
|
132
|
+
font-size: @font-size-base;
|
133
|
+
padding-left: 23px;
|
134
|
+
padding-right: 23px;
|
135
|
+
|
136
|
+
[class*="fui-"] {
|
137
|
+
font-size: @icon-normal;
|
138
|
+
margin-left: -2px;
|
139
|
+
margin-top: -2px;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
|
143
|
+
&.next {
|
144
|
+
margin-left: 8px;
|
145
|
+
margin-right: 0;
|
146
|
+
|
147
|
+
[class*="fui-"] {
|
148
|
+
margin-right: -2px;
|
149
|
+
margin-left: 4px;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
//
|
2
|
+
// Palette
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.pallete-item {
|
6
|
+
width: 140px;
|
7
|
+
float: left;
|
8
|
+
margin: 0 0 20px 20px;
|
9
|
+
}
|
10
|
+
.palette {
|
11
|
+
color: @inverse;
|
12
|
+
margin: 0;
|
13
|
+
padding: 15px;
|
14
|
+
text-transform: uppercase;
|
15
|
+
|
16
|
+
dt {
|
17
|
+
display: block;
|
18
|
+
font-weight: bold;
|
19
|
+
.opacity(.8);
|
20
|
+
}
|
21
|
+
dd {
|
22
|
+
font-weight: 200;
|
23
|
+
margin-left: 0;
|
24
|
+
.opacity(.8);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
//
|
29
|
+
// Pallet grid
|
30
|
+
// --------------------------------------------------
|
31
|
+
.calc-color(~"turquoise", ~"green-sea");
|
32
|
+
.calc-color(~"emerald", ~"nephritis");
|
33
|
+
.calc-color(~"peter-river", ~"belize-hole");
|
34
|
+
.calc-color(~"amethyst", ~"wisteria");
|
35
|
+
.calc-color(~"wet-asphalt", ~"midnight-blue");
|
36
|
+
|
37
|
+
.calc-color(~"sun-flower", ~"orange");
|
38
|
+
.calc-color(~"carrot", ~"pumpkin");
|
39
|
+
.calc-color(~"alizarin", ~"pomegranate");
|
40
|
+
.calc-color(~"clouds", ~"silver");
|
41
|
+
.calc-color(~"concrete", ~"asbestos");
|
42
|
+
|
43
|
+
.palette-clouds {
|
44
|
+
color: #bdc3c7;
|
45
|
+
}
|
46
|
+
|
47
|
+
// Palette paragraph
|
48
|
+
.palette-paragraph {
|
49
|
+
color: #7f8c8d;
|
50
|
+
font-size: 12px;
|
51
|
+
line-height: 17px;
|
52
|
+
|
53
|
+
span {
|
54
|
+
color: #bdc3c7;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
// Headline
|
59
|
+
.palette-headline {
|
60
|
+
color: #7f8c8d;
|
61
|
+
font-size: 13px;
|
62
|
+
font-weight: 700;
|
63
|
+
margin-top: -3px;
|
64
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
//
|
2
|
+
// Progress bars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Outer container
|
6
|
+
.progress {
|
7
|
+
background: mix(@base, white, 10%);
|
8
|
+
border-radius: 32px;
|
9
|
+
height: @progress-height;
|
10
|
+
.box-shadow(none);
|
11
|
+
}
|
12
|
+
|
13
|
+
// Bar of progress
|
14
|
+
.progress-bar {
|
15
|
+
background: @firm;
|
16
|
+
.box-shadow(none);
|
17
|
+
}
|
18
|
+
|
19
|
+
// Variations
|
20
|
+
// -------------------------
|
21
|
+
|
22
|
+
.progress-bar-success {
|
23
|
+
background-color: @success;
|
24
|
+
}
|
25
|
+
|
26
|
+
.progress-bar-warning {
|
27
|
+
background-color: @warning;
|
28
|
+
}
|
29
|
+
|
30
|
+
.progress-bar-danger {
|
31
|
+
background-color: @danger;
|
32
|
+
}
|
33
|
+
|
34
|
+
.progress-bar-info {
|
35
|
+
background-color: @info;
|
36
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
//
|
2
|
+
// Bootstrap Select
|
3
|
+
// --------------------------------------------------
|
4
|
+
// Credits: Silvio Moreto
|
5
|
+
// http://github.com/silviomoreto/bootstrap-select
|
6
|
+
|
7
|
+
.select {
|
8
|
+
display: inline-block;
|
9
|
+
margin-bottom: 10px;
|
10
|
+
|
11
|
+
// Select grid
|
12
|
+
&[class*="span"] {
|
13
|
+
[class*="span"] > & {
|
14
|
+
margin-left: 0; // No margin if select is a closest child of the grid
|
15
|
+
}
|
16
|
+
.btn {
|
17
|
+
width: 100%; // Button should take all available space of its parent
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
// Fluid width. Takes all available space and behaves like a block
|
22
|
+
&.select-block {
|
23
|
+
display: block;
|
24
|
+
float: none;
|
25
|
+
margin-left: 0;
|
26
|
+
width: auto;
|
27
|
+
.clearfix();
|
28
|
+
|
29
|
+
.btn {
|
30
|
+
width: 100%;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
|
35
|
+
// Button Sizes
|
36
|
+
// --------------------------------------------------
|
37
|
+
|
38
|
+
.btn {
|
39
|
+
width: 220px; // Default select width until .span* is applied
|
40
|
+
|
41
|
+
// Huge
|
42
|
+
&.btn-hg {
|
43
|
+
.filter-option {
|
44
|
+
left: 20px;
|
45
|
+
right: 40px;
|
46
|
+
top: 16px;
|
47
|
+
}
|
48
|
+
.caret {
|
49
|
+
right: 20px;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// Large
|
54
|
+
&.btn-lg {
|
55
|
+
.filter-option {
|
56
|
+
left: 18px;
|
57
|
+
right: 38px;
|
58
|
+
top: 12px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
// Small
|
63
|
+
&.btn-sm {
|
64
|
+
.filter-option {
|
65
|
+
left: 13px;
|
66
|
+
right: 33px;
|
67
|
+
top: 7px;
|
68
|
+
}
|
69
|
+
.caret {
|
70
|
+
right: 13px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
// Exstra small
|
75
|
+
&.btn-xs {
|
76
|
+
.filter-option {
|
77
|
+
left: 13px;
|
78
|
+
right: 33px;
|
79
|
+
top: 5px;
|
80
|
+
}
|
81
|
+
.caret {
|
82
|
+
right: 13px;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
.filter-option {
|
86
|
+
height: 26px;
|
87
|
+
left: 13px;
|
88
|
+
overflow: hidden;
|
89
|
+
position: absolute;
|
90
|
+
right: 33px;
|
91
|
+
text-align: left;
|
92
|
+
top: 10px;
|
93
|
+
}
|
94
|
+
.caret {
|
95
|
+
position: absolute;
|
96
|
+
right: 16px;
|
97
|
+
margin-top: 8px;
|
98
|
+
}
|
99
|
+
.dropdown-toggle {
|
100
|
+
border-radius: @border-radius-large;
|
101
|
+
}
|
102
|
+
|
103
|
+
// Dropdown menu
|
104
|
+
.dropdown-menu {
|
105
|
+
min-width: 100%;
|
106
|
+
|
107
|
+
dt {
|
108
|
+
cursor: default;
|
109
|
+
display: block;
|
110
|
+
padding: 3px 20px;
|
111
|
+
}
|
112
|
+
li {
|
113
|
+
&:not(.disabled) > a:hover small {
|
114
|
+
color: fade(@inverse, .4);
|
115
|
+
}
|
116
|
+
> a {
|
117
|
+
min-height: 20px;
|
118
|
+
|
119
|
+
&.opt {
|
120
|
+
padding-left: 35px;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
small {
|
124
|
+
padding-left: .5em;
|
125
|
+
}
|
126
|
+
> dt small {
|
127
|
+
font-weight: normal;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
// Disabled state
|
133
|
+
> .disabled,
|
134
|
+
.dropdown-menu li.disabled > a {
|
135
|
+
cursor: default;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
// Caret
|
140
|
+
.caret {
|
141
|
+
.caret(@inverse);
|
142
|
+
}
|
143
|
+
}
|