spiderfw 0.6.22 → 0.6.23
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -0
- data/VERSION +1 -1
- data/apps/app_server/controllers/app_server_controller.rb +7 -2
- data/apps/app_server/lib/git_app.rb +5 -3
- data/apps/cas_server/controllers/mixins/cas_login_mixin.rb +2 -1
- data/apps/core/admin/controllers/admin_controller.rb +4 -4
- data/apps/core/admin/controllers/app_admin_controller.rb +3 -2
- data/apps/core/admin/public/css/sass/admin.css +56 -31
- data/apps/core/admin/public/sass/admin.scss +38 -4
- data/apps/core/admin/views/_breadcrumb.shtml +8 -0
- data/apps/core/admin/views/admin.layout.shtml +8 -5
- data/apps/core/auth/controllers/login_controller.rb +3 -8
- data/apps/core/components/assets.rb +37 -1
- data/apps/core/components/public/bootstrap/LICENSE +13 -0
- data/apps/core/components/public/bootstrap/README.md +28 -0
- data/apps/core/components/public/bootstrap/img/glyphicons-halflings-white.png +0 -0
- data/apps/core/components/public/bootstrap/img/glyphicons-halflings.png +0 -0
- data/apps/core/components/public/bootstrap/js/README.md +106 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-alert.js +91 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-button.js +98 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-carousel.js +154 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-collapse.js +136 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-dropdown.js +92 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-modal.js +209 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-popover.js +95 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-scrollspy.js +125 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-tab.js +130 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-tooltip.js +270 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-transition.js +51 -0
- data/apps/core/components/public/bootstrap/js/bootstrap-typeahead.js +271 -0
- data/apps/core/components/public/bootstrap/js/tests/index.html +49 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-alert.js +41 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-button.js +54 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-collapse.js +25 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-dropdown.js +53 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-modal.js +85 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-popover.js +93 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-scrollspy.js +31 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-tab.js +45 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-tooltip.js +62 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-transition.js +13 -0
- data/apps/core/components/public/bootstrap/js/tests/unit/bootstrap-typeahead.js +128 -0
- data/apps/core/components/public/bootstrap/js/tests/vendor/jquery.js +9252 -0
- data/apps/core/components/public/bootstrap/js/tests/vendor/qunit.css +232 -0
- data/apps/core/components/public/bootstrap/js/tests/vendor/qunit.js +1510 -0
- data/apps/core/components/public/bootstrap/scss/_accordion.scss +28 -0
- data/apps/core/components/public/bootstrap/scss/_alerts.scss +70 -0
- data/apps/core/components/public/bootstrap/scss/_breadcrumbs.scss +22 -0
- data/apps/core/components/public/bootstrap/scss/_button-groups.scss +146 -0
- data/apps/core/components/public/bootstrap/scss/_buttons.scss +165 -0
- data/apps/core/components/public/bootstrap/scss/_carousel.scss +121 -0
- data/apps/core/components/public/bootstrap/scss/_close.scss +18 -0
- data/apps/core/components/public/bootstrap/scss/_code.scss +44 -0
- data/apps/core/components/public/bootstrap/scss/_component-animations.scss +18 -0
- data/apps/core/components/public/bootstrap/scss/_custom.css +0 -0
- data/apps/core/components/public/bootstrap/scss/_dropdowns.scss +131 -0
- data/apps/core/components/public/bootstrap/scss/_forms.scss +516 -0
- data/apps/core/components/public/bootstrap/scss/_grid.scss +8 -0
- data/apps/core/components/public/bootstrap/scss/_hero-unit.scss +20 -0
- data/apps/core/components/public/bootstrap/scss/_labels.scss +16 -0
- data/apps/core/components/public/bootstrap/scss/_layouts.scss +17 -0
- data/apps/core/components/public/bootstrap/scss/_mixins.scss +538 -0
- data/apps/core/components/public/bootstrap/scss/_modals.scss +72 -0
- data/apps/core/components/public/bootstrap/scss/_navbar.scss +292 -0
- data/apps/core/components/public/bootstrap/scss/_navs.scss +343 -0
- data/apps/core/components/public/bootstrap/scss/_pager.scss +30 -0
- data/apps/core/components/public/bootstrap/scss/_pagination.scss +64 -0
- data/apps/core/components/public/bootstrap/scss/_patterns.scss +13 -0
- data/apps/core/components/public/bootstrap/scss/_popovers.scss +49 -0
- data/apps/core/components/public/bootstrap/scss/_print.scss +18 -0
- data/apps/core/components/public/bootstrap/scss/_progress-bars.scss +95 -0
- data/apps/core/{admin/public/sass/bootstrap/reset.scss → components/public/bootstrap/scss/_reset.scss} +36 -51
- data/apps/core/components/public/bootstrap/scss/_scaffolding.scss +29 -0
- data/apps/core/components/public/bootstrap/scss/_sprites.scss +156 -0
- data/apps/core/components/public/bootstrap/scss/_tables.scss +139 -0
- data/apps/core/components/public/bootstrap/scss/_thumbnails.scss +35 -0
- data/apps/core/components/public/bootstrap/scss/_tooltip.scss +35 -0
- data/apps/core/components/public/bootstrap/scss/_type.scss +217 -0
- data/apps/core/components/public/bootstrap/scss/_utilities.scss +23 -0
- data/apps/core/components/public/bootstrap/scss/_variables.scss +99 -0
- data/apps/core/components/public/bootstrap/scss/_wells.scss +17 -0
- data/apps/core/components/public/bootstrap/scss/bootstrap-responsive.css +707 -0
- data/apps/core/components/public/bootstrap/scss/bootstrap-responsive.scss +323 -0
- data/apps/core/components/public/bootstrap/scss/bootstrap.css +4604 -0
- data/apps/core/components/public/bootstrap/scss/bootstrap.scss +62 -0
- data/apps/core/components/public/bootstrap/scss/config.rb +36 -0
- data/apps/core/components/public/css/admin.css +2 -1
- data/apps/core/components/public/css/sass/bootstrap/bootstrap.css +3107 -0
- data/apps/core/components/public/css/table_base.css +9 -0
- data/apps/core/components/public/widgets/month_calendar.js +9 -0
- data/apps/core/components/widgets/crud/crud.rb +9 -1
- data/apps/core/components/widgets/crud/crud.shtml +2 -2
- data/apps/core/components/widgets/month_calendar/month_calendar.shtml +1 -0
- data/apps/core/components/widgets/table/table.rb +84 -55
- data/apps/core/components/widgets/table/table.shtml +2 -1
- data/apps/core/forms/public/ckeditor/CHANGES.html +139 -1
- data/apps/core/forms/public/ckeditor/LICENSE.html +1 -8
- data/apps/core/forms/public/ckeditor/ckeditor.js +141 -137
- data/apps/core/forms/public/ckeditor/ckeditor_basic.js +3 -3
- data/apps/core/forms/public/ckeditor/ckeditor_basic_source.js +1 -1
- data/apps/core/forms/public/ckeditor/ckeditor_source.js +13 -3
- data/apps/core/forms/public/ckeditor/contents.css +4 -2
- data/apps/core/forms/public/ckeditor/lang/_translationstatus.txt +59 -59
- data/apps/core/forms/public/ckeditor/lang/af.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ar.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/bg.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/bn.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/bs.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ca.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/cs.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/cy.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/da.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/de.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/el.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/en-au.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/en-ca.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/en-gb.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/en.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/eo.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/es.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/et.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/eu.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/fa.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/fi.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/fo.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/fr-ca.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/fr.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/gl.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/gu.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/he.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/hi.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/hr.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/hu.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/is.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/it.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ja.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ka.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/km.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ko.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/lt.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/lv.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/mn.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ms.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/nb.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/nl.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/no.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/pl.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/pt-br.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/pt.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ro.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/ru.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/sk.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/sl.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/sr-latn.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/sr.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/sv.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/th.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/tr.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/uk.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/vi.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/zh-cn.js +1 -1
- data/apps/core/forms/public/ckeditor/lang/zh.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/autogrow/plugin.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/bbcode/plugin.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/docprops/dialogs/docprops.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/find/dialogs/find.js +5 -4
- data/apps/core/forms/public/ckeditor/plugins/flash/dialogs/flash.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/select.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/forms/dialogs/textarea.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/iframe/dialogs/iframe.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/image/dialogs/image.js +6 -6
- data/apps/core/forms/public/ckeditor/plugins/link/dialogs/link.js +6 -5
- data/apps/core/forms/public/ckeditor/plugins/liststyle/dialogs/liststyle.js +2 -1
- data/apps/core/forms/public/ckeditor/plugins/pastefromword/filter/default.js +5 -5
- data/apps/core/forms/public/ckeditor/plugins/specialchar/dialogs/specialchar.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/specialchar/lang/en.js +1 -1
- data/apps/core/forms/public/ckeditor/plugins/table/dialogs/table.js +4 -4
- data/apps/core/forms/public/ckeditor/plugins/tableresize/plugin.js +2 -2
- data/apps/core/forms/public/ckeditor/plugins/wsc/dialogs/wsc.js +1 -1
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/README.md +26 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/dialog.css +616 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/editor.css +1088 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/icons.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/dialog_sides.gif +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/dialog_sides.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/dialog_sides_rtl.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/mini.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/noimage.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/sprites.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/sprites_ie6.png +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/images/toolbar_start.gif +0 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/skin.js +7 -0
- data/apps/core/forms/public/ckeditor/skins/BootstrapCK-Skin/templates.css +54 -0
- data/apps/core/forms/public/ckeditor/skins/kama/dialog.css +4 -3
- data/apps/core/forms/public/ckeditor/skins/kama/editor.css +3 -3
- data/apps/core/forms/public/ckeditor/themes/default/theme.js +2 -2
- data/apps/core/forms/public/css/form.css +5 -5
- data/apps/core/forms/public/html_area.js +5 -5
- data/apps/core/forms/tags/element_label.erb +1 -1
- data/apps/core/forms/tags/row.erb +1 -1
- data/apps/core/forms/widgets/form/form.rb +2 -1
- data/apps/core/forms/widgets/form/form.shtml +3 -3
- data/apps/core/forms/widgets/inputs/checkbox/checkbox.shtml +1 -1
- data/apps/core/forms/widgets/inputs/date_time/date_time.shtml +1 -1
- data/apps/core/forms/widgets/inputs/file_input/file_input.shtml +1 -1
- data/apps/core/forms/widgets/inputs/html_area/html_area.shtml +1 -1
- data/apps/core/forms/widgets/inputs/input/input.shtml +1 -1
- data/apps/core/forms/widgets/inputs/input/readonly.shtml +1 -1
- data/apps/core/forms/widgets/inputs/password/password.shtml +1 -1
- data/apps/core/forms/widgets/inputs/search_select/search_select.shtml +1 -1
- data/apps/core/forms/widgets/inputs/select/select.shtml +1 -1
- data/apps/core/forms/widgets/inputs/text/text.shtml +1 -1
- data/apps/core/forms/widgets/inputs/text_area/text_area.shtml +1 -1
- data/apps/core/forms/widgets/inputs/time_span/time_span.shtml +1 -1
- data/apps/messenger/controllers/messenger_admin_controller.rb +19 -4
- data/apps/messenger/views/admin/_admin.layout.shtml +1 -1
- data/apps/messenger/views/admin/queue.shtml +6 -6
- data/apps/messenger/views/admin/view_email.shtml +7 -0
- data/apps/messenger/views/admin/view_sms.shtml +4 -0
- data/blueprints/app/.dirs +2 -1
- data/blueprints/app/test/features/support/env.rb +4 -0
- data/data/locale/it/LC_MESSAGES/spider.mo +0 -0
- data/lib/spiderfw/cmd/commands/config.rb +6 -3
- data/lib/spiderfw/config/configuration.rb +11 -2
- data/lib/spiderfw/config/options/spider.rb +1 -1
- data/lib/spiderfw/controller/controller.rb +27 -15
- data/lib/spiderfw/controller/dispatcher.rb +8 -4
- data/lib/spiderfw/controller/http_controller.rb +9 -5
- data/lib/spiderfw/controller/mixins/static_content.rb +1 -0
- data/lib/spiderfw/controller/mixins/visual.rb +48 -31
- data/lib/spiderfw/home.rb +8 -0
- data/lib/spiderfw/i18n/cldr.rb +1 -0
- data/lib/spiderfw/model/base_model.rb +2 -2
- data/lib/spiderfw/model/mappers/db_mapper.rb +1 -0
- data/lib/spiderfw/model/unit_of_work.rb +2 -2
- data/lib/spiderfw/requires.rb +1 -0
- data/lib/spiderfw/setup/app_manager.rb +16 -8
- data/lib/spiderfw/spider.rb +2 -2
- data/lib/spiderfw/templates/layout.rb +16 -9
- data/lib/spiderfw/templates/template.rb +28 -8
- data/lib/spiderfw/utils/logger.rb +9 -9
- data/views/errors/error.layout.shtml +9 -4
- metadata +98 -13
- data/apps/core/admin/public/sass/bootstrap/bootstrap.scss +0 -29
- data/apps/core/admin/public/sass/bootstrap/forms.scss +0 -478
- data/apps/core/admin/public/sass/bootstrap/mixins.scss +0 -220
- data/apps/core/admin/public/sass/bootstrap/patterns.scss +0 -1062
- data/apps/core/admin/public/sass/bootstrap/scaffolding.scss +0 -136
- data/apps/core/admin/public/sass/bootstrap/tables.scss +0 -224
- data/apps/core/admin/public/sass/bootstrap/type.scss +0 -187
- data/apps/core/admin/public/sass/bootstrap/variables.scss +0 -60
@@ -0,0 +1,131 @@
|
|
1
|
+
// DROPDOWN MENUS
|
2
|
+
// --------------
|
3
|
+
|
4
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
5
|
+
.dropdown {
|
6
|
+
position: relative;
|
7
|
+
}
|
8
|
+
.dropdown-toggle {
|
9
|
+
// The caret makes the toggle a bit too tall in IE7
|
10
|
+
*margin-bottom: -3px;
|
11
|
+
}
|
12
|
+
.dropdown-toggle:active,
|
13
|
+
.open .dropdown-toggle {
|
14
|
+
outline: 0;
|
15
|
+
}
|
16
|
+
// Dropdown arrow/caret
|
17
|
+
.caret {
|
18
|
+
display: inline-block;
|
19
|
+
width: 0;
|
20
|
+
height: 0;
|
21
|
+
text-indent: -99999px;
|
22
|
+
// IE7 won't do the border trick if there's a text indent, but it doesn't
|
23
|
+
// do the content that text-indent is hiding, either, so we're ok.
|
24
|
+
*text-indent: 0;
|
25
|
+
vertical-align: top;
|
26
|
+
border-left: 4px solid transparent;
|
27
|
+
border-right: 4px solid transparent;
|
28
|
+
border-top: 4px solid #000;
|
29
|
+
@include opacity(30);
|
30
|
+
content: "\2193";
|
31
|
+
}
|
32
|
+
.dropdown .caret {
|
33
|
+
margin-top: 8px;
|
34
|
+
margin-left: 2px;
|
35
|
+
}
|
36
|
+
.dropdown:hover .caret,
|
37
|
+
.open.dropdown .caret {
|
38
|
+
@include opacity(100);
|
39
|
+
}
|
40
|
+
// The dropdown menu (ul)
|
41
|
+
.dropdown-menu {
|
42
|
+
position: absolute;
|
43
|
+
top: 100%;
|
44
|
+
left: 0;
|
45
|
+
z-index: $zindexDropdown;
|
46
|
+
float: left;
|
47
|
+
display: none; // none by default, but block on "open" of the menu
|
48
|
+
min-width: 160px;
|
49
|
+
max-width: 220px;
|
50
|
+
_width: 160px;
|
51
|
+
padding: 4px 0;
|
52
|
+
margin: 0; // override default ul
|
53
|
+
list-style: none;
|
54
|
+
background-color: $white;
|
55
|
+
border-color: #ccc;
|
56
|
+
border-color: rgba(0,0,0,.2);
|
57
|
+
border-style: solid;
|
58
|
+
border-width: 1px;
|
59
|
+
@include border-radius(0 0 5px 5px);
|
60
|
+
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
61
|
+
-webkit-background-clip: padding-box;
|
62
|
+
-moz-background-clip: padding;
|
63
|
+
background-clip: padding-box;
|
64
|
+
*border-right-width: 2px;
|
65
|
+
*border-bottom-width: 2px;
|
66
|
+
|
67
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
68
|
+
&.bottom-up {
|
69
|
+
top: auto;
|
70
|
+
bottom: 100%;
|
71
|
+
margin-bottom: 2px;
|
72
|
+
}
|
73
|
+
|
74
|
+
// Dividers (basically an hr) within the dropdown
|
75
|
+
.divider {
|
76
|
+
height: 1px;
|
77
|
+
margin: 5px 1px;
|
78
|
+
overflow: hidden;
|
79
|
+
background-color: #e5e5e5;
|
80
|
+
border-bottom: 1px solid $white;
|
81
|
+
|
82
|
+
// IE7 needs a set width since we gave a height. Restricting just
|
83
|
+
// to IE7 to keep the 1px left/right space in other browsers.
|
84
|
+
// It is unclear where IE is getting the extra space that we need
|
85
|
+
// to negative-margin away, but so it goes.
|
86
|
+
*width: 100%;
|
87
|
+
*margin: -5px 0 5px;
|
88
|
+
}
|
89
|
+
|
90
|
+
// Links within the dropdown menu
|
91
|
+
a {
|
92
|
+
display: block;
|
93
|
+
padding: 3px 15px;
|
94
|
+
clear: both;
|
95
|
+
font-weight: normal;
|
96
|
+
line-height: 18px;
|
97
|
+
color: $gray;
|
98
|
+
white-space: nowrap;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
// Hover state
|
103
|
+
.dropdown-menu li > a:hover,
|
104
|
+
.dropdown-menu .active > a,
|
105
|
+
.dropdown-menu .active > a:hover {
|
106
|
+
color: $white;
|
107
|
+
text-decoration: none;
|
108
|
+
background-color: $linkColor;
|
109
|
+
}
|
110
|
+
|
111
|
+
// Open state for the dropdown
|
112
|
+
.dropdown.open {
|
113
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
114
|
+
// make the menu appear below buttons that appeared later on the page
|
115
|
+
*z-index: $zindexDropdown;
|
116
|
+
|
117
|
+
.dropdown-toggle {
|
118
|
+
color: $white;
|
119
|
+
background: #ccc;
|
120
|
+
background: rgba(0,0,0,.3);
|
121
|
+
}
|
122
|
+
.dropdown-menu {
|
123
|
+
display: block;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
// Typeahead
|
128
|
+
.typeahead {
|
129
|
+
margin-top: 2px; // give it some space to breathe
|
130
|
+
@include border-radius(4px);
|
131
|
+
}
|
@@ -0,0 +1,516 @@
|
|
1
|
+
// Forms.less
|
2
|
+
// Base styles for various input types, form layouts, and states
|
3
|
+
// -------------------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// GENERAL STYLES
|
7
|
+
// --------------
|
8
|
+
|
9
|
+
// Make all forms have space below them
|
10
|
+
form {
|
11
|
+
margin: 0 0 $baseLineHeight;
|
12
|
+
}
|
13
|
+
|
14
|
+
fieldset {
|
15
|
+
padding: 0;
|
16
|
+
margin: 0;
|
17
|
+
border: 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Groups of fields with labels on top (legends)
|
21
|
+
legend {
|
22
|
+
display: block;
|
23
|
+
width: 100%;
|
24
|
+
padding: 0;
|
25
|
+
margin-bottom: $baseLineHeight * 1.5;
|
26
|
+
font-size: $baseFontSize * 1.5;
|
27
|
+
line-height: $baseLineHeight * 2;
|
28
|
+
color: $grayDark;
|
29
|
+
border: 0;
|
30
|
+
border-bottom: 1px solid #eee;
|
31
|
+
}
|
32
|
+
|
33
|
+
// Set font for forms
|
34
|
+
label,
|
35
|
+
input,
|
36
|
+
button,
|
37
|
+
select,
|
38
|
+
textarea {
|
39
|
+
@include font-sans-serif($baseFontSize,normal,$baseLineHeight);
|
40
|
+
}
|
41
|
+
|
42
|
+
// Identify controls by their labels
|
43
|
+
label {
|
44
|
+
display: block;
|
45
|
+
margin-bottom: 5px;
|
46
|
+
color: $grayDark;
|
47
|
+
}
|
48
|
+
|
49
|
+
// Inputs, Textareas, Selects
|
50
|
+
input,
|
51
|
+
textarea,
|
52
|
+
select,
|
53
|
+
.uneditable-input {
|
54
|
+
display: inline-block;
|
55
|
+
width: 210px;
|
56
|
+
height: $baseLineHeight;
|
57
|
+
padding: 4px;
|
58
|
+
margin-bottom: 9px;
|
59
|
+
font-size: $baseFontSize;
|
60
|
+
line-height: $baseLineHeight;
|
61
|
+
color: $gray;
|
62
|
+
border: 1px solid #ccc;
|
63
|
+
@include border-radius(3px);
|
64
|
+
}
|
65
|
+
.uneditable-textarea {
|
66
|
+
width: auto;
|
67
|
+
height: auto;
|
68
|
+
}
|
69
|
+
|
70
|
+
// Inputs within a label
|
71
|
+
label input,
|
72
|
+
label textarea,
|
73
|
+
label select {
|
74
|
+
display: block;
|
75
|
+
}
|
76
|
+
|
77
|
+
// Mini reset for unique input types
|
78
|
+
input[type=image],
|
79
|
+
input[type=checkbox],
|
80
|
+
input[type=radio] {
|
81
|
+
width: auto;
|
82
|
+
height: auto;
|
83
|
+
padding: 0;
|
84
|
+
margin: 3px 0;
|
85
|
+
*margin-top: 0; /* IE7 */
|
86
|
+
line-height: normal;
|
87
|
+
border: none;
|
88
|
+
cursor: pointer;
|
89
|
+
border-radius: 0 #{"\0/"}; // Nuke border-radius for IE9 only
|
90
|
+
}
|
91
|
+
|
92
|
+
// Reset the file input to browser defaults
|
93
|
+
input[type="file"] {
|
94
|
+
padding: initial;
|
95
|
+
line-height: initial;
|
96
|
+
border: initial;
|
97
|
+
background-color: $white;
|
98
|
+
background-color: initial;
|
99
|
+
@include box-shadow(none);
|
100
|
+
}
|
101
|
+
|
102
|
+
// Help out input buttons
|
103
|
+
input[type=button],
|
104
|
+
input[type=reset],
|
105
|
+
input[type=submit] {
|
106
|
+
width: auto;
|
107
|
+
height: auto;
|
108
|
+
}
|
109
|
+
|
110
|
+
// Set the height of select and file controls to match text inputs
|
111
|
+
select,
|
112
|
+
input[type="file"] {
|
113
|
+
height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
|
114
|
+
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
|
115
|
+
line-height: 28px;
|
116
|
+
}
|
117
|
+
|
118
|
+
// Chrome on Linux and Mobile Safari need background-color
|
119
|
+
select {
|
120
|
+
width: 220px; // default input width + 10px of padding that doesn't get applied
|
121
|
+
background-color: $white;
|
122
|
+
}
|
123
|
+
|
124
|
+
// Make multiple select elements height not fixed
|
125
|
+
select[multiple],
|
126
|
+
select[size] {
|
127
|
+
height: auto;
|
128
|
+
}
|
129
|
+
|
130
|
+
// Remove shadow from image inputs
|
131
|
+
input[type="image"] {
|
132
|
+
@include box-shadow(none);
|
133
|
+
}
|
134
|
+
|
135
|
+
textarea {
|
136
|
+
height: auto;
|
137
|
+
}
|
138
|
+
|
139
|
+
// Hidden inputs
|
140
|
+
input[type="hidden"] {
|
141
|
+
display: none;
|
142
|
+
}
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
// CHECKBOXES & RADIOS
|
148
|
+
// -------------------
|
149
|
+
|
150
|
+
// Indent the labels to position radios/checkboxes as hanging
|
151
|
+
.radio,
|
152
|
+
.checkbox {
|
153
|
+
padding-left: 18px;
|
154
|
+
}
|
155
|
+
.radio input[type="radio"],
|
156
|
+
.checkbox input[type="checkbox"] {
|
157
|
+
float: left;
|
158
|
+
margin-left: -18px;
|
159
|
+
}
|
160
|
+
|
161
|
+
// Move the options list down to align with labels
|
162
|
+
.controls > .radio:first-child,
|
163
|
+
.controls > .checkbox:first-child {
|
164
|
+
padding-top: 5px; // has to be padding because margin collaspes
|
165
|
+
}
|
166
|
+
|
167
|
+
// Radios and checkboxes on same line
|
168
|
+
.radio.inline,
|
169
|
+
.checkbox.inline {
|
170
|
+
display: inline-block;
|
171
|
+
margin-bottom: 0;
|
172
|
+
vertical-align: middle;
|
173
|
+
}
|
174
|
+
.radio.inline + .radio.inline,
|
175
|
+
.checkbox.inline + .checkbox.inline {
|
176
|
+
margin-left: 10px; // space out consecutive inline controls
|
177
|
+
}
|
178
|
+
// But don't forget to remove their padding on first-child
|
179
|
+
.controls > .radio.inline:first-child,
|
180
|
+
.controls > .checkbox.inline:first-child {
|
181
|
+
padding-top: 0;
|
182
|
+
}
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
// FOCUS STATE
|
187
|
+
// -----------
|
188
|
+
|
189
|
+
input,
|
190
|
+
textarea {
|
191
|
+
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
192
|
+
$transition: border linear .2s, box-shadow linear .2s;
|
193
|
+
@include transition($transition);
|
194
|
+
}
|
195
|
+
input:focus,
|
196
|
+
textarea:focus {
|
197
|
+
border-color: rgba(82,168,236,.8);
|
198
|
+
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
199
|
+
@include box-shadow($shadow);
|
200
|
+
outline: 0;
|
201
|
+
outline: thin dotted \9; /* IE6-8 */
|
202
|
+
}
|
203
|
+
input[type="file"]:focus,
|
204
|
+
input[type="checkbox"]:focus,
|
205
|
+
|
206
|
+
select:focus {
|
207
|
+
@include box-shadow(none); // override for file inputs
|
208
|
+
@include tab-focus();
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
// INPUT SIZES
|
214
|
+
// -----------
|
215
|
+
|
216
|
+
// General classes for quick sizes
|
217
|
+
.input-mini { width: 60px; }
|
218
|
+
.input-small { width: 90px; }
|
219
|
+
.input-medium { width: 150px; }
|
220
|
+
.input-large { width: 210px; }
|
221
|
+
.input-xlarge { width: 270px; }
|
222
|
+
.input-xxlarge { width: 530px; }
|
223
|
+
|
224
|
+
// Grid style input sizes
|
225
|
+
input[class*="span"],
|
226
|
+
select[class*="span"],
|
227
|
+
textarea[class*="span"],
|
228
|
+
.uneditable-input {
|
229
|
+
float: none;
|
230
|
+
margin-left: 0;
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
// GRID SIZING FOR INPUTS
|
236
|
+
// ----------------------
|
237
|
+
|
238
|
+
@include inputGridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth);
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
// DISABLED STATE
|
244
|
+
// --------------
|
245
|
+
|
246
|
+
// Disabled and read-only inputs
|
247
|
+
input[disabled],
|
248
|
+
select[disabled],
|
249
|
+
textarea[disabled],
|
250
|
+
input[readonly],
|
251
|
+
select[readonly],
|
252
|
+
textarea[readonly] {
|
253
|
+
background-color: #f5f5f5;
|
254
|
+
border-color: #ddd;
|
255
|
+
cursor: not-allowed;
|
256
|
+
}
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
// FORM FIELD FEEDBACK STATES
|
262
|
+
// --------------------------
|
263
|
+
|
264
|
+
// Mixin for form field states
|
265
|
+
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
266
|
+
// Set the text color
|
267
|
+
> label,
|
268
|
+
.help-block,
|
269
|
+
.help-inline {
|
270
|
+
color: $textColor;
|
271
|
+
}
|
272
|
+
// Style inputs accordingly
|
273
|
+
input,
|
274
|
+
select,
|
275
|
+
textarea {
|
276
|
+
color: $textColor;
|
277
|
+
border-color: $borderColor;
|
278
|
+
&:focus {
|
279
|
+
border-color: darken($borderColor, 10%);
|
280
|
+
@include box-shadow(0 0 6px lighten($borderColor, 20%));
|
281
|
+
}
|
282
|
+
}
|
283
|
+
// Give a small background color for input-prepend/-append
|
284
|
+
.input-prepend .add-on,
|
285
|
+
.input-append .add-on {
|
286
|
+
color: $textColor;
|
287
|
+
background-color: $backgroundColor;
|
288
|
+
border-color: $textColor;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
// Warning
|
292
|
+
.control-group.warning {
|
293
|
+
@include formFieldState($warningText, $warningText, $warningBackground);
|
294
|
+
}
|
295
|
+
// Error
|
296
|
+
.control-group.error {
|
297
|
+
@include formFieldState($errorText, $errorText, $errorBackground);
|
298
|
+
}
|
299
|
+
// Success
|
300
|
+
.control-group.success {
|
301
|
+
@include formFieldState($successText, $successText, $successBackground);
|
302
|
+
}
|
303
|
+
|
304
|
+
// HTML5 invalid states
|
305
|
+
// Shares styles with the .control-group.error above
|
306
|
+
input:focus:required:invalid,
|
307
|
+
textarea:focus:required:invalid,
|
308
|
+
select:focus:required:invalid {
|
309
|
+
color: #b94a48;
|
310
|
+
border-color: #ee5f5b;
|
311
|
+
&:focus {
|
312
|
+
border-color: darken(#ee5f5b, 10%);
|
313
|
+
@include box-shadow(0 0 6px lighten(#ee5f5b, 20%));
|
314
|
+
}
|
315
|
+
}
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
// FORM ACTIONS
|
320
|
+
// ------------
|
321
|
+
|
322
|
+
.form-actions {
|
323
|
+
padding: ($baseLineHeight - 1) 20px $baseLineHeight;
|
324
|
+
margin-top: $baseLineHeight;
|
325
|
+
margin-bottom: $baseLineHeight;
|
326
|
+
background-color: #f5f5f5;
|
327
|
+
border-top: 1px solid #ddd;
|
328
|
+
}
|
329
|
+
|
330
|
+
// For text that needs to appear as an input but should not be an input
|
331
|
+
.uneditable-input {
|
332
|
+
display: block;
|
333
|
+
background-color: $white;
|
334
|
+
border-color: #eee;
|
335
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
|
336
|
+
cursor: not-allowed;
|
337
|
+
}
|
338
|
+
|
339
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
340
|
+
@include placeholder($grayLight);
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
// HELP TEXT
|
345
|
+
// ---------
|
346
|
+
|
347
|
+
.help-block {
|
348
|
+
margin-top: 5px;
|
349
|
+
margin-bottom: 0;
|
350
|
+
color: $grayLight;
|
351
|
+
}
|
352
|
+
|
353
|
+
.help-inline {
|
354
|
+
display: inline-block;
|
355
|
+
@include ie7-inline-block();
|
356
|
+
margin-bottom: 9px;
|
357
|
+
vertical-align: middle;
|
358
|
+
padding-left: 5px;
|
359
|
+
}
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
// INPUT GROUPS
|
364
|
+
// ------------
|
365
|
+
|
366
|
+
// Allow us to put symbols and text within the input field for a cleaner look
|
367
|
+
.input-prepend,
|
368
|
+
.input-append {
|
369
|
+
margin-bottom: 5px;
|
370
|
+
@include clearfix(); // Clear the float to prevent wrapping
|
371
|
+
input,
|
372
|
+
.uneditable-input {
|
373
|
+
@include border-radius(0 3px 3px 0);
|
374
|
+
&:focus {
|
375
|
+
position: relative;
|
376
|
+
z-index: 2;
|
377
|
+
}
|
378
|
+
}
|
379
|
+
.uneditable-input {
|
380
|
+
border-left-color: #ccc;
|
381
|
+
}
|
382
|
+
.add-on {
|
383
|
+
float: left;
|
384
|
+
display: block;
|
385
|
+
width: auto;
|
386
|
+
min-width: 16px;
|
387
|
+
height: $baseLineHeight;
|
388
|
+
margin-right: -1px;
|
389
|
+
padding: 4px 5px;
|
390
|
+
font-weight: normal;
|
391
|
+
line-height: $baseLineHeight;
|
392
|
+
color: $grayLight;
|
393
|
+
text-align: center;
|
394
|
+
text-shadow: 0 1px 0 $white;
|
395
|
+
background-color: #f5f5f5;
|
396
|
+
border: 1px solid #ccc;
|
397
|
+
@include border-radius(3px 0 0 3px);
|
398
|
+
}
|
399
|
+
.active {
|
400
|
+
background-color: lighten($green, 30);
|
401
|
+
border-color: $green;
|
402
|
+
}
|
403
|
+
}
|
404
|
+
.input-prepend {
|
405
|
+
.add-on {
|
406
|
+
*margin-top: 1px; /* IE6-7 */
|
407
|
+
}
|
408
|
+
}
|
409
|
+
.input-append {
|
410
|
+
input,
|
411
|
+
.uneditable-input {
|
412
|
+
float: left;
|
413
|
+
@include border-radius(3px 0 0 3px);
|
414
|
+
}
|
415
|
+
.uneditable-input {
|
416
|
+
border-right-color: #ccc;
|
417
|
+
}
|
418
|
+
.add-on {
|
419
|
+
margin-right: 0;
|
420
|
+
margin-left: -1px;
|
421
|
+
@include border-radius(0 3px 3px 0);
|
422
|
+
}
|
423
|
+
input:first-child {
|
424
|
+
// In IE7, having a hasLayout container (from clearfix's zoom:1) can make the first input
|
425
|
+
// inherit the sum of its ancestors' margins.
|
426
|
+
*margin-left: -160px;
|
427
|
+
|
428
|
+
&+.add-on {
|
429
|
+
*margin-left: -21px;
|
430
|
+
}
|
431
|
+
}
|
432
|
+
}
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
// SEARCH FORM
|
437
|
+
// -----------
|
438
|
+
|
439
|
+
.search-query {
|
440
|
+
padding-left: 14px;
|
441
|
+
padding-right: 14px;
|
442
|
+
margin-bottom: 0; // remove the default margin on all inputs
|
443
|
+
@include border-radius(14px);
|
444
|
+
}
|
445
|
+
|
446
|
+
|
447
|
+
|
448
|
+
// HORIZONTAL & VERTICAL FORMS
|
449
|
+
// ---------------------------
|
450
|
+
|
451
|
+
// Common properties
|
452
|
+
// -----------------
|
453
|
+
|
454
|
+
.form-search,
|
455
|
+
.form-inline,
|
456
|
+
.form-horizontal {
|
457
|
+
input,
|
458
|
+
textarea,
|
459
|
+
select,
|
460
|
+
.help-inline,
|
461
|
+
.uneditable-input {
|
462
|
+
display: inline-block;
|
463
|
+
margin-bottom: 0;
|
464
|
+
}
|
465
|
+
}
|
466
|
+
.form-search label,
|
467
|
+
.form-inline label,
|
468
|
+
.form-search .input-append,
|
469
|
+
.form-inline .input-append,
|
470
|
+
.form-search .input-prepend,
|
471
|
+
.form-inline .input-prepend {
|
472
|
+
display: inline-block;
|
473
|
+
}
|
474
|
+
// Make the prepend and append add-on vertical-align: middle;
|
475
|
+
.form-search .input-append .add-on,
|
476
|
+
.form-inline .input-prepend .add-on,
|
477
|
+
.form-search .input-append .add-on,
|
478
|
+
.form-inline .input-prepend .add-on {
|
479
|
+
vertical-align: middle;
|
480
|
+
}
|
481
|
+
|
482
|
+
// Margin to space out fieldsets
|
483
|
+
.control-group {
|
484
|
+
margin-bottom: $baseLineHeight / 2;
|
485
|
+
}
|
486
|
+
|
487
|
+
// Horizontal-specific styles
|
488
|
+
// --------------------------
|
489
|
+
|
490
|
+
.form-horizontal {
|
491
|
+
// Legend collapses margin, so we're relegated to padding
|
492
|
+
legend + .control-group {
|
493
|
+
margin-top: $baseLineHeight;
|
494
|
+
-webkit-margin-top-collapse: separate;
|
495
|
+
}
|
496
|
+
// Increase spacing between groups
|
497
|
+
.control-group {
|
498
|
+
margin-bottom: $baseLineHeight;
|
499
|
+
@include clearfix();
|
500
|
+
}
|
501
|
+
// Float the labels left
|
502
|
+
.control-group > label {
|
503
|
+
float: left;
|
504
|
+
width: 140px;
|
505
|
+
padding-top: 5px;
|
506
|
+
text-align: right;
|
507
|
+
}
|
508
|
+
// Move over all input controls and content
|
509
|
+
.controls {
|
510
|
+
margin-left: 160px;
|
511
|
+
}
|
512
|
+
// Move over buttons in .form-actions to align with .controls
|
513
|
+
.form-actions {
|
514
|
+
padding-left: 160px;
|
515
|
+
}
|
516
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// HERO UNIT
|
2
|
+
// ---------
|
3
|
+
|
4
|
+
.hero-unit {
|
5
|
+
padding: 60px;
|
6
|
+
margin-bottom: 30px;
|
7
|
+
background-color: #f5f5f5;
|
8
|
+
@include border-radius(6px);
|
9
|
+
h1 {
|
10
|
+
margin-bottom: 0;
|
11
|
+
font-size: 60px;
|
12
|
+
line-height: 1;
|
13
|
+
letter-spacing: -1px;
|
14
|
+
}
|
15
|
+
p {
|
16
|
+
font-size: 18px;
|
17
|
+
font-weight: 200;
|
18
|
+
line-height: $baseLineHeight * 1.5;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
.label {
|
5
|
+
padding: 1px 3px 2px;
|
6
|
+
font-size: $baseFontSize * .75;
|
7
|
+
font-weight: bold;
|
8
|
+
color: $white;
|
9
|
+
text-transform: uppercase;
|
10
|
+
background-color: $grayLight;
|
11
|
+
@include border-radius(3px);
|
12
|
+
}
|
13
|
+
.label-important { background-color: $errorText; }
|
14
|
+
.label-warning { background-color: $orange; }
|
15
|
+
.label-success { background-color: $successText; }
|
16
|
+
.label-info { background-color: $infoText; }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//
|
2
|
+
// Layouts
|
3
|
+
// Fixed-width and fluid (with sidebar) layouts
|
4
|
+
// --------------------------------------------
|
5
|
+
|
6
|
+
|
7
|
+
// Container (centered, fixed-width layouts)
|
8
|
+
.container {
|
9
|
+
@include container-fixed();
|
10
|
+
}
|
11
|
+
|
12
|
+
// Fluid layouts (left aligned, with sidebar, min- & max-width content)
|
13
|
+
.container-fluid {
|
14
|
+
padding-left: $gridGutterWidth;
|
15
|
+
padding-right: $gridGutterWidth;
|
16
|
+
@include clearfix();
|
17
|
+
}
|