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,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Responsive: Large desktop and up
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@media (min-width: 1200px) {
|
|
7
|
+
|
|
8
|
+
// Fixed grid
|
|
9
|
+
@include grid-core($gridColumnWidth1200, $gridGutterWidth1200);
|
|
10
|
+
|
|
11
|
+
// Fluid grid
|
|
12
|
+
@include grid-fluid($fluidGridColumnWidth1200, $fluidGridGutterWidth1200);
|
|
13
|
+
|
|
14
|
+
// Input grid
|
|
15
|
+
@include grid-input($gridColumnWidth1200, $gridGutterWidth1200);
|
|
16
|
+
|
|
17
|
+
// Thumbnails
|
|
18
|
+
.thumbnails {
|
|
19
|
+
margin-left: -$gridGutterWidth1200;
|
|
20
|
+
}
|
|
21
|
+
.thumbnails > li {
|
|
22
|
+
margin-left: $gridGutterWidth1200;
|
|
23
|
+
}
|
|
24
|
+
.row-fluid .thumbnails {
|
|
25
|
+
margin-left: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Responsive: Landscape phone to desktop/tablet
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@media (max-width: 767px) {
|
|
7
|
+
|
|
8
|
+
// Padding to set content in a bit
|
|
9
|
+
body {
|
|
10
|
+
padding-left: 20px;
|
|
11
|
+
padding-right: 20px;
|
|
12
|
+
}
|
|
13
|
+
// Negative indent the now static "fixed" navbar
|
|
14
|
+
.navbar-fixed-top,
|
|
15
|
+
.navbar-fixed-bottom,
|
|
16
|
+
.navbar-static-top {
|
|
17
|
+
margin-left: -20px;
|
|
18
|
+
margin-right: -20px;
|
|
19
|
+
}
|
|
20
|
+
// Remove padding on container given explicit padding set on body
|
|
21
|
+
.container-fluid {
|
|
22
|
+
padding: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// TYPOGRAPHY
|
|
26
|
+
// ----------
|
|
27
|
+
// Reset horizontal dl
|
|
28
|
+
.dl-horizontal {
|
|
29
|
+
dt {
|
|
30
|
+
float: none;
|
|
31
|
+
clear: none;
|
|
32
|
+
width: auto;
|
|
33
|
+
text-align: left;
|
|
34
|
+
}
|
|
35
|
+
dd {
|
|
36
|
+
margin-left: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// GRID & CONTAINERS
|
|
41
|
+
// -----------------
|
|
42
|
+
// Remove width from containers
|
|
43
|
+
.container {
|
|
44
|
+
width: auto;
|
|
45
|
+
}
|
|
46
|
+
// Fluid rows
|
|
47
|
+
.row-fluid {
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
// Undo negative margin on rows and thumbnails
|
|
51
|
+
.row,
|
|
52
|
+
.thumbnails {
|
|
53
|
+
margin-left: 0;
|
|
54
|
+
}
|
|
55
|
+
.thumbnails > li {
|
|
56
|
+
float: none;
|
|
57
|
+
margin-left: 0; // Reset the default margin for all li elements when no .span* classes are present
|
|
58
|
+
}
|
|
59
|
+
// Make all grid-sized elements block level again
|
|
60
|
+
[class*="span"],
|
|
61
|
+
.uneditable-input[class*="span"], // Makes uneditable inputs full-width when using grid sizing
|
|
62
|
+
.row-fluid [class*="span"] {
|
|
63
|
+
float: none;
|
|
64
|
+
display: block;
|
|
65
|
+
width: 100%;
|
|
66
|
+
margin-left: 0;
|
|
67
|
+
@include box-sizing(border-box);
|
|
68
|
+
}
|
|
69
|
+
.span12,
|
|
70
|
+
.row-fluid .span12 {
|
|
71
|
+
width: 100%;
|
|
72
|
+
@include box-sizing(border-box);
|
|
73
|
+
}
|
|
74
|
+
.row-fluid [class*="offset"]:first-child {
|
|
75
|
+
margin-left: 0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// FORM FIELDS
|
|
79
|
+
// -----------
|
|
80
|
+
// Make span* classes full width
|
|
81
|
+
.input-large,
|
|
82
|
+
.input-xlarge,
|
|
83
|
+
.input-xxlarge,
|
|
84
|
+
input[class*="span"],
|
|
85
|
+
select[class*="span"],
|
|
86
|
+
textarea[class*="span"],
|
|
87
|
+
.uneditable-input {
|
|
88
|
+
@include input-block-level();
|
|
89
|
+
}
|
|
90
|
+
// But don't let it screw up prepend/append inputs
|
|
91
|
+
.input-prepend input,
|
|
92
|
+
.input-append input,
|
|
93
|
+
.input-prepend input[class*="span"],
|
|
94
|
+
.input-append input[class*="span"] {
|
|
95
|
+
display: inline-block; // redeclare so they don't wrap to new lines
|
|
96
|
+
width: auto;
|
|
97
|
+
}
|
|
98
|
+
.controls-row [class*="span"] + [class*="span"] {
|
|
99
|
+
margin-left: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Modals
|
|
103
|
+
.modal {
|
|
104
|
+
position: fixed;
|
|
105
|
+
top: 20px;
|
|
106
|
+
left: 20px;
|
|
107
|
+
right: 20px;
|
|
108
|
+
width: auto;
|
|
109
|
+
margin: 0;
|
|
110
|
+
&.fade { top: -100px; }
|
|
111
|
+
&.fade.in { top: 20px; }
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
// UP TO LANDSCAPE PHONE
|
|
119
|
+
// ---------------------
|
|
120
|
+
|
|
121
|
+
@media (max-width: 480px) {
|
|
122
|
+
|
|
123
|
+
// Smooth out the collapsing/expanding nav
|
|
124
|
+
.nav-collapse {
|
|
125
|
+
-webkit-transform: translate3d(0, 0, 0); // activate the GPU
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Block level the page header small tag for readability
|
|
129
|
+
.page-header h1 small {
|
|
130
|
+
display: block;
|
|
131
|
+
line-height: $baseLineHeight;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Update checkboxes for iOS
|
|
135
|
+
input[type="checkbox"],
|
|
136
|
+
input[type="radio"] {
|
|
137
|
+
border: 1px solid #ccc;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Remove the horizontal form styles
|
|
141
|
+
.form-horizontal {
|
|
142
|
+
.control-label {
|
|
143
|
+
float: none;
|
|
144
|
+
width: auto;
|
|
145
|
+
padding-top: 0;
|
|
146
|
+
text-align: left;
|
|
147
|
+
}
|
|
148
|
+
// Move over all input controls and content
|
|
149
|
+
.controls {
|
|
150
|
+
margin-left: 0;
|
|
151
|
+
}
|
|
152
|
+
// Move the options list down to align with labels
|
|
153
|
+
.control-list {
|
|
154
|
+
padding-top: 0; // has to be padding because margin collaspes
|
|
155
|
+
}
|
|
156
|
+
// Move over buttons in .form-actions to align with .controls
|
|
157
|
+
.form-actions {
|
|
158
|
+
padding-left: 10px;
|
|
159
|
+
padding-right: 10px;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Medias
|
|
164
|
+
// Reset float and spacing to stack
|
|
165
|
+
.media .pull-left,
|
|
166
|
+
.media .pull-right {
|
|
167
|
+
float: none;
|
|
168
|
+
display: block;
|
|
169
|
+
margin-bottom: 10px;
|
|
170
|
+
}
|
|
171
|
+
// Remove side margins since we stack instead of indent
|
|
172
|
+
.media-object {
|
|
173
|
+
margin-right: 0;
|
|
174
|
+
margin-left: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Modals
|
|
178
|
+
.modal {
|
|
179
|
+
top: 10px;
|
|
180
|
+
left: 10px;
|
|
181
|
+
right: 10px;
|
|
182
|
+
}
|
|
183
|
+
.modal-header .close {
|
|
184
|
+
padding: 10px;
|
|
185
|
+
margin: -10px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Carousel
|
|
189
|
+
.carousel-caption {
|
|
190
|
+
position: static;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Responsive: Tablet to desktop
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@media (min-width: 768px) and (max-width: 979px) {
|
|
7
|
+
|
|
8
|
+
// Fixed grid
|
|
9
|
+
@include grid-core($gridColumnWidth768, $gridGutterWidth768);
|
|
10
|
+
|
|
11
|
+
// Fluid grid
|
|
12
|
+
@include grid-fluid($fluidGridColumnWidth768, $fluidGridGutterWidth768);
|
|
13
|
+
|
|
14
|
+
// Input grid
|
|
15
|
+
@include grid-input($gridColumnWidth768, $gridGutterWidth768);
|
|
16
|
+
|
|
17
|
+
// No need to reset .thumbnails here since it's the same $gridGutterWidth
|
|
18
|
+
|
|
19
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Responsive: Navbar
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// TABLETS AND BELOW
|
|
7
|
+
// -----------------
|
|
8
|
+
@media (max-width: $navbarCollapseWidth) {
|
|
9
|
+
|
|
10
|
+
// UNFIX THE TOPBAR
|
|
11
|
+
// ----------------
|
|
12
|
+
// Remove any padding from the body
|
|
13
|
+
body {
|
|
14
|
+
padding-top: 0;
|
|
15
|
+
}
|
|
16
|
+
// Unfix the navbars
|
|
17
|
+
.navbar-fixed-top,
|
|
18
|
+
.navbar-fixed-bottom {
|
|
19
|
+
position: static;
|
|
20
|
+
}
|
|
21
|
+
.navbar-fixed-top {
|
|
22
|
+
margin-bottom: $baseLineHeight;
|
|
23
|
+
}
|
|
24
|
+
.navbar-fixed-bottom {
|
|
25
|
+
margin-top: $baseLineHeight;
|
|
26
|
+
}
|
|
27
|
+
.navbar-fixed-top .navbar-inner,
|
|
28
|
+
.navbar-fixed-bottom .navbar-inner {
|
|
29
|
+
padding: 5px;
|
|
30
|
+
}
|
|
31
|
+
.navbar .container {
|
|
32
|
+
width: auto;
|
|
33
|
+
padding: 0;
|
|
34
|
+
}
|
|
35
|
+
// Account for brand name
|
|
36
|
+
.navbar .brand {
|
|
37
|
+
padding-left: 10px;
|
|
38
|
+
padding-right: 10px;
|
|
39
|
+
margin: 0 0 0 -5px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// COLLAPSIBLE NAVBAR
|
|
43
|
+
// ------------------
|
|
44
|
+
// Nav collapse clears brand
|
|
45
|
+
.nav-collapse {
|
|
46
|
+
clear: both;
|
|
47
|
+
}
|
|
48
|
+
// Block-level the nav
|
|
49
|
+
.nav-collapse .nav {
|
|
50
|
+
float: none;
|
|
51
|
+
margin: 0 0 ($baseLineHeight / 2);
|
|
52
|
+
}
|
|
53
|
+
.nav-collapse .nav > li {
|
|
54
|
+
float: none;
|
|
55
|
+
}
|
|
56
|
+
.nav-collapse .nav > li > a {
|
|
57
|
+
margin-bottom: 2px;
|
|
58
|
+
}
|
|
59
|
+
.nav-collapse .nav > .divider-vertical {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
.nav-collapse .nav .nav-header {
|
|
63
|
+
color: $navbarText;
|
|
64
|
+
text-shadow: none;
|
|
65
|
+
}
|
|
66
|
+
// Nav and dropdown links in navbar
|
|
67
|
+
.nav-collapse .nav > li > a,
|
|
68
|
+
.nav-collapse .dropdown-menu a {
|
|
69
|
+
padding: 9px 15px;
|
|
70
|
+
font-weight: bold;
|
|
71
|
+
color: $navbarLinkColor;
|
|
72
|
+
@include border-radius(3px);
|
|
73
|
+
}
|
|
74
|
+
// Buttons
|
|
75
|
+
.nav-collapse .btn {
|
|
76
|
+
padding: 4px 10px 4px;
|
|
77
|
+
font-weight: normal;
|
|
78
|
+
@include border-radius($baseBorderRadius);
|
|
79
|
+
}
|
|
80
|
+
.nav-collapse .dropdown-menu li + li a {
|
|
81
|
+
margin-bottom: 2px;
|
|
82
|
+
}
|
|
83
|
+
.nav-collapse .nav > li > a:hover,
|
|
84
|
+
.nav-collapse .nav > li > a:focus,
|
|
85
|
+
.nav-collapse .dropdown-menu a:hover,
|
|
86
|
+
.nav-collapse .dropdown-menu a:focus {
|
|
87
|
+
background-color: $navbarBackground;
|
|
88
|
+
}
|
|
89
|
+
.navbar-inverse .nav-collapse .nav > li > a,
|
|
90
|
+
.navbar-inverse .nav-collapse .dropdown-menu a {
|
|
91
|
+
color: $navbarInverseLinkColor;
|
|
92
|
+
}
|
|
93
|
+
.navbar-inverse .nav-collapse .nav > li > a:hover,
|
|
94
|
+
.navbar-inverse .nav-collapse .nav > li > a:focus,
|
|
95
|
+
.navbar-inverse .nav-collapse .dropdown-menu a:hover,
|
|
96
|
+
.navbar-inverse .nav-collapse .dropdown-menu a:focus {
|
|
97
|
+
background-color: $navbarInverseBackground;
|
|
98
|
+
}
|
|
99
|
+
// Buttons in the navbar
|
|
100
|
+
.nav-collapse.in .btn-group {
|
|
101
|
+
margin-top: 5px;
|
|
102
|
+
padding: 0;
|
|
103
|
+
}
|
|
104
|
+
// Dropdowns in the navbar
|
|
105
|
+
.nav-collapse .dropdown-menu {
|
|
106
|
+
position: static;
|
|
107
|
+
top: auto;
|
|
108
|
+
left: auto;
|
|
109
|
+
float: none;
|
|
110
|
+
display: none;
|
|
111
|
+
max-width: none;
|
|
112
|
+
margin: 0 15px;
|
|
113
|
+
padding: 0;
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
border: none;
|
|
116
|
+
@include border-radius(0);
|
|
117
|
+
@include box-shadow(none);
|
|
118
|
+
}
|
|
119
|
+
.nav-collapse .open > .dropdown-menu {
|
|
120
|
+
display: block;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.nav-collapse .dropdown-menu:before,
|
|
124
|
+
.nav-collapse .dropdown-menu:after {
|
|
125
|
+
display: none;
|
|
126
|
+
}
|
|
127
|
+
.nav-collapse .dropdown-menu .divider {
|
|
128
|
+
display: none;
|
|
129
|
+
}
|
|
130
|
+
.nav-collapse .nav > li > .dropdown-menu {
|
|
131
|
+
&:before,
|
|
132
|
+
&:after {
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
// Forms in navbar
|
|
137
|
+
.nav-collapse .navbar-form,
|
|
138
|
+
.nav-collapse .navbar-search {
|
|
139
|
+
float: none;
|
|
140
|
+
padding: ($baseLineHeight / 2) 15px;
|
|
141
|
+
margin: ($baseLineHeight / 2) 0;
|
|
142
|
+
border-top: 1px solid $navbarBackground;
|
|
143
|
+
border-bottom: 1px solid $navbarBackground;
|
|
144
|
+
@include box-shadow(inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1));
|
|
145
|
+
}
|
|
146
|
+
.navbar-inverse .nav-collapse .navbar-form,
|
|
147
|
+
.navbar-inverse .nav-collapse .navbar-search {
|
|
148
|
+
border-top-color: $navbarInverseBackground;
|
|
149
|
+
border-bottom-color: $navbarInverseBackground;
|
|
150
|
+
}
|
|
151
|
+
// Pull right (secondary) nav content
|
|
152
|
+
.navbar .nav-collapse .nav.pull-right {
|
|
153
|
+
float: none;
|
|
154
|
+
margin-left: 0;
|
|
155
|
+
}
|
|
156
|
+
// Hide everything in the navbar save .brand and toggle button */
|
|
157
|
+
.nav-collapse,
|
|
158
|
+
.nav-collapse.collapse {
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
height: 0;
|
|
161
|
+
}
|
|
162
|
+
// Navbar button
|
|
163
|
+
.navbar .btn-navbar {
|
|
164
|
+
display: block;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// STATIC NAVBAR
|
|
168
|
+
// -------------
|
|
169
|
+
.navbar-static .navbar-inner {
|
|
170
|
+
padding-left: 10px;
|
|
171
|
+
padding-right: 10px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
// DEFAULT DESKTOP
|
|
179
|
+
// ---------------
|
|
180
|
+
|
|
181
|
+
@media (min-width: $navbarCollapseDesktopWidth) {
|
|
182
|
+
|
|
183
|
+
// Required to make the collapsing navbar work on regular desktops
|
|
184
|
+
.nav-collapse.collapse {
|
|
185
|
+
height: auto !important;
|
|
186
|
+
overflow: visible !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Responsive: Utility classes
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// IE10 Metro responsive
|
|
7
|
+
// Required for Windows 8 Metro split-screen snapping with IE10
|
|
8
|
+
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
|
9
|
+
@-ms-viewport{
|
|
10
|
+
width: device-width;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Hide from screenreaders and browsers
|
|
14
|
+
// Credit: HTML5 Boilerplate
|
|
15
|
+
.hidden {
|
|
16
|
+
display: none;
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Visibility utilities
|
|
21
|
+
|
|
22
|
+
// For desktops
|
|
23
|
+
.visible-phone { display: none !important; }
|
|
24
|
+
.visible-tablet { display: none !important; }
|
|
25
|
+
.hidden-phone { }
|
|
26
|
+
.hidden-tablet { }
|
|
27
|
+
.hidden-desktop { display: none !important; }
|
|
28
|
+
.visible-desktop { display: inherit !important; }
|
|
29
|
+
|
|
30
|
+
// Tablets & small desktops only
|
|
31
|
+
@media (min-width: 768px) and (max-width: 979px) {
|
|
32
|
+
// Hide everything else
|
|
33
|
+
.hidden-desktop { display: inherit !important; }
|
|
34
|
+
.visible-desktop { display: none !important ; }
|
|
35
|
+
// Show
|
|
36
|
+
.visible-tablet { display: inherit !important; }
|
|
37
|
+
// Hide
|
|
38
|
+
.hidden-tablet { display: none !important; }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Phones only
|
|
42
|
+
@media (max-width: 767px) {
|
|
43
|
+
// Hide everything else
|
|
44
|
+
.hidden-desktop { display: inherit !important; }
|
|
45
|
+
.visible-desktop { display: none !important; }
|
|
46
|
+
// Show
|
|
47
|
+
.visible-phone { display: inherit !important; } // Use inherit to restore previous behavior
|
|
48
|
+
// Hide
|
|
49
|
+
.hidden-phone { display: none !important; }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Print utilities
|
|
53
|
+
.visible-print { display: none !important; }
|
|
54
|
+
.hidden-print { }
|
|
55
|
+
|
|
56
|
+
@media print {
|
|
57
|
+
.visible-print { display: inherit !important; }
|
|
58
|
+
.hidden-print { display: none !important; }
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Clearing floats
|
|
62
|
+
.clearfix {
|
|
63
|
+
@include clearfix();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Accessible yet invisible text
|
|
67
|
+
.hide-text {
|
|
68
|
+
@include hide-text();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// Uses box-sizing mixin, so must be defined here
|
|
72
|
+
.input-block-level {
|
|
73
|
+
@include input-block-level();
|
|
74
|
+
}
|