bastion 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.jshintrc +35 -0
- data/Gruntfile.js +24 -0
- data/LICENSE +339 -0
- data/README.md +8 -0
- data/Rakefile +53 -0
- data/app/assets/javascripts/bastion/auth/auth.module.js +87 -0
- data/app/assets/javascripts/bastion/auth/authorization.service.js +48 -0
- data/app/assets/javascripts/bastion/bastion-bootstrap.js +32 -0
- data/app/assets/javascripts/bastion/bastion-resource.factory.js +39 -0
- data/app/assets/javascripts/bastion/bastion.js +52 -0
- data/app/assets/javascripts/bastion/bastion.module.js +213 -0
- data/app/assets/javascripts/bastion/i18n/README +9 -0
- data/app/assets/javascripts/bastion/i18n/i18n.module.js +24 -0
- data/app/assets/javascripts/bastion/i18n/katello.pot +968 -0
- data/app/assets/javascripts/bastion/i18n/locale/README +1 -0
- data/app/assets/javascripts/bastion/i18n/translate.service.js +14 -0
- data/app/assets/javascripts/bastion/i18n/translations.js +3 -0
- data/app/assets/javascripts/bastion/i18n/zanata.xml +28 -0
- data/app/assets/javascripts/bastion/incubator/alch-alert.directive.js +67 -0
- data/app/assets/javascripts/bastion/incubator/alch-container-scroll.directive.js +44 -0
- data/app/assets/javascripts/bastion/incubator/alch-dropdown.directive.js +28 -0
- data/app/assets/javascripts/bastion/incubator/alch-edit.directive.js +361 -0
- data/app/assets/javascripts/bastion/incubator/alch-flyout.directive.js +19 -0
- data/app/assets/javascripts/bastion/incubator/alch-form-buttons.directive.js +60 -0
- data/app/assets/javascripts/bastion/incubator/alch-form-group.directive.js +87 -0
- data/app/assets/javascripts/bastion/incubator/alch-infinite-scroll.directive.js +84 -0
- data/app/assets/javascripts/bastion/incubator/alch-menu.directive.js +56 -0
- data/app/assets/javascripts/bastion/incubator/alch-modal.directive.js +80 -0
- data/app/assets/javascripts/bastion/incubator/alch-save-control.directive.js +42 -0
- data/app/assets/javascripts/bastion/incubator/alch-table.directive.js +295 -0
- data/app/assets/javascripts/bastion/incubator/format/alch-format.module.js +21 -0
- data/app/assets/javascripts/bastion/incubator/format/array-to-string.filter.js +30 -0
- data/app/assets/javascripts/bastion/incubator/format/boolean-to-yes-no.filter.js +34 -0
- data/app/assets/javascripts/bastion/incubator/format/capitalize.filter.js +32 -0
- data/app/assets/javascripts/bastion/incubator/format/key-value-to-string.filter.js +40 -0
- data/app/assets/javascripts/bastion/incubator/format/unlimitedFilter.filter.js +35 -0
- data/app/assets/javascripts/bastion/incubator/stylesheets/alch-edit.scss +34 -0
- data/app/assets/javascripts/bastion/incubator/stylesheets/header.scss +207 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-alert.html +6 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-dropdown.html +19 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-add-item.html +21 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-add-remove-cancel.html +28 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-checkbox.html +6 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-custom.html +8 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-multiselect.html +17 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-save-cancel.html +20 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-select.html +10 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-text.html +6 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit-textarea.html +6 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-edit.html +18 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-flyout.html +10 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-form-buttons.html +10 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-form-group.html +9 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-menu.html +18 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-modal-remove.html +13 -0
- data/app/assets/javascripts/bastion/incubator/views/alch-save-control.html +18 -0
- data/app/assets/javascripts/bastion/layouts/details-nutupane.html +73 -0
- data/app/assets/javascripts/bastion/layouts/nutupane.html +63 -0
- data/app/assets/javascripts/bastion/layouts/select-all-results.html +9 -0
- data/app/assets/javascripts/bastion/menu/menu-expander.service.js +51 -0
- data/app/assets/javascripts/bastion/menu/menu.module.js +26 -0
- data/app/assets/javascripts/bastion/utils/as.filter.js +33 -0
- data/app/assets/javascripts/bastion/utils/form-utils.service.js +53 -0
- data/app/assets/javascripts/bastion/utils/utils.module.js +21 -0
- data/app/assets/javascripts/bastion/widgets/current-tasks.directive.js +67 -0
- data/app/assets/javascripts/bastion/widgets/nutupane-table.directive.js +59 -0
- data/app/assets/javascripts/bastion/widgets/nutupane.factory.js +316 -0
- data/app/assets/javascripts/bastion/widgets/page-title.directive.js +61 -0
- data/app/assets/javascripts/bastion/widgets/page-title.service.js +42 -0
- data/app/assets/javascripts/bastion/widgets/path-selector.directive.js +109 -0
- data/app/assets/javascripts/bastion/widgets/views/current-tasks.html +23 -0
- data/app/assets/javascripts/bastion/widgets/views/path-selector.html +11 -0
- data/app/assets/javascripts/bastion/widgets/widgets.module.js +24 -0
- data/app/assets/stylesheets/bastion/animations.less +15 -0
- data/app/assets/stylesheets/bastion/bastion.less +160 -0
- data/app/assets/stylesheets/bastion/forms.less +41 -0
- data/app/assets/stylesheets/bastion/gpg-keys.less +36 -0
- data/app/assets/stylesheets/bastion/helpers.less +6 -0
- data/app/assets/stylesheets/bastion/mixins.less +15 -0
- data/app/assets/stylesheets/bastion/nutupane.less +382 -0
- data/app/assets/stylesheets/bastion/overrides.less +54 -0
- data/app/assets/stylesheets/bastion/path-selector.less +123 -0
- data/app/assets/stylesheets/bastion/systems.less +35 -0
- data/app/assets/stylesheets/bastion/tasks.less +23 -0
- data/app/assets/stylesheets/bastion/typography.less +31 -0
- data/app/assets/stylesheets/bastion/variables.less +3 -0
- data/app/controllers/bastion/bastion_controller.rb +24 -0
- data/app/views/bastion/layouts/application.html.erb +32 -0
- data/app/views/bastion/layouts/application_ie.html.erb +5 -0
- data/bastion.js +26 -0
- data/bower.json +94 -0
- data/config/routes.rb +25 -0
- data/config/routes/mount_engine.rb +3 -0
- data/grunt/bower.js +20 -0
- data/grunt/htmlhint.js +15 -0
- data/grunt/jshint.js +9 -0
- data/grunt/karma.js +83 -0
- data/lib/bastion.rb +17 -0
- data/lib/bastion/engine.rb +37 -0
- data/lib/bastion/version.rb +3 -0
- data/package.json +29 -0
- data/test/auth/authorization.service.test.js +63 -0
- data/test/bastion/bastion-resource.factory.test.js +31 -0
- data/test/bastion/test-constants.js +30 -0
- data/test/i18n/translate.service.test.js +31 -0
- data/test/incubator/alch-alert.directive.test.js +84 -0
- data/test/incubator/alch-container-scroll.directive.test.js +68 -0
- data/test/incubator/alch-dropdown.directive.test.js +113 -0
- data/test/incubator/alch-edit.directive.test.js +320 -0
- data/test/incubator/alch-flyout.directive.test.js +73 -0
- data/test/incubator/alch-form-buttons.directive.test.js +55 -0
- data/test/incubator/alch-form-group.directive.test.js +76 -0
- data/test/incubator/alch-infinite-scroll.directive.test.js +123 -0
- data/test/incubator/alch-menu.directive.test.js +94 -0
- data/test/incubator/alch-modal.directive.test.js +81 -0
- data/test/incubator/alch-table.directive.test.js +270 -0
- data/test/incubator/format/array-to-string.filter.test.js +38 -0
- data/test/incubator/format/boolean-to-yes-no.filter.test.js +41 -0
- data/test/incubator/format/capitalize.filter.test.js +35 -0
- data/test/incubator/format/key-value-to-string.filter.test.js +60 -0
- data/test/incubator/format/unlimited-filter.filter.test.js +31 -0
- data/test/incubator/nutupane-table.directive.test.js +69 -0
- data/test/incubator/nutupane.factory.test.js +307 -0
- data/test/menu/menu-expander.service.test.js +74 -0
- data/test/test-mocks.module.js +268 -0
- data/test/utils/as.filter.test.js +33 -0
- data/test/utils/form-utils.service.test.js +52 -0
- data/test/widgets/page-title.directive.test.js +54 -0
- data/test/widgets/page-title.service.test.js +51 -0
- data/test/widgets/path-selector.directive.test.js +136 -0
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/bastion/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.svg +399 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/font-awesome/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Bold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-BoldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Italic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Light-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-LightItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Regular-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-Semibold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.svg +146 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.svg +454 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Bold-webfont.woff +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.eot +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.svg +454 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.ttf +0 -0
- data/vendor/assets/fonts/bastion/rcue/Overpass-Regular-webfont.woff +0 -0
- data/vendor/assets/javascripts/bastion/alchemy/alchemy.js +20 -0
- data/vendor/assets/javascripts/bastion/angular-animate/angular-animate.js +1226 -0
- data/vendor/assets/javascripts/bastion/angular-blocks/angular-blocks.js +79 -0
- data/vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap-tpls.js +3677 -0
- data/vendor/assets/javascripts/bastion/angular-bootstrap/ui-bootstrap.js +3427 -0
- data/vendor/assets/javascripts/bastion/angular-gettext/angular-gettext.js +345 -0
- data/vendor/assets/javascripts/bastion/angular-resource/angular-resource.js +594 -0
- data/vendor/assets/javascripts/bastion/angular-route/angular-route.js +920 -0
- data/vendor/assets/javascripts/bastion/angular-sanitize/angular-sanitize.js +622 -0
- data/vendor/assets/javascripts/bastion/angular-ui-bootstrap/datepicker.js +447 -0
- data/vendor/assets/javascripts/bastion/angular-ui-bootstrap/timepicker.js +232 -0
- data/vendor/assets/javascripts/bastion/angular-ui-router/angular-ui-router.js +3223 -0
- data/vendor/assets/javascripts/bastion/angular-uuid4/angular-uuid4.js +21 -0
- data/vendor/assets/javascripts/bastion/angular/angular.js +20560 -0
- data/vendor/assets/javascripts/bastion/es5-shim/es5-shim.js +1216 -0
- data/vendor/assets/javascripts/bastion/json3/json3.js +861 -0
- data/vendor/assets/javascripts/bastion/ngUpload/ng-upload.js +205 -0
- data/vendor/assets/javascripts/bastion/underscore/underscore.js +1276 -0
- data/vendor/assets/stylesheets/bastion/alchemy/_colors.scss +99 -0
- data/vendor/assets/stylesheets/bastion/alchemy/_media_object.scss +22 -0
- data/vendor/assets/stylesheets/bastion/alchemy/_mixins.scss +24 -0
- data/vendor/assets/stylesheets/bastion/alchemy/_normalize.scss +396 -0
- data/vendor/assets/stylesheets/bastion/alchemy/_vars.scss +31 -0
- data/vendor/assets/stylesheets/bastion/alchemy/alchemy.scss +8 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/alerts.less +67 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/badges.less +51 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/bootstrap.less +49 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/breadcrumbs.less +23 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/button-groups.less +227 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/buttons.less +155 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/carousel.less +232 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/close.less +33 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/code.less +53 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/component-animations.less +29 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/dropdowns.less +187 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/forms.less +375 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/glyphicons.less +237 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/grid.less +79 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/input-groups.less +136 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/jumbotron.less +46 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/labels.less +64 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/list-group.less +88 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/media.less +56 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/mixins.less +845 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/modals.less +129 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/navbar.less +612 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/navs.less +242 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/normalize.less +406 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/pager.less +55 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/pagination.less +85 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/panels.less +182 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/popovers.less +133 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/print.less +105 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/progress-bars.less +80 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/responsive-utilities.less +209 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/scaffolding.less +119 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/tables.less +231 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/theme.less +247 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/thumbnails.less +36 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/tooltip.less +95 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/type.less +281 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/utilities.less +56 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/variables.less +642 -0
- data/vendor/assets/stylesheets/bastion/bootstrap/wells.less +29 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/bootstrap.less +84 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/core.less +129 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/extras.less +93 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome-ie7.less +1953 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/font-awesome.less +33 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/icons.less +381 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/mixins.less +48 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/path.less +14 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/less/variables.less +735 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_bootstrap.scss +84 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_core.scss +129 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_extras.scss +93 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_icons.scss +381 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_mixins.scss +48 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_path.scss +14 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/_variables.scss +734 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome-ie7.scss +1953 -0
- data/vendor/assets/stylesheets/bastion/font-awesome/scss/font-awesome.scss +33 -0
- data/vendor/assets/stylesheets/bastion/rcue/buttons.less +44 -0
- data/vendor/assets/stylesheets/bastion/rcue/fonts.less +52 -0
- data/vendor/assets/stylesheets/bastion/rcue/forms.less +19 -0
- data/vendor/assets/stylesheets/bastion/rcue/mixins.less +50 -0
- data/vendor/assets/stylesheets/bastion/rcue/navbar.less +481 -0
- data/vendor/assets/stylesheets/bastion/rcue/rcue.less +15 -0
- data/vendor/assets/stylesheets/bastion/rcue/variables.less +47 -0
- metadata +376 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
//
|
2
|
+
// Buttons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// --------------------------------------------------
|
8
|
+
|
9
|
+
.btn {
|
10
|
+
display: inline-block;
|
11
|
+
margin-bottom: 0; // For input.btn
|
12
|
+
font-weight: @btn-font-weight;
|
13
|
+
text-align: center;
|
14
|
+
vertical-align: middle;
|
15
|
+
cursor: pointer;
|
16
|
+
background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
|
17
|
+
border: 1px solid transparent;
|
18
|
+
white-space: nowrap;
|
19
|
+
.button-size(@padding-base-vertical; @padding-base-horizontal; @font-size-base; @line-height-base; @border-radius-base);
|
20
|
+
.user-select(none);
|
21
|
+
|
22
|
+
&:focus {
|
23
|
+
.tab-focus();
|
24
|
+
}
|
25
|
+
|
26
|
+
&:hover,
|
27
|
+
&:focus {
|
28
|
+
color: @btn-default-color;
|
29
|
+
text-decoration: none;
|
30
|
+
}
|
31
|
+
|
32
|
+
&:active,
|
33
|
+
&.active {
|
34
|
+
outline: 0;
|
35
|
+
background-image: none;
|
36
|
+
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
37
|
+
}
|
38
|
+
|
39
|
+
&.disabled,
|
40
|
+
&[disabled],
|
41
|
+
fieldset[disabled] & {
|
42
|
+
cursor: not-allowed;
|
43
|
+
pointer-events: none; // Future-proof disabling of clicks
|
44
|
+
.opacity(.65);
|
45
|
+
.box-shadow(none);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
// Alternate buttons
|
51
|
+
// --------------------------------------------------
|
52
|
+
|
53
|
+
.btn-default {
|
54
|
+
.button-variant(@btn-default-color; @btn-default-bg; @btn-default-border);
|
55
|
+
}
|
56
|
+
.btn-primary {
|
57
|
+
.button-variant(@btn-primary-color; @btn-primary-bg; @btn-primary-border);
|
58
|
+
}
|
59
|
+
// Warning appears as orange
|
60
|
+
.btn-warning {
|
61
|
+
.button-variant(@btn-warning-color; @btn-warning-bg; @btn-warning-border);
|
62
|
+
}
|
63
|
+
// Danger and error appear as red
|
64
|
+
.btn-danger {
|
65
|
+
.button-variant(@btn-danger-color; @btn-danger-bg; @btn-danger-border);
|
66
|
+
}
|
67
|
+
// Success appears as green
|
68
|
+
.btn-success {
|
69
|
+
.button-variant(@btn-success-color; @btn-success-bg; @btn-success-border);
|
70
|
+
}
|
71
|
+
// Info appears as blue-green
|
72
|
+
.btn-info {
|
73
|
+
.button-variant(@btn-info-color; @btn-info-bg; @btn-info-border);
|
74
|
+
}
|
75
|
+
|
76
|
+
|
77
|
+
// Link buttons
|
78
|
+
// -------------------------
|
79
|
+
|
80
|
+
// Make a button look and behave like a link
|
81
|
+
.btn-link {
|
82
|
+
color: @link-color;
|
83
|
+
font-weight: normal;
|
84
|
+
cursor: pointer;
|
85
|
+
border-radius: 0;
|
86
|
+
|
87
|
+
&,
|
88
|
+
&:active,
|
89
|
+
&[disabled],
|
90
|
+
fieldset[disabled] & {
|
91
|
+
background-color: transparent;
|
92
|
+
.box-shadow(none);
|
93
|
+
}
|
94
|
+
&,
|
95
|
+
&:hover,
|
96
|
+
&:focus,
|
97
|
+
&:active {
|
98
|
+
border-color: transparent;
|
99
|
+
}
|
100
|
+
&:hover,
|
101
|
+
&:focus {
|
102
|
+
color: @link-hover-color;
|
103
|
+
text-decoration: underline;
|
104
|
+
background-color: transparent;
|
105
|
+
}
|
106
|
+
&[disabled],
|
107
|
+
fieldset[disabled] & {
|
108
|
+
&:hover,
|
109
|
+
&:focus {
|
110
|
+
color: @btn-link-disabled-color;
|
111
|
+
text-decoration: none;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
// Button Sizes
|
118
|
+
// --------------------------------------------------
|
119
|
+
|
120
|
+
.btn-lg {
|
121
|
+
// line-height: ensure even-numbered height of button next to large input
|
122
|
+
.button-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
|
123
|
+
}
|
124
|
+
.btn-sm {
|
125
|
+
// line-height: ensure proper height of button next to small input
|
126
|
+
.button-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
127
|
+
}
|
128
|
+
.btn-xs {
|
129
|
+
.button-size(@padding-xs-vertical; @padding-xs-horizontal; @font-size-small; @line-height-small; @border-radius-small);
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
// Block button
|
134
|
+
// --------------------------------------------------
|
135
|
+
|
136
|
+
.btn-block {
|
137
|
+
display: block;
|
138
|
+
width: 100%;
|
139
|
+
padding-left: 0;
|
140
|
+
padding-right: 0;
|
141
|
+
}
|
142
|
+
|
143
|
+
// Vertically space out multiple block buttons
|
144
|
+
.btn-block + .btn-block {
|
145
|
+
margin-top: 5px;
|
146
|
+
}
|
147
|
+
|
148
|
+
// Specificity overrides
|
149
|
+
input[type="submit"],
|
150
|
+
input[type="reset"],
|
151
|
+
input[type="button"] {
|
152
|
+
&.btn-block {
|
153
|
+
width: 100%;
|
154
|
+
}
|
155
|
+
}
|
@@ -0,0 +1,232 @@
|
|
1
|
+
//
|
2
|
+
// Carousel
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Wrapper for the slide container and indicators
|
7
|
+
.carousel {
|
8
|
+
position: relative;
|
9
|
+
}
|
10
|
+
|
11
|
+
.carousel-inner {
|
12
|
+
position: relative;
|
13
|
+
overflow: hidden;
|
14
|
+
width: 100%;
|
15
|
+
|
16
|
+
> .item {
|
17
|
+
display: none;
|
18
|
+
position: relative;
|
19
|
+
.transition(.6s ease-in-out left);
|
20
|
+
|
21
|
+
// Account for jankitude on images
|
22
|
+
> img,
|
23
|
+
> a > img {
|
24
|
+
.img-responsive();
|
25
|
+
line-height: 1;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
> .active,
|
30
|
+
> .next,
|
31
|
+
> .prev { display: block; }
|
32
|
+
|
33
|
+
> .active {
|
34
|
+
left: 0;
|
35
|
+
}
|
36
|
+
|
37
|
+
> .next,
|
38
|
+
> .prev {
|
39
|
+
position: absolute;
|
40
|
+
top: 0;
|
41
|
+
width: 100%;
|
42
|
+
}
|
43
|
+
|
44
|
+
> .next {
|
45
|
+
left: 100%;
|
46
|
+
}
|
47
|
+
> .prev {
|
48
|
+
left: -100%;
|
49
|
+
}
|
50
|
+
> .next.left,
|
51
|
+
> .prev.right {
|
52
|
+
left: 0;
|
53
|
+
}
|
54
|
+
|
55
|
+
> .active.left {
|
56
|
+
left: -100%;
|
57
|
+
}
|
58
|
+
> .active.right {
|
59
|
+
left: 100%;
|
60
|
+
}
|
61
|
+
|
62
|
+
}
|
63
|
+
|
64
|
+
// Left/right controls for nav
|
65
|
+
// ---------------------------
|
66
|
+
|
67
|
+
.carousel-control {
|
68
|
+
position: absolute;
|
69
|
+
top: 0;
|
70
|
+
left: 0;
|
71
|
+
bottom: 0;
|
72
|
+
width: @carousel-control-width;
|
73
|
+
.opacity(@carousel-control-opacity);
|
74
|
+
font-size: @carousel-control-font-size;
|
75
|
+
color: @carousel-control-color;
|
76
|
+
text-align: center;
|
77
|
+
text-shadow: @carousel-text-shadow;
|
78
|
+
// We can't have this transition here because WebKit cancels the carousel
|
79
|
+
// animation if you trip this while in the middle of another animation.
|
80
|
+
|
81
|
+
// Set gradients for backgrounds
|
82
|
+
&.left {
|
83
|
+
#gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
|
84
|
+
}
|
85
|
+
&.right {
|
86
|
+
left: auto;
|
87
|
+
right: 0;
|
88
|
+
#gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
|
89
|
+
}
|
90
|
+
|
91
|
+
// Hover/focus state
|
92
|
+
&:hover,
|
93
|
+
&:focus {
|
94
|
+
outline: none;
|
95
|
+
color: @carousel-control-color;
|
96
|
+
text-decoration: none;
|
97
|
+
.opacity(.9);
|
98
|
+
}
|
99
|
+
|
100
|
+
// Toggles
|
101
|
+
.icon-prev,
|
102
|
+
.icon-next,
|
103
|
+
.glyphicon-chevron-left,
|
104
|
+
.glyphicon-chevron-right {
|
105
|
+
position: absolute;
|
106
|
+
top: 50%;
|
107
|
+
z-index: 5;
|
108
|
+
display: inline-block;
|
109
|
+
}
|
110
|
+
.icon-prev,
|
111
|
+
.glyphicon-chevron-left {
|
112
|
+
left: 50%;
|
113
|
+
}
|
114
|
+
.icon-next,
|
115
|
+
.glyphicon-chevron-right {
|
116
|
+
right: 50%;
|
117
|
+
}
|
118
|
+
.icon-prev,
|
119
|
+
.icon-next {
|
120
|
+
width: 20px;
|
121
|
+
height: 20px;
|
122
|
+
margin-top: -10px;
|
123
|
+
margin-left: -10px;
|
124
|
+
font-family: serif;
|
125
|
+
}
|
126
|
+
|
127
|
+
.icon-prev {
|
128
|
+
&:before {
|
129
|
+
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
130
|
+
}
|
131
|
+
}
|
132
|
+
.icon-next {
|
133
|
+
&:before {
|
134
|
+
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
|
139
|
+
// Optional indicator pips
|
140
|
+
//
|
141
|
+
// Add an unordered list with the following class and add a list item for each
|
142
|
+
// slide your carousel holds.
|
143
|
+
|
144
|
+
.carousel-indicators {
|
145
|
+
position: absolute;
|
146
|
+
bottom: 10px;
|
147
|
+
left: 50%;
|
148
|
+
z-index: 15;
|
149
|
+
width: 60%;
|
150
|
+
margin-left: -30%;
|
151
|
+
padding-left: 0;
|
152
|
+
list-style: none;
|
153
|
+
text-align: center;
|
154
|
+
|
155
|
+
li {
|
156
|
+
display: inline-block;
|
157
|
+
width: 10px;
|
158
|
+
height: 10px;
|
159
|
+
margin: 1px;
|
160
|
+
text-indent: -999px;
|
161
|
+
border: 1px solid @carousel-indicator-border-color;
|
162
|
+
border-radius: 10px;
|
163
|
+
cursor: pointer;
|
164
|
+
|
165
|
+
// IE8-9 hack for event handling
|
166
|
+
//
|
167
|
+
// Internet Explorer 8-9 does not support clicks on elements without a set
|
168
|
+
// `background-color`. We cannot use `filter` since that's not viewed as a
|
169
|
+
// background color by the browser. Thus, a hack is needed.
|
170
|
+
//
|
171
|
+
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
172
|
+
// set alpha transparency for the best results possible.
|
173
|
+
background-color: #000 \9; // IE8
|
174
|
+
background-color: rgba(0,0,0,0); // IE9
|
175
|
+
}
|
176
|
+
.active {
|
177
|
+
margin: 0;
|
178
|
+
width: 12px;
|
179
|
+
height: 12px;
|
180
|
+
background-color: @carousel-indicator-active-bg;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
// Optional captions
|
185
|
+
// -----------------------------
|
186
|
+
// Hidden by default for smaller viewports
|
187
|
+
.carousel-caption {
|
188
|
+
position: absolute;
|
189
|
+
left: 15%;
|
190
|
+
right: 15%;
|
191
|
+
bottom: 20px;
|
192
|
+
z-index: 10;
|
193
|
+
padding-top: 20px;
|
194
|
+
padding-bottom: 20px;
|
195
|
+
color: @carousel-caption-color;
|
196
|
+
text-align: center;
|
197
|
+
text-shadow: @carousel-text-shadow;
|
198
|
+
& .btn {
|
199
|
+
text-shadow: none; // No shadow for button elements in carousel-caption
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
// Scale up controls for tablets and up
|
205
|
+
@media screen and (min-width: @screen-sm-min) {
|
206
|
+
|
207
|
+
// Scale up the controls a smidge
|
208
|
+
.carousel-control {
|
209
|
+
.glyphicons-chevron-left,
|
210
|
+
.glyphicons-chevron-right,
|
211
|
+
.icon-prev,
|
212
|
+
.icon-next {
|
213
|
+
width: 30px;
|
214
|
+
height: 30px;
|
215
|
+
margin-top: -15px;
|
216
|
+
margin-left: -15px;
|
217
|
+
font-size: 30px;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
// Show and left align the captions
|
222
|
+
.carousel-caption {
|
223
|
+
left: 20%;
|
224
|
+
right: 20%;
|
225
|
+
padding-bottom: 30px;
|
226
|
+
}
|
227
|
+
|
228
|
+
// Move up the indicators
|
229
|
+
.carousel-indicators {
|
230
|
+
bottom: 20px;
|
231
|
+
}
|
232
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
//
|
2
|
+
// Close icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.close {
|
7
|
+
float: right;
|
8
|
+
font-size: (@font-size-base * 1.5);
|
9
|
+
font-weight: @close-font-weight;
|
10
|
+
line-height: 1;
|
11
|
+
color: @close-color;
|
12
|
+
text-shadow: @close-text-shadow;
|
13
|
+
.opacity(.2);
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:focus {
|
17
|
+
color: @close-color;
|
18
|
+
text-decoration: none;
|
19
|
+
cursor: pointer;
|
20
|
+
.opacity(.5);
|
21
|
+
}
|
22
|
+
|
23
|
+
// Additional properties for button version
|
24
|
+
// iOS requires the button element instead of an anchor tag.
|
25
|
+
// If you want the anchor version, it requires `href="#"`.
|
26
|
+
button& {
|
27
|
+
padding: 0;
|
28
|
+
cursor: pointer;
|
29
|
+
background: transparent;
|
30
|
+
border: 0;
|
31
|
+
-webkit-appearance: none;
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
//
|
2
|
+
// Code (inline and block)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Inline and block code styles
|
7
|
+
code,
|
8
|
+
kbd,
|
9
|
+
pre,
|
10
|
+
samp {
|
11
|
+
font-family: @font-family-monospace;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Inline code
|
15
|
+
code {
|
16
|
+
padding: 2px 4px;
|
17
|
+
font-size: 90%;
|
18
|
+
color: @code-color;
|
19
|
+
background-color: @code-bg;
|
20
|
+
white-space: nowrap;
|
21
|
+
border-radius: @border-radius-base;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Blocks of code
|
25
|
+
pre {
|
26
|
+
display: block;
|
27
|
+
padding: ((@line-height-computed - 1) / 2);
|
28
|
+
margin: 0 0 (@line-height-computed / 2);
|
29
|
+
font-size: (@font-size-base - 1); // 14px to 13px
|
30
|
+
line-height: @line-height-base;
|
31
|
+
word-break: break-all;
|
32
|
+
word-wrap: break-word;
|
33
|
+
color: @pre-color;
|
34
|
+
background-color: @pre-bg;
|
35
|
+
border: 1px solid @pre-border-color;
|
36
|
+
border-radius: @border-radius-base;
|
37
|
+
|
38
|
+
// Account for some code outputs that place code tags in pre tags
|
39
|
+
code {
|
40
|
+
padding: 0;
|
41
|
+
font-size: inherit;
|
42
|
+
color: inherit;
|
43
|
+
white-space: pre-wrap;
|
44
|
+
background-color: transparent;
|
45
|
+
border-radius: 0;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// Enable scrollable blocks of code
|
50
|
+
.pre-scrollable {
|
51
|
+
max-height: @pre-scrollable-max-height;
|
52
|
+
overflow-y: scroll;
|
53
|
+
}
|