openshift-origin-console 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYRIGHT +1 -0
- data/Gemfile +21 -0
- data/LICENSE +203 -0
- data/README.md +123 -0
- data/Rakefile +44 -0
- data/app/assets/images/cartridge-edge.gif +0 -0
- data/app/assets/images/console/arrow-down.png +0 -0
- data/app/assets/images/console/console-sprite.png +0 -0
- data/app/assets/images/favicon-32.png +0 -0
- data/app/assets/images/loader-dark.gif +0 -0
- data/app/assets/images/loader.gif +0 -0
- data/app/assets/images/sprite-vert.png +0 -0
- data/app/assets/javascripts/console.js +10 -0
- data/app/assets/javascripts/console/form.js.coffee +51 -0
- data/app/assets/stylesheets/_alerts.scss +84 -0
- data/app/assets/stylesheets/_breadcrumbs.scss +31 -0
- data/app/assets/stylesheets/_buttons.scss +229 -0
- data/app/assets/stylesheets/_code.scss +86 -0
- data/app/assets/stylesheets/_custom.scss +207 -0
- data/app/assets/stylesheets/_footer.scss +54 -0
- data/app/assets/stylesheets/_forms.scss +710 -0
- data/app/assets/stylesheets/_grid.scss +28 -0
- data/app/assets/stylesheets/_input-prepend-append.scss +138 -0
- data/app/assets/stylesheets/_labels.scss +40 -0
- data/app/assets/stylesheets/_mixins.scss +76 -0
- data/app/assets/stylesheets/_override-variables.scss +1 -0
- data/app/assets/stylesheets/_responsive.scss +438 -0
- data/app/assets/stylesheets/_ribbon.scss +57 -0
- data/app/assets/stylesheets/_type.scss +306 -0
- data/app/assets/stylesheets/_utilities.scss +10 -0
- data/app/assets/stylesheets/_variables.scss +131 -0
- data/app/assets/stylesheets/common.css.scss +82 -0
- data/app/assets/stylesheets/console/_application.scss +194 -0
- data/app/assets/stylesheets/console/_base.scss +26 -0
- data/app/assets/stylesheets/console/_breadcrumbs.scss +32 -0
- data/app/assets/stylesheets/console/_buttons.scss +214 -0
- data/app/assets/stylesheets/console/_core.scss +1002 -0
- data/app/assets/stylesheets/console/_dropdowns.scss +63 -0
- data/app/assets/stylesheets/console/_help.scss +54 -0
- data/app/assets/stylesheets/console/_mixins.scss +11 -0
- data/app/assets/stylesheets/console/_navbar.scss +415 -0
- data/app/assets/stylesheets/console/_ribbon.scss +82 -0
- data/app/assets/stylesheets/console/_tile.scss +122 -0
- data/app/assets/stylesheets/origin.css.scss +37 -0
- data/app/controllers/account/dashboard.rb +13 -0
- data/app/controllers/account_controller.rb +3 -0
- data/app/controllers/application_types_controller.rb +80 -0
- data/app/controllers/applications_controller.rb +183 -0
- data/app/controllers/building_controller.rb +81 -0
- data/app/controllers/capability_aware.rb +18 -0
- data/app/controllers/cartridge_types_controller.rb +53 -0
- data/app/controllers/cartridges_controller.rb +43 -0
- data/app/controllers/console/auth/basic.rb +65 -0
- data/app/controllers/console/auth/none.rb +5 -0
- data/app/controllers/console/auth/remote_user.rb +69 -0
- data/app/controllers/console/rescue.rb +48 -0
- data/app/controllers/console_controller.rb +19 -0
- data/app/controllers/console_index_controller.rb +14 -0
- data/app/controllers/domain_aware.rb +26 -0
- data/app/controllers/domain_session_sweeper.rb +29 -0
- data/app/controllers/domains_controller.rb +30 -0
- data/app/controllers/keys_controller.rb +43 -0
- data/app/controllers/scaling_controller.rb +46 -0
- data/app/controllers/sshkey_aware.rb +23 -0
- data/app/controllers/sshkey_session_sweeper.rb +29 -0
- data/app/controllers/user_session_sweeper.rb +29 -0
- data/app/helpers/console/community_helper.rb +78 -0
- data/app/helpers/console/console_helper.rb +26 -0
- data/app/helpers/console/help_helper.rb +270 -0
- data/app/helpers/console/html5_boilerplate_helper.rb +63 -0
- data/app/helpers/console/layout_helper.rb +277 -0
- data/app/helpers/console/model_helper.rb +106 -0
- data/app/helpers/console/secured_helper.rb +5 -0
- data/app/models/alias.rb +10 -0
- data/app/models/application.rb +148 -0
- data/app/models/application_associations.rb +36 -0
- data/app/models/application_template.rb +90 -0
- data/app/models/application_type.rb +258 -0
- data/app/models/async_aware.rb +60 -0
- data/app/models/capabilities.rb +62 -0
- data/app/models/cartridge.rb +122 -0
- data/app/models/cartridge_type.rb +140 -0
- data/app/models/domain.rb +44 -0
- data/app/models/domain_associations.rb +33 -0
- data/app/models/embedded.rb +11 -0
- data/app/models/gear.rb +13 -0
- data/app/models/gear_group.rb +104 -0
- data/app/models/key.rb +87 -0
- data/app/models/quickstart.rb +135 -0
- data/app/models/rest_api.rb +130 -0
- data/app/models/rest_api/base.rb +781 -0
- data/app/models/rest_api/cacheable.rb +91 -0
- data/app/models/rest_api/environment.rb +13 -0
- data/app/models/rest_api/info.rb +34 -0
- data/app/models/rest_api/log_subscriber.rb +29 -0
- data/app/models/rest_api/railties/controller_runtime.rb +37 -0
- data/app/models/user.rb +27 -0
- data/app/models/user_associations.rb +6 -0
- data/app/views/account/_domain.html.haml +14 -0
- data/app/views/account/_keys.html.haml +20 -0
- data/app/views/account/_user.html.haml +5 -0
- data/app/views/account/show.html.haml +15 -0
- data/app/views/application_templates/_application_template.html.haml +5 -0
- data/app/views/application_types/_application_type.html.haml +19 -0
- data/app/views/application_types/_custom.html.haml +19 -0
- data/app/views/application_types/_persisted.html.haml +26 -0
- data/app/views/application_types/_tile.html.haml +9 -0
- data/app/views/application_types/index.html.haml +87 -0
- data/app/views/application_types/search.html.haml +67 -0
- data/app/views/application_types/show.html.haml +219 -0
- data/app/views/applications/_application.html.haml +34 -0
- data/app/views/applications/_applications_filter.html.haml +8 -0
- data/app/views/applications/_footer.html.haml +0 -0
- data/app/views/applications/_name.html.haml +28 -0
- data/app/views/applications/delete.html.haml +19 -0
- data/app/views/applications/get_started.html.haml +145 -0
- data/app/views/applications/index.html.haml +55 -0
- data/app/views/applications/show.html.haml +193 -0
- data/app/views/building/delete.html.haml +22 -0
- data/app/views/building/new.html.haml +57 -0
- data/app/views/building/show.html.haml +12 -0
- data/app/views/cartridge_types/_cartridge_type.html.haml +61 -0
- data/app/views/cartridge_types/index.html.haml +37 -0
- data/app/views/cartridge_types/show.html.haml +21 -0
- data/app/views/cartridges/next_steps.html.haml +58 -0
- data/app/views/cartridges/show.html.haml +1 -0
- data/app/views/console/error.html.haml +58 -0
- data/app/views/console/help.html.haml +90 -0
- data/app/views/console/not_found.html.haml +69 -0
- data/app/views/console/unauthorized.html.haml +7 -0
- data/app/views/domains/_domain.html.haml +14 -0
- data/app/views/domains/_form.html.haml +13 -0
- data/app/views/domains/edit.html.haml +5 -0
- data/app/views/domains/new.html.haml +6 -0
- data/app/views/keys/_form.html.haml +14 -0
- data/app/views/keys/_simple_form.html.haml +14 -0
- data/app/views/keys/new.html.haml +2 -0
- data/app/views/layouts/_footer.html.haml +38 -0
- data/app/views/layouts/_head.html.haml +35 -0
- data/app/views/layouts/console.html.haml +60 -0
- data/app/views/layouts/console/_header.html.haml +44 -0
- data/app/views/layouts/console/_identity.html.haml +7 -0
- data/app/views/layouts/console/_javascripts.html.haml +5 -0
- data/app/views/layouts/console/_stylesheets.html.haml +6 -0
- data/app/views/scaling/delete.html.haml +17 -0
- data/app/views/scaling/new.html.haml +24 -0
- data/app/views/scaling/show.html.haml +81 -0
- data/app/views/shared/_tracking.html.haml +0 -0
- data/conf/console.conf.example +108 -0
- data/conf/openshift_console.conf +10 -0
- data/config/cartridge_types.yml +54 -0
- data/config/initializers/barista_config.rb +86 -0
- data/config/initializers/cartridge_types.rb +5 -0
- data/config/initializers/console_security.rb +1 -0
- data/config/initializers/date_helper.rb +5 -0
- data/config/initializers/extended_logger.rb +51 -0
- data/config/initializers/formtastic.rb +100 -0
- data/config/initializers/inflections.rb +38 -0
- data/config/initializers/rdiscount.rb +8 -0
- data/config/initializers/rest_api.rb +22 -0
- data/config/initializers/sass.rb +30 -0
- data/config/initializers/session_trace.rb +32 -0
- data/config/initializers/x_frame_options.rb +53 -0
- data/config/locales/en.yml +12 -0
- data/lib/active_resource/associations.rb +107 -0
- data/lib/active_resource/associations/builder/association.rb +35 -0
- data/lib/active_resource/associations/builder/belongs_to.rb +5 -0
- data/lib/active_resource/associations/builder/has_many.rb +5 -0
- data/lib/active_resource/associations/builder/has_one.rb +5 -0
- data/lib/active_resource/persistent_connection.rb +341 -0
- data/lib/active_resource/persistent_http_mock.rb +68 -0
- data/lib/active_resource/reflection.rb +78 -0
- data/lib/console.rb +8 -0
- data/lib/console/config_file.rb +13 -0
- data/lib/console/configuration.rb +163 -0
- data/lib/console/engine.rb +28 -0
- data/lib/console/formtastic/bootstrap_form_builder.rb +369 -0
- data/lib/console/rails/app_redirector.rb +40 -0
- data/lib/console/rails/filter_hash.rb +15 -0
- data/lib/console/rails/routes.rb +51 -0
- data/lib/console/version.rb +5 -0
- data/lib/tasks/assets.rake +79 -0
- data/lib/tasks/stats.rake +18 -0
- data/lib/tasks/test_suites.rake +73 -0
- data/test/coverage_helper.rb +27 -0
- data/test/fixtures/cartridges.json +1 -0
- data/test/fixtures/quickstarts.csv +3 -0
- data/test/functional/account_controller_test.rb +14 -0
- data/test/functional/application_types_controller_test.rb +251 -0
- data/test/functional/applications_controller_sanity_test.rb +26 -0
- data/test/functional/applications_controller_test.rb +365 -0
- data/test/functional/building_controller_test.rb +203 -0
- data/test/functional/cartridge_types_controller_isolation_test.rb +68 -0
- data/test/functional/cartridge_types_controller_test.rb +48 -0
- data/test/functional/cartridges_controller_test.rb +83 -0
- data/test/functional/console_auth_basic_controller_test.rb +82 -0
- data/test/functional/console_auth_remote_user_controller_test.rb +90 -0
- data/test/functional/console_index_controller_test.rb +22 -0
- data/test/functional/domains_controller_test.rb +194 -0
- data/test/functional/keys_controller_test.rb +163 -0
- data/test/functional/quickstarts.json +18 -0
- data/test/functional/scaling_controller_test.rb +153 -0
- data/test/integration/assets_test.rb +34 -0
- data/test/integration/help_link_test.rb +43 -0
- data/test/integration/quickstarts_test.rb +24 -0
- data/test/integration/rescue_from_test.rb +25 -0
- data/test/integration/rest_api/application_test.rb +115 -0
- data/test/integration/rest_api/cartridge_test.rb +44 -0
- data/test/integration/rest_api/cartridge_type_test.rb +143 -0
- data/test/integration/rest_api/domain_test.rb +91 -0
- data/test/integration/rest_api/info_test.rb +9 -0
- data/test/integration/rest_api/key_test.rb +85 -0
- data/test/integration/static_pages_test.rb +44 -0
- data/test/rails_app/Rakefile +7 -0
- data/test/rails_app/app/controllers/application_controller.rb +5 -0
- data/test/rails_app/config.ru +4 -0
- data/test/rails_app/config/application.rb +48 -0
- data/test/rails_app/config/boot.rb +10 -0
- data/test/rails_app/config/database.yml +25 -0
- data/test/rails_app/config/environment.rb +5 -0
- data/test/rails_app/config/environments/development.rb +38 -0
- data/test/rails_app/config/environments/production.rb +70 -0
- data/test/rails_app/config/environments/test.rb +43 -0
- data/test/rails_app/config/initializers/auth.rb +0 -0
- data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails_app/config/initializers/inflections.rb +10 -0
- data/test/rails_app/config/initializers/mime_types.rb +5 -0
- data/test/rails_app/config/initializers/secret_token.rb +7 -0
- data/test/rails_app/config/initializers/session_store.rb +8 -0
- data/test/rails_app/config/locales/en.yml +5 -0
- data/test/rails_app/config/routes.rb +4 -0
- data/test/rails_app/script/rails +6 -0
- data/test/support/auth.rb +111 -0
- data/test/support/base.rb +142 -0
- data/test/support/errors.rb +28 -0
- data/test/support/rest_api.rb +189 -0
- data/test/test_helper.rb +14 -0
- data/test/unit/active_model_compliance_test.rb +23 -0
- data/test/unit/async_aware_test.rb +55 -0
- data/test/unit/configuration_test.rb +158 -0
- data/test/unit/filter_hash_test.rb +64 -0
- data/test/unit/helpers/model_helper_test.rb +61 -0
- data/test/unit/overrides_test.rb +9 -0
- data/test/unit/rest_api_test.rb +1590 -0
- data/vendor/assets/javascripts/MIT-LICENSE.txt +20 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +157 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +100 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +135 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +61 -0
- data/vendor/assets/javascripts/jquery.spin.js +47 -0
- data/vendor/assets/javascripts/jquery.ui.widget.js +16 -0
- data/vendor/assets/javascripts/jquery_cookie.js +41 -0
- data/vendor/assets/javascripts/jquery_validate_min.js +51 -0
- data/vendor/assets/javascripts/modernizr.min.js +2 -0
- data/vendor/assets/javascripts/plugins.js +16 -0
- data/vendor/assets/stylesheets/bootstrap/_accordion.scss +28 -0
- data/vendor/assets/stylesheets/bootstrap/_alerts.scss +70 -0
- data/vendor/assets/stylesheets/bootstrap/_breadcrumbs.scss +22 -0
- data/vendor/assets/stylesheets/bootstrap/_button-groups.scss +147 -0
- data/vendor/assets/stylesheets/bootstrap/_buttons.scss +183 -0
- data/vendor/assets/stylesheets/bootstrap/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/bootstrap/_close.scss +18 -0
- data/vendor/assets/stylesheets/bootstrap/_code.scss +57 -0
- data/vendor/assets/stylesheets/bootstrap/_component-animations.scss +18 -0
- data/vendor/assets/stylesheets/bootstrap/_dropdowns.scss +130 -0
- data/vendor/assets/stylesheets/bootstrap/_forms.scss +522 -0
- data/vendor/assets/stylesheets/bootstrap/_grid.scss +8 -0
- data/vendor/assets/stylesheets/bootstrap/_hero-unit.scss +20 -0
- data/vendor/assets/stylesheets/bootstrap/_labels.scss +32 -0
- data/vendor/assets/stylesheets/bootstrap/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/bootstrap/_mixins.scss +602 -0
- data/vendor/assets/stylesheets/bootstrap/_modals.scss +84 -0
- data/vendor/assets/stylesheets/bootstrap/_navbar.scss +299 -0
- data/vendor/assets/stylesheets/bootstrap/_navs.scss +353 -0
- data/vendor/assets/stylesheets/bootstrap/_pager.scss +30 -0
- data/vendor/assets/stylesheets/bootstrap/_pagination.scss +55 -0
- data/vendor/assets/stylesheets/bootstrap/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/bootstrap/_progress-bars.scss +95 -0
- data/vendor/assets/stylesheets/bootstrap/_reset.scss +126 -0
- data/vendor/assets/stylesheets/bootstrap/_scaffolding.scss +33 -0
- data/vendor/assets/stylesheets/bootstrap/_sprites.scss +158 -0
- data/vendor/assets/stylesheets/bootstrap/_tables.scss +150 -0
- data/vendor/assets/stylesheets/bootstrap/_thumbnails.scss +35 -0
- data/vendor/assets/stylesheets/bootstrap/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/bootstrap/_type.scss +218 -0
- data/vendor/assets/stylesheets/bootstrap/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/bootstrap/_variables.scss +107 -0
- data/vendor/assets/stylesheets/bootstrap/_wells.scss +17 -0
- data/vendor/assets/stylesheets/bootstrap/bootstrap.scss +66 -0
- data/vendor/assets/stylesheets/bootstrap/responsive.scss +334 -0
- metadata +506 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
// PAGER
|
2
|
+
// -----
|
3
|
+
|
4
|
+
.pager {
|
5
|
+
margin-left: 0;
|
6
|
+
margin-bottom: $baseLineHeight;
|
7
|
+
list-style: none;
|
8
|
+
text-align: center;
|
9
|
+
@include clearfix();
|
10
|
+
}
|
11
|
+
.pager li {
|
12
|
+
display: inline;
|
13
|
+
}
|
14
|
+
.pager a {
|
15
|
+
display: inline-block;
|
16
|
+
padding: 5px 14px;
|
17
|
+
background-color: #fff;
|
18
|
+
border: 1px solid #ddd;
|
19
|
+
@include border-radius(15px);
|
20
|
+
}
|
21
|
+
.pager a:hover {
|
22
|
+
text-decoration: none;
|
23
|
+
background-color: #f5f5f5;
|
24
|
+
}
|
25
|
+
.pager .next a {
|
26
|
+
float: right;
|
27
|
+
}
|
28
|
+
.pager .previous a {
|
29
|
+
float: left;
|
30
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// PAGINATION
|
2
|
+
// ----------
|
3
|
+
|
4
|
+
.pagination {
|
5
|
+
height: $baseLineHeight * 2;
|
6
|
+
margin: $baseLineHeight 0;
|
7
|
+
}
|
8
|
+
.pagination ul {
|
9
|
+
display: inline-block;
|
10
|
+
@include ie7-inline-block();
|
11
|
+
margin-left: 0;
|
12
|
+
margin-bottom: 0;
|
13
|
+
@include border-radius(3px);
|
14
|
+
@include box-shadow(0 1px 2px rgba(0,0,0,.05));
|
15
|
+
}
|
16
|
+
.pagination li {
|
17
|
+
display: inline;
|
18
|
+
}
|
19
|
+
.pagination a {
|
20
|
+
float: left;
|
21
|
+
padding: 0 14px;
|
22
|
+
line-height: ($baseLineHeight * 2) - 2;
|
23
|
+
text-decoration: none;
|
24
|
+
border: 1px solid #ddd;
|
25
|
+
border-left-width: 0;
|
26
|
+
}
|
27
|
+
.pagination a:hover,
|
28
|
+
.pagination .active a {
|
29
|
+
background-color: #f5f5f5;
|
30
|
+
}
|
31
|
+
.pagination .active a {
|
32
|
+
color: $grayLight;
|
33
|
+
cursor: default;
|
34
|
+
}
|
35
|
+
.pagination .disabled a,
|
36
|
+
.pagination .disabled a:hover {
|
37
|
+
color: $grayLight;
|
38
|
+
background-color: transparent;
|
39
|
+
cursor: default;
|
40
|
+
}
|
41
|
+
.pagination li:first-child a {
|
42
|
+
border-left-width: 1px;
|
43
|
+
@include border-radius(3px 0 0 3px);
|
44
|
+
}
|
45
|
+
.pagination li:last-child a {
|
46
|
+
@include border-radius(0 3px 3px 0);
|
47
|
+
}
|
48
|
+
|
49
|
+
// Centered
|
50
|
+
.pagination-centered {
|
51
|
+
text-align: center;
|
52
|
+
}
|
53
|
+
.pagination-right {
|
54
|
+
text-align: right;
|
55
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
// POPOVERS
|
2
|
+
// --------
|
3
|
+
|
4
|
+
.popover {
|
5
|
+
position: absolute;
|
6
|
+
top: 0;
|
7
|
+
left: 0;
|
8
|
+
z-index: $zindexPopover;
|
9
|
+
display: none;
|
10
|
+
padding: 5px;
|
11
|
+
&.top { margin-top: -5px; }
|
12
|
+
&.right { margin-left: 5px; }
|
13
|
+
&.bottom { margin-top: 5px; }
|
14
|
+
&.left { margin-left: -5px; }
|
15
|
+
&.top .arrow { @include popoverArrow-top(); }
|
16
|
+
&.right .arrow { @include popoverArrow-right(); }
|
17
|
+
&.bottom .arrow { @include popoverArrow-bottom(); }
|
18
|
+
&.left .arrow { @include popoverArrow-left(); }
|
19
|
+
.arrow {
|
20
|
+
position: absolute;
|
21
|
+
width: 0;
|
22
|
+
height: 0;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
.popover-inner {
|
26
|
+
padding: 3px;
|
27
|
+
width: 280px;
|
28
|
+
overflow: hidden;
|
29
|
+
background: $black; // has to be full background declaration for IE fallback
|
30
|
+
background: rgba(0,0,0,.8);
|
31
|
+
@include border-radius(6px);
|
32
|
+
@include box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
33
|
+
}
|
34
|
+
.popover-title {
|
35
|
+
padding: 9px 15px;
|
36
|
+
line-height: 1;
|
37
|
+
background-color: #f5f5f5;
|
38
|
+
border-bottom:1px solid #eee;
|
39
|
+
@include border-radius(3px 3px 0 0);
|
40
|
+
}
|
41
|
+
.popover-content {
|
42
|
+
padding: 14px;
|
43
|
+
background-color: $white;
|
44
|
+
@include border-radius(0 0 3px 3px);
|
45
|
+
@include background-clip(padding-box);
|
46
|
+
p, ul, ol {
|
47
|
+
margin-bottom: 0;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// PROGRESS BARS
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
|
5
|
+
// ANIMATIONS
|
6
|
+
// ----------
|
7
|
+
|
8
|
+
// Webkit
|
9
|
+
@-webkit-keyframes progress-bar-stripes {
|
10
|
+
from { background-position: 0 0; }
|
11
|
+
to { background-position: 40px 0; }
|
12
|
+
}
|
13
|
+
|
14
|
+
// Firefox
|
15
|
+
@-moz-keyframes progress-bar-stripes {
|
16
|
+
from { background-position: 0 0; }
|
17
|
+
to { background-position: 40px 0; }
|
18
|
+
}
|
19
|
+
|
20
|
+
// Spec
|
21
|
+
@keyframes progress-bar-stripes {
|
22
|
+
from { background-position: 0 0; }
|
23
|
+
to { background-position: 40px 0; }
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
// THE BARS
|
29
|
+
// --------
|
30
|
+
|
31
|
+
// Outer container
|
32
|
+
.progress {
|
33
|
+
overflow: hidden;
|
34
|
+
height: 18px;
|
35
|
+
margin-bottom: 18px;
|
36
|
+
@include gradient-vertical(#f5f5f5, #f9f9f9);
|
37
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
38
|
+
@include border-radius(4px);
|
39
|
+
}
|
40
|
+
|
41
|
+
// Bar of progress
|
42
|
+
.progress .bar {
|
43
|
+
width: 0%;
|
44
|
+
height: 18px;
|
45
|
+
color: $white;
|
46
|
+
font-size: 12px;
|
47
|
+
text-align: center;
|
48
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
49
|
+
@include gradient-vertical(#149bdf, #0480be);
|
50
|
+
@include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
51
|
+
@include box-sizing(border-box);
|
52
|
+
@include transition(width .6s ease);
|
53
|
+
}
|
54
|
+
|
55
|
+
// Striped bars
|
56
|
+
.progress-striped .bar {
|
57
|
+
@include gradient-striped(#62c462);
|
58
|
+
@include background-size(40px 40px);
|
59
|
+
}
|
60
|
+
|
61
|
+
// Call animation for the active one
|
62
|
+
.progress.active .bar {
|
63
|
+
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
64
|
+
-moz-animation: progress-bar-stripes 2s linear infinite;
|
65
|
+
animation: progress-bar-stripes 2s linear infinite;
|
66
|
+
}
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
// COLORS
|
71
|
+
// ------
|
72
|
+
|
73
|
+
// Danger (red)
|
74
|
+
.progress-danger .bar {
|
75
|
+
@include gradient-vertical(#ee5f5b, #c43c35);
|
76
|
+
}
|
77
|
+
.progress-danger.progress-striped .bar {
|
78
|
+
@include gradient-striped(#ee5f5b);
|
79
|
+
}
|
80
|
+
|
81
|
+
// Success (green)
|
82
|
+
.progress-success .bar {
|
83
|
+
@include gradient-vertical(#62c462, #57a957);
|
84
|
+
}
|
85
|
+
.progress-success.progress-striped .bar {
|
86
|
+
@include gradient-striped(#62c462);
|
87
|
+
}
|
88
|
+
|
89
|
+
// Info (teal)
|
90
|
+
.progress.info .bar {
|
91
|
+
@include gradient-vertical(#5bc0de, #339bb9);
|
92
|
+
}
|
93
|
+
.progress-info.progress-striped .bar {
|
94
|
+
@include gradient-striped(#5bc0de);
|
95
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
// Reset.scss
|
2
|
+
// Adapted from Normalize.css http://github.com/necolas/normalize.css
|
3
|
+
// ------------------------------------------------------------------------
|
4
|
+
|
5
|
+
// Display in IE6-9 and FF3
|
6
|
+
// -------------------------
|
7
|
+
|
8
|
+
article,
|
9
|
+
aside,
|
10
|
+
details,
|
11
|
+
figcaption,
|
12
|
+
figure,
|
13
|
+
footer,
|
14
|
+
header,
|
15
|
+
hgroup,
|
16
|
+
nav,
|
17
|
+
section {
|
18
|
+
display: block;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Display block in IE6-9 and FF3
|
22
|
+
// -------------------------
|
23
|
+
|
24
|
+
audio,
|
25
|
+
canvas,
|
26
|
+
video {
|
27
|
+
display: inline-block;
|
28
|
+
*display: inline;
|
29
|
+
*zoom: 1;
|
30
|
+
}
|
31
|
+
|
32
|
+
// Prevents modern browsers from displaying 'audio' without controls
|
33
|
+
// -------------------------
|
34
|
+
|
35
|
+
audio:not([controls]) {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
// Base settings
|
40
|
+
// -------------------------
|
41
|
+
|
42
|
+
html {
|
43
|
+
font-size: 100%;
|
44
|
+
-webkit-text-size-adjust: 100%;
|
45
|
+
-ms-text-size-adjust: 100%;
|
46
|
+
}
|
47
|
+
// Focus states
|
48
|
+
a:focus {
|
49
|
+
@include tab-focus();
|
50
|
+
}
|
51
|
+
// Hover & Active
|
52
|
+
a:hover,
|
53
|
+
a:active {
|
54
|
+
outline: 0;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Prevents sub and sup affecting line-height in all browsers
|
58
|
+
// -------------------------
|
59
|
+
|
60
|
+
sub,
|
61
|
+
sup {
|
62
|
+
position: relative;
|
63
|
+
font-size: 75%;
|
64
|
+
line-height: 0;
|
65
|
+
vertical-align: baseline;
|
66
|
+
}
|
67
|
+
sup {
|
68
|
+
top: -0.5em;
|
69
|
+
}
|
70
|
+
sub {
|
71
|
+
bottom: -0.25em;
|
72
|
+
}
|
73
|
+
|
74
|
+
// Img border in a's and image quality
|
75
|
+
// -------------------------
|
76
|
+
|
77
|
+
img {
|
78
|
+
max-width: 100%;
|
79
|
+
height: auto;
|
80
|
+
border: 0;
|
81
|
+
-ms-interpolation-mode: bicubic;
|
82
|
+
}
|
83
|
+
|
84
|
+
// Forms
|
85
|
+
// -------------------------
|
86
|
+
|
87
|
+
// Font size in all browsers, margin changes, misc consistency
|
88
|
+
button,
|
89
|
+
input,
|
90
|
+
select,
|
91
|
+
textarea {
|
92
|
+
margin: 0;
|
93
|
+
font-size: 100%;
|
94
|
+
vertical-align: middle;
|
95
|
+
}
|
96
|
+
button,
|
97
|
+
input {
|
98
|
+
*overflow: visible; // Inner spacing ie IE6/7
|
99
|
+
line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
|
100
|
+
}
|
101
|
+
button::-moz-focus-inner,
|
102
|
+
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
|
103
|
+
padding: 0;
|
104
|
+
border: 0;
|
105
|
+
}
|
106
|
+
button,
|
107
|
+
input[type="button"],
|
108
|
+
input[type="reset"],
|
109
|
+
input[type="submit"] {
|
110
|
+
cursor: pointer; // Cursors on all buttons applied consistently
|
111
|
+
-webkit-appearance: button; // Style clickable inputs in iOS
|
112
|
+
}
|
113
|
+
input[type="search"] { // Appearance in Safari/Chrome
|
114
|
+
-webkit-appearance: textfield;
|
115
|
+
-webkit-box-sizing: content-box;
|
116
|
+
-moz-box-sizing: content-box;
|
117
|
+
box-sizing: content-box;
|
118
|
+
}
|
119
|
+
input[type="search"]::-webkit-search-decoration,
|
120
|
+
input[type="search"]::-webkit-search-cancel-button {
|
121
|
+
-webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
|
122
|
+
}
|
123
|
+
textarea {
|
124
|
+
overflow: auto; // Remove vertical scrollbar in IE6-9
|
125
|
+
vertical-align: top; // Readability and alignment cross-browser
|
126
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Scaffolding
|
2
|
+
// Basic and global styles for generating a grid system, structural layout, and page templates
|
3
|
+
// -------------------------------------------------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// STRUCTURAL LAYOUT
|
7
|
+
// -----------------
|
8
|
+
|
9
|
+
.clearfix {
|
10
|
+
@include clearfix();
|
11
|
+
}
|
12
|
+
|
13
|
+
body {
|
14
|
+
margin: 0;
|
15
|
+
font-family: $baseFontFamily;
|
16
|
+
font-size: $baseFontSize;
|
17
|
+
line-height: $baseLineHeight;
|
18
|
+
color: $textColor;
|
19
|
+
background-color: $white;
|
20
|
+
}
|
21
|
+
|
22
|
+
|
23
|
+
// LINKS
|
24
|
+
// -----
|
25
|
+
|
26
|
+
a {
|
27
|
+
color: $linkColor;
|
28
|
+
text-decoration: none;
|
29
|
+
}
|
30
|
+
a:hover {
|
31
|
+
color: $linkColorHover;
|
32
|
+
text-decoration: underline;
|
33
|
+
}
|
@@ -0,0 +1,158 @@
|
|
1
|
+
// SPRITES
|
2
|
+
// Glyphs and icons for buttons, nav, and more
|
3
|
+
// -------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// ICONS
|
7
|
+
// -----
|
8
|
+
|
9
|
+
// All icons receive the styles of the <i> tag with a base class
|
10
|
+
// of .i and are then given a unique class to add width, height,
|
11
|
+
// and background-position. Your resulting HTML will look like
|
12
|
+
// <i class="icon-inbox"></i>.
|
13
|
+
|
14
|
+
// For the white version of the icons, just add the .icon-white class:
|
15
|
+
// <i class="icon-inbox icon-white"></i>
|
16
|
+
|
17
|
+
[class^="icon-"],
|
18
|
+
[class*=" icon-"] {
|
19
|
+
display: inline-block;
|
20
|
+
width: 14px;
|
21
|
+
height: 14px;
|
22
|
+
line-height: 14px;
|
23
|
+
vertical-align: text-top;
|
24
|
+
background-image: url($iconSpritePath);
|
25
|
+
background-position: 14px 14px;
|
26
|
+
background-repeat: no-repeat;
|
27
|
+
|
28
|
+
@include ie7-restore-right-whitespace();
|
29
|
+
}
|
30
|
+
.icon-white {
|
31
|
+
background-image: url($iconWhiteSpritePath);
|
32
|
+
}
|
33
|
+
|
34
|
+
.icon-glass { background-position: 0 0; }
|
35
|
+
.icon-music { background-position: -24px 0; }
|
36
|
+
.icon-search { background-position: -48px 0; }
|
37
|
+
.icon-envelope { background-position: -72px 0; }
|
38
|
+
.icon-heart { background-position: -96px 0; }
|
39
|
+
.icon-star { background-position: -120px 0; }
|
40
|
+
.icon-star-empty { background-position: -144px 0; }
|
41
|
+
.icon-user { background-position: -168px 0; }
|
42
|
+
.icon-film { background-position: -192px 0; }
|
43
|
+
.icon-th-large { background-position: -216px 0; }
|
44
|
+
.icon-th { background-position: -240px 0; }
|
45
|
+
.icon-th-list { background-position: -264px 0; }
|
46
|
+
.icon-ok { background-position: -288px 0; }
|
47
|
+
.icon-remove { background-position: -312px 0; }
|
48
|
+
.icon-zoom-in { background-position: -336px 0; }
|
49
|
+
.icon-zoom-out { background-position: -360px 0; }
|
50
|
+
.icon-off { background-position: -384px 0; }
|
51
|
+
.icon-signal { background-position: -408px 0; }
|
52
|
+
.icon-cog { background-position: -432px 0; }
|
53
|
+
.icon-trash { background-position: -456px 0; }
|
54
|
+
|
55
|
+
.icon-home { background-position: 0 -24px; }
|
56
|
+
.icon-file { background-position: -24px -24px; }
|
57
|
+
.icon-time { background-position: -48px -24px; }
|
58
|
+
.icon-road { background-position: -72px -24px; }
|
59
|
+
.icon-download-alt { background-position: -96px -24px; }
|
60
|
+
.icon-download { background-position: -120px -24px; }
|
61
|
+
.icon-upload { background-position: -144px -24px; }
|
62
|
+
.icon-inbox { background-position: -168px -24px; }
|
63
|
+
.icon-play-circle { background-position: -192px -24px; }
|
64
|
+
.icon-repeat { background-position: -216px -24px; }
|
65
|
+
.icon-refresh { background-position: -240px -24px; }
|
66
|
+
.icon-list-alt { background-position: -264px -24px; }
|
67
|
+
.icon-lock { background-position: -287px -24px; } // 1px off
|
68
|
+
.icon-flag { background-position: -312px -24px; }
|
69
|
+
.icon-headphones { background-position: -336px -24px; }
|
70
|
+
.icon-volume-off { background-position: -360px -24px; }
|
71
|
+
.icon-volume-down { background-position: -384px -24px; }
|
72
|
+
.icon-volume-up { background-position: -408px -24px; }
|
73
|
+
.icon-qrcode { background-position: -432px -24px; }
|
74
|
+
.icon-barcode { background-position: -456px -24px; }
|
75
|
+
|
76
|
+
.icon-tag { background-position: 0 -48px; }
|
77
|
+
.icon-tags { background-position: -25px -48px; } // 1px off
|
78
|
+
.icon-book { background-position: -48px -48px; }
|
79
|
+
.icon-bookmark { background-position: -72px -48px; }
|
80
|
+
.icon-print { background-position: -96px -48px; }
|
81
|
+
.icon-camera { background-position: -120px -48px; }
|
82
|
+
.icon-font { background-position: -144px -48px; }
|
83
|
+
.icon-bold { background-position: -167px -48px; } // 1px off
|
84
|
+
.icon-italic { background-position: -192px -48px; }
|
85
|
+
.icon-text-height { background-position: -216px -48px; }
|
86
|
+
.icon-text-width { background-position: -240px -48px; }
|
87
|
+
.icon-align-left { background-position: -264px -48px; }
|
88
|
+
.icon-align-center { background-position: -288px -48px; }
|
89
|
+
.icon-align-right { background-position: -312px -48px; }
|
90
|
+
.icon-align-justify { background-position: -336px -48px; }
|
91
|
+
.icon-list { background-position: -360px -48px; }
|
92
|
+
.icon-indent-left { background-position: -384px -48px; }
|
93
|
+
.icon-indent-right { background-position: -408px -48px; }
|
94
|
+
.icon-facetime-video { background-position: -432px -48px; }
|
95
|
+
.icon-picture { background-position: -456px -48px; }
|
96
|
+
|
97
|
+
.icon-pencil { background-position: 0 -72px; }
|
98
|
+
.icon-map-marker { background-position: -24px -72px; }
|
99
|
+
.icon-adjust { background-position: -48px -72px; }
|
100
|
+
.icon-tint { background-position: -72px -72px; }
|
101
|
+
.icon-edit { background-position: -96px -72px; }
|
102
|
+
.icon-share { background-position: -120px -72px; }
|
103
|
+
.icon-check { background-position: -144px -72px; }
|
104
|
+
.icon-move { background-position: -168px -72px; }
|
105
|
+
.icon-step-backward { background-position: -192px -72px; }
|
106
|
+
.icon-fast-backward { background-position: -216px -72px; }
|
107
|
+
.icon-backward { background-position: -240px -72px; }
|
108
|
+
.icon-play { background-position: -264px -72px; }
|
109
|
+
.icon-pause { background-position: -288px -72px; }
|
110
|
+
.icon-stop { background-position: -312px -72px; }
|
111
|
+
.icon-forward { background-position: -336px -72px; }
|
112
|
+
.icon-fast-forward { background-position: -360px -72px; }
|
113
|
+
.icon-step-forward { background-position: -384px -72px; }
|
114
|
+
.icon-eject { background-position: -408px -72px; }
|
115
|
+
.icon-chevron-left { background-position: -432px -72px; }
|
116
|
+
.icon-chevron-right { background-position: -456px -72px; }
|
117
|
+
|
118
|
+
.icon-plus-sign { background-position: 0 -96px; }
|
119
|
+
.icon-minus-sign { background-position: -24px -96px; }
|
120
|
+
.icon-remove-sign { background-position: -48px -96px; }
|
121
|
+
.icon-ok-sign { background-position: -72px -96px; }
|
122
|
+
.icon-question-sign { background-position: -96px -96px; }
|
123
|
+
.icon-info-sign { background-position: -120px -96px; }
|
124
|
+
.icon-screenshot { background-position: -144px -96px; }
|
125
|
+
.icon-remove-circle { background-position: -168px -96px; }
|
126
|
+
.icon-ok-circle { background-position: -192px -96px; }
|
127
|
+
.icon-ban-circle { background-position: -216px -96px; }
|
128
|
+
.icon-arrow-left { background-position: -240px -96px; }
|
129
|
+
.icon-arrow-right { background-position: -264px -96px; }
|
130
|
+
.icon-arrow-up { background-position: -289px -96px; } // 1px off
|
131
|
+
.icon-arrow-down { background-position: -312px -96px; }
|
132
|
+
.icon-share-alt { background-position: -336px -96px; }
|
133
|
+
.icon-resize-full { background-position: -360px -96px; }
|
134
|
+
.icon-resize-small { background-position: -384px -96px; }
|
135
|
+
.icon-plus { background-position: -408px -96px; }
|
136
|
+
.icon-minus { background-position: -433px -96px; }
|
137
|
+
.icon-asterisk { background-position: -456px -96px; }
|
138
|
+
|
139
|
+
.icon-exclamation-sign { background-position: 0 -120px; }
|
140
|
+
.icon-gift { background-position: -24px -120px; }
|
141
|
+
.icon-leaf { background-position: -48px -120px; }
|
142
|
+
.icon-fire { background-position: -72px -120px; }
|
143
|
+
.icon-eye-open { background-position: -96px -120px; }
|
144
|
+
.icon-eye-close { background-position: -120px -120px; }
|
145
|
+
.icon-warning-sign { background-position: -144px -120px; }
|
146
|
+
.icon-plane { background-position: -168px -120px; }
|
147
|
+
.icon-calendar { background-position: -192px -120px; }
|
148
|
+
.icon-random { background-position: -216px -120px; }
|
149
|
+
.icon-comment { background-position: -240px -120px; }
|
150
|
+
.icon-magnet { background-position: -264px -120px; }
|
151
|
+
.icon-chevron-up { background-position: -288px -120px; }
|
152
|
+
.icon-chevron-down { background-position: -313px -119px; } // 1px off
|
153
|
+
.icon-retweet { background-position: -336px -120px; }
|
154
|
+
.icon-shopping-cart { background-position: -360px -120px; }
|
155
|
+
.icon-folder-close { background-position: -384px -120px; }
|
156
|
+
.icon-folder-open { background-position: -408px -120px; }
|
157
|
+
.icon-resize-vertical { background-position: -432px -119px; }
|
158
|
+
.icon-resize-horizontal { background-position: -456px -118px; }
|