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,231 @@
|
|
1
|
+
//
|
2
|
+
// Buttons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// --------------------------------------------------
|
7
|
+
.btn,
|
8
|
+
.btn-group > .btn,
|
9
|
+
.btn-group > .dropdown-menu,
|
10
|
+
.btn-group > .popover {
|
11
|
+
font-size: ceil(@font-size-base * 1.071); // ~15px
|
12
|
+
font-weight: 400;
|
13
|
+
}
|
14
|
+
|
15
|
+
.btn-block {
|
16
|
+
white-space: normal;
|
17
|
+
}
|
18
|
+
|
19
|
+
.btn {
|
20
|
+
border: none;
|
21
|
+
background: @lightgray;
|
22
|
+
color: @button-text;
|
23
|
+
padding: 9px 12px 10px;
|
24
|
+
line-height: 22px;
|
25
|
+
text-decoration: none;
|
26
|
+
border-radius: @border-radius-large;
|
27
|
+
.transition(.25s linear);
|
28
|
+
.user-select(none);
|
29
|
+
|
30
|
+
// Alternate states
|
31
|
+
// --------------------------------------------------
|
32
|
+
&:hover,
|
33
|
+
&:focus,
|
34
|
+
.btn-group:focus &.dropdown-toggle {
|
35
|
+
background-color: @button-hover;
|
36
|
+
color: @button-text;
|
37
|
+
outline: none;
|
38
|
+
.transition(.25s);
|
39
|
+
}
|
40
|
+
|
41
|
+
// Active State
|
42
|
+
&:active,
|
43
|
+
.btn-group.open &.dropdown-toggle,
|
44
|
+
&.active {
|
45
|
+
background-color: @button-active;
|
46
|
+
color: fade(@button-text, 75%);
|
47
|
+
.box-shadow(none);
|
48
|
+
}
|
49
|
+
|
50
|
+
// Disabled state
|
51
|
+
&.disabled,
|
52
|
+
&[disabled] {
|
53
|
+
background-color: @lightgray;
|
54
|
+
color: fade(@button-text, 75%);
|
55
|
+
.opacity(.7);
|
56
|
+
}
|
57
|
+
|
58
|
+
// Button sizes
|
59
|
+
// --------------------------------------------------
|
60
|
+
|
61
|
+
// Huge
|
62
|
+
&.btn-hg,
|
63
|
+
.input-group-hg & {
|
64
|
+
font-size: ceil(@font-size-base * 1.57); // ~22px
|
65
|
+
line-height: 22px;
|
66
|
+
padding: 15px 20px 16px;
|
67
|
+
|
68
|
+
> [class^="fui-"] {
|
69
|
+
top: 1px;
|
70
|
+
|
71
|
+
&.pull-right {
|
72
|
+
margin-right: -2px;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// Large
|
78
|
+
&.btn-lg,
|
79
|
+
.input-group-lg & {
|
80
|
+
font-size: ceil(@font-size-base * 1.214); // ~17px
|
81
|
+
line-height: 20px;
|
82
|
+
padding: 12px 18px 13px;
|
83
|
+
|
84
|
+
> [class^="fui-"] {
|
85
|
+
top: 0;
|
86
|
+
|
87
|
+
&.pull-right {
|
88
|
+
margin-right: -2px;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
// Small
|
94
|
+
&.btn-sm,
|
95
|
+
.input-group-sm & {
|
96
|
+
font-size: ceil(@font-size-base * 0.928); // ~13px
|
97
|
+
line-height: 20px;
|
98
|
+
padding: 6px 13px 8px;
|
99
|
+
|
100
|
+
> [class^="fui-"] {
|
101
|
+
top: 0;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
// Extra small
|
106
|
+
&.btn-xs,
|
107
|
+
.input-group-xs & {
|
108
|
+
font-size: ceil(@font-size-base * 0.857); // ~12px
|
109
|
+
padding: 8px 13px 9px;
|
110
|
+
line-height: 1.2;
|
111
|
+
|
112
|
+
> [class^="fui-"] {
|
113
|
+
top: 0;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// Set the backgrounds
|
118
|
+
// -------------------------
|
119
|
+
&.btn-primary {
|
120
|
+
.swap-button-color(@firm, @button-primary-hover, @button-primary-active);
|
121
|
+
}
|
122
|
+
&.btn-info {
|
123
|
+
.swap-button-color(@info, @button-info-hover, @button-info-active);
|
124
|
+
}
|
125
|
+
&.btn-danger {
|
126
|
+
.swap-button-color(@danger, @button-danger-hover, @button-danger-active);
|
127
|
+
}
|
128
|
+
&.btn-success {
|
129
|
+
.swap-button-color(@success, @button-success-hover, @button-success-active);
|
130
|
+
}
|
131
|
+
&.btn-warning {
|
132
|
+
.swap-button-color(@warning, @button-warning-hover, @button-warning-active);
|
133
|
+
}
|
134
|
+
&.btn-inverse {
|
135
|
+
.swap-button-color(@base, @button-inverse-hover, @button-inverse-active);
|
136
|
+
}
|
137
|
+
&.btn-default {
|
138
|
+
.swap-button-color(@lightgray, @button-hover, @button-active);
|
139
|
+
}
|
140
|
+
|
141
|
+
// Button icon
|
142
|
+
// --------------------------------------------------
|
143
|
+
> [class^="fui-"] {
|
144
|
+
margin: 0 1px;
|
145
|
+
position: relative;
|
146
|
+
top: 1px;
|
147
|
+
vertical-align: top;
|
148
|
+
.inline-block();
|
149
|
+
|
150
|
+
&.pull-right {
|
151
|
+
margin-right: 0;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
// Other button locations
|
157
|
+
// Button with icon inside
|
158
|
+
.btn-toolbar .btn {
|
159
|
+
&.active {
|
160
|
+
color: @button-text;
|
161
|
+
}
|
162
|
+
&:first-child {
|
163
|
+
border-radius: @border-radius-large 0 0 @border-radius-large;
|
164
|
+
}
|
165
|
+
&:last-child {
|
166
|
+
border-radius: 0 @border-radius-large @border-radius-large 0;
|
167
|
+
}
|
168
|
+
> [class^="fui-"] {
|
169
|
+
font-size: @icon-normal;
|
170
|
+
top: 0;
|
171
|
+
margin: 0 4px;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
// Button tip
|
176
|
+
.btn-tip {
|
177
|
+
font-weight: 300;
|
178
|
+
padding-left: 10px;
|
179
|
+
}
|
180
|
+
|
181
|
+
// BUTTON GROUP
|
182
|
+
// ----------------------
|
183
|
+
.btn-group {
|
184
|
+
> .btn {
|
185
|
+
border-radius: 0;
|
186
|
+
text-align: center;
|
187
|
+
|
188
|
+
&:active,
|
189
|
+
&.active {
|
190
|
+
& + .btn {
|
191
|
+
border-left-color: transparent;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
&:first-of-type,
|
195
|
+
&:first-of-type:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
196
|
+
border-top-left-radius: @border-radius-large;
|
197
|
+
border-bottom-left-radius: @border-radius-large;
|
198
|
+
}
|
199
|
+
&:last-of-type,
|
200
|
+
&:last-of-type:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
201
|
+
border-top-right-radius: @border-radius-large;
|
202
|
+
border-bottom-right-radius: @border-radius-large;
|
203
|
+
}
|
204
|
+
& + .btn {
|
205
|
+
margin-left: 0;
|
206
|
+
}
|
207
|
+
& + .dropdown-toggle {
|
208
|
+
border-left: 2px solid fade(@base, 15%);
|
209
|
+
padding-left: 13px;
|
210
|
+
padding-right: 13px;
|
211
|
+
.box-shadow(none);
|
212
|
+
|
213
|
+
.caret {
|
214
|
+
margin-left: 3px;
|
215
|
+
margin-right: 3px;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
&.btn-gh + .dropdown-toggle {
|
219
|
+
.caret {
|
220
|
+
margin-left: 7px;
|
221
|
+
margin-right: 7px;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
&.btn-sm + .dropdown-toggle {
|
225
|
+
.caret {
|
226
|
+
margin-left: 0;
|
227
|
+
margin-right: 0;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
//
|
2
|
+
// Caret
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.caret {
|
6
|
+
border-width: 8px 6px;
|
7
|
+
border-bottom-color: @base;
|
8
|
+
border-top-color: @base;
|
9
|
+
border-style: solid;
|
10
|
+
border-bottom-style: none;
|
11
|
+
.transition(.25s);
|
12
|
+
.transform(scale(1.001));
|
13
|
+
}
|
14
|
+
|
15
|
+
.caret(@color: @base) {
|
16
|
+
border-bottom-color: @color;
|
17
|
+
border-top-color: @color;
|
18
|
+
}
|
19
|
+
|
20
|
+
.dropup .caret,
|
21
|
+
.dropup .btn-lg .caret,
|
22
|
+
.navbar-fixed-bottom .dropdown .caret {
|
23
|
+
border-bottom-width: 8px;
|
24
|
+
}
|
25
|
+
|
26
|
+
.btn-lg .caret {
|
27
|
+
border-top-width: 8px;
|
28
|
+
border-right-width: 6px;
|
29
|
+
border-left-width: 6px;
|
30
|
+
}
|
31
|
+
|
@@ -0,0 +1,104 @@
|
|
1
|
+
//
|
2
|
+
// Checkbox & Radio
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.checkbox,
|
6
|
+
.radio {
|
7
|
+
margin-bottom: 12px;
|
8
|
+
padding-left: 32px;
|
9
|
+
position: relative;
|
10
|
+
.transition(color .25s linear);
|
11
|
+
|
12
|
+
input {
|
13
|
+
outline: none !important;
|
14
|
+
display: none;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Replace icons
|
18
|
+
// --------------------------------------------------
|
19
|
+
.icons {
|
20
|
+
color: @lightgray;
|
21
|
+
display: block;
|
22
|
+
height: 20px;
|
23
|
+
left: 0;
|
24
|
+
position: absolute;
|
25
|
+
top: 0;
|
26
|
+
width: 20px;
|
27
|
+
text-align: center;
|
28
|
+
line-height: 21px;
|
29
|
+
font-size: 20px;
|
30
|
+
cursor: pointer;
|
31
|
+
.transition(color .25s linear);
|
32
|
+
|
33
|
+
.first-icon,
|
34
|
+
.second-icon {
|
35
|
+
display: inline-table;
|
36
|
+
position: absolute;
|
37
|
+
left: 0;
|
38
|
+
top: 0;
|
39
|
+
background-color: @inverse;
|
40
|
+
.opacity(1);
|
41
|
+
}
|
42
|
+
.second-icon {
|
43
|
+
.opacity(0);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// Alternate States
|
48
|
+
// --------------------------------------------------
|
49
|
+
|
50
|
+
// Hover State
|
51
|
+
&:hover {
|
52
|
+
color: @lightgray;
|
53
|
+
.transition(color .25s linear);
|
54
|
+
|
55
|
+
.first-icon {
|
56
|
+
.opacity(0);
|
57
|
+
}
|
58
|
+
.second-icon {
|
59
|
+
.opacity(1);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Checked State
|
64
|
+
&.checked {
|
65
|
+
color: @link-color;
|
66
|
+
|
67
|
+
.first-icon {
|
68
|
+
.opacity(0);
|
69
|
+
}
|
70
|
+
.second-icon {
|
71
|
+
color: @link-color;
|
72
|
+
.transition(color .25s linear);
|
73
|
+
.opacity(1);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// Disabled state
|
78
|
+
&.disabled {
|
79
|
+
cursor: default;
|
80
|
+
color: mix(@lightgray, white, 38%);
|
81
|
+
|
82
|
+
.icons {
|
83
|
+
color: mix(@lightgray, white, 38%);
|
84
|
+
}
|
85
|
+
.first-icon {
|
86
|
+
.opacity(1);
|
87
|
+
}
|
88
|
+
.second-icon {
|
89
|
+
.opacity(0);
|
90
|
+
}
|
91
|
+
&.checked {
|
92
|
+
.icons {
|
93
|
+
color: mix(@lightgray, white, 38%);
|
94
|
+
}
|
95
|
+
.first-icon {
|
96
|
+
.opacity(0);
|
97
|
+
}
|
98
|
+
.second-icon {
|
99
|
+
color: mix(@lightgray, white, 38%);
|
100
|
+
.opacity(1);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
@@ -0,0 +1,225 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.dropdown-menu {
|
6
|
+
background-color: @dropdown-background;
|
7
|
+
border: none;
|
8
|
+
display: block;
|
9
|
+
margin-top: 8px;
|
10
|
+
opacity: 0;
|
11
|
+
padding: 0;
|
12
|
+
visibility: hidden;
|
13
|
+
width: 100%;
|
14
|
+
.box-shadow(none);
|
15
|
+
.transition(.25s);
|
16
|
+
|
17
|
+
&.typeahead {
|
18
|
+
display: none;
|
19
|
+
opacity: 1;
|
20
|
+
visibility: visible;
|
21
|
+
width: auto;
|
22
|
+
margin-top: 2px;
|
23
|
+
}
|
24
|
+
|
25
|
+
// Opened state
|
26
|
+
.open > & {
|
27
|
+
margin-top: 18px;
|
28
|
+
opacity: 1;
|
29
|
+
visibility: visible;
|
30
|
+
}
|
31
|
+
li {
|
32
|
+
&:first-child {
|
33
|
+
dt + a {
|
34
|
+
border-radius: 0;
|
35
|
+
}
|
36
|
+
> a {
|
37
|
+
border-radius: 6px 6px 0 0;
|
38
|
+
padding-top: 8px;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
&:last-child {
|
43
|
+
> a {
|
44
|
+
border-radius: 0 0 6px 6px;
|
45
|
+
padding-bottom: 10px;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&.active,
|
50
|
+
&.selected {
|
51
|
+
> a,
|
52
|
+
> a.highlighted {
|
53
|
+
background: @firm;
|
54
|
+
color: @inverse;
|
55
|
+
|
56
|
+
&:hover,
|
57
|
+
&:focus {
|
58
|
+
background: mix(@firm, black, 85%);
|
59
|
+
color: @inverse;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
> a {
|
64
|
+
color: fade(@base, 75%);
|
65
|
+
padding: 6px 15px 8px;
|
66
|
+
text-decoration: none;
|
67
|
+
.clearfix();
|
68
|
+
.transition(background-color 0.25s);
|
69
|
+
|
70
|
+
&:hover,
|
71
|
+
&:active,
|
72
|
+
&:focus {
|
73
|
+
background: mix(@inverse, @base, 85%);
|
74
|
+
color: inherit;
|
75
|
+
outline: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
&.highlighted {
|
79
|
+
background: mix(@inverse, @base, 73.5%);
|
80
|
+
color: @inverse;
|
81
|
+
|
82
|
+
&:hover,
|
83
|
+
&:focus {
|
84
|
+
background: mix(@inverse, @base, 66%);
|
85
|
+
color: @inverse;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
&:before {
|
90
|
+
float: right;
|
91
|
+
margin-top: 3px;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
// Submenu title
|
96
|
+
dt {
|
97
|
+
font-weight: 300;
|
98
|
+
margin-bottom: 3px;
|
99
|
+
margin-top: 12px;
|
100
|
+
padding: 0 15px;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
// Dropdown expands to top
|
106
|
+
.dropup,
|
107
|
+
.navbar-fixed-bottom .dropdown {
|
108
|
+
.dropdown-menu {
|
109
|
+
margin-bottom: 8px;
|
110
|
+
}
|
111
|
+
.dropdown-arrow {
|
112
|
+
border-bottom: none;
|
113
|
+
border-top: 8px outset mix(@inverse, @base, 94%);
|
114
|
+
bottom: 100%;
|
115
|
+
top: auto;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
// Second level nav
|
120
|
+
.navbar-fixed-bottom .nav > li > ul:before {
|
121
|
+
border-bottom: none;
|
122
|
+
border-top: 9px outset @base;
|
123
|
+
bottom: 4px;
|
124
|
+
top: auto;
|
125
|
+
}
|
126
|
+
|
127
|
+
.open {
|
128
|
+
&.dropup {
|
129
|
+
> .dropdown-menu {
|
130
|
+
margin-bottom: 18px;
|
131
|
+
}
|
132
|
+
> .dropdown-arrow {
|
133
|
+
margin-bottom: 10px;
|
134
|
+
|
135
|
+
&.dropdown-arrow-inverse {
|
136
|
+
border-top-color: @base;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
> .dropdown-arrow {
|
141
|
+
margin-top: 9px;
|
142
|
+
opacity: 1;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
// Arrows
|
147
|
+
// --------------------------------------------------
|
148
|
+
.dropdown-arrow {
|
149
|
+
border-style: solid;
|
150
|
+
border-width: 0 9px 9px 9px;
|
151
|
+
border-color: transparent transparent mix(@inverse, @base, 94%) transparent;
|
152
|
+
height: 0;
|
153
|
+
margin-top: 0;
|
154
|
+
opacity: 0;
|
155
|
+
position: absolute;
|
156
|
+
right: 13px;
|
157
|
+
top: 100%;
|
158
|
+
width: 0;
|
159
|
+
z-index: 10;
|
160
|
+
-webkit-transform: rotate(360deg); // Make corners smooth
|
161
|
+
.transition(.25s);
|
162
|
+
}
|
163
|
+
|
164
|
+
// Alternate Color
|
165
|
+
// --------------------------------------------------
|
166
|
+
.dropdown-inverse {
|
167
|
+
background-color: @base;
|
168
|
+
color: mix(@inverse, black, 80%);
|
169
|
+
padding: 4px 0 6px;
|
170
|
+
|
171
|
+
li {
|
172
|
+
margin: 0 4px -2px;
|
173
|
+
&:first-child,
|
174
|
+
&:last-child {
|
175
|
+
> a {
|
176
|
+
border-radius: 2px;
|
177
|
+
padding-bottom: 7px;
|
178
|
+
padding-top: 5px;
|
179
|
+
}
|
180
|
+
dt + a {
|
181
|
+
border-radius: 2px;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
&.active,
|
186
|
+
&.selected {
|
187
|
+
> a {
|
188
|
+
background: @firm;
|
189
|
+
color: @inverse;
|
190
|
+
position: relative;
|
191
|
+
z-index: 1;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
dt {
|
195
|
+
padding-left: 11px;
|
196
|
+
padding-right: 11px;
|
197
|
+
}
|
198
|
+
.divider {
|
199
|
+
margin-left: 11px;
|
200
|
+
margin-right: 11px;
|
201
|
+
}
|
202
|
+
> a {
|
203
|
+
border-radius: 2px;
|
204
|
+
color: @inverse;
|
205
|
+
padding: 5px 11px 7px;
|
206
|
+
|
207
|
+
&:hover,
|
208
|
+
&:active,
|
209
|
+
&:focus {
|
210
|
+
background: mix(@base, black, 85%);
|
211
|
+
}
|
212
|
+
&.highlighted {
|
213
|
+
background: mix(@base, @inverse, 85%);
|
214
|
+
&:hover,
|
215
|
+
&:focus {
|
216
|
+
background: mix(@base, @inverse, 75%);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
}
|
220
|
+
.divider {
|
221
|
+
background-color: mix(@base, white, 85%);
|
222
|
+
border-bottom-color: mix(@base, white, 85%);
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|