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,150 @@
|
|
1
|
+
//
|
2
|
+
// Tables.scss
|
3
|
+
// Tables for, you guessed it, tabular data
|
4
|
+
// ----------------------------------------
|
5
|
+
|
6
|
+
|
7
|
+
// BASE TABLES
|
8
|
+
// -----------------
|
9
|
+
|
10
|
+
table {
|
11
|
+
max-width: 100%;
|
12
|
+
border-collapse: collapse;
|
13
|
+
border-spacing: 0;
|
14
|
+
}
|
15
|
+
|
16
|
+
// BASELINE STYLES
|
17
|
+
// ---------------
|
18
|
+
|
19
|
+
.table {
|
20
|
+
width: 100%;
|
21
|
+
margin-bottom: $baseLineHeight;
|
22
|
+
// Cells
|
23
|
+
th,
|
24
|
+
td {
|
25
|
+
padding: 8px;
|
26
|
+
line-height: $baseLineHeight;
|
27
|
+
text-align: left;
|
28
|
+
vertical-align: top;
|
29
|
+
border-top: 1px solid #ddd;
|
30
|
+
}
|
31
|
+
th {
|
32
|
+
font-weight: bold;
|
33
|
+
}
|
34
|
+
// Bottom align for column headings
|
35
|
+
thead th {
|
36
|
+
vertical-align: bottom;
|
37
|
+
}
|
38
|
+
// Remove top border from thead by default
|
39
|
+
thead:first-child tr th,
|
40
|
+
thead:first-child tr td {
|
41
|
+
border-top: 0;
|
42
|
+
}
|
43
|
+
// Account for multiple tbody instances
|
44
|
+
tbody + tbody {
|
45
|
+
border-top: 2px solid #ddd;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
// CONDENSED TABLE W/ HALF PADDING
|
52
|
+
// -------------------------------
|
53
|
+
|
54
|
+
.table-condensed {
|
55
|
+
th,
|
56
|
+
td {
|
57
|
+
padding: 4px 5px;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
// BORDERED VERSION
|
63
|
+
// ----------------
|
64
|
+
|
65
|
+
.table-bordered {
|
66
|
+
border: 1px solid #ddd;
|
67
|
+
border-collapse: separate; // Done so we can round those corners!
|
68
|
+
*border-collapse: collapsed; // IE7 can't round corners anyway
|
69
|
+
@include border-radius(4px);
|
70
|
+
th + th,
|
71
|
+
td + td,
|
72
|
+
th + td,
|
73
|
+
td + th {
|
74
|
+
border-left: 1px solid #ddd;
|
75
|
+
}
|
76
|
+
// Prevent a double border
|
77
|
+
thead:first-child tr:first-child th,
|
78
|
+
tbody:first-child tr:first-child th,
|
79
|
+
tbody:first-child tr:first-child td {
|
80
|
+
border-top: 0;
|
81
|
+
}
|
82
|
+
// For first th or td in the first row in the first thead or tbody
|
83
|
+
thead:first-child tr:first-child th:first-child,
|
84
|
+
tbody:first-child tr:first-child td:first-child {
|
85
|
+
@include border-radius(4px 0 0 0);
|
86
|
+
}
|
87
|
+
thead:first-child tr:first-child th:last-child,
|
88
|
+
tbody:first-child tr:first-child td:last-child {
|
89
|
+
@include border-radius(0 4px 0 0);
|
90
|
+
}
|
91
|
+
// For first th or td in the first row in the first thead or tbody
|
92
|
+
thead:last-child tr:last-child th:first-child,
|
93
|
+
tbody:last-child tr:last-child td:first-child {
|
94
|
+
@include border-radius(0 0 0 4px);
|
95
|
+
}
|
96
|
+
thead:last-child tr:last-child th:last-child,
|
97
|
+
tbody:last-child tr:last-child td:last-child {
|
98
|
+
@include border-radius(0 0 4px 0);
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
// ZEBRA-STRIPING
|
104
|
+
// --------------
|
105
|
+
|
106
|
+
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
107
|
+
.table-striped {
|
108
|
+
tbody {
|
109
|
+
tr:nth-child(odd) td,
|
110
|
+
tr:nth-child(odd) th {
|
111
|
+
background-color: #f9f9f9;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
// HOVER EFFECT
|
118
|
+
// ------------
|
119
|
+
// Placed here since it has to come after the potential zebra striping
|
120
|
+
.table {
|
121
|
+
tbody tr:hover td,
|
122
|
+
tbody tr:hover th {
|
123
|
+
background-color: #f5f5f5;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
// TABLE CELL SIZING
|
129
|
+
// -----------------
|
130
|
+
|
131
|
+
// Change the columns
|
132
|
+
@mixin tableColumns($columnSpan: 1) {
|
133
|
+
float: none;
|
134
|
+
width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 16;
|
135
|
+
margin-left: 0;
|
136
|
+
}
|
137
|
+
table {
|
138
|
+
.span1 { @include tableColumns(1); }
|
139
|
+
.span2 { @include tableColumns(2); }
|
140
|
+
.span3 { @include tableColumns(3); }
|
141
|
+
.span4 { @include tableColumns(4); }
|
142
|
+
.span5 { @include tableColumns(5); }
|
143
|
+
.span6 { @include tableColumns(6); }
|
144
|
+
.span7 { @include tableColumns(7); }
|
145
|
+
.span8 { @include tableColumns(8); }
|
146
|
+
.span9 { @include tableColumns(9); }
|
147
|
+
.span10 { @include tableColumns(10); }
|
148
|
+
.span11 { @include tableColumns(11); }
|
149
|
+
.span12 { @include tableColumns(12); }
|
150
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// THUMBNAILS
|
2
|
+
// ----------
|
3
|
+
|
4
|
+
.thumbnails {
|
5
|
+
margin-left: -$gridGutterWidth;
|
6
|
+
list-style: none;
|
7
|
+
@include clearfix();
|
8
|
+
}
|
9
|
+
.thumbnails > li {
|
10
|
+
float: left;
|
11
|
+
margin: 0 0 $baseLineHeight $gridGutterWidth;
|
12
|
+
}
|
13
|
+
.thumbnail {
|
14
|
+
display: block;
|
15
|
+
padding: 4px;
|
16
|
+
line-height: 1;
|
17
|
+
border: 1px solid #ddd;
|
18
|
+
@include border-radius(4px);
|
19
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,.075));
|
20
|
+
}
|
21
|
+
// Add a hover state for linked versions only
|
22
|
+
a.thumbnail:hover {
|
23
|
+
border-color: $linkColor;
|
24
|
+
@include box-shadow(0 1px 4px rgba(0,105,214,.25));
|
25
|
+
}
|
26
|
+
// Images and captions
|
27
|
+
.thumbnail > img {
|
28
|
+
display: block;
|
29
|
+
max-width: 100%;
|
30
|
+
margin-left: auto;
|
31
|
+
margin-right: auto;
|
32
|
+
}
|
33
|
+
.thumbnail .caption {
|
34
|
+
padding: 9px;
|
35
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
// TOOLTIP
|
2
|
+
// -------
|
3
|
+
|
4
|
+
.tooltip {
|
5
|
+
position: absolute;
|
6
|
+
z-index: $zindexTooltip;
|
7
|
+
display: block;
|
8
|
+
visibility: visible;
|
9
|
+
padding: 5px;
|
10
|
+
font-size: 11px;
|
11
|
+
@include opacity(0);
|
12
|
+
&.in { @include opacity(80); }
|
13
|
+
&.top { margin-top: -2px; }
|
14
|
+
&.right { margin-left: 2px; }
|
15
|
+
&.bottom { margin-top: 2px; }
|
16
|
+
&.left { margin-left: -2px; }
|
17
|
+
&.top .tooltip-arrow { @include popoverArrow-top(); }
|
18
|
+
&.left .tooltip-arrow { @include popoverArrow-left(); }
|
19
|
+
&.bottom .tooltip-arrow { @include popoverArrow-bottom(); }
|
20
|
+
&.right .tooltip-arrow { @include popoverArrow-right(); }
|
21
|
+
}
|
22
|
+
.tooltip-inner {
|
23
|
+
max-width: 200px;
|
24
|
+
padding: 3px 8px;
|
25
|
+
color: $white;
|
26
|
+
text-align: center;
|
27
|
+
text-decoration: none;
|
28
|
+
background-color: $black;
|
29
|
+
@include border-radius(4px);
|
30
|
+
}
|
31
|
+
.tooltip-arrow {
|
32
|
+
position: absolute;
|
33
|
+
width: 0;
|
34
|
+
height: 0;
|
35
|
+
}
|
@@ -0,0 +1,218 @@
|
|
1
|
+
// Typography.scss
|
2
|
+
// Headings, body text, lists, code, and more for a versatile and durable typography system
|
3
|
+
// ----------------------------------------------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// BODY TEXT
|
7
|
+
// ---------
|
8
|
+
|
9
|
+
p {
|
10
|
+
margin: 0 0 $baseLineHeight / 2;
|
11
|
+
font-family: $baseFontFamily;
|
12
|
+
font-size: $baseFontSize;
|
13
|
+
line-height: $baseLineHeight;
|
14
|
+
small {
|
15
|
+
font-size: $baseFontSize - 2;
|
16
|
+
color: $grayLight;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
.lead {
|
20
|
+
margin-bottom: $baseLineHeight;
|
21
|
+
font-size: 20px;
|
22
|
+
font-weight: 200;
|
23
|
+
line-height: $baseLineHeight * 1.5;
|
24
|
+
}
|
25
|
+
|
26
|
+
// HEADINGS
|
27
|
+
// --------
|
28
|
+
|
29
|
+
h1, h2, h3, h4, h5, h6 {
|
30
|
+
margin: 0;
|
31
|
+
font-weight: bold;
|
32
|
+
color: $grayDark;
|
33
|
+
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
34
|
+
small {
|
35
|
+
font-weight: normal;
|
36
|
+
color: $grayLight;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
h1 {
|
40
|
+
font-size: 30px;
|
41
|
+
line-height: $baseLineHeight * 2;
|
42
|
+
small {
|
43
|
+
font-size: 18px;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
h2 {
|
47
|
+
font-size: 24px;
|
48
|
+
line-height: $baseLineHeight * 2;
|
49
|
+
small {
|
50
|
+
font-size: 18px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
h3 {
|
54
|
+
line-height: $baseLineHeight * 1.5;
|
55
|
+
font-size: 18px;
|
56
|
+
small {
|
57
|
+
font-size: 14px;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
h4, h5, h6 {
|
61
|
+
line-height: $baseLineHeight;
|
62
|
+
}
|
63
|
+
h4 {
|
64
|
+
font-size: 14px;
|
65
|
+
small {
|
66
|
+
font-size: 12px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
h5 {
|
70
|
+
font-size: 12px;
|
71
|
+
}
|
72
|
+
h6 {
|
73
|
+
font-size: 11px;
|
74
|
+
color: $grayLight;
|
75
|
+
text-transform: uppercase;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Page header
|
79
|
+
.page-header {
|
80
|
+
padding-bottom: $baseLineHeight - 1;
|
81
|
+
margin: $baseLineHeight 0;
|
82
|
+
border-bottom: 1px solid $grayLighter;
|
83
|
+
}
|
84
|
+
.page-header h1 {
|
85
|
+
line-height: 1;
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
// LISTS
|
91
|
+
// -----
|
92
|
+
|
93
|
+
// Unordered and Ordered lists
|
94
|
+
ul, ol {
|
95
|
+
padding: 0;
|
96
|
+
margin: 0 0 $baseLineHeight / 2 25px;
|
97
|
+
}
|
98
|
+
ul ul,
|
99
|
+
ul ol,
|
100
|
+
ol ol,
|
101
|
+
ol ul {
|
102
|
+
margin-bottom: 0;
|
103
|
+
}
|
104
|
+
ul {
|
105
|
+
list-style: disc;
|
106
|
+
}
|
107
|
+
ol {
|
108
|
+
list-style: decimal;
|
109
|
+
}
|
110
|
+
li {
|
111
|
+
line-height: $baseLineHeight;
|
112
|
+
}
|
113
|
+
ul.unstyled,
|
114
|
+
ol.unstyled {
|
115
|
+
margin-left: 0;
|
116
|
+
list-style: none;
|
117
|
+
}
|
118
|
+
|
119
|
+
// Description Lists
|
120
|
+
dl {
|
121
|
+
margin-bottom: $baseLineHeight;
|
122
|
+
}
|
123
|
+
dt,
|
124
|
+
dd {
|
125
|
+
line-height: $baseLineHeight;
|
126
|
+
}
|
127
|
+
dt {
|
128
|
+
font-weight: bold;
|
129
|
+
}
|
130
|
+
dd {
|
131
|
+
margin-left: $baseLineHeight / 2;
|
132
|
+
}
|
133
|
+
|
134
|
+
// MISC
|
135
|
+
// ----
|
136
|
+
|
137
|
+
// Horizontal rules
|
138
|
+
hr {
|
139
|
+
margin: $baseLineHeight 0;
|
140
|
+
border: 0;
|
141
|
+
border-top: 1px solid $hrBorder;
|
142
|
+
border-bottom: 1px solid $white;
|
143
|
+
}
|
144
|
+
|
145
|
+
// Emphasis
|
146
|
+
strong {
|
147
|
+
font-weight: bold;
|
148
|
+
}
|
149
|
+
em {
|
150
|
+
font-style: italic;
|
151
|
+
}
|
152
|
+
.muted {
|
153
|
+
color: $grayLight;
|
154
|
+
}
|
155
|
+
|
156
|
+
// Abbreviations and acronyms
|
157
|
+
abbr {
|
158
|
+
font-size: 90%;
|
159
|
+
text-transform: uppercase;
|
160
|
+
border-bottom: 1px dotted #ddd;
|
161
|
+
cursor: help;
|
162
|
+
}
|
163
|
+
|
164
|
+
// Blockquotes
|
165
|
+
blockquote {
|
166
|
+
padding: 0 0 0 15px;
|
167
|
+
margin: 0 0 $baseLineHeight;
|
168
|
+
border-left: 5px solid $grayLighter;
|
169
|
+
p {
|
170
|
+
margin-bottom: 0;
|
171
|
+
@include font-shorthand(16px,300,$baseLineHeight * 1.25);
|
172
|
+
}
|
173
|
+
small {
|
174
|
+
display: block;
|
175
|
+
line-height: $baseLineHeight;
|
176
|
+
color: $grayLight;
|
177
|
+
&:before {
|
178
|
+
content: '\2014 \00A0';
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
// Float right with text-align: right
|
183
|
+
&.pull-right {
|
184
|
+
float: right;
|
185
|
+
padding-left: 0;
|
186
|
+
padding-right: 15px;
|
187
|
+
border-left: 0;
|
188
|
+
border-right: 5px solid $grayLighter;
|
189
|
+
p,
|
190
|
+
small {
|
191
|
+
text-align: right;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
// Quotes
|
197
|
+
q:before,
|
198
|
+
q:after,
|
199
|
+
blockquote:before,
|
200
|
+
blockquote:after {
|
201
|
+
content: "";
|
202
|
+
}
|
203
|
+
|
204
|
+
// Addresses
|
205
|
+
address {
|
206
|
+
display: block;
|
207
|
+
margin-bottom: $baseLineHeight;
|
208
|
+
line-height: $baseLineHeight;
|
209
|
+
font-style: normal;
|
210
|
+
}
|
211
|
+
|
212
|
+
// Misc
|
213
|
+
small {
|
214
|
+
font-size: 100%;
|
215
|
+
}
|
216
|
+
cite {
|
217
|
+
font-style: normal;
|
218
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
// UTILITY CLASSES
|
2
|
+
// ---------------
|
3
|
+
|
4
|
+
// Quick floats
|
5
|
+
.pull-right {
|
6
|
+
float: right;
|
7
|
+
}
|
8
|
+
.pull-left {
|
9
|
+
float: left;
|
10
|
+
}
|
11
|
+
|
12
|
+
// Toggling content
|
13
|
+
.hide {
|
14
|
+
display: none;
|
15
|
+
}
|
16
|
+
.show {
|
17
|
+
display: block;
|
18
|
+
}
|
19
|
+
|
20
|
+
// Visibility
|
21
|
+
.invisible {
|
22
|
+
visibility: hidden;
|
23
|
+
}
|