lanes 0.1.9 → 0.1.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/client/fonts/fontawesome-webfont.woff +0 -0
- data/client/fonts/fontawesome-webfont.woff2 +0 -0
- data/client/lanes/Boot.cjsx +9 -0
- data/client/lanes/access/Extension.coffee +18 -4
- data/client/lanes/access/LoginDialog.cjsx +78 -0
- data/client/lanes/access/Roles.coffee +22 -28
- data/client/lanes/access/User.coffee +16 -16
- data/client/lanes/access/index.js +4 -5
- data/client/lanes/access/screens/user-management/Editor.cjsx +20 -0
- data/client/lanes/access/screens/user-management/UserManagement.cjsx +41 -0
- data/client/lanes/access/screens/user-management/index.js +0 -1
- data/client/lanes/components/grid/EditingMixin.cjsx +64 -0
- data/client/lanes/components/grid/Grid.cjsx +139 -0
- data/client/lanes/components/grid/PopOverMixin.cjsx +28 -0
- data/client/lanes/components/grid/PopoverEditor.cjsx +8 -0
- data/client/lanes/components/grid/RowEditor.cjsx +10 -0
- data/client/lanes/components/grid/Toolbar.cjsx +14 -0
- data/client/lanes/components/grid/config.json +1 -1
- data/client/lanes/components/grid/editors.scss +94 -53
- data/client/lanes/components/grid/index.js +2 -7
- data/client/lanes/components/grid/styles.scss +8 -296
- data/client/lanes/components/helpers.coffee +2 -0
- data/client/lanes/components/index.js +2 -1
- data/client/lanes/components/modal/Modal.cjsx +36 -0
- data/client/lanes/components/modal/index.js +1 -2
- data/client/lanes/components/modal/styles.scss +0 -19
- data/client/lanes/components/record-finder/Clause.cjsx +80 -0
- data/client/lanes/components/record-finder/Dialog.cjsx +54 -0
- data/client/lanes/components/record-finder/RecordFinder.cjsx +38 -0
- data/client/lanes/components/record-finder/config.json +1 -1
- data/client/lanes/components/record-finder/index.js +1 -2
- data/client/lanes/components/request-spinner/index.js +1 -0
- data/client/lanes/components/select-field/SelectField.cjsx +78 -0
- data/client/lanes/components/select-field/index.js +2 -1
- data/client/lanes/components/select-field/styles.scss +1 -0
- data/client/lanes/components/shared/CountBadge.cjsx +9 -0
- data/client/lanes/components/shared/ErrorDisplay.cjsx +21 -0
- data/client/lanes/components/shared/FieldMixin.cjsx +71 -0
- data/client/lanes/components/shared/FieldSet.cjsx +58 -0
- data/client/lanes/components/shared/GenericField.cjsx +5 -0
- data/client/lanes/components/shared/Helpers.coffee +9 -0
- data/client/lanes/components/shared/RadioField.cjsx +14 -0
- data/client/lanes/components/shared/Resize.cjsx +152 -0
- data/client/lanes/components/shared/TextArea.cjsx +19 -0
- data/client/lanes/components/shared/TextField.cjsx +25 -0
- data/client/lanes/components/shared/Tooltip.cjsx +10 -0
- data/client/lanes/components/shared/fields.scss +35 -0
- data/client/lanes/components/shared/fieldset.scss +29 -0
- data/client/lanes/components/shared/index.js +3 -0
- data/client/lanes/components/shared/styles.scss +32 -0
- data/client/lanes/components/toolbar/RemoteChangeSets.cjsx +75 -0
- data/client/lanes/components/toolbar/SaveButton.cjsx +3 -0
- data/client/lanes/components/toolbar/Toolbar.cjsx +58 -0
- data/client/lanes/{workspace/styles → components/toolbar}/changes-notification.scss +10 -23
- data/client/lanes/components/toolbar/index.js +3 -0
- data/client/lanes/components/toolbar/styles.scss +51 -0
- data/client/lanes/extension/Extensions.coffee +19 -10
- data/client/lanes/extension/LateLoaded.js.erb +4 -3
- data/client/lanes/index.js +3 -5
- data/client/lanes/index.scss.erb +6 -14
- data/client/lanes/lib/HotReload.coffee +35 -0
- data/client/lanes/lib/MakeBaseClass.coffee +10 -11
- data/client/lanes/lib/development.coffee +3 -0
- data/client/lanes/lib/dom.coffee +49 -0
- data/client/lanes/lib/el.coffee +23 -0
- data/client/lanes/lib/index.js.erb +16 -0
- data/client/lanes/lib/loader.coffee +34 -34
- data/client/lanes/lib/namespace.coffee +1 -1
- data/client/lanes/lib/objToParam.coffee +37 -0
- data/client/lanes/{access/views/.gitkeep → lib/production.coffee} +0 -0
- data/client/lanes/lib/utilFunctions.coffee +44 -26
- data/client/lanes/models/AssociationMap.coffee +51 -38
- data/client/lanes/models/Base.coffee +89 -88
- data/client/lanes/models/ChangeMonitor.coffee +10 -10
- data/client/lanes/models/ChangeSet.coffee +14 -24
- data/client/lanes/models/Collection.coffee +40 -41
- data/client/lanes/models/PubSub.coffee +28 -19
- data/client/lanes/models/Query.coffee +78 -45
- data/client/lanes/models/QueryResults.coffee +93 -0
- data/client/lanes/models/ServerCache.coffee +12 -12
- data/client/lanes/models/Sync.coffee +53 -50
- data/client/lanes/models/User.coffee +31 -17
- data/client/lanes/react/Component.coffee +31 -0
- data/client/lanes/react/DefaultComponentNotFound.cjsx +9 -0
- data/client/lanes/{views → react}/FormBindings.coffee +0 -0
- data/client/lanes/{views → react}/ModelObserver.coffee +0 -0
- data/client/lanes/{views → react}/ModelUpdate.coffee +0 -0
- data/client/lanes/{views → react}/PubSub.coffee +0 -0
- data/client/lanes/react/Root.cjsx +14 -0
- data/client/lanes/react/Router.cjsx +18 -0
- data/client/lanes/react/Screen.coffee +15 -0
- data/client/lanes/{views → react}/TimedHighlight.coffee +0 -0
- data/client/lanes/{views → react}/TimedMask.coffee +0 -0
- data/client/lanes/react/TypeValidators.coffee +21 -0
- data/client/lanes/{lib/create-namespace.js → react/Utils.coffee} +0 -0
- data/client/lanes/react/Viewport.coffee +30 -0
- data/client/lanes/react/index.js +8 -0
- data/client/lanes/react/mixins/Access.coffee +27 -0
- data/client/lanes/react/mixins/Component.coffee +4 -0
- data/client/lanes/react/mixins/Data.coffee +136 -0
- data/client/lanes/react/mixins/MonitorSize.coffee +11 -0
- data/client/lanes/react/mixins/ReadEditingState.coffee +11 -0
- data/client/lanes/react/mixins/RelayEditingState.coffee +17 -0
- data/client/lanes/react/mixins/RelayFieldChange.coffee +11 -0
- data/client/lanes/react/mixins/Screen.coffee +7 -0
- data/client/lanes/react/mixins/Viewport.coffee +11 -0
- data/client/lanes/screens/ChangeListener.coffee +3 -3
- data/client/lanes/screens/Commands.coffee +27 -0
- data/client/lanes/screens/Definitions.coffee +74 -65
- data/client/lanes/screens/all.js.erb +1 -1
- data/client/lanes/screens/index.js +1 -2
- data/client/lanes/screens/mixins/index.js +0 -1
- data/client/lanes/screens/register.js.erb +0 -1
- data/client/lanes/screens/styles.scss +7 -0
- data/client/lanes/styles/bootstrap-custom-grid.scss +67 -37
- data/client/lanes/styles/bootstrap.scss +4 -5
- data/client/lanes/styles/fonts.scss +10 -23
- data/client/lanes/styles/fonts/_animated.scss +34 -0
- data/client/lanes/styles/fonts/_bordered-pulled.scss +16 -0
- data/client/lanes/styles/fonts/_core.scss +13 -0
- data/client/lanes/styles/fonts/_fixed-width.scss +6 -0
- data/client/lanes/styles/fonts/_icons.scss +596 -0
- data/client/lanes/styles/fonts/_larger.scss +13 -0
- data/client/lanes/styles/fonts/_list.scss +19 -0
- data/client/lanes/styles/fonts/_mixins.scss +27 -0
- data/client/lanes/styles/fonts/_path.scss +10 -0
- data/client/lanes/styles/fonts/_rotated-flipped.scss +20 -0
- data/client/lanes/styles/fonts/_stacked.scss +20 -0
- data/client/lanes/styles/fonts/_variables.scss +606 -0
- data/client/lanes/styles/fonts/font-awesome.scss +16 -0
- data/client/lanes/styles/fonts/index.scss +2 -0
- data/client/lanes/styles/global.scss +2 -0
- data/client/lanes/styles/global/fancy-header.scss +14 -0
- data/client/lanes/testing/BeforeEach.coffee +15 -40
- data/client/lanes/testing/Helpers.coffee +27 -0
- data/client/lanes/testing/ModelSaver.coffee +14 -24
- data/client/lanes/testing/StubRouter.coffee +27 -0
- data/client/lanes/testing/TestObjects.coffee +27 -0
- data/client/lanes/testing/index.js +3 -1
- data/client/lanes/vendor/base.js +85256 -0
- data/client/lanes/vendor/commons.js +20579 -0
- data/client/lanes/vendor/development.js +2511 -0
- data/client/lanes/vendor/grid.js +6689 -0
- data/client/lanes/vendor/grid.scss +387 -0
- data/client/lanes/vendor/index.js +3 -0
- data/client/lanes/vendor/message-bus.coffee +264 -0
- data/client/lanes/vendor/widgets.js +8798 -0
- data/client/lanes/vendor/widgets.scss +723 -0
- data/client/lanes/workspace/ActiveScreenSwitcher.cjsx +38 -0
- data/client/lanes/workspace/Extension.coffee +6 -0
- data/client/lanes/workspace/Layout.cjsx +28 -0
- data/client/lanes/workspace/Navbar.cjsx +25 -0
- data/client/lanes/workspace/ScreenView.cjsx +27 -0
- data/client/lanes/workspace/ScreensMenu.cjsx +57 -0
- data/client/lanes/workspace/UIState.coffee +17 -16
- data/client/lanes/workspace/index.js +7 -2
- data/client/lanes/workspace/styles.scss +0 -3
- data/client/lanes/workspace/styles/forms.scss +2 -73
- data/client/lanes/workspace/styles/header.scss +0 -2
- data/client/lanes/workspace/styles/layout.scss +9 -2
- data/client/lanes/workspace/styles/screens.scss +0 -59
- data/client/lanes/workspace/styles/tabs.scss +16 -15
- data/coffeelint.json +49 -0
- data/config.ru +1 -0
- data/config/database.yml +2 -2
- data/config/routes.rb +7 -0
- data/docs/command.md +11 -8
- data/docs/model.md +2 -5
- data/docs/react.md +137 -0
- data/lanes.gemspec +1 -0
- data/lib/lanes.rb +1 -1
- data/lib/lanes/access/authentication_provider.rb +1 -0
- data/lib/lanes/access/config/routes.rb +2 -0
- data/lib/lanes/access/config/screens.rb +15 -12
- data/lib/lanes/access/extension.rb +2 -1
- data/lib/lanes/access/role.rb +8 -4
- data/lib/lanes/api.rb +4 -3
- data/lib/lanes/api/coffeescript_processor.rb +47 -6
- data/lib/lanes/api/controller.rb +4 -3
- data/lib/lanes/api/default_routes.rb +16 -0
- data/lib/lanes/api/javascript_processor.rb +14 -68
- data/lib/lanes/api/pub_sub.rb +17 -3
- data/lib/lanes/api/request_wrapper.rb +2 -2
- data/lib/lanes/api/root.rb +16 -13
- data/lib/lanes/api/routing.rb +0 -18
- data/lib/lanes/api/sprockets_extension.rb +10 -4
- data/lib/lanes/api/test_specs.rb +3 -3
- data/lib/lanes/cli.rb +6 -1
- data/lib/lanes/command/app.rb +7 -11
- data/lib/lanes/command/generate.rb +3 -3
- data/lib/lanes/command/generate_component.rb +28 -0
- data/lib/lanes/command/generate_component.usage +11 -0
- data/lib/lanes/command/generate_screen.rb +24 -7
- data/lib/lanes/command/generate_screen.usage +5 -8
- data/lib/lanes/configuration.rb +3 -2
- data/lib/lanes/extension.rb +12 -18
- data/lib/lanes/extension/definition.rb +20 -8
- data/lib/lanes/guard_tasks.rb +22 -5
- data/lib/lanes/hot_reload_plugin.rb +47 -0
- data/lib/lanes/logger.rb +41 -5
- data/lib/lanes/screen.rb +40 -16
- data/lib/lanes/spec_helper.rb +6 -3
- data/lib/lanes/version.rb +1 -1
- data/lib/lanes/workspace/extension.rb +1 -0
- data/npm-build/{template.js → base.js} +17 -17
- data/{client/lanes/workspace/tab.html → npm-build/common.js} +0 -0
- data/npm-build/compile.coffee +13 -4
- data/npm-build/development.js +7 -0
- data/npm-build/grid.js +11 -0
- data/npm-build/package.json +62 -58
- data/npm-build/react-widgets.js +5 -0
- data/npm-build/react-widgets.less +35 -0
- data/npm-build/webpack.config.js +39 -0
- data/spec/command-reference-files/component/client/appy-app/components/Big.cjsx +4 -0
- data/spec/command-reference-files/component/spec/appy-app/components/BigSpec.coffee +5 -0
- data/spec/command-reference-files/initial/.rubocop.yml +7 -0
- data/spec/command-reference-files/initial/Gemfile +1 -1
- data/spec/command-reference-files/initial/client/appy-app/Extension.coffee +17 -5
- data/spec/command-reference-files/initial/client/appy-app/components/Base.coffee +9 -0
- data/spec/command-reference-files/initial/client/appy-app/index.js +1 -3
- data/spec/command-reference-files/initial/client/appy-app/screens/Base.coffee +8 -2
- data/spec/command-reference-files/initial/coffeelint.json +49 -0
- data/spec/command-reference-files/initial/config.ru +2 -0
- data/spec/command-reference-files/initial/config/screens.rb +10 -0
- data/spec/command-reference-files/initial/lib/appy-app/extension.rb +7 -0
- data/spec/command-reference-files/model/client/appy-app/models/TestTest.coffee +0 -1
- data/spec/command-reference-files/screen/client/appy-app/Extension.coffee +34 -0
- data/spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.cjsx +7 -0
- data/spec/command-reference-files/screen/config/screens.rb +19 -9
- data/spec/command-reference-files/screen/spec/appy-app/screens/ready-set-go/ReadySetGoSpec.coffee +3 -3
- data/spec/lanes/components/grid/GridSpec.coffee +26 -26
- data/spec/lanes/models/AssociationMapSpec.coffee +6 -6
- data/spec/lanes/models/BaseSpec.coffee +24 -35
- data/spec/lanes/models/CollectionSpec.coffee +19 -18
- data/spec/lanes/models/EnumMapSpec.coffee +1 -1
- data/spec/lanes/models/PubSubSpec.coffee +17 -15
- data/spec/lanes/models/SyncSpec.coffee +28 -0
- data/spec/lanes/models/UserSpec.coffee +17 -0
- data/spec/lanes/react/mixins/DataSpec.coffee +72 -0
- data/spec/lanes/screens/DefinitionsSpec.coffee +33 -0
- data/spec/lanes/views/BaseSpec.coffee +133 -133
- data/spec/lanes/views/FormBindingsSpec.coffee +30 -30
- data/spec/server/api/coffeescript_processor_spec.rb +2 -2
- data/spec/server/command_spec.rb +3 -3
- data/templates/client/Extension.coffee +17 -5
- data/templates/client/components/BaseComponent.coffee +9 -0
- data/templates/client/components/Component.cjsx +4 -0
- data/templates/client/{views → components}/template.html +0 -0
- data/templates/client/index.js +1 -3
- data/templates/client/models/Model.coffee +0 -1
- data/templates/client/screens/BaseScreen.coffee +9 -0
- data/templates/client/screens/Screen.cjsx +7 -0
- data/templates/config.ru +2 -0
- data/templates/config/screen.rb +10 -10
- data/templates/config/screens.rb +10 -0
- data/templates/lib/namespace/extension.rb +7 -0
- data/templates/spec/client/Screen.coffee +4 -4
- data/templates/spec/client/components/ComponentSpec.coffee +5 -0
- metadata +157 -201
- data/client/fonts/lanes/icomoon.eot +0 -0
- data/client/fonts/lanes/icomoon.svg +0 -160
- data/client/fonts/lanes/icomoon.ttf +0 -0
- data/client/fonts/lanes/icomoon.woff +0 -0
- data/client/fonts/lanes/selection.json +0 -3565
- data/client/lanes/Boot.coffee +0 -50
- data/client/lanes/access/LoginDialog.coffee +0 -46
- data/client/lanes/access/login-dialog.html +0 -16
- data/client/lanes/access/screens/user-management/GridUserEditor.coffee +0 -26
- data/client/lanes/access/screens/user-management/UserManagement.coffee +0 -23
- data/client/lanes/access/screens/user-management/grid-popover-editor.html +0 -33
- data/client/lanes/access/screens/user-management/screen.html +0 -7
- data/client/lanes/components/Base.coffee +0 -39
- data/client/lanes/components/ChoicesInput.coffee +0 -47
- data/client/lanes/components/grid/Editor.coffee +0 -62
- data/client/lanes/components/grid/Grid.coffee +0 -205
- data/client/lanes/components/grid/PopOverEditor.coffee +0 -29
- data/client/lanes/components/grid/RowEditor.coffee +0 -30
- data/client/lanes/components/grid/popover-editor.html +0 -18
- data/client/lanes/components/grid/row-editor.html +0 -16
- data/client/lanes/components/grid/template.html +0 -4
- data/client/lanes/components/grid/vendor/dataTables.scroller.js +0 -1262
- data/client/lanes/components/grid/vendor/index.js +0 -2
- data/client/lanes/components/grid/vendor/jquery.dataTables.js +0 -14839
- data/client/lanes/components/modal/ModalDialog.coffee +0 -68
- data/client/lanes/components/modal/template.html +0 -18
- data/client/lanes/components/multi-select/MultiSelect.coffee +0 -65
- data/client/lanes/components/popover/PopOver.coffee +0 -55
- data/client/lanes/components/popover/index.js +0 -2
- data/client/lanes/components/popover/styles.scss +0 -2
- data/client/lanes/components/popover/template.html +0 -5
- data/client/lanes/components/radio-group/RadioGroup.coffee +0 -47
- data/client/lanes/components/radio-group/index.js +0 -1
- data/client/lanes/components/radio-group/styles.scss +0 -1
- data/client/lanes/components/record-finder/Clause.coffee +0 -37
- data/client/lanes/components/record-finder/Dialog.coffee +0 -45
- data/client/lanes/components/record-finder/RecordFinder.coffee +0 -61
- data/client/lanes/components/record-finder/clause.html +0 -37
- data/client/lanes/components/record-finder/dialog.html +0 -4
- data/client/lanes/components/record-finder/field.html +0 -8
- data/client/lanes/components/select-field/SelectField.coffee +0 -63
- data/client/lanes/components/select2/Select2.coffee +0 -8
- data/client/lanes/components/select2/index.js +0 -2
- data/client/lanes/lib/Templates.coffee +0 -51
- data/client/lanes/lib/debounce.coffee +0 -15
- data/client/lanes/lib/defer.coffee +0 -7
- data/client/lanes/lib/el.js +0 -115
- data/client/lanes/lib/index.js +0 -5
- data/client/lanes/plugins/overlay.coffee +0 -41
- data/client/lanes/screens/Base.coffee +0 -35
- data/client/lanes/screens/Router.coffee +0 -4
- data/client/lanes/screens/mixins/Editing.coffee +0 -38
- data/client/lanes/styles/bootstrap/old/_alerts.scss +0 -68
- data/client/lanes/styles/bootstrap/old/_badges.scss +0 -57
- data/client/lanes/styles/bootstrap/old/_breadcrumbs.scss +0 -26
- data/client/lanes/styles/bootstrap/old/_button-groups.scss +0 -240
- data/client/lanes/styles/bootstrap/old/_buttons.scss +0 -157
- data/client/lanes/styles/bootstrap/old/_carousel.scss +0 -243
- data/client/lanes/styles/bootstrap/old/_close.scss +0 -35
- data/client/lanes/styles/bootstrap/old/_code.scss +0 -68
- data/client/lanes/styles/bootstrap/old/_component-animations.scss +0 -35
- data/client/lanes/styles/bootstrap/old/_dropdowns.scss +0 -215
- data/client/lanes/styles/bootstrap/old/_forms.scss +0 -538
- data/client/lanes/styles/bootstrap/old/_glyphicons.scss +0 -237
- data/client/lanes/styles/bootstrap/old/_grid.scss +0 -84
- data/client/lanes/styles/bootstrap/old/_input-groups.scss +0 -166
- data/client/lanes/styles/bootstrap/old/_jumbotron.scss +0 -48
- data/client/lanes/styles/bootstrap/old/_labels.scss +0 -66
- data/client/lanes/styles/bootstrap/old/_list-group.scss +0 -132
- data/client/lanes/styles/bootstrap/old/_media.scss +0 -56
- data/client/lanes/styles/bootstrap/old/_mixins.scss +0 -39
- data/client/lanes/styles/bootstrap/old/_modals.scss +0 -150
- data/client/lanes/styles/bootstrap/old/_navbar.scss +0 -659
- data/client/lanes/styles/bootstrap/old/_navs.scss +0 -242
- data/client/lanes/styles/bootstrap/old/_normalize.scss +0 -425
- data/client/lanes/styles/bootstrap/old/_pager.scss +0 -55
- data/client/lanes/styles/bootstrap/old/_pagination.scss +0 -88
- data/client/lanes/styles/bootstrap/old/_panels.scss +0 -243
- data/client/lanes/styles/bootstrap/old/_popovers.scss +0 -133
- data/client/lanes/styles/bootstrap/old/_print.scss +0 -101
- data/client/lanes/styles/bootstrap/old/_progress-bars.scss +0 -105
- data/client/lanes/styles/bootstrap/old/_responsive-embed.scss +0 -34
- data/client/lanes/styles/bootstrap/old/_responsive-utilities.scss +0 -174
- data/client/lanes/styles/bootstrap/old/_scaffolding.scss +0 -150
- data/client/lanes/styles/bootstrap/old/_tables.scss +0 -233
- data/client/lanes/styles/bootstrap/old/_theme.scss +0 -258
- data/client/lanes/styles/bootstrap/old/_thumbnails.scss +0 -38
- data/client/lanes/styles/bootstrap/old/_tooltip.scss +0 -95
- data/client/lanes/styles/bootstrap/old/_type.scss +0 -304
- data/client/lanes/styles/bootstrap/old/_utilities.scss +0 -57
- data/client/lanes/styles/bootstrap/old/_variables.scss +0 -850
- data/client/lanes/styles/bootstrap/old/_wells.scss +0 -29
- data/client/lanes/styles/bootstrap/old/bootstrap.scss +0 -50
- data/client/lanes/styles/bootstrap/old/mixins/_alerts.scss +0 -14
- data/client/lanes/styles/bootstrap/old/mixins/_background-variant.scss +0 -11
- data/client/lanes/styles/bootstrap/old/mixins/_border-radius.scss +0 -18
- data/client/lanes/styles/bootstrap/old/mixins/_buttons.scss +0 -50
- data/client/lanes/styles/bootstrap/old/mixins/_center-block.scss +0 -7
- data/client/lanes/styles/bootstrap/old/mixins/_clearfix.scss +0 -22
- data/client/lanes/styles/bootstrap/old/mixins/_forms.scss +0 -84
- data/client/lanes/styles/bootstrap/old/mixins/_gradients.scss +0 -58
- data/client/lanes/styles/bootstrap/old/mixins/_grid-framework.scss +0 -81
- data/client/lanes/styles/bootstrap/old/mixins/_grid.scss +0 -122
- data/client/lanes/styles/bootstrap/old/mixins/_hide-text.scss +0 -21
- data/client/lanes/styles/bootstrap/old/mixins/_image.scss +0 -34
- data/client/lanes/styles/bootstrap/old/mixins/_labels.scss +0 -12
- data/client/lanes/styles/bootstrap/old/mixins/_list-group.scss +0 -31
- data/client/lanes/styles/bootstrap/old/mixins/_nav-divider.scss +0 -10
- data/client/lanes/styles/bootstrap/old/mixins/_nav-vertical-align.scss +0 -9
- data/client/lanes/styles/bootstrap/old/mixins/_opacity.scss +0 -8
- data/client/lanes/styles/bootstrap/old/mixins/_pagination.scss +0 -23
- data/client/lanes/styles/bootstrap/old/mixins/_panels.scss +0 -24
- data/client/lanes/styles/bootstrap/old/mixins/_progress-bar.scss +0 -10
- data/client/lanes/styles/bootstrap/old/mixins/_reset-filter.scss +0 -8
- data/client/lanes/styles/bootstrap/old/mixins/_resize.scss +0 -6
- data/client/lanes/styles/bootstrap/old/mixins/_responsive-visibility.scss +0 -21
- data/client/lanes/styles/bootstrap/old/mixins/_size.scss +0 -10
- data/client/lanes/styles/bootstrap/old/mixins/_tab-focus.scss +0 -9
- data/client/lanes/styles/bootstrap/old/mixins/_table-row.scss +0 -28
- data/client/lanes/styles/bootstrap/old/mixins/_text-emphasis.scss +0 -11
- data/client/lanes/styles/bootstrap/old/mixins/_text-overflow.scss +0 -8
- data/client/lanes/styles/bootstrap/old/mixins/_vendor-prefixes.scss +0 -219
- data/client/lanes/styles/font-definitions.scss +0 -451
- data/client/lanes/testing/TestModels.coffee +0 -23
- data/client/lanes/vendor/bootstrap/affix.js +0 -162
- data/client/lanes/vendor/bootstrap/alert.js +0 -94
- data/client/lanes/vendor/bootstrap/button.js +0 -116
- data/client/lanes/vendor/bootstrap/carousel.js +0 -240
- data/client/lanes/vendor/bootstrap/collapse.js +0 -211
- data/client/lanes/vendor/bootstrap/dropdown.js +0 -161
- data/client/lanes/vendor/bootstrap/modal.js +0 -324
- data/client/lanes/vendor/bootstrap/popover.js +0 -119
- data/client/lanes/vendor/bootstrap/scrollspy.js +0 -175
- data/client/lanes/vendor/bootstrap/tab.js +0 -153
- data/client/lanes/vendor/bootstrap/tooltip.js +0 -478
- data/client/lanes/vendor/bootstrap/transition.js +0 -59
- data/client/lanes/vendor/message-bus.js +0 -285
- data/client/lanes/vendor/modern-stack.js +0 -27
- data/client/lanes/vendor/packaged.js +0 -19533
- data/client/lanes/views/Assets.coffee +0 -9
- data/client/lanes/views/Base.coffee +0 -426
- data/client/lanes/views/Functions.coffee +0 -13
- data/client/lanes/views/Helpers.coffee +0 -76
- data/client/lanes/views/Keys.coffee +0 -59
- data/client/lanes/views/RenderContext.coffee +0 -32
- data/client/lanes/views/SaveNotify.coffee +0 -32
- data/client/lanes/views/Viewport.coffee +0 -18
- data/client/lanes/views/_button.html +0 -3
- data/client/lanes/views/_toolbar.html +0 -23
- data/client/lanes/views/empty-span.html +0 -1
- data/client/lanes/views/index.js +0 -2
- data/client/lanes/views/model-update.html +0 -15
- data/client/lanes/workspace/ActiveScreensSwitcher.coffee +0 -112
- data/client/lanes/workspace/Layout.coffee +0 -29
- data/client/lanes/workspace/Navbar.coffee +0 -31
- data/client/lanes/workspace/Pages.coffee +0 -39
- data/client/lanes/workspace/ScreensMenu.coffee +0 -126
- data/client/lanes/workspace/WorkspaceView.coffee +0 -8
- data/client/lanes/workspace/layout.html +0 -4
- data/client/lanes/workspace/menu.html +0 -356
- data/client/lanes/workspace/menu_toggle.html +0 -9
- data/client/lanes/workspace/navbar.html +0 -17
- data/client/lanes/workspace/pages.html +0 -6
- data/client/lanes/workspace/screens-menu.html +0 -11
- data/client/lanes/workspace/screens-switcher.html +0 -7
- data/docs/view.md +0 -292
- data/lib/lanes/command/generate_view.rb +0 -38
- data/lib/lanes/command/generate_view.usage +0 -13
- data/spec/command-reference-files/initial/client/appy-app/Router.coffee +0 -4
- data/spec/command-reference-files/initial/client/appy-app/controllers/.gitkeep +0 -0
- data/spec/command-reference-files/initial/client/appy-app/views/.gitkeep +0 -0
- data/spec/command-reference-files/initial/client/appy-app/views/Base.coffee +0 -5
- data/spec/command-reference-files/initial/spec/appy-app/screens/Base.coffee +0 -5
- data/spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/ReadySetGo.coffee +0 -6
- data/spec/command-reference-files/screen/client/appy-app/screens/ready-set-go/layout.html +0 -3
- data/spec/command-reference-files/view/client/appy-app/views/BigView.coffee +0 -10
- data/spec/command-reference-files/view/spec/appy-app/views/BigViewSpec.coffee +0 -5
- data/templates/client/Router.coffee +0 -4
- data/templates/client/components/Component.coffee +0 -1
- data/templates/client/screens/Base.coffee +0 -3
- data/templates/client/screens/Screen.coffee +0 -11
- data/templates/client/screens/layout.html +0 -3
- data/templates/client/views/.gitkeep +0 -0
- data/templates/client/views/BaseView.coffee +0 -5
- data/templates/client/views/View.coffee +0 -10
- data/templates/spec/client/views/ViewSpec.coffee +0 -5
@@ -1,243 +0,0 @@
|
|
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
|
-
@include transition(.6s ease-in-out left);
|
20
|
-
|
21
|
-
// Account for jankitude on images
|
22
|
-
> img,
|
23
|
-
> a > img {
|
24
|
-
@include img-responsive();
|
25
|
-
line-height: 1;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
> .active,
|
30
|
-
> .next,
|
31
|
-
> .prev {
|
32
|
-
display: block;
|
33
|
-
}
|
34
|
-
|
35
|
-
> .active {
|
36
|
-
left: 0;
|
37
|
-
}
|
38
|
-
|
39
|
-
> .next,
|
40
|
-
> .prev {
|
41
|
-
position: absolute;
|
42
|
-
top: 0;
|
43
|
-
width: 100%;
|
44
|
-
}
|
45
|
-
|
46
|
-
> .next {
|
47
|
-
left: 100%;
|
48
|
-
}
|
49
|
-
> .prev {
|
50
|
-
left: -100%;
|
51
|
-
}
|
52
|
-
> .next.left,
|
53
|
-
> .prev.right {
|
54
|
-
left: 0;
|
55
|
-
}
|
56
|
-
|
57
|
-
> .active.left {
|
58
|
-
left: -100%;
|
59
|
-
}
|
60
|
-
> .active.right {
|
61
|
-
left: 100%;
|
62
|
-
}
|
63
|
-
|
64
|
-
}
|
65
|
-
|
66
|
-
// Left/right controls for nav
|
67
|
-
// ---------------------------
|
68
|
-
|
69
|
-
.carousel-control {
|
70
|
-
position: absolute;
|
71
|
-
top: 0;
|
72
|
-
left: 0;
|
73
|
-
bottom: 0;
|
74
|
-
width: $carousel-control-width;
|
75
|
-
@include opacity($carousel-control-opacity);
|
76
|
-
font-size: $carousel-control-font-size;
|
77
|
-
color: $carousel-control-color;
|
78
|
-
text-align: center;
|
79
|
-
text-shadow: $carousel-text-shadow;
|
80
|
-
// We can't have this transition here because WebKit cancels the carousel
|
81
|
-
// animation if you trip this while in the middle of another animation.
|
82
|
-
|
83
|
-
// Set gradients for backgrounds
|
84
|
-
&.left {
|
85
|
-
@include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
|
86
|
-
}
|
87
|
-
&.right {
|
88
|
-
left: auto;
|
89
|
-
right: 0;
|
90
|
-
@include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
|
91
|
-
}
|
92
|
-
|
93
|
-
// Hover/focus state
|
94
|
-
&:hover,
|
95
|
-
&:focus {
|
96
|
-
outline: 0;
|
97
|
-
color: $carousel-control-color;
|
98
|
-
text-decoration: none;
|
99
|
-
@include opacity(.9);
|
100
|
-
}
|
101
|
-
|
102
|
-
// Toggles
|
103
|
-
.icon-prev,
|
104
|
-
.icon-next,
|
105
|
-
.glyphicon-chevron-left,
|
106
|
-
.glyphicon-chevron-right {
|
107
|
-
position: absolute;
|
108
|
-
top: 50%;
|
109
|
-
z-index: 5;
|
110
|
-
display: inline-block;
|
111
|
-
}
|
112
|
-
.icon-prev,
|
113
|
-
.glyphicon-chevron-left {
|
114
|
-
left: 50%;
|
115
|
-
margin-left: -10px;
|
116
|
-
}
|
117
|
-
.icon-next,
|
118
|
-
.glyphicon-chevron-right {
|
119
|
-
right: 50%;
|
120
|
-
margin-right: -10px;
|
121
|
-
}
|
122
|
-
.icon-prev,
|
123
|
-
.icon-next {
|
124
|
-
width: 20px;
|
125
|
-
height: 20px;
|
126
|
-
margin-top: -10px;
|
127
|
-
font-family: serif;
|
128
|
-
}
|
129
|
-
|
130
|
-
|
131
|
-
.icon-prev {
|
132
|
-
&:before {
|
133
|
-
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
134
|
-
}
|
135
|
-
}
|
136
|
-
.icon-next {
|
137
|
-
&:before {
|
138
|
-
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
139
|
-
}
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
// Optional indicator pips
|
144
|
-
//
|
145
|
-
// Add an unordered list with the following class and add a list item for each
|
146
|
-
// slide your carousel holds.
|
147
|
-
|
148
|
-
.carousel-indicators {
|
149
|
-
position: absolute;
|
150
|
-
bottom: 10px;
|
151
|
-
left: 50%;
|
152
|
-
z-index: 15;
|
153
|
-
width: 60%;
|
154
|
-
margin-left: -30%;
|
155
|
-
padding-left: 0;
|
156
|
-
list-style: none;
|
157
|
-
text-align: center;
|
158
|
-
|
159
|
-
li {
|
160
|
-
display: inline-block;
|
161
|
-
width: 10px;
|
162
|
-
height: 10px;
|
163
|
-
margin: 1px;
|
164
|
-
text-indent: -999px;
|
165
|
-
border: 1px solid $carousel-indicator-border-color;
|
166
|
-
border-radius: 10px;
|
167
|
-
cursor: pointer;
|
168
|
-
|
169
|
-
// IE8-9 hack for event handling
|
170
|
-
//
|
171
|
-
// Internet Explorer 8-9 does not support clicks on elements without a set
|
172
|
-
// `background-color`. We cannot use `filter` since that's not viewed as a
|
173
|
-
// background color by the browser. Thus, a hack is needed.
|
174
|
-
//
|
175
|
-
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
176
|
-
// set alpha transparency for the best results possible.
|
177
|
-
background-color: #000 \9; // IE8
|
178
|
-
background-color: rgba(0,0,0,0); // IE9
|
179
|
-
}
|
180
|
-
.active {
|
181
|
-
margin: 0;
|
182
|
-
width: 12px;
|
183
|
-
height: 12px;
|
184
|
-
background-color: $carousel-indicator-active-bg;
|
185
|
-
}
|
186
|
-
}
|
187
|
-
|
188
|
-
// Optional captions
|
189
|
-
// -----------------------------
|
190
|
-
// Hidden by default for smaller viewports
|
191
|
-
.carousel-caption {
|
192
|
-
position: absolute;
|
193
|
-
left: 15%;
|
194
|
-
right: 15%;
|
195
|
-
bottom: 20px;
|
196
|
-
z-index: 10;
|
197
|
-
padding-top: 20px;
|
198
|
-
padding-bottom: 20px;
|
199
|
-
color: $carousel-caption-color;
|
200
|
-
text-align: center;
|
201
|
-
text-shadow: $carousel-text-shadow;
|
202
|
-
& .btn {
|
203
|
-
text-shadow: none; // No shadow for button elements in carousel-caption
|
204
|
-
}
|
205
|
-
}
|
206
|
-
|
207
|
-
|
208
|
-
// Scale up controls for tablets and up
|
209
|
-
@media screen and (min-width: $screen-sm-min) {
|
210
|
-
|
211
|
-
// Scale up the controls a smidge
|
212
|
-
.carousel-control {
|
213
|
-
.glyphicon-chevron-left,
|
214
|
-
.glyphicon-chevron-right,
|
215
|
-
.icon-prev,
|
216
|
-
.icon-next {
|
217
|
-
width: 30px;
|
218
|
-
height: 30px;
|
219
|
-
margin-top: -15px;
|
220
|
-
font-size: 30px;
|
221
|
-
}
|
222
|
-
.glyphicon-chevron-left,
|
223
|
-
.icon-prev {
|
224
|
-
margin-left: -15px;
|
225
|
-
}
|
226
|
-
.glyphicon-chevron-right,
|
227
|
-
.icon-next {
|
228
|
-
margin-right: -15px;
|
229
|
-
}
|
230
|
-
}
|
231
|
-
|
232
|
-
// Show and left align the captions
|
233
|
-
.carousel-caption {
|
234
|
-
left: 20%;
|
235
|
-
right: 20%;
|
236
|
-
padding-bottom: 30px;
|
237
|
-
}
|
238
|
-
|
239
|
-
// Move up the indicators
|
240
|
-
.carousel-indicators {
|
241
|
-
bottom: 20px;
|
242
|
-
}
|
243
|
-
}
|
@@ -1,35 +0,0 @@
|
|
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
|
-
@include opacity(.2);
|
14
|
-
|
15
|
-
&:hover,
|
16
|
-
&:focus {
|
17
|
-
color: $close-color;
|
18
|
-
text-decoration: none;
|
19
|
-
cursor: pointer;
|
20
|
-
@include opacity(.5);
|
21
|
-
}
|
22
|
-
|
23
|
-
// [converter] extracted button& to button.close
|
24
|
-
}
|
25
|
-
|
26
|
-
// Additional properties for button version
|
27
|
-
// iOS requires the button element instead of an anchor tag.
|
28
|
-
// If you want the anchor version, it requires `href="#"`.
|
29
|
-
button.close {
|
30
|
-
padding: 0;
|
31
|
-
cursor: pointer;
|
32
|
-
background: transparent;
|
33
|
-
border: 0;
|
34
|
-
-webkit-appearance: none;
|
35
|
-
}
|
@@ -1,68 +0,0 @@
|
|
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
|
-
border-radius: $border-radius-base;
|
21
|
-
}
|
22
|
-
|
23
|
-
// User input typically entered via keyboard
|
24
|
-
kbd {
|
25
|
-
padding: 2px 4px;
|
26
|
-
font-size: 90%;
|
27
|
-
color: $kbd-color;
|
28
|
-
background-color: $kbd-bg;
|
29
|
-
border-radius: $border-radius-small;
|
30
|
-
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
|
31
|
-
|
32
|
-
kbd {
|
33
|
-
padding: 0;
|
34
|
-
font-size: 100%;
|
35
|
-
box-shadow: none;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
// Blocks of code
|
40
|
-
pre {
|
41
|
-
display: block;
|
42
|
-
padding: (($line-height-computed - 1) / 2);
|
43
|
-
margin: 0 0 ($line-height-computed / 2);
|
44
|
-
font-size: ($font-size-base - 1); // 14px to 13px
|
45
|
-
line-height: $line-height-base;
|
46
|
-
word-break: break-all;
|
47
|
-
word-wrap: break-word;
|
48
|
-
color: $pre-color;
|
49
|
-
background-color: $pre-bg;
|
50
|
-
border: 1px solid $pre-border-color;
|
51
|
-
border-radius: $border-radius-base;
|
52
|
-
|
53
|
-
// Account for some code outputs that place code tags in pre tags
|
54
|
-
code {
|
55
|
-
padding: 0;
|
56
|
-
font-size: inherit;
|
57
|
-
color: inherit;
|
58
|
-
white-space: pre-wrap;
|
59
|
-
background-color: transparent;
|
60
|
-
border-radius: 0;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
// Enable scrollable blocks of code
|
65
|
-
.pre-scrollable {
|
66
|
-
max-height: $pre-scrollable-max-height;
|
67
|
-
overflow-y: scroll;
|
68
|
-
}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Component animations
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Heads up!
|
6
|
-
//
|
7
|
-
// We don't use the `.opacity()` mixin here since it causes a bug with text
|
8
|
-
// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
|
9
|
-
|
10
|
-
.fade {
|
11
|
-
opacity: 0;
|
12
|
-
@include transition(opacity .15s linear);
|
13
|
-
&.in {
|
14
|
-
opacity: 1;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
|
18
|
-
.collapse {
|
19
|
-
display: none;
|
20
|
-
|
21
|
-
&.in { display: block; }
|
22
|
-
// [converter] extracted tr&.in to tr.collapse.in
|
23
|
-
// [converter] extracted tbody&.in to tbody.collapse.in
|
24
|
-
}
|
25
|
-
|
26
|
-
tr.collapse.in { display: table-row; }
|
27
|
-
|
28
|
-
tbody.collapse.in { display: table-row-group; }
|
29
|
-
|
30
|
-
.collapsing {
|
31
|
-
position: relative;
|
32
|
-
height: 0;
|
33
|
-
overflow: hidden;
|
34
|
-
@include transition(height .35s ease);
|
35
|
-
}
|
@@ -1,215 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Dropdown menus
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
|
-
// Dropdown arrow/caret
|
7
|
-
.caret {
|
8
|
-
display: inline-block;
|
9
|
-
width: 0;
|
10
|
-
height: 0;
|
11
|
-
margin-left: 2px;
|
12
|
-
vertical-align: middle;
|
13
|
-
border-top: $caret-width-base solid;
|
14
|
-
border-right: $caret-width-base solid transparent;
|
15
|
-
border-left: $caret-width-base solid transparent;
|
16
|
-
}
|
17
|
-
|
18
|
-
// The dropdown wrapper (div)
|
19
|
-
.dropdown {
|
20
|
-
position: relative;
|
21
|
-
}
|
22
|
-
|
23
|
-
// Prevent the focus on the dropdown toggle when closing dropdowns
|
24
|
-
.dropdown-toggle:focus {
|
25
|
-
outline: 0;
|
26
|
-
}
|
27
|
-
|
28
|
-
// The dropdown menu (ul)
|
29
|
-
.dropdown-menu {
|
30
|
-
position: absolute;
|
31
|
-
top: 100%;
|
32
|
-
left: 0;
|
33
|
-
z-index: $zindex-dropdown;
|
34
|
-
display: none; // none by default, but block on "open" of the menu
|
35
|
-
float: left;
|
36
|
-
min-width: 160px;
|
37
|
-
padding: 5px 0;
|
38
|
-
margin: 2px 0 0; // override default ul
|
39
|
-
list-style: none;
|
40
|
-
font-size: $font-size-base;
|
41
|
-
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
42
|
-
background-color: $dropdown-bg;
|
43
|
-
border: 1px solid $dropdown-fallback-border; // IE8 fallback
|
44
|
-
border: 1px solid $dropdown-border;
|
45
|
-
border-radius: $border-radius-base;
|
46
|
-
@include box-shadow(0 6px 12px rgba(0,0,0,.175));
|
47
|
-
background-clip: padding-box;
|
48
|
-
|
49
|
-
// Aligns the dropdown menu to right
|
50
|
-
//
|
51
|
-
// Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
|
52
|
-
&.pull-right {
|
53
|
-
right: 0;
|
54
|
-
left: auto;
|
55
|
-
}
|
56
|
-
|
57
|
-
// Dividers (basically an hr) within the dropdown
|
58
|
-
.divider {
|
59
|
-
@include nav-divider($dropdown-divider-bg);
|
60
|
-
}
|
61
|
-
|
62
|
-
// Links within the dropdown menu
|
63
|
-
> li > a {
|
64
|
-
display: block;
|
65
|
-
padding: 3px 20px;
|
66
|
-
clear: both;
|
67
|
-
font-weight: normal;
|
68
|
-
line-height: $line-height-base;
|
69
|
-
color: $dropdown-link-color;
|
70
|
-
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
71
|
-
}
|
72
|
-
}
|
73
|
-
|
74
|
-
// Hover/Focus state
|
75
|
-
.dropdown-menu > li > a {
|
76
|
-
&:hover,
|
77
|
-
&:focus {
|
78
|
-
text-decoration: none;
|
79
|
-
color: $dropdown-link-hover-color;
|
80
|
-
background-color: $dropdown-link-hover-bg;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
|
-
// Active state
|
85
|
-
.dropdown-menu > .active > a {
|
86
|
-
&,
|
87
|
-
&:hover,
|
88
|
-
&:focus {
|
89
|
-
color: $dropdown-link-active-color;
|
90
|
-
text-decoration: none;
|
91
|
-
outline: 0;
|
92
|
-
background-color: $dropdown-link-active-bg;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
|
96
|
-
// Disabled state
|
97
|
-
//
|
98
|
-
// Gray out text and ensure the hover/focus state remains gray
|
99
|
-
|
100
|
-
.dropdown-menu > .disabled > a {
|
101
|
-
&,
|
102
|
-
&:hover,
|
103
|
-
&:focus {
|
104
|
-
color: $dropdown-link-disabled-color;
|
105
|
-
}
|
106
|
-
}
|
107
|
-
// Nuke hover/focus effects
|
108
|
-
.dropdown-menu > .disabled > a {
|
109
|
-
&:hover,
|
110
|
-
&:focus {
|
111
|
-
text-decoration: none;
|
112
|
-
background-color: transparent;
|
113
|
-
background-image: none; // Remove CSS gradient
|
114
|
-
@include reset-filter();
|
115
|
-
cursor: not-allowed;
|
116
|
-
}
|
117
|
-
}
|
118
|
-
|
119
|
-
// Open state for the dropdown
|
120
|
-
.open {
|
121
|
-
// Show the menu
|
122
|
-
> .dropdown-menu {
|
123
|
-
display: block;
|
124
|
-
}
|
125
|
-
|
126
|
-
// Remove the outline when :focus is triggered
|
127
|
-
> a {
|
128
|
-
outline: 0;
|
129
|
-
}
|
130
|
-
}
|
131
|
-
|
132
|
-
// Menu positioning
|
133
|
-
//
|
134
|
-
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
135
|
-
// menu with the parent.
|
136
|
-
.dropdown-menu-right {
|
137
|
-
left: auto; // Reset the default from `.dropdown-menu`
|
138
|
-
right: 0;
|
139
|
-
}
|
140
|
-
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
141
|
-
// aligned nav component. To enable the undoing of that, we provide an override
|
142
|
-
// to restore the default dropdown menu alignment.
|
143
|
-
//
|
144
|
-
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
145
|
-
// `.pull-right` nav component.
|
146
|
-
.dropdown-menu-left {
|
147
|
-
left: 0;
|
148
|
-
right: auto;
|
149
|
-
}
|
150
|
-
|
151
|
-
// Dropdown section headers
|
152
|
-
.dropdown-header {
|
153
|
-
display: block;
|
154
|
-
padding: 3px 20px;
|
155
|
-
font-size: $font-size-small;
|
156
|
-
line-height: $line-height-base;
|
157
|
-
color: $dropdown-header-color;
|
158
|
-
white-space: nowrap; // as with > li > a
|
159
|
-
}
|
160
|
-
|
161
|
-
// Backdrop to catch body clicks on mobile, etc.
|
162
|
-
.dropdown-backdrop {
|
163
|
-
position: fixed;
|
164
|
-
left: 0;
|
165
|
-
right: 0;
|
166
|
-
bottom: 0;
|
167
|
-
top: 0;
|
168
|
-
z-index: ($zindex-dropdown - 10);
|
169
|
-
}
|
170
|
-
|
171
|
-
// Right aligned dropdowns
|
172
|
-
.pull-right > .dropdown-menu {
|
173
|
-
right: 0;
|
174
|
-
left: auto;
|
175
|
-
}
|
176
|
-
|
177
|
-
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
178
|
-
//
|
179
|
-
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
180
|
-
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
181
|
-
|
182
|
-
.dropup,
|
183
|
-
.navbar-fixed-bottom .dropdown {
|
184
|
-
// Reverse the caret
|
185
|
-
.caret {
|
186
|
-
border-top: 0;
|
187
|
-
border-bottom: $caret-width-base solid;
|
188
|
-
content: "";
|
189
|
-
}
|
190
|
-
// Different positioning for bottom up menu
|
191
|
-
.dropdown-menu {
|
192
|
-
top: auto;
|
193
|
-
bottom: 100%;
|
194
|
-
margin-bottom: 1px;
|
195
|
-
}
|
196
|
-
}
|
197
|
-
|
198
|
-
|
199
|
-
// Component alignment
|
200
|
-
//
|
201
|
-
// Reiterate per navbar.less and the modified component alignment there.
|
202
|
-
|
203
|
-
@media (min-width: $grid-float-breakpoint) {
|
204
|
-
.navbar-right {
|
205
|
-
.dropdown-menu {
|
206
|
-
right: 0; left: auto;
|
207
|
-
}
|
208
|
-
// Necessary for overrides of the default right aligned menu.
|
209
|
-
// Will remove come v4 in all likelihood.
|
210
|
-
.dropdown-menu-left {
|
211
|
-
left: 0; right: auto;
|
212
|
-
}
|
213
|
-
}
|
214
|
-
}
|
215
|
-
|