rmails 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/Gemfile +24 -0
- data/Gemfile.lock +167 -0
- data/LICENSE.txt +20 -0
- data/README.markdown +9 -0
- data/Rakefile +31 -0
- data/Rakefile1 +9 -0
- data/Vagrantfile +51 -0
- data/app/assets/images/arrow_bottom.gif +0 -0
- data/app/assets/images/arrow_right.gif +0 -0
- data/app/assets/images/at-sign.png +0 -0
- data/app/assets/images/checkerboard.gif +0 -0
- data/app/assets/images/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/glyphicons-halflings.png +0 -0
- data/app/assets/images/icon_draft.gif +0 -0
- data/app/assets/images/icon_layout.gif +0 -0
- data/app/assets/images/icon_move.gif +0 -0
- data/app/assets/images/icon_regular.gif +0 -0
- data/app/assets/images/icon_snippet.gif +0 -0
- data/app/assets/images/nav_arrow.png +0 -0
- data/app/assets/images/x.png +0 -0
- data/app/assets/javascripts/application.coffee.erb +27 -0
- data/app/assets/javascripts/canjs/can.construct.proxy.js +60 -0
- data/app/assets/javascripts/canjs/can.construct.super.js +44 -0
- data/app/assets/javascripts/canjs/can.control.plugin.js +245 -0
- data/app/assets/javascripts/canjs/can.control.view.js +88 -0
- data/app/assets/javascripts/canjs/can.dojo.js +3669 -0
- data/app/assets/javascripts/canjs/can.dojo.min.js +66 -0
- data/app/assets/javascripts/canjs/can.fixture.js +1020 -0
- data/app/assets/javascripts/canjs/can.jquery.js +2995 -0
- data/app/assets/javascripts/canjs/can.jquery.min.js +52 -0
- data/app/assets/javascripts/canjs/can.mootools.js +3462 -0
- data/app/assets/javascripts/canjs/can.mootools.min.js +63 -0
- data/app/assets/javascripts/canjs/can.observe.attributes.js +293 -0
- data/app/assets/javascripts/canjs/can.observe.backup.js +368 -0
- data/app/assets/javascripts/canjs/can.observe.delegate.js +359 -0
- data/app/assets/javascripts/canjs/can.observe.setter.js +58 -0
- data/app/assets/javascripts/canjs/can.observe.validations.js +374 -0
- data/app/assets/javascripts/canjs/can.view.modifiers.js +292 -0
- data/app/assets/javascripts/canjs/can.yui.js +3530 -0
- data/app/assets/javascripts/canjs/can.yui.min.js +65 -0
- data/app/assets/javascripts/canjs/can.zepto.js +3426 -0
- data/app/assets/javascripts/canjs/can.zepto.min.js +62 -0
- data/app/assets/javascripts/controls/admins.coffee.erb +105 -0
- data/app/assets/javascripts/controls/aliases.coffee.erb +91 -0
- data/app/assets/javascripts/controls/domains.coffee.erb +115 -0
- data/app/assets/javascripts/controls/settings.coffee.erb +47 -0
- data/app/assets/javascripts/controls/users.coffee.erb +94 -0
- data/app/assets/javascripts/lib/facebox.js +311 -0
- data/app/assets/javascripts/lib/html5.js +2 -0
- data/app/assets/javascripts/lib/jquery.js +9301 -0
- data/app/assets/javascripts/lib/jquery_formparams.js +108 -0
- data/app/assets/javascripts/lib/jquery_input_hint.js +20 -0
- data/app/assets/javascripts/lib/jquery_paginate.js +120 -0
- data/app/assets/javascripts/lib/jquery_ui_custom.js +6 -0
- data/app/assets/javascripts/lib/json2.js +487 -0
- data/app/assets/javascripts/lib/utils.coffee.erb +48 -0
- data/app/assets/javascripts/models/admin.coffee.erb +42 -0
- data/app/assets/javascripts/models/alias.coffee.erb +28 -0
- data/app/assets/javascripts/models/domain.coffee.erb +39 -0
- data/app/assets/javascripts/models/property.coffee.erb +18 -0
- data/app/assets/javascripts/models/user.coffee.erb +29 -0
- data/app/assets/stylesheets/application.sass +156 -0
- data/app/assets/stylesheets/base.css.sass +243 -0
- data/app/assets/stylesheets/facebox.css +80 -0
- data/app/assets/stylesheets/lib/bootstrap.css +9 -0
- data/app/assets/stylesheets/twitter/bootstrap-responsive.scss +1 -0
- data/app/assets/stylesheets/twitter/bootstrap.scss +63 -0
- data/app/assets/stylesheets/twitter/bootstrap/_accordion.scss +34 -0
- data/app/assets/stylesheets/twitter/bootstrap/_alerts.scss +79 -0
- data/app/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +24 -0
- data/app/assets/stylesheets/twitter/bootstrap/_button-groups.scss +229 -0
- data/app/assets/stylesheets/twitter/bootstrap/_buttons.scss +228 -0
- data/app/assets/stylesheets/twitter/bootstrap/_carousel.scss +158 -0
- data/app/assets/stylesheets/twitter/bootstrap/_close.scss +32 -0
- data/app/assets/stylesheets/twitter/bootstrap/_code.scss +61 -0
- data/app/assets/stylesheets/twitter/bootstrap/_component-animations.scss +22 -0
- data/app/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +237 -0
- data/app/assets/stylesheets/twitter/bootstrap/_forms.scss +689 -0
- data/app/assets/stylesheets/twitter/bootstrap/_grid.scss +21 -0
- data/app/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +25 -0
- data/app/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +83 -0
- data/app/assets/stylesheets/twitter/bootstrap/_layouts.scss +16 -0
- data/app/assets/stylesheets/twitter/bootstrap/_media.scss +55 -0
- data/app/assets/stylesheets/twitter/bootstrap/_mixins.scss +690 -0
- data/app/assets/stylesheets/twitter/bootstrap/_modals.scss +95 -0
- data/app/assets/stylesheets/twitter/bootstrap/_navbar.scss +497 -0
- data/app/assets/stylesheets/twitter/bootstrap/_navs.scss +409 -0
- data/app/assets/stylesheets/twitter/bootstrap/_pager.scss +43 -0
- data/app/assets/stylesheets/twitter/bootstrap/_pagination.scss +123 -0
- data/app/assets/stylesheets/twitter/bootstrap/_popovers.scss +133 -0
- data/app/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +122 -0
- data/app/assets/stylesheets/twitter/bootstrap/_reset.scss +216 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +28 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +193 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +189 -0
- data/app/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +74 -0
- data/app/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +53 -0
- data/app/assets/stylesheets/twitter/bootstrap/_sprites.scss +197 -0
- data/app/assets/stylesheets/twitter/bootstrap/_tables.scss +235 -0
- data/app/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +53 -0
- data/app/assets/stylesheets/twitter/bootstrap/_tooltip.scss +70 -0
- data/app/assets/stylesheets/twitter/bootstrap/_type.scss +247 -0
- data/app/assets/stylesheets/twitter/bootstrap/_utilities.scss +45 -0
- data/app/assets/stylesheets/twitter/bootstrap/_variables.scss +301 -0
- data/app/assets/stylesheets/twitter/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/twitter/bootstrap/responsive.scss +48 -0
- data/app/controllers/admin_users_controller.rb +62 -0
- data/app/controllers/aliases_controller.rb +35 -0
- data/app/controllers/application_controller.rb +20 -0
- data/app/controllers/domains_controller.rb +48 -0
- data/app/controllers/server_controller.rb +28 -0
- data/app/controllers/users_controller.rb +35 -0
- data/app/helpers/admin_users_helper.rb +11 -0
- data/app/helpers/application_helper.rb +2 -0
- data/app/helpers/domains_helper.rb +25 -0
- data/app/helpers/server_helper.rb +30 -0
- data/app/mailers/.gitkeep +0 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/admin_user.rb +54 -0
- data/app/models/certificate_manager.rb +46 -0
- data/app/models/property.rb +103 -0
- data/app/models/property/awstats.rb +15 -0
- data/app/models/property/dovecot.rb +61 -0
- data/app/models/property/dspam.rb +45 -0
- data/app/models/property/nginx.rb +47 -0
- data/app/models/property/postfix.rb +64 -0
- data/app/models/property_value_validator.rb +41 -0
- data/app/models/system_manager.rb +88 -0
- data/app/models/virtual_alias.rb +13 -0
- data/app/models/virtual_domain.rb +15 -0
- data/app/models/virtual_user.rb +51 -0
- data/app/views/admin_users/_form.html.haml +21 -0
- data/app/views/admin_users/first.html.haml +12 -0
- data/app/views/admin_users/index.html.haml +61 -0
- data/app/views/aliases/_form.html.haml +11 -0
- data/app/views/aliases/_list.html.haml +0 -0
- data/app/views/devise/confirmations/new.html.haml +9 -0
- data/app/views/devise/mailer/confirmation_instructions.html.haml +4 -0
- data/app/views/devise/mailer/reset_password_instructions.html.haml +6 -0
- data/app/views/devise/mailer/unlock_instructions.html.haml +5 -0
- data/app/views/devise/passwords/edit.html.haml +14 -0
- data/app/views/devise/passwords/new.html.haml +12 -0
- data/app/views/devise/registrations/edit.html.haml +18 -0
- data/app/views/devise/registrations/new.html.haml +10 -0
- data/app/views/devise/sessions/new.html.haml +16 -0
- data/app/views/devise/shared/_links.haml +17 -0
- data/app/views/devise/unlocks/new.html.haml +11 -0
- data/app/views/domains/_fields.html.haml +0 -0
- data/app/views/domains/_form.html.haml +7 -0
- data/app/views/domains/index.html.haml +133 -0
- data/app/views/domains/show.html.haml +1 -0
- data/app/views/layouts/_nav.html.haml +3 -0
- data/app/views/layouts/application.html.haml +29 -0
- data/app/views/server/_certificates.html.haml +10 -0
- data/app/views/server/_dovecot.html.haml +27 -0
- data/app/views/server/_dspam.html.haml +9 -0
- data/app/views/server/_postfix_info.html.haml +5 -0
- data/app/views/server/_postfix_test.html.haml +5 -0
- data/app/views/server/_status.html.haml +11 -0
- data/app/views/server/index.html.haml +36 -0
- data/app/views/users/_form.html.haml +11 -0
- data/app/views/users/_list.html.haml +0 -0
- data/bin/rmails +43 -0
- data/config.ru +4 -0
- data/config/application.rb +62 -0
- data/config/boot.rb +6 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +37 -0
- data/config/environments/production.rb +67 -0
- data/config/environments/test.rb +37 -0
- data/config/initializers/backtrace_silencers.rb +7 -0
- data/config/initializers/devise.rb +240 -0
- data/config/initializers/devise_encryptable.rb +37 -0
- data/config/initializers/devise_models.rb +86 -0
- data/config/initializers/inflections.rb +15 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/secret_token.rb +7 -0
- data/config/initializers/session_store.rb +8 -0
- data/config/initializers/simple_form.rb +142 -0
- data/config/initializers/simple_form_bootstrap.rb +45 -0
- data/config/initializers/wrap_parameters.rb +14 -0
- data/config/locales/cz.yml +45 -0
- data/config/locales/devise.cz.yml +47 -0
- data/config/locales/devise.en.yml +60 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/server/cz.yml +14 -0
- data/config/locales/server/en.yml +7 -0
- data/config/locales/server/help/dovecot/cz.yml +21 -0
- data/config/locales/server/help/dovecot/en.yml +18 -0
- data/config/locales/server/help/dspam/cz.yml +10 -0
- data/config/locales/server/help/dspam/en.yml +4 -0
- data/config/locales/server/key/dovecot/cz.yml +23 -0
- data/config/locales/server/key/dovecot/en.yml +20 -0
- data/config/locales/server/key/dspam/cz.yml +10 -0
- data/config/locales/server/key/dspam/en.yml +4 -0
- data/config/locales/simple_form.en.yml +26 -0
- data/config/locales/views/admin_users/cz.yml +25 -0
- data/config/locales/views/admin_users/en.yml +5 -0
- data/config/locales/views/aliases/cz.yml +17 -0
- data/config/locales/views/aliases/en.yml +1 -0
- data/config/locales/views/devise/cz.yml +26 -0
- data/config/locales/views/devise/en.yml +13 -0
- data/config/locales/views/domains/cz.yml +15 -0
- data/config/locales/views/domains/en.yml +15 -0
- data/config/locales/views/server/cz.yml +19 -0
- data/config/locales/views/server/en.yml +3 -0
- data/config/locales/views/users/cz.yml +18 -0
- data/config/locales/views/users/en.yml +1 -0
- data/config/routes.rb +80 -0
- data/db/migrate/20121112201233_virtual_domain.rb +11 -0
- data/db/migrate/20121112201247_virtual_alias.rb +10 -0
- data/db/migrate/20121112201341_virtual_user.rb +34 -0
- data/db/migrate/20121112201359_create_admin_user.rb +30 -0
- data/db/migrate/20121112201411_server_configuration.rb +13 -0
- data/db/migrate/20130304083938_join_domains_users.rb +12 -0
- data/db/migrate/20130311214040_create_versions.rb +18 -0
- data/db/seeds.rb +45 -0
- data/lib/devise-encryptable.rb +1 -0
- data/lib/rmails.rb +5 -0
- data/lib/rmails/installer.rb +37 -0
- data/lib/rmails/version.rb +3 -0
- data/lib/tasks/.gitkeep +0 -0
- data/lib/templates/haml/scaffold/_form.html.haml +10 -0
- data/locals +0 -0
- data/log/.gitkeep +0 -0
- data/public/404.html +26 -0
- data/public/422.html +26 -0
- data/public/500.html +25 -0
- data/public/favicon.ico +0 -0
- data/public/fonts/London.eot +0 -0
- data/public/fonts/London.otf +0 -0
- data/public/fonts/London.woff +0 -0
- data/public/fonts/LondonBold.otf +0 -0
- data/public/robots.txt +5 -0
- data/rmails.gemspec +35 -0
- data/script/prepflog.pl +576 -0
- data/script/rails +6 -0
- data/system/config/automateit_env.rb +16 -0
- data/system/config/fields.yml +48 -0
- data/system/config/tags.yml +39 -0
- data/system/dist/README_AutomateIt_dist.txt +20 -0
- data/system/dist/amavis/spamassassin.cf.erb +85 -0
- data/system/dist/amavis/user.erb +33 -0
- data/system/dist/awstats/awstats.mail.conf.erb +41 -0
- data/system/dist/awstats/prepflog.pl +576 -0
- data/system/dist/dovecot/dovecot-sql.conf.ext.erb +14 -0
- data/system/dist/dovecot/dovecot.conf.erb +297 -0
- data/system/dist/dovecot/old_dovecot.conf.erb +63 -0
- data/system/dist/dspam/conf.erb +96 -0
- data/system/dist/dspam/pgsql.conf +33 -0
- data/system/dist/nginx/awstats.erb +17 -0
- data/system/dist/nginx/rmails.erb +40 -0
- data/system/dist/postfix/email2email.cf.erb +5 -0
- data/system/dist/postfix/main.cf.erb +118 -0
- data/system/dist/postfix/master.cf.erb +74 -0
- data/system/dist/postfix/sasl.conf.erb +3 -0
- data/system/dist/postfix/sender_login_maps.cf.erb +5 -0
- data/system/dist/postfix/virtual_alias_maps.cf.erb +5 -0
- data/system/dist/postfix/virtual_mailbox_domains.cf.erb +5 -0
- data/system/dist/postfix/virtual_mailbox_maps.cf.erb +5 -0
- data/system/dist/postgresql/postgresql.conf.erb +54 -0
- data/system/dist/rmails/Gemfile.1 +8 -0
- data/system/dist/rmails/Gemfile.2 +24 -0
- data/system/dist/rmails/database.yml.erb +15 -0
- data/system/dist/sudoers +37 -0
- data/system/lib/README_AutomateIt_lib.txt +22 -0
- data/system/lib/dkim_key.rb +9 -0
- data/system/lib/smtpd_key.rb +39 -0
- data/system/lib/ssl.rb +23 -0
- data/system/recipes/01_prepare_server.rb +84 -0
- data/system/recipes/02_setup_database.rb +65 -0
- data/system/recipes/03_setup_postfix.rb +124 -0
- data/system/recipes/04_setup_dovecot.rb +78 -0
- data/system/recipes/05_setup_nginx.rb +29 -0
- data/system/recipes/06_setup_dspam.rb +24 -0
- data/system/recipes/07_setup_amavis.rb +16 -0
- data/system/recipes/08_setup_spamassassin.rb +22 -0
- data/system/recipes/09_setup_awstats.rb +49 -0
- data/system/recipes/XX_start_services.rb +5 -0
- data/test/fixtures/.gitkeep +0 -0
- data/test/functional/.gitkeep +0 -0
- data/test/functional/aliases_controller_test.rb +7 -0
- data/test/functional/domains_controller_test.rb +7 -0
- data/test/functional/users_controller_test.rb +7 -0
- data/test/integration/.gitkeep +0 -0
- data/test/performance/browsing_test.rb +12 -0
- data/test/test_helper.rb +13 -0
- data/test/unit/.gitkeep +0 -0
- data/test/unit/helpers/aliases_helper_test.rb +4 -0
- data/test/unit/helpers/domains_helper_test.rb +4 -0
- data/test/unit/helpers/users_helper_test.rb +4 -0
- data/vendor/assets/javascripts/.gitkeep +0 -0
- data/vendor/assets/javascripts/canjs/can.construct.proxy.js +60 -0
- data/vendor/assets/javascripts/canjs/can.construct.super.js +44 -0
- data/vendor/assets/javascripts/canjs/can.control.plugin.js +245 -0
- data/vendor/assets/javascripts/canjs/can.control.view.js +88 -0
- data/vendor/assets/javascripts/canjs/can.dojo.js +3669 -0
- data/vendor/assets/javascripts/canjs/can.dojo.min.js +66 -0
- data/vendor/assets/javascripts/canjs/can.fixture.js +1020 -0
- data/vendor/assets/javascripts/canjs/can.jquery.js +2995 -0
- data/vendor/assets/javascripts/canjs/can.jquery.min.js +52 -0
- data/vendor/assets/javascripts/canjs/can.mootools.js +3462 -0
- data/vendor/assets/javascripts/canjs/can.mootools.min.js +63 -0
- data/vendor/assets/javascripts/canjs/can.observe.attributes.js +293 -0
- data/vendor/assets/javascripts/canjs/can.observe.backup.js +368 -0
- data/vendor/assets/javascripts/canjs/can.observe.delegate.js +359 -0
- data/vendor/assets/javascripts/canjs/can.observe.setter.js +58 -0
- data/vendor/assets/javascripts/canjs/can.observe.validations.js +374 -0
- data/vendor/assets/javascripts/canjs/can.view.modifiers.js +292 -0
- data/vendor/assets/javascripts/canjs/can.yui.js +3530 -0
- data/vendor/assets/javascripts/canjs/can.yui.min.js +65 -0
- data/vendor/assets/javascripts/canjs/can.zepto.js +3426 -0
- data/vendor/assets/javascripts/canjs/can.zepto.min.js +62 -0
- data/vendor/assets/javascripts/twitter/bootstrap-affix.js +104 -0
- data/vendor/assets/javascripts/twitter/bootstrap-alert.js +90 -0
- data/vendor/assets/javascripts/twitter/bootstrap-button.js +96 -0
- data/vendor/assets/javascripts/twitter/bootstrap-carousel.js +176 -0
- data/vendor/assets/javascripts/twitter/bootstrap-collapse.js +158 -0
- data/vendor/assets/javascripts/twitter/bootstrap-dropdown.js +150 -0
- data/vendor/assets/javascripts/twitter/bootstrap-modal.js +239 -0
- data/vendor/assets/javascripts/twitter/bootstrap-popover.js +103 -0
- data/vendor/assets/javascripts/twitter/bootstrap-scrollspy.js +151 -0
- data/vendor/assets/javascripts/twitter/bootstrap-tab.js +135 -0
- data/vendor/assets/javascripts/twitter/bootstrap-tooltip.js +275 -0
- data/vendor/assets/javascripts/twitter/bootstrap-transition.js +60 -0
- data/vendor/assets/javascripts/twitter/bootstrap-typeahead.js +300 -0
- data/vendor/assets/javascripts/twitter/my/bootstrap-typeahead.js +311 -0
- data/vendor/assets/stylesheets/.gitkeep +0 -0
- metadata +470 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Buttons
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Base styles
|
|
7
|
+
// --------------------------------------------------
|
|
8
|
+
|
|
9
|
+
// Core
|
|
10
|
+
.btn {
|
|
11
|
+
display: inline-block;
|
|
12
|
+
@include ie7-inline-block();
|
|
13
|
+
padding: 4px 12px;
|
|
14
|
+
margin-bottom: 0; // For input.btn
|
|
15
|
+
font-size: $baseFontSize;
|
|
16
|
+
line-height: $baseLineHeight;
|
|
17
|
+
text-align: center;
|
|
18
|
+
vertical-align: middle;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
@include buttonBackground($btnBackground, $btnBackgroundHighlight, $grayDark, 0 1px 1px rgba(255,255,255,.75));
|
|
21
|
+
border: 1px solid $btnBorder;
|
|
22
|
+
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
|
23
|
+
border-bottom-color: darken($btnBorder, 10%);
|
|
24
|
+
@include border-radius($baseBorderRadius);
|
|
25
|
+
@include ie7-restore-left-whitespace(); // Give IE7 some love
|
|
26
|
+
@include box-shadow(inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05));
|
|
27
|
+
|
|
28
|
+
// Hover/focus state
|
|
29
|
+
&:hover,
|
|
30
|
+
&:focus {
|
|
31
|
+
color: $grayDark;
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
background-position: 0 -15px;
|
|
34
|
+
|
|
35
|
+
// transition is only when going to hover/focus, otherwise the background
|
|
36
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
|
37
|
+
@include transition(background-position .1s linear);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Focus state for keyboard and accessibility
|
|
41
|
+
&:focus {
|
|
42
|
+
@include tab-focus();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Active state
|
|
46
|
+
&.active,
|
|
47
|
+
&:active {
|
|
48
|
+
background-image: none;
|
|
49
|
+
outline: 0;
|
|
50
|
+
@include box-shadow(inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Disabled state
|
|
54
|
+
&.disabled,
|
|
55
|
+
&[disabled] {
|
|
56
|
+
cursor: default;
|
|
57
|
+
background-image: none;
|
|
58
|
+
@include opacity(65);
|
|
59
|
+
@include box-shadow(none);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
// Button Sizes
|
|
67
|
+
// --------------------------------------------------
|
|
68
|
+
|
|
69
|
+
// Large
|
|
70
|
+
.btn-large {
|
|
71
|
+
padding: $paddingLarge;
|
|
72
|
+
font-size: $fontSizeLarge;
|
|
73
|
+
@include border-radius($borderRadiusLarge);
|
|
74
|
+
}
|
|
75
|
+
.btn-large [class^="icon-"],
|
|
76
|
+
.btn-large [class*=" icon-"] {
|
|
77
|
+
margin-top: 4px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Small
|
|
81
|
+
.btn-small {
|
|
82
|
+
padding: $paddingSmall;
|
|
83
|
+
font-size: $fontSizeSmall;
|
|
84
|
+
@include border-radius($borderRadiusSmall);
|
|
85
|
+
}
|
|
86
|
+
.btn-small [class^="icon-"],
|
|
87
|
+
.btn-small [class*=" icon-"] {
|
|
88
|
+
margin-top: 0;
|
|
89
|
+
}
|
|
90
|
+
.btn-mini [class^="icon-"],
|
|
91
|
+
.btn-mini [class*=" icon-"] {
|
|
92
|
+
margin-top: -1px;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Mini
|
|
96
|
+
.btn-mini {
|
|
97
|
+
padding: $paddingMini;
|
|
98
|
+
font-size: $fontSizeMini;
|
|
99
|
+
@include border-radius($borderRadiusSmall);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
// Block button
|
|
104
|
+
// -------------------------
|
|
105
|
+
|
|
106
|
+
.btn-block {
|
|
107
|
+
display: block;
|
|
108
|
+
width: 100%;
|
|
109
|
+
padding-left: 0;
|
|
110
|
+
padding-right: 0;
|
|
111
|
+
@include box-sizing(border-box);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// Vertically space out multiple block buttons
|
|
115
|
+
.btn-block + .btn-block {
|
|
116
|
+
margin-top: 5px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Specificity overrides
|
|
120
|
+
input[type="submit"],
|
|
121
|
+
input[type="reset"],
|
|
122
|
+
input[type="button"] {
|
|
123
|
+
&.btn-block {
|
|
124
|
+
width: 100%;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
// Alternate buttons
|
|
131
|
+
// --------------------------------------------------
|
|
132
|
+
|
|
133
|
+
// Provide *some* extra contrast for those who can get it
|
|
134
|
+
.btn-primary.active,
|
|
135
|
+
.btn-warning.active,
|
|
136
|
+
.btn-danger.active,
|
|
137
|
+
.btn-success.active,
|
|
138
|
+
.btn-info.active,
|
|
139
|
+
.btn-inverse.active {
|
|
140
|
+
color: rgba(255,255,255,.75);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// Set the backgrounds
|
|
144
|
+
// -------------------------
|
|
145
|
+
.btn-primary {
|
|
146
|
+
@include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
|
|
147
|
+
}
|
|
148
|
+
// Warning appears are orange
|
|
149
|
+
.btn-warning {
|
|
150
|
+
@include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
|
|
151
|
+
}
|
|
152
|
+
// Danger and error appear as red
|
|
153
|
+
.btn-danger {
|
|
154
|
+
@include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
|
|
155
|
+
}
|
|
156
|
+
// Success appears as green
|
|
157
|
+
.btn-success {
|
|
158
|
+
@include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
|
|
159
|
+
}
|
|
160
|
+
// Info appears as a neutral blue
|
|
161
|
+
.btn-info {
|
|
162
|
+
@include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
|
|
163
|
+
}
|
|
164
|
+
// Inverse appears as dark gray
|
|
165
|
+
.btn-inverse {
|
|
166
|
+
@include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
// Cross-browser Jank
|
|
171
|
+
// --------------------------------------------------
|
|
172
|
+
|
|
173
|
+
button.btn,
|
|
174
|
+
input[type="submit"].btn {
|
|
175
|
+
|
|
176
|
+
// Firefox 3.6 only I believe
|
|
177
|
+
&::-moz-focus-inner {
|
|
178
|
+
padding: 0;
|
|
179
|
+
border: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// IE7 has some default padding on button controls
|
|
183
|
+
*padding-top: 3px;
|
|
184
|
+
*padding-bottom: 3px;
|
|
185
|
+
|
|
186
|
+
&.btn-large {
|
|
187
|
+
*padding-top: 7px;
|
|
188
|
+
*padding-bottom: 7px;
|
|
189
|
+
}
|
|
190
|
+
&.btn-small {
|
|
191
|
+
*padding-top: 3px;
|
|
192
|
+
*padding-bottom: 3px;
|
|
193
|
+
}
|
|
194
|
+
&.btn-mini {
|
|
195
|
+
*padding-top: 1px;
|
|
196
|
+
*padding-bottom: 1px;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
// Link buttons
|
|
202
|
+
// --------------------------------------------------
|
|
203
|
+
|
|
204
|
+
// Make a button look and behave like a link
|
|
205
|
+
.btn-link,
|
|
206
|
+
.btn-link:active,
|
|
207
|
+
.btn-link[disabled] {
|
|
208
|
+
background-color: transparent;
|
|
209
|
+
background-image: none;
|
|
210
|
+
@include box-shadow(none);
|
|
211
|
+
}
|
|
212
|
+
.btn-link {
|
|
213
|
+
border-color: transparent;
|
|
214
|
+
cursor: pointer;
|
|
215
|
+
color: $linkColor;
|
|
216
|
+
@include border-radius(0);
|
|
217
|
+
}
|
|
218
|
+
.btn-link:hover,
|
|
219
|
+
.btn-link:focus {
|
|
220
|
+
color: $linkColorHover;
|
|
221
|
+
text-decoration: underline;
|
|
222
|
+
background-color: transparent;
|
|
223
|
+
}
|
|
224
|
+
.btn-link[disabled]:hover,
|
|
225
|
+
.btn-link[disabled]:focus {
|
|
226
|
+
color: $grayDark;
|
|
227
|
+
text-decoration: none;
|
|
228
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Carousel
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.carousel {
|
|
7
|
+
position: relative;
|
|
8
|
+
margin-bottom: $baseLineHeight;
|
|
9
|
+
line-height: 1;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.carousel-inner {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
width: 100%;
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.carousel-inner {
|
|
19
|
+
|
|
20
|
+
> .item {
|
|
21
|
+
display: none;
|
|
22
|
+
position: relative;
|
|
23
|
+
@include transition(.6s ease-in-out left);
|
|
24
|
+
|
|
25
|
+
// Account for jankitude on images
|
|
26
|
+
> img,
|
|
27
|
+
> a > img {
|
|
28
|
+
display: block;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
> .active,
|
|
34
|
+
> .next,
|
|
35
|
+
> .prev { display: block; }
|
|
36
|
+
|
|
37
|
+
> .active {
|
|
38
|
+
left: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> .next,
|
|
42
|
+
> .prev {
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
> .next {
|
|
49
|
+
left: 100%;
|
|
50
|
+
}
|
|
51
|
+
> .prev {
|
|
52
|
+
left: -100%;
|
|
53
|
+
}
|
|
54
|
+
> .next.left,
|
|
55
|
+
> .prev.right {
|
|
56
|
+
left: 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> .active.left {
|
|
60
|
+
left: -100%;
|
|
61
|
+
}
|
|
62
|
+
> .active.right {
|
|
63
|
+
left: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Left/right controls for nav
|
|
69
|
+
// ---------------------------
|
|
70
|
+
|
|
71
|
+
.carousel-control {
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 40%;
|
|
74
|
+
left: 15px;
|
|
75
|
+
width: 40px;
|
|
76
|
+
height: 40px;
|
|
77
|
+
margin-top: -20px;
|
|
78
|
+
font-size: 60px;
|
|
79
|
+
font-weight: 100;
|
|
80
|
+
line-height: 30px;
|
|
81
|
+
color: $white;
|
|
82
|
+
text-align: center;
|
|
83
|
+
background: $grayDarker;
|
|
84
|
+
border: 3px solid $white;
|
|
85
|
+
@include border-radius(23px);
|
|
86
|
+
@include opacity(50);
|
|
87
|
+
|
|
88
|
+
// we can't have this transition here
|
|
89
|
+
// because webkit cancels the carousel
|
|
90
|
+
// animation if you trip this while
|
|
91
|
+
// in the middle of another animation
|
|
92
|
+
// ;_;
|
|
93
|
+
// .transition(opacity .2s linear);
|
|
94
|
+
|
|
95
|
+
// Reposition the right one
|
|
96
|
+
&.right {
|
|
97
|
+
left: auto;
|
|
98
|
+
right: 15px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Hover/focus state
|
|
102
|
+
&:hover,
|
|
103
|
+
&:focus {
|
|
104
|
+
color: $white;
|
|
105
|
+
text-decoration: none;
|
|
106
|
+
@include opacity(90);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Carousel indicator pips
|
|
111
|
+
// -----------------------------
|
|
112
|
+
.carousel-indicators {
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: 15px;
|
|
115
|
+
right: 15px;
|
|
116
|
+
z-index: 5;
|
|
117
|
+
margin: 0;
|
|
118
|
+
list-style: none;
|
|
119
|
+
|
|
120
|
+
li {
|
|
121
|
+
display: block;
|
|
122
|
+
float: left;
|
|
123
|
+
width: 10px;
|
|
124
|
+
height: 10px;
|
|
125
|
+
margin-left: 5px;
|
|
126
|
+
text-indent: -999px;
|
|
127
|
+
background-color: #ccc;
|
|
128
|
+
background-color: rgba(255,255,255,.25);
|
|
129
|
+
border-radius: 5px;
|
|
130
|
+
}
|
|
131
|
+
.active {
|
|
132
|
+
background-color: #fff;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Caption for text below images
|
|
137
|
+
// -----------------------------
|
|
138
|
+
|
|
139
|
+
.carousel-caption {
|
|
140
|
+
position: absolute;
|
|
141
|
+
left: 0;
|
|
142
|
+
right: 0;
|
|
143
|
+
bottom: 0;
|
|
144
|
+
padding: 15px;
|
|
145
|
+
background: $grayDark;
|
|
146
|
+
background: rgba(0,0,0,.75);
|
|
147
|
+
}
|
|
148
|
+
.carousel-caption h4,
|
|
149
|
+
.carousel-caption p {
|
|
150
|
+
color: $white;
|
|
151
|
+
line-height: $baseLineHeight;
|
|
152
|
+
}
|
|
153
|
+
.carousel-caption h4 {
|
|
154
|
+
margin: 0 0 5px;
|
|
155
|
+
}
|
|
156
|
+
.carousel-caption p {
|
|
157
|
+
margin-bottom: 0;
|
|
158
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Close icons
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
.close {
|
|
7
|
+
float: right;
|
|
8
|
+
font-size: 20px;
|
|
9
|
+
font-weight: bold;
|
|
10
|
+
line-height: $baseLineHeight;
|
|
11
|
+
color: $black;
|
|
12
|
+
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
|
13
|
+
@include opacity(20);
|
|
14
|
+
&:hover,
|
|
15
|
+
&:focus {
|
|
16
|
+
color: $black;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
@include opacity(40);
|
|
20
|
+
}
|
|
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.close {
|
|
27
|
+
padding: 0;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
background: transparent;
|
|
30
|
+
border: 0;
|
|
31
|
+
-webkit-appearance: none;
|
|
32
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Code (inline and blocK)
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Inline and block code styles
|
|
7
|
+
code,
|
|
8
|
+
pre {
|
|
9
|
+
padding: 0 3px 2px;
|
|
10
|
+
@include font-family-monospace;
|
|
11
|
+
font-size: $baseFontSize - 2;
|
|
12
|
+
color: $grayDark;
|
|
13
|
+
@include border-radius(3px);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Inline code
|
|
17
|
+
code {
|
|
18
|
+
padding: 2px 4px;
|
|
19
|
+
color: #d14;
|
|
20
|
+
background-color: #f7f7f9;
|
|
21
|
+
border: 1px solid #e1e1e8;
|
|
22
|
+
white-space: nowrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Blocks of code
|
|
26
|
+
pre {
|
|
27
|
+
display: block;
|
|
28
|
+
padding: ($baseLineHeight - 1) / 2;
|
|
29
|
+
margin: 0 0 $baseLineHeight / 2;
|
|
30
|
+
font-size: $baseFontSize - 1; // 14px to 13px
|
|
31
|
+
line-height: $baseLineHeight;
|
|
32
|
+
word-break: break-all;
|
|
33
|
+
word-wrap: break-word;
|
|
34
|
+
white-space: pre;
|
|
35
|
+
white-space: pre-wrap;
|
|
36
|
+
background-color: #f5f5f5;
|
|
37
|
+
border: 1px solid #ccc; // fallback for IE7-8
|
|
38
|
+
border: 1px solid rgba(0,0,0,.15);
|
|
39
|
+
@include border-radius($baseBorderRadius);
|
|
40
|
+
|
|
41
|
+
// Make prettyprint styles more spaced out for readability
|
|
42
|
+
&.prettyprint {
|
|
43
|
+
margin-bottom: $baseLineHeight;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Account for some code outputs that place code tags in pre tags
|
|
47
|
+
code {
|
|
48
|
+
padding: 0;
|
|
49
|
+
color: inherit;
|
|
50
|
+
white-space: pre;
|
|
51
|
+
white-space: pre-wrap;
|
|
52
|
+
background-color: transparent;
|
|
53
|
+
border: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Enable scrollable blocks of code
|
|
58
|
+
.pre-scrollable {
|
|
59
|
+
max-height: 340px;
|
|
60
|
+
overflow-y: scroll;
|
|
61
|
+
}
|