file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
knexfile.js
JavaScript
// knex cli looks to this file 'use strict' const Config = require('getconfig') module.exports = Config.db if (Config.getconfig.env !== 'production') { module.exports[Config.getconfig.env] = Config.db }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
lib/aws.js
JavaScript
'use strict' /* Isolated aws send function in an attempt to separate things for easier testing */ const AWS = require('aws-sdk') const Config = require('getconfig') const SES = new AWS.SES(Config.aws.ses) // $lab:coverage:off$ module.exports = { sendEmail: function (params) { return new Promise((resolve, reject) => { if (process.env.NODE_ENV === 'test') { return reject(new Error('test environment')) } SES.sendEmail(params, (err, data) => { if (err) { return reject(err) } return resolve(data) }) }) } } // $lab:coverage:on$
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
lib/https.js
JavaScript
'use strict' // $lab:coverage:off$ const register = function (server) { server.ext('onRequest', (request, h) => { if ( process.env.HTTPS_REDIRECT === 'true' && request.headers['x-forwarded-proto'] === 'http' ) { return h .redirect( `https://${request.headers['x-forwarded-host']}${request.url.path}` ) .permanent() .takeover() } return h.continue }) } module.exports = { register, name: 'auto-https-redirect' } // $lab:coverage:on$
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
lib/jwt_authorization.js
JavaScript
'use strict' const register = function (server) { server.ext('onRequest', (request, h) => { if (request.headers.authorization) { let [tokenType, token] = request.headers.authorization.split(/\s+/) if (!token) { token = tokenType tokenType = 'Bearer' request.headers.authorization = `${tokenType} ${token}` } } return h.continue }) } module.exports = { register, name: 'jwt-authorization-fix' }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
lib/utils.js
JavaScript
'use strict' const Joi = require('@hapi/joi').extend(require('@hapi/joi-date')) // Calculate last page of a set based on a count and page size exports.lastPage = (count, pageSize) => { const last = Math.ceil(count / pageSize) return last || 1 } exports.workoutValidator = Joi.object({ id: Joi.string() .guid() .strip(), name: Joi.string().required(), date: Joi.date() .format('YYYY-MM-DD') .raw(), raw_date: Joi.string() .allow(null) .default(null), raw: Joi.string().required(), visible: Joi.boolean().allow(null), activities: Joi.array().items( Joi.object({ id: Joi.string() .guid() .required(), activity_id: Joi.string() .guid() .allow(null), name: Joi.string(), alias: Joi.string().allow(null), comment: Joi.string(), sets: Joi.array().items( Joi.object() .keys({ pr: Joi.boolean(), reps: Joi.number(), weight: Joi.number(), unit: Joi.string().allow('miles', 'kilometers', 'kg', 'lb'), time: Joi.number(), distance: Joi.number() }) .nand('weight', 'time') .with('weight', ['reps', 'unit']) .with('distance', 'unit') .xor('reps', 'time') ), suggestions: Joi.any().strip() }) ) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160730103516_users.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema.createTable('users', (users) => { users .uuid('id') .defaultTo(knex.raw('uuid_generate_v4()')) .primary() users.text('name').notNullable() users .text('email') .notNullable() .unique() .index() users.text('hash').notNullable() users .timestamp('logout') .notNullable() .defaultTo(knex.raw('now()')) users .boolean('active') .notNullable() .defaultTo(true) users .boolean('validated') .notNullable() .defaultTo(false) users .jsonb('preferences') .notNullable() .defaultTo( JSON.stringify({ smartmode: true, visible: false, dateFormat: 'dddd, MMM Do YYYY' }) ) users .jsonb('scope') .notNullable() .defaultTo(JSON.stringify(['public'])) users.timestamps() }) } exports.down = function (knex) { return knex.schema.dropTableIfExists('users') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160730182310_invites.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema.createTable('invites', (invites) => { invites .uuid('token') .defaultTo(knex.raw('uuid_generate_v4()')) .primary() invites .uuid('user_id') .index() .notNullable() .references('users.id') .onDelete('CASCADE') invites .uuid('claimed_by') .references('users.id') .onDelete('CASCADE') invites.timestamps() }) } exports.down = function (knex) { return knex.schema.dropTableIfExists('invites') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160730191245_validations.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema.createTable('validations', (validations) => { validations .uuid('token') .defaultTo(knex.raw('uuid_generate_v4()')) .primary() validations .uuid('user_id') .index() .notNullable() .references('users.id') .onDelete('CASCADE') validations.timestamps() }) } exports.down = function (knex) { return knex.schema.dropTableIfExists('validations') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160730193338_recoveries.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema.createTable('recoveries', (recoveries) => { recoveries .uuid('token') .defaultTo(knex.raw('uuid_generate_v4()')) .primary() recoveries .text('email') .index() .notNullable() .references('users.email') .onDelete('CASCADE') recoveries.timestamps() }) } exports.down = function (knex) { return knex.schema.dropTableIfExists('recoveries') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160801084806_workouts.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema.createTable('workouts', (workouts) => { workouts .uuid('id') .defaultTo(knex.raw('uuid_generate_v4()')) .primary() workouts .uuid('user_id') .index() .notNullable() .references('users.id') .onDelete('CASCADE') workouts.text('name').notNullable() workouts.text('raw').notNullable() workouts .jsonb('activities') .notNullable() .default('[]') workouts .date('date') .index() .notNullable() workouts.boolean('visible') workouts.timestamps() }) } exports.down = function (knex) { return knex.schema.dropTableIfExists('workouts') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160801085705_activities.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema .createTable('activities', (activities) => { activities .uuid('id') .defaultTo(knex.raw('uuid_generate_v4()')) .primary() activities .uuid('user_id') .index() .notNullable() .references('users.id') .onDelete('CASCADE') activities .uuid('activity_id') .index() .references('activities.id') .onDelete('CASCADE') activities.text('name').notNullable() activities.timestamps() }) .then(() => { return knex.raw( 'CREATE INDEX name_idx ON activities USING GIN (to_tsvector(\'english\', name))' ) }) } exports.down = function (knex) { return knex.schema.dropTableIfExists('activities') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160816111728_unique_activities.js
JavaScript
'use strict' exports.up = function (knex) { return knex.raw( 'CREATE UNIQUE INDEX "activities_user_id_name_idx_unique" ON activities (user_id, name)' ) } exports.down = function (knex) { return knex.raw('DROP INDEX IF EXISTS "activities_user_id_name_idx_unique"') }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160819191626_workout_raw_date.js
JavaScript
'use strict' exports.up = function (knex) { return knex.schema.table('workouts', (table) => { table.text('raw_date') }) } exports.down = function (knex) { return knex.schema.table('workouts', (table) => { table.dropColumn('raw_date') }) }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20160829183457_lower_case_email.js
JavaScript
'use strict' exports.up = function (knex) { return Promise.all([ knex.raw('DROP INDEX IF EXISTS "users_email_index"'), knex.raw( 'CREATE UNIQUE INDEX users_email_lower_unique on users ((lower(email)))' ) ]) } exports.down = function (knex) { return Promise.all([ knex.raw('DROP INDEX IF EXISTS "users_email_lower_unique"'), knex.raw('CREATE INDEX "users_email_index" ON users (email)') ]) }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
migrations/20170207104641_user_preferences_unit.js
JavaScript
'use strict' exports.up = function (knex) { return knex .table('users') .select('id', 'preferences') .then(async (users) => { for (const user of users) { user.preferences.weightUnit = 'lb' await knex .table('users') .where({ id: user.id }) .update({ preferences: user.preferences }) } }) .then(() => { return knex.raw( `ALTER TABLE ONLY users ALTER COLUMN preferences SET DEFAULT '${JSON.stringify( { weightUnit: 'lb', smartmode: true, visible: false, dateFormat: 'dddd, MMM Do YYYY' } )}'` ) }) } exports.down = function (knex) { return knex .table('users') .select('id', 'preferences') .then(async (users) => { for (const user of users) { delete user.preferences.weightUnit await knex .table('users') .where({ id: user.id }) .update({ preferences: user.preferences }) } }) .then(() => { return knex.raw( `ALTER TABLE ONLY users ALTER COLUMN preferences SET DEFAULT '${JSON.stringify( { smartmode: true, visible: false, dateFormat: 'dddd, MMM Do YYYY' } )}'` ) }) }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
routes.js
JavaScript
'use strict' const Controllers = require('keyfob').load({ root: './controllers', fn: require }) module.exports = [ /* heartbeat */ { method: 'GET', path: '/heartbeat', config: Controllers.heartbeat }, /* /user */ { method: 'GET', path: '/user', config: Controllers.users.self }, { method: 'PATCH', path: '/user', config: Controllers.users.update }, { method: 'DELETE', path: '/user', config: Controllers.users.delete }, { method: 'POST', path: '/user/login', config: Controllers.users.login }, { method: 'POST', path: '/user/logout', config: Controllers.users.logout }, { method: 'POST', path: '/user/recover', config: Controllers.users.recover }, { method: 'POST', path: '/user/signup', config: Controllers.users.signup }, { method: 'POST', path: '/user/validate', config: Controllers.users.validate }, { method: 'POST', path: '/user/reset', config: Controllers.users.reset }, { method: 'POST', path: '/user/confirm', config: Controllers.users.confirm }, { method: 'GET', path: '/user/invites', config: Controllers.users.invites }, /* /invites */ { method: 'GET', path: '/invites/{token}', config: Controllers.invites.validate }, /* /activities */ { method: 'GET', path: '/suggest/activities/{name}', config: Controllers.activities.suggest }, { method: 'GET', path: '/activities', config: Controllers.activities.list }, { method: 'GET', path: '/activities/{id}', config: Controllers.activities.get }, { method: 'POST', path: '/activities', config: Controllers.activities.create }, { method: 'PUT', path: '/activities/{id}/promote', config: Controllers.activities.promote }, { method: 'GET', path: '/activities/{id}/history', config: Controllers.activities.history }, /* /workouts */ { method: 'GET', path: '/workouts', config: Controllers.workouts.all }, { method: 'POST', path: '/workouts', config: Controllers.workouts.create }, { method: 'GET', path: '/workouts/{id}', config: Controllers.workouts.get }, { method: 'PUT', path: '/workouts/{id}', config: Controllers.workouts.update }, { method: 'DELETE', path: '/workouts/{id}', config: Controllers.workouts.delete }, { method: 'GET', path: '/public/workouts/{id}', config: Controllers.workouts.public }, /* /admin */ { method: 'GET', path: '/admin/users', config: Controllers.admin.users.list }, /* Static content */ { method: 'GET', path: '/favicon.ico', handler: { file: 'favicon.ico' }, config: { auth: false } }, { method: 'GET', path: '/humans.txt', handler: { file: 'humans.txt' }, config: { auth: false } }, { method: 'GET', path: '/robots.txt', handler: { file: 'robots.txt' }, config: { auth: false } }, /* LICENSE */ { method: 'GET', path: '/license', handler: { file: 'LICENSE.TXT' }, config: { auth: false } } ]
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
seeds/admin_user.js
JavaScript
'use strict' const Bcrypt = require('bcrypt') const Config = require('getconfig') exports.seed = function (knex) { if ( process.env.NODE_ENV === 'production' && process.env.ALLOW_SEED !== 'true' ) { console.log('not re-seeding admin in production') return } return knex('users') .where('email', 'admin@lift.zone') .del() .then(() => { return knex('users') .insert({ name: 'Admin', email: 'admin@lift.zone', hash: Bcrypt.hashSync( Config.auth.seedPassword, Bcrypt.genSaltSync(10) ), scope: JSON.stringify(['admin']), created_at: new Date(), updated_at: new Date() }) .returning('id') .then((user) => { return Promise.all([ knex('invites').insert({ user_id: user[0], created_at: new Date(), updated_at: new Date() }), knex('invites').insert({ user_id: user[0], created_at: new Date(), updated_at: new Date() }), knex('invites').insert({ user_id: user[0], created_at: new Date(), updated_at: new Date() }), knex('invites').insert({ user_id: user[0], created_at: new Date(), updated_at: new Date() }), knex('invites').insert({ user_id: user[0], created_at: new Date(), updated_at: new Date() }), knex('activities') .insert({ user_id: user[0], name: 'Squat', created_at: new Date(), updated_at: new Date() }) .returning('id') .then((activity) => { return knex('activities').insert({ user_id: user[0], name: 'Barbell Squat', activity_id: activity[0], created_at: new Date(), updated_at: new Date() }) }), knex('activities') .insert({ user_id: user[0], name: 'Overhead Press', created_at: new Date(), updated_at: new Date() }) .returning('id') .then((activity) => { return knex('activities').insert({ user_id: user[0], name: 'OHP', activity_id: activity[0], created_at: new Date(), updated_at: new Date() }) }), knex('activities').insert({ user_id: user[0], name: 'Front Squat', created_at: new Date(), updated_at: new Date() }) ]) }) }) }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
seeds/workout_user.js
JavaScript
'use strict' const Bcrypt = require('bcrypt') const Config = require('getconfig') const Caber = require('caber') const activities = { Squats: { aliases: ['Barbell Squat'] }, 'Overhead Press': { aliases: ['OHP'] }, 'Front Squat': { aliases: [] } } const workouts = { 'Friday Workout': { raw: `Friday Set List Front Squat Overhead Press 80x5x5 Barbell Squat 5x5` } } const removeActivityAliases = async function (knex, activityId) { const aliases = await knex('activities') .select('id') .where('activity_id', activityId) for (const activityAlias of aliases) { await knex('activities') .select() .where('activity_id', activityAlias.id) .del() } } const removeActivity = async function (knex, name) { const ids = await knex('activities') .select('id') .where('name', name) for (const activityId of ids) { await removeActivityAliases(knex, activityId.id).then(() => knex('activities') .where('id', activityId.id) .del() ) } } const addActivity = async function (knex, userId, name, details) { const data = { user_id: userId, name, created_at: new Date(), updated_at: new Date() } await removeActivity(knex, name) const activity = await knex('activities') .insert(data) .returning('id') for (const alias of details.aliases) { await knex('activities').insert({ user_id: userId, activity_id: activity[0].id, name: alias, created_at: new Date(), updated_at: new Date() }) } } const addWorkout = async function (knex, userId, name, details) { const workout = Caber.workout(details.raw, 'lb') return Promise.all( workout.activities.map((item) => knex('activities') .where('name', item.name) .then(([activityId]) => Object.assign(activityId, { sets: item.sets })) ) ).then((activityList) => { const data = { name, user_id: userId, activities: JSON.stringify(activityList), raw: details.raw, raw_date: workout.rawDate, date: new Date(), created_at: new Date(), updated_at: new Date() } return knex('workouts').insert(data) }) } exports.seed = async function (knex) { if ( process.env.NODE_ENV === 'production' && process.env.ALLOW_SEED !== 'true' ) { console.log('not re-seeding admin in production') return } await knex('users') .where('email', 'test@lift.zone') .del() const user = await knex('users') .insert({ name: 'Trophy', email: 'test@lift.zone', hash: Bcrypt.hashSync(Config.auth.seedPassword, Bcrypt.genSaltSync(10)), scope: JSON.stringify([]), created_at: new Date(), updated_at: new Date(), validated: true }) .returning('id') for (const name in activities) { await addActivity(knex, user[0], name, activities[name]) } for (const name in workouts) { await addWorkout(knex, user[0], name, workouts[name]) } for (let i = 0; i < 5; i++) { await knex('invites').insert({ user_id: user[0], created_at: new Date(), updated_at: new Date() }) } }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
server.js
JavaScript
'use strict' const Config = require('getconfig') const Hapi = require('@hapi/hapi') const Muckraker = require('muckraker') const Utils = require('./lib/utils') const db = new Muckraker(Config.db) // $PORT is not set during postinstall, so we can't // include it in the config, hence this if statement // $lab:coverage:off$ if (process.env.NODE_ENV === 'production') { Config.hapi.port = process.env.PORT } // $lab:coverage:on$ const server = new Hapi.Server(Config.hapi) // $lab:coverage:off$ process.on('SIGTERM', async () => { server.log(['info', 'shutdown'], 'Graceful shutdown') await server.stop({ timeout: Config.shutdownTimeout }) process.exit(0) }) if (process.env.NODE_ENV !== 'production') { server.events.on( { name: 'request', channels: ['error'] }, (request, event) => { console.log(event.stack || event) } ) } // $lab:coverage:on$ module.exports.db = db module.exports.server = server .register([ { plugin: require('./lib/jwt_authorization') }, { plugin: require('@hapi/inert') }, { plugin: require('@hapi/vision') }, { plugin: require('hapi-pino'), options: Config.pino }, { // This has to come after hapi-pino plugin: require('./lib/https') }, { plugin: require('hapi-rate-limit'), options: Config.rateLimit }, { plugin: require('hapi-swagger') }, { plugin: require('@now-ims/hapi-now-auth') }, { plugin: require('hapi-pagination'), options: Config.pagination } ]) .then(() => { server.bind({ db, utils: Utils }) server.auth.strategy('jwt', 'hapi-now-auth', { verifyJWT: true, keychain: [Config.auth.secret], tokenType: 'Bearer', verifyOptions: { algorithms: [Config.auth.options.algorithm] }, validate: async (request, token) => { const decoded = token.decodedJWT const user = await db.users.active(decoded.email) if (!user) { return { isValid: false, credentials: decoded } } if (Date.parse(decoded.timestamp) < user.logout.getTime()) { return { isValid: false, credentials: decoded } } return { isValid: true, credentials: user } } }) server.auth.default('jwt') server.route(require('./routes')) }) .then(async () => { // coverage disabled because module.parent is always defined in tests // $lab:coverage:off$ if (module.parent) { await server.initialize() return server } await server.start() server.log(['info', 'startup'], server.info.uri) // $lab:coverage:on$ }) .catch((err) => { // coverage disabled due to difficulty in faking a throw // $lab:coverage:off$ console.error(err.stack || err) process.exit(1) // $lab:coverage:on$ })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/activities/create.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /activities/{id}', () => { let server const user1 = Fixtures.user() const user2 = Fixtures.user() const activity1 = Fixtures.activity() const activity2 = Fixtures.activity({ activity_id: Fixtures.uuid() }) const activity3 = Fixtures.activity({ user_id: user1.id }, true) const activity4 = Fixtures.activity({ activity_id: activity3.id }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await db.activities.insert(activity3) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('creates an activity', async () => { const res = await server.inject({ method: 'post', url: '/activities', auth: { credentials: user1, strategy: 'jwt' }, payload: activity1 }) expect(res.statusCode).to.equal(201) expect(res.result).to.include(activity1) }) it('404 on invalid activity_id', async () => { const res = await server.inject({ method: 'post', url: '/activities', auth: { credentials: user1, strategy: 'jwt' }, payload: activity2 }) expect(res.statusCode).to.equal(404) }) it('does not find other user\'s activity', async () => { const res = await server.inject({ method: 'post', url: '/activities', auth: { credentials: user2, strategy: 'jwt' }, payload: activity4 }) expect(res.statusCode).to.equal(404) }) it('creates alias', async () => { const res = await server.inject({ method: 'post', url: '/activities', auth: { credentials: user1, strategy: 'jwt' }, payload: activity4 }) expect(res.statusCode).to.equal(201) expect(res.result).to.include(activity4) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/activities/get.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /activities/{id}', () => { let server const user1 = Fixtures.user() const user2 = Fixtures.user() const activity1 = Fixtures.activity({ user_id: user1.id }, true) const activity2 = Fixtures.activity({ user_id: user2.id }, true) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await Promise.all([ db.activities.insert(activity1), db.activities.insert(activity2) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('finds activity', async () => { const res = await server.inject({ method: 'get', url: `/activities/${activity1.id}`, auth: { credentials: user1, strategy: 'jwt' } }) expect(res.statusCode).to.equal(200) expect(res.result).to.include({ id: activity1.id, name: activity1.name }) }) it('does not find other user\'s activity', async () => { const res = await server.inject({ method: 'get', url: `/activities/${activity2.id}`, auth: { credentials: user1, strategy: 'jwt' } }) expect(res.statusCode).to.equal(404) }) it('does not find nonexistant activity', async () => { const res = await server.inject({ method: 'get', url: `/activities/${Faker.random.uuid()}`, auth: { credentials: user1, strategy: 'jwt' } }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/activities/history.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /activities/{id}/history', () => { let server const user = Fixtures.user() const activity1 = Fixtures.activity( { user_id: user.id, sets: [{ reps: 4 }] }, true ) const activity2 = Fixtures.activity( { user_id: user.id, activity_id: activity1.id, sets: [{ reps: 5 }] }, true ) const activity3 = Fixtures.activity({ user_id: user.id }, true) const activity4 = Fixtures.activity({ user_id: user.id }, true) const workout1 = Fixtures.workout( { user_id: user.id, activities: [activity1] }, true ) const workout2 = Fixtures.workout( { user_id: user.id, activities: [activity2] }, true ) const workout3 = Fixtures.workout( { user_id: user.id, activities: [activity3] }, true ) before(async () => { server = await Server await db.users.insert(user) await db.activities.insert(activity1) await Promise.all([ db.activities.insert(activity2), db.activities.insert(activity3), db.activities.insert(activity4) ]) await Promise.all([ db.workouts.insert(workout1), db.workouts.insert(workout2), db.workouts.insert(workout3) ]) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('gets history for an activity', async () => { const res = await server.inject({ method: 'get', url: `/activities/${activity1.id}/history`, auth: { credentials: user, strategy: 'jwt' } }) expect(res.statusCode).to.equal(200) expect(res.result).to.part.include([ { workout_name: workout1.name, sets: [{ reps: 4 }] } ]) expect(res.result).to.part.include([ { workout_name: workout2.name, sets: [{ reps: 5 }] } ]) expect(res.result).to.not.part.include([{ workout_name: workout3.name }]) }) it('does not find nonexistant activity', () => { return server .inject({ method: 'get', url: `/activities/${Faker.random.uuid()}/history`, auth: { credentials: user, strategy: 'jwt' } }) .then((res) => { expect(res.statusCode).to.equal(404) }) }) it('gets history for a now aliased activity', () => { return server .inject({ method: 'get', url: `/activities/${activity2.id}/history?page=1`, auth: { credentials: user, strategy: 'jwt' } }) .then((res) => { expect(res.statusCode).to.equal(200) return res.result }) .then((result) => { expect(result).to.part.include([ { workout_name: workout1.name, sets: [{ reps: 4 }] } ]) expect(result).to.part.include([ { workout_name: workout2.name, sets: [{ reps: 5 }] } ]) expect(result).to.not.part.include([{ workout_name: workout3.name }]) }) }) it('gets history for an activity with no workouts', () => { return server .inject({ method: 'get', url: `/activities/${activity4.id}/history`, auth: { credentials: user, strategy: 'jwt' } }) .then((res) => { expect(res.statusCode).to.equal(200) return res.result }) .then((result) => { expect(result).to.equal([]) }) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/activities/index.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /activities', () => { let server const user1 = Fixtures.user() const user2 = Fixtures.user() const activity1 = Fixtures.activity({ user_id: user1.id }) const activity2 = Fixtures.activity({ user_id: user1.id }, true) const activity3 = Fixtures.activity({ user_id: user1.id, activity_id: activity2.id }) const activity4 = Fixtures.activity({ user_id: user2.id }) const activity5 = Fixtures.activity({ user_id: user1.id }) const activity6 = Fixtures.activity({ user_id: user1.id }) const activity7 = Fixtures.activity({ user_id: user1.id }) const activity8 = Fixtures.activity({ user_id: user1.id }) const activity9 = Fixtures.activity({ user_id: user1.id }) const activity10 = Fixtures.activity({ user_id: user1.id }) const activity11 = Fixtures.activity({ user_id: user1.id }) const activity12 = Fixtures.activity({ user_id: user1.id }) const activity13 = Fixtures.activity({ user_id: user1.id }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await Promise.all([ db.activities.insert(activity1), db.activities.insert(activity2), db.activities.insert(activity4), db.activities.insert(activity5), db.activities.insert(activity6), db.activities.insert(activity7), db.activities.insert(activity8), db.activities.insert(activity9), db.activities.insert(activity10), db.activities.insert(activity11), db.activities.insert(activity12), db.activities.insert(activity13) ]) await db.activities.insert(activity3) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('lists activities for a user', async () => { const res = await server.inject({ method: 'get', url: '/activities', auth: { strategy: 'jwt', credentials: user1 } }) expect(res.statusCode).to.equal(206) expect(res.headers).to.include('link') expect(res.headers['content-range']).to.equal('0-9/11') expect(res.result).to.have.length(10) }) it('lists all activities for a user', async () => { const res = await server.inject({ method: 'get', url: '/activities?limit=20', auth: { strategy: 'jwt', credentials: user1 } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result).to.not.part.include(activity1) expect(result).to.not.part.include(activity2) expect(result).to.part.include({ name: activity1.name, aliases: [] }) expect(result).to.part.include({ id: activity2.id, aliases: [{ name: activity3.name }] }) expect(result).to.not.part.include(activity3) expect(result).to.not.part.include(activity4) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/activities/promote.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('PUT /activities/{id}/promote', () => { let server const user = Fixtures.user() const activity1 = Fixtures.activity({ user_id: user.id }, true) const activity2 = Fixtures.activity( { activity_id: activity1.id, user_id: user.id }, true ) const activity3 = Fixtures.activity({ user_id: user.id }) before(async () => { server = await Server await db.users.insert(user) await Promise.all([ db.activities.insert(activity1), db.activities.insert(activity3) ]) await db.activities.insert(activity2) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('promotes an activity', async () => { const res = await server.inject({ method: 'put', url: `/activities/${activity2.id}/promote`, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result.id).to.equal(activity2.id) expect(result.aliases).to.part.include({ id: activity1.id }) expect(result.aliases).to.not.part.include({ id: activity3.id }) }) it('does not find invalid activity', async () => { const res = await server.inject({ method: 'put', url: `/activities/${Faker.random.uuid()}/promote`, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/activities/suggest.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /suggest/activities/{name}', () => { let server const user = Fixtures.user() const activity1 = Fixtures.activity( { name: 'Barbell Squat', user_id: user.id }, true ) const activity2 = Fixtures.activity( { name: 'Front Squat', user_id: user.id }, true ) const activity3 = Fixtures.activity( { name: 'Squat', user_id: user.id, activity_id: activity1.id }, true ) activity2.activity_id = activity2.id activity2.activity_id = activity2.id before(async () => { server = await Server await db.users.insert(user) await Promise.all([ db.activities.insert(activity1), db.activities.insert(activity2) ]) await db.activities.insert(activity3) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('finds suggestions', async () => { const res = await server.inject({ method: 'get', url: '/suggest/activities/Hack%20Squat', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) expect(res.result).to.part.include({ suggestions: [ { activity_id: activity1.id, name: 'Squat' }, { activity_id: activity2.id, name: 'Front Squat' }, { activity_id: activity1.id, name: 'Barbell Squat' } ] }) }) it('finds a match', async () => { const res = await server.inject({ method: 'get', url: '/suggest/activities/Barbell%20Squat', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) expect(res.result).to.include({ id: activity1.id, name: activity1.name }) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/admin/users/list.js
JavaScript
'use strict' const Fixtures = require('../../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /admin/users', () => { let server const admin = Fixtures.user({ scope: ['admin'] }) const user = Fixtures.user() const activity = Fixtures.activity({ user_id: user.id }) const workout = Fixtures.workout({ user_id: user.id }) before(async () => { server = await Server await Promise.all([db.users.insert(admin), db.users.insert(user)]) await Promise.all([ db.activities.insert(activity), db.workouts.insert(workout) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: admin.id }), db.users.destroy({ id: user.id }) ]) }) it('lists users', async () => { const res = await server.inject({ method: 'get', url: '/admin/users', auth: { strategy: 'jwt', credentials: admin } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result).to.once.part.include({ id: user.id, workouts: 1, activities: 1 }) expect(result).to.once.part.include({ id: admin.id, workouts: 0, activities: 0 }) }) it('requires admin', async () => { const res = await server.inject({ method: 'get', url: '/admin/users', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(403) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/auth.js
JavaScript
'use strict' const Fixtures = require('./fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('auth', () => { let server const user = Fixtures.user() before(async () => { server = await Server await db.users.insert(user) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('can make a request with a jwt (with and without Bearer in the header)', async () => { let res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email, password: user.password } }) expect(res.statusCode).to.equal(201) let result = res.result expect(result).to.be.an.object() expect(result.token).to.be.a.string() const token = result.token res = await server.inject({ method: 'get', url: '/user', headers: { authorization: token } }) expect(res.statusCode).to.equal(200) res = await server.inject({ method: 'get', url: '/user', headers: { authorization: `Bearer ${token}` } }) expect(res.statusCode).to.equal(200) result = res.result expect(result).to.be.an.object() expect(result).to.not.part.include(['hash']) expect(result.email).to.equal(user.email) }) it( 'does not allow a user to auth with a stale jwt after logging out', { timeout: 3000 }, async () => { let res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email, password: user.password } }) expect(res.statusCode).to.equal(201) const result = res.result expect(result).to.be.an.object() expect(result.token).to.be.a.string() res = await server.inject({ method: 'get', url: '/user', headers: { authorization: result.token } }) expect(res.statusCode).to.equal(200) const usr = res.result expect(usr).to.be.an.object() expect(usr.email).to.equal(user.email) const later = new Date(Date.now() + 2500) await db.users.updateOne({ id: usr.id }, { logout: later }) res = await server.inject({ method: 'get', url: '/user', headers: { authorization: result.token } }) expect(res.statusCode).to.equal(401) } ) it('fails auth when a user is set to inactive after logging in', async () => { let res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email, password: user.password } }) expect(res.statusCode).to.equal(201) const result = res.result expect(result).to.be.an.object() expect(result.token).to.be.a.string() await db.users.update({ id: user.id }, { active: false }) res = await server.inject({ method: 'get', url: '/user', headers: { authorization: result.token } }) expect(res.statusCode).to.equal(401) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/fixtures.js
JavaScript
'use strict' const Config = require('getconfig') const Faker = require('faker') const Bcrypt = require('bcrypt') const Moment = require('moment') module.exports.Server = require('../server').server module.exports.db = require('../server').db module.exports.expect = require('@hapi/code').expect const build = (defaults, attrs, id) => { const record = Object.assign(defaults, attrs) if (record.created_at && !record.updated_at) { record.updated_at = record.created_at } if (record.password) { const salt = Bcrypt.genSaltSync(Config.saltRounds) record.hash = Bcrypt.hashSync(record.password, salt) } if (id) { record.id = Faker.random.uuid() } return record } module.exports.uuid = () => { return Faker.random.uuid() } module.exports.user = (attrs) => { const defaults = { id: Faker.random.uuid(), name: Faker.name.findName(), email: Faker.internet.email(), validated: true, password: Faker.internet.password() } return build(defaults, attrs) } module.exports.recovery = (attrs) => { const defaults = { token: Faker.random.uuid() } return build(defaults, attrs) } module.exports.validation = (attrs) => { const defaults = { token: Faker.random.uuid() } return build(defaults, attrs) } module.exports.invite = (attrs) => { const defaults = { token: Faker.random.uuid() } return build(defaults, attrs) } module.exports.activity = (attrs, id) => { const defaults = { name: Faker.random.words(3) } return build(defaults, attrs, id) } module.exports.workout = (attrs, id, dates) => { const defaults = { name: Faker.random.words(), raw: Faker.lorem.paragraphs(), date: Moment(Faker.date.past()).format('YYYY-MM-DD'), activities: [] } if (dates) { while ( dates.some((date) => { return defaults.date === date }) ) { defaults.date = Moment(Faker.date.past()).format('YYYY-MM-DD') } } return build(defaults, attrs, id) }
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/heartbeat.js
JavaScript
'use strict' const Fixtures = require('./fixtures') const { Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, describe, it } = lab describe('GET /heartbeat', () => { let server before(async () => { server = await Server }) it('gets a heartbeat', async () => { const res = await server.inject({ method: 'get', url: '/heartbeat' }) expect(res.statusCode).to.equal(200) expect(res.result).to.include('ok') }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/invites/validate.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /invites/{token}', () => { let server const user = Fixtures.user() const invite1 = Fixtures.invite({ user_id: user.id }) const invite2 = Fixtures.invite({ user_id: user.id, claimed_by: user.id }) before(async () => { server = await Server await db.users.insert(user) await Promise.all([db.invites.insert(invite1), db.invites.insert(invite2)]) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('unclaimed invite', async () => { const res = await server.inject({ method: 'get', url: `/invites/${invite1.token}` }) expect(res.statusCode).to.equal(200) expect(invite1).to.include(res.result) }) it('claimed invite', async () => { const res = await server.inject({ method: 'get', url: `/invites/${invite2.token}` }) expect(res.statusCode).to.equal(404) }) it('invalid invite', async () => { const token = Faker.random.uuid() const res = await server.inject({ method: 'get', url: `/invites/${token}` }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/confirm.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /user/confirm', () => { let server const user1 = Fixtures.user({ validated: false }) const user2 = Fixtures.user({ validated: false }) const validation1 = Fixtures.validation({ user_id: user1.id }) const validation2 = Fixtures.validation({ user_id: user2.id, created_at: Faker.date.past(1, new Date(Date.now() + 86401000)) }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await Promise.all([ db.validations.insert(validation1), db.validations.insert(validation2) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('confirms user', async () => { const res = await server.inject({ method: 'post', url: '/user/confirm', auth: { strategy: 'jwt', credentials: user1 }, payload: { token: validation1.token } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result.validated).to.equal(true) expect(result).to.not.include('hash') const updatedUser = await db.users.findOne({ id: user1.id }) expect(updatedUser.validated).to.equal(true) const existingValidation = await db.validations.findOne({ user_id: user1.id }) expect(existingValidation).to.not.exist() }) it('ignores invalid token', async () => { const res = await server.inject({ method: 'post', url: '/user/confirm', auth: { strategy: 'jwt', credentials: user2 }, payload: { token: Faker.random.uuid() } }) expect(res.statusCode).to.equal(404) const updatedUser = await db.users.findOne({ id: user2.id }) expect(updatedUser.validated).to.equal(false) }) it('ignores old token', async () => { const res = await server.inject({ method: 'post', url: '/user/confirm', auth: { strategy: 'jwt', credentials: user2 }, payload: { token: validation2.token } }) expect(res.statusCode).to.equal(404) const updatedUser = await db.users.findOne({ id: user2.id }) expect(updatedUser.validated).to.equal(false) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/delete.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('DELETE /user', () => { let server const keepUser = Fixtures.user() before(async () => { server = await Server await db.users.insert(keepUser) }) after(async () => { await db.users.destroy({ id: keepUser.id }) }) it('requires confirmation', async () => { const res = await server.inject({ method: 'delete', url: '/user', auth: { strategy: 'jwt', credentials: keepUser } }) expect(res.statusCode).to.equal(400) const keptUser = await Fixtures.db.users.findOne({ id: keepUser.id }) expect(keptUser).to.exist() }) describe('deleting a user', () => { const user = Fixtures.user() before(async () => { await db.users.insert(user) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('deletes a user', async () => { const res = await server.inject({ method: 'delete', url: '/user?confirm=true', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(204) const deletedUser = await Fixtures.db.users.findOne({ id: user.id }) const keptUser = await Fixtures.db.users.findOne({ id: keepUser.id }) expect(deletedUser).to.not.exist() expect(keptUser).to.exist() }) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/index.js
JavaScript
'use strict' const Bcrypt = require('bcrypt') const Config = require('getconfig') const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /user', () => { let server const user = Fixtures.user() before(async () => { server = await Server await db.users.insert(user) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('requires auth', async () => { const res = await server.inject({ method: 'get', url: '/user' }) expect(res.statusCode).to.equal(401) }) it('can get user', async () => { const res = await server.inject({ method: 'get', url: '/user', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result).to.be.an.object() expect(result).to.equal(user) }) }) describe('PATCH /user', () => { let server const user = Fixtures.user() before(async () => { server = await Server const hash = await Bcrypt.hash(user.password, Config.saltRounds) await db.users.insert({ ...user, hash }) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('can update user', async () => { const name = Faker.name.findName() const res = await server.inject({ method: 'patch', url: '/user', payload: { name, currentPassword: user.password }, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result).to.contain(['id', 'name', 'email', 'validated']) expect(result).to.not.contain(['hash']) expect(result.id).to.equal(user.id) expect(result.name).to.equal(name) const updatedUser = await db.users.findOne({ id: user.id }) expect(updatedUser.name).to.equal(name) expect(updatedUser.validated).to.equal(true) }) it('invalidates on email change', async () => { const email = Faker.internet.email() user.email = email // Make other tests pass now const res = await server.inject({ method: 'patch', url: '/user', payload: { email, currentPassword: user.password }, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result).to.contain(['id', 'name', 'email', 'validated']) expect(result).to.not.contain(['hash']) expect(result.id).to.equal(user.id) expect(result.email).to.equal(email) const updatedUser = await db.users.findOne({ id: user.id }) expect(updatedUser.email).to.equal(email) expect(updatedUser.validated).to.equal(false) }) it('changes password', async () => { const password = Faker.internet.password() const res = await server.inject({ method: 'patch', url: '/user', payload: { newPassword: password, confirmPassword: password, currentPassword: user.password }, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) const result = res.result expect(result).to.contain(['id', 'name', 'email', 'validated']) expect(result).to.not.contain(['hash']) expect(result.id).to.equal(user.id) const updatedUser = await db.users.findOne({ id: user.id }) expect(updatedUser.hash).to.not.equal(user.hash) }) it('requires valid password', async () => { const email = Faker.internet.email() const res = await server.inject({ method: 'patch', url: '/user', payload: { email, currentPassword: Faker.internet.password() }, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(400) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/invites.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /user/invites', () => { let server const user1 = Fixtures.user() const user2 = Fixtures.user({ validated: false }) const invite1 = Fixtures.invite({ user_id: user1.id }) const invite2 = Fixtures.invite({ user_id: user2.id }) const invite3 = Fixtures.invite({ user_id: user1.id, claimed_by: user1.id }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await Promise.all([ db.invites.insert(invite1), db.invites.insert(invite2), db.invites.insert(invite3) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('lists invites', async () => { const res = await server.inject({ method: 'get', url: '/user/invites', auth: { strategy: 'jwt', credentials: user1 } }) expect(res.statusCode).to.equal(200) expect(res.result).to.part.include({ token: invite1.token }) }) it('lists no invites if user not validated', async () => { const res = await server.inject({ method: 'get', url: '/user/invites', auth: { strategy: 'jwt', credentials: user2 } }) expect(res.statusCode).to.equal(200) expect(res.result).to.be.empty() }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/login.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /user/login', () => { let server const user = Fixtures.user() before(async () => { server = await Server await db.users.insert(user) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('can login a user', async () => { const res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email, password: user.password } }) expect(res.statusCode).to.equal(201) const result = res.result expect(result).to.not.part.include(['hash']) expect(result).to.be.an.object() expect(result.token).to.be.a.string() }) it('IgNoReS cAsE', async () => { const res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email.toUpperCase(), password: user.password } }) expect(res.statusCode).to.equal(201) const result = res.result expect(result).to.not.part.include(['hash']) expect(result).to.be.an.object() expect(result.token).to.be.a.string() }) it('401 on invalid user', async () => { const res = await server.inject({ method: 'post', url: '/user/login', payload: { email: 'nobody@danger.computer', password: user.password } }) expect(res.statusCode).to.equal(401) }) it('401 on invalid password', async () => { const res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email, password: 'invalidpassword' } }) expect(res.statusCode).to.equal(401) }) describe('inactive user', () => { before(async () => { await db.users.update({ id: user.id }, { active: false }) }) after(async () => { await db.users.update({ id: user.id }, { active: true }) }) it('can\'t log in', async () => { const res = await server.inject({ method: 'post', url: '/user/login', payload: { email: user.email, password: user.password } }) expect(res.statusCode).to.equal(401) }) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/logout.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /user/logout', () => { let server const user = Fixtures.user({ logout: Faker.date.past() }) before(async () => { server = await Server await db.users.insert(user) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('can logout', async () => { const res = await server.inject({ method: 'post', url: '/user/logout', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(204) const updatedUser = await db.users.findOne({ id: user.id }) expect(updatedUser.logout).to.be.above(user.logout) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/recover.js
JavaScript
'use strict' const StandIn = require('stand-in') const AWS = require('../../lib/aws') const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, afterEach, describe, it } = lab describe('POST /user/recover', () => { let server const user1 = Fixtures.user({ logout: Faker.date.past() }) const user2 = Fixtures.user({ logout: Faker.date.past(), validated: false }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) }) afterEach(async () => { await db.recoveries.destroy({ email: user1.email }) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('creates a recovery', async () => { let sesParams StandIn.replace(AWS, 'sendEmail', (stand, params) => { stand.restore() sesParams = params }) const res = await server.inject({ method: 'post', url: '/user/recover', payload: { email: user1.email } }) expect(res.statusCode).to.equal(202) expect(res.result).to.equal(null) const recovery = await db.recoveries.findOne({ email: user1.email }) expect(recovery).to.exist() expect(sesParams.Destination.ToAddresses).to.include(user1.email) expect(sesParams.Message.Body.Text.Data).to.include(recovery.token) }) it('ignores invalid email', async () => { const email = Faker.internet.email() const res = await server.inject({ method: 'post', url: '/user/recover', payload: { email } }) expect(res.statusCode).to.equal(202) expect(res.result).to.equal(null) const recovery = await db.recoveries.findOne({ email }) expect(recovery).to.not.exist() }) it('ignores non validated user', async () => { const res = await server.inject({ method: 'post', url: '/user/recover', payload: { email: user2.email } }) expect(res.statusCode).to.equal(202) expect(res.result).to.equal(null) const recovery = await db.recoveries.findOne({ email: user2.email }) expect(recovery).to.not.exist() }) describe('with existing recovery', () => { const recovery = Fixtures.recovery({ email: user1.email }) before(async () => { await db.recoveries.insert(recovery) }) it('does nothing', async () => { const res = await server.inject({ method: 'post', url: '/user/recover', payload: { email: user1.email } }) expect(res.statusCode).to.equal(202) expect(res.result).to.equal(null) const existingRecovery = await db.recoveries.findOne({ email: user1.email }) expect(existingRecovery).to.include(recovery) }) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/reset.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /user/reset', () => { let server const user = Fixtures.user({ logout: Faker.date.past() }) const recovery = Fixtures.recovery({ email: user.email }) before(async () => { server = await Server await db.users.insert(user) await db.recoveries.insert(recovery) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('resets password', async () => { const newPassword = Faker.internet.password() let res = await server.inject({ method: 'post', url: '/user/reset', auth: { strategy: 'jwt', credentials: user }, payload: { token: recovery.token, password: newPassword, passwordConfirm: newPassword } }) expect(res.statusCode).to.equal(201) expect(res.result).to.include(['token']) const resetUser = await db.users.findOne({ id: user.id }) expect(resetUser.hash).to.not.equal(user.hash) expect(resetUser.logout).to.be.above(user.logout) res = await server.inject({ method: 'get', url: '/user', headers: { authorization: res.result.token } }) expect(res.statusCode).to.equal(200) expect(res.result.id).to.equal(user.id) const deletedRecovery = await db.recoveries.findOne({ token: recovery.token }) expect(deletedRecovery).to.not.exist() }) it('rejects invalid token', async () => { const newPassword = Faker.internet.password() const res = await server.inject({ method: 'post', url: '/user/reset', auth: { strategy: 'jwt', credentials: user }, payload: { token: Faker.random.uuid(), password: newPassword, passwordConfirm: newPassword } }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/signup.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /user/signup', () => { let server const user = Fixtures.user() const invite1 = Fixtures.invite({ user_id: user.id }) const invite2 = Fixtures.invite({ user_id: user.id, claimed_by: user.id }) const signupUser1 = Fixtures.user() const signupUser2 = Fixtures.user() before(async () => { server = await Server await db.users.insert(user) await Promise.all([db.invites.insert(invite1), db.invites.insert(invite2)]) }) after(async () => { await Promise.all([ db.users.destroy({ id: user.id }), db.users.destroy({ email: signupUser1.email }), db.users.destroy({ email: signupUser2.email }) ]) }) it('creates a user', async () => { const signup = { invite: invite1.token, name: signupUser1.name, email: signupUser1.email, password: signupUser1.password, passwordConfirm: signupUser1.password } let res = await server.inject({ method: 'post', url: '/user/signup', payload: signup }) expect(res.statusCode).to.equal(201) let result = res.result expect(result).to.include(['token']) const newUser = await db.users.findOne({ email: signupUser1.email }) expect(newUser).to.exist() res = await server.inject({ method: 'get', url: '/user', headers: { authorization: result.token } }) result = res.result expect(res.statusCode).to.equal(200) expect(result.email).to.equal(signupUser1.email) }) it('rejects claimed invite', async () => { const signup = { invite: invite2.token, name: signupUser2.name, email: signupUser2.email, password: signupUser2.password, passwordConfirm: signupUser2.password } const res = await server.inject({ method: 'post', url: '/user/signup', payload: signup }) expect(res.statusCode).to.equal(404) const newUser = await db.users.findOne({ email: signupUser2.email }) expect(newUser).to.not.exist() }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/users/validate.js
JavaScript
'use strict' const StandIn = require('stand-in') const AWS = require('../../lib/aws') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /user/validate', () => { let server const user1 = Fixtures.user({ validated: false }) const user2 = Fixtures.user({ validated: false }) const validation2 = Fixtures.validation({ user_id: user2.id }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await db.validations.insert(validation2) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('requests validation', async () => { let sesParams StandIn.replace(AWS, 'sendEmail', (stand, params) => { stand.restore() sesParams = params }) const res = await server.inject({ method: 'post', url: '/user/validate', auth: { strategy: 'jwt', credentials: user1 } }) expect(res.statusCode).to.equal(202) const createdValidation = await db.validations.findOne({ user_id: user1.id }) expect(createdValidation).to.exist() expect(sesParams.Destination.ToAddresses).to.include(user1.email) expect(sesParams.Message.Body.Text.Data).to.include( createdValidation.token ) }) it('ignores if validation exists', async () => { const res = await server.inject({ method: 'post', url: '/user/validate', auth: { strategy: 'jwt', credentials: user2 } }) expect(res.statusCode).to.equal(202) const createdValidation = await db.validations.findOne({ user_id: user2.id }) expect(createdValidation).to.include(validation2) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/workouts/all.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /workouts', () => { let server const user = Fixtures.user() const workout = Fixtures.workout({ user_id: user.id }, true) before(async () => { server = await Server await db.users.insert(user) await db.workouts.insert(workout) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('gets workouts', async () => { const res = await server.inject({ method: 'get', url: '/workouts', auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) expect(res.result).to.part.include({ id: workout.id, name: workout.name, activities: 0 }) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/workouts/create.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('POST /workouts', () => { let server const user1 = Fixtures.user() const user2 = Fixtures.user() const workout1 = Fixtures.workout() const workout2 = Fixtures.workout({ user_id: user1.id }, false, [ workout1.date ]) const workout3 = Fixtures.workout({ date: workout2.date }) const workout4 = Fixtures.workout({ date: workout1.date, user_id: user2.id }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await Promise.all([ db.workouts.insert(workout2), db.workouts.insert(workout4) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('creates a workout', async () => { const res = await server.inject({ method: 'post', url: '/workouts', payload: workout1, auth: { strategy: 'jwt', credentials: user1 } }) expect(res.statusCode).to.equal(201) expect(res.result).to.include({ name: workout1.name }) const createdWorkout = await db.workouts.findOne({ id: res.result.id }) expect(createdWorkout).to.exist() }) it('does not create workout for same day', async () => { const res = await server.inject({ method: 'post', url: '/workouts', payload: workout3, auth: { strategy: 'jwt', credentials: user1 } }) expect(res.statusCode).to.equal(409) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/workouts/delete.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('DELETE /workouts/{id}', () => { let server const user = Fixtures.user() const workout1 = Fixtures.workout({ user_id: user.id }, true) const workout2 = Fixtures.workout({ user_id: user.id }, true) before(async () => { server = await Server await db.users.insert(user) await Promise.all([ db.workouts.insert(workout1), db.workouts.insert(workout2) ]) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('deletes a workout', async () => { const res = await server.inject({ method: 'delete', url: `/workouts/${workout1.id}`, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(204) const deletedWorkout = await Fixtures.db.workouts.findOne({ id: workout1.id }) expect(deletedWorkout).to.not.exist() const workout = await Fixtures.db.workouts.findOne({ id: workout2.id }) expect(workout).to.exist() }) it('does not delete nonexistant workout', async () => { const res = await server.inject({ method: 'delete', url: `/workouts/${Faker.random.uuid()}`, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/workouts/get.js
JavaScript
'use strict' const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /workouts/{id}', () => { let server const user = Fixtures.user() const workout = Fixtures.workout({ user_id: user.id }, true) before(async () => { server = await Server await db.users.insert(user) await Promise.all([db.workouts.insert(workout)]) }) after(async () => { await db.users.destroy({ id: user.id }) }) it('gets a workout', async () => { const res = await server.inject({ method: 'get', url: `/workouts/${workout.id}`, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(200) expect(res.result).to.include({ id: workout.id, name: workout.name }) }) it('does not find nonexistant workout', async () => { const res = await server.inject({ method: 'get', url: `/workouts/${Faker.random.uuid()}`, auth: { strategy: 'jwt', credentials: user } }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/workouts/public.js
JavaScript
'use strict' const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('GET /public/workouts/{id}', () => { let server const privateUser = Fixtures.user() const publicUser = Fixtures.user({ preferences: { visible: true } }) const workout1 = Fixtures.workout({ user_id: privateUser.id }, true) const workout2 = Fixtures.workout( { user_id: privateUser.id, visible: true }, true ) const workout3 = Fixtures.workout( { user_id: privateUser.id, visible: false }, true ) const workout4 = Fixtures.workout({ user_id: publicUser.id }, true) const workout5 = Fixtures.workout( { user_id: publicUser.id, visible: true }, true ) const workout6 = Fixtures.workout( { user_id: publicUser.id, visible: false }, true ) before(async () => { server = await Server await Promise.all([ db.users.insert(privateUser), db.users.insert(publicUser) ]) await Promise.all([ db.workouts.insert(workout1), db.workouts.insert(workout2), db.workouts.insert(workout3), db.workouts.insert(workout4), db.workouts.insert(workout5), db.workouts.insert(workout6) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: privateUser.id }), db.users.destroy({ id: publicUser.id }) ]) }) it('does not get a default visibility workout for a user that is not visible', async () => { const res = await server.inject({ method: 'get', url: `/public/workouts/${workout1.id}` }) expect(res.statusCode).to.equal(404) }) it('gets a workout that is visible for a user that is not visible', async () => { const res = await server.inject({ method: 'get', url: `/public/workouts/${workout2.id}` }) expect(res.statusCode).to.equal(200) const result = res.result expect(result.id).to.equal(workout2.id) expect(result).to.not.part.include(['user_id']) }) it('does not get a workout that is not visible for a user that is not visible', async () => { const res = await server.inject({ method: 'get', url: `/public/workouts/${workout3.id}` }) expect(res.statusCode).to.equal(404) }) it('gets a default visibility workout for a user that is visible', async () => { const res = await server.inject({ method: 'get', url: `/public/workouts/${workout4.id}` }) expect(res.statusCode).to.equal(200) const result = res.result expect(result.id).to.equal(workout4.id) expect(result).to.not.part.include(['user_id']) }) it('gets a workout that is visible for a user that is visible', async () => { const res = await server.inject({ method: 'get', url: `/public/workouts/${workout5.id}` }) expect(res.statusCode).to.equal(200) const result = res.result expect(result.id).to.equal(workout5.id) expect(result).to.not.part.include(['user_id']) }) it('does not get a workout that is not visible for a user that is visible', async () => { const res = await server.inject({ method: 'get', url: `/public/workouts/${workout6.id}` }) expect(res.statusCode).to.equal(404) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
test/workouts/update.js
JavaScript
'use strict' const Moment = require('moment') const Faker = require('faker') const Fixtures = require('../fixtures') const { db, Server, expect } = Fixtures const lab = (exports.lab = require('@hapi/lab').script()) const { before, after, describe, it } = lab describe('PUT /workouts', () => { let server const user1 = Fixtures.user() const user2 = Fixtures.user() const workout1 = Fixtures.workout({ user_id: user1.id }, true) const workout2 = Fixtures.workout({ date: workout1.date, user_id: user2.id }) const workout3 = Fixtures.workout({ id: workout1.id, date: workout1.date }) const workout4 = Fixtures.workout({ user_id: user1.id }, true) const workout5 = Fixtures.workout({ date: workout4.date, id: workout4.id }) before(async () => { server = await Server await Promise.all([db.users.insert(user1), db.users.insert(user2)]) await Promise.all([ db.workouts.insert(workout1), db.workouts.insert(workout2), db.workouts.insert(workout4) ]) }) after(async () => { await Promise.all([ db.users.destroy({ id: user1.id }), db.users.destroy({ id: user2.id }) ]) }) it('updates a workout', async () => { const res = await server.inject({ method: 'put', url: `/workouts/${workout1.id}`, auth: { strategy: 'jwt', credentials: user1 }, payload: workout3 }) expect(res.statusCode).to.equal(200) expect(res.result.id).to.equal(workout1.id) const updatedWorkout = await db.workouts.findOne({ id: workout1.id }) expect(updatedWorkout.raw).to.equal(workout3.raw) }) it('does not updated nonexistant workout', async () => { const res = await server.inject({ method: 'put', url: `/workouts/${Faker.random.uuid()}`, auth: { strategy: 'jwt', credentials: user1 }, payload: Fixtures.workout({}, true) }) expect(res.statusCode).to.equal(404) }) it('does not update over existing date', async () => { const res = await server.inject({ method: 'put', url: `/workouts/${workout1.id}`, auth: { strategy: 'jwt', credentials: user1 }, payload: workout5 }) expect(res.statusCode).to.equal(409) }) it('can update to a different date', async () => { let date = new Date(workout1.date) date.setYear(date.getFullYear() - 1) date = Moment(date).format('YYYY-MM-DD') const workout = Fixtures.workout({ date }, true) const res = await server.inject({ method: 'put', url: `/workouts/${workout1.id}`, auth: { strategy: 'jwt', credentials: user1 }, payload: workout }) expect(res.statusCode).to.equal(200) }) })
wraithgar/api.lift.zone
1
API for lift.zone
JavaScript
wraithgar
Gar
index.js
JavaScript
'use strict' const { promisify } = require('util') const handler = { get: function (target, prop, receiver) { if (typeof target[prop] !== 'function') { return target[prop] } if (target[prop][promisify.custom]) { return function () { return Reflect.get(target, prop, receiver)[promisify.custom].apply(target, arguments) } } return function () { return new Promise((resolve, reject) => { Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) { if (err) { return reject(err) } resolve(result) }]) }) } } } module.exports = function (thingToPromisify) { if (typeof thingToPromisify === 'function') { return promisify(thingToPromisify) } if (typeof thingToPromisify === 'object') { return new Proxy(thingToPromisify, handler) } throw new TypeError('Can only promisify functions or objects') }
wraithgar/gar-promisify
12
Promisify an entire class or object
JavaScript
wraithgar
Gar
test.js
JavaScript
const { spec: reporter } = require('node:test/reporters') const { run } = require('node:test') const path = require('node:path') run({ files: [path.resolve('./tests')], coverage: true, lineCoverage: 100, branchCoverage: 100, functionCoverage: 100 }) .on('test:fail', () => { process.exitCode = 1 }) .compose(reporter) .pipe(process.stdout)
wraithgar/gar-promisify
12
Promisify an entire class or object
JavaScript
wraithgar
Gar
tests/index.js
JavaScript
const t = require('node:test') const a = require('node:assert') const util = require('util') const promisify = require('../') class Fixture { constructor (attr) { this.attr = attr this.custom[util.promisify.custom] = function (input1, input2) { return Promise.resolve([this.attr, input1, input2]) } } single (input, cb) { cb(null, [this.attr, input]) } custom (input1, input2, cb) { cb(null, this.attr, input1, input2) } error (input, cb) { cb(new Error(input)) } } t.test('requires a function or object', t => { a.throws(() => { promisify('string') }, TypeError) }) t.test('promisify object', async t => { t.test('non function attribute', t => { const instance = new Fixture('test') const promisified = promisify(instance) a.equal(promisified.attr, 'test') }) await t.test('custom promisify', async t => { const instance = new Fixture('test') const promisified = promisify(instance) const promisifiedCustom = await promisified.custom('test one', 'test two') a.deepEqual(promisifiedCustom, ['test', 'test one', 'test two']) const instanceCustom = await new Promise(resolve => { instance.custom('test three', 'test four', (err, a, b, c) => { resolve([err, a, b, c]) }) }) a.deepEqual(instanceCustom, [null, 'test', 'test three', 'test four']) }) await t.test('callback success', async t => { const instance = new Fixture('test') const promisified = promisify(instance) const single = await promisified.single('test single') a.deepEqual(single, ['test', 'test single']) }) await t.test('callback error', async t => { const instance = new Fixture('test') const promisified = promisify(instance) await a.rejects(() => promisified.error('test error'), Error, 'test error') }) }) t.test('promisify function', async t => { await t.test('promisifies a function', async t => { const fn = (a, cb) => cb(null, a) const promisified = promisify(fn) const result = await promisified('test') a.equal(result, 'test') }) await t.test('assumes error first callback', async t => { const fn = (a, cb) => cb(new Error('test error'), a) const promisified = promisify(fn) await a.rejects(() => promisified('test'), Error, 'test error') }) })
wraithgar/gar-promisify
12
Promisify an entire class or object
JavaScript
wraithgar
Gar
_settings.scss
SCSS
// Foundation by ZURB // foundation.zurb.com // Licensed under MIT Open Source // // Table of Contents // Foundation Settings // a. Base // b. Grid // c. Global // d. Media Query Ranges // e. Typography // 01. Accordion // 02. Alert Boxes // 03. Block Grid // 04. Breadcrumbs // 05. Buttons // 06. Button Groups // 07. Clearing // 08. Dropdown // 09. Dropdown Buttons // 10. Flex Video // 11. Forms // 12. Icon Bar // 13. Inline Lists // 14. Joyride // 15. Keystrokes // 16. Labels // 17. Magellan // 18. Off-canvas // 19. Orbit // 20. Pagination // 21. Panels // 22. Pricing Tables // 23. Progress Bar // 24. Range Slider // 25. Reveal // 26. Side Nav // 27. Split Buttons // 28. Sub Nav // 29. Switch // 30. Tables // 31. Tabs // 32. Thumbnails // 33. Tooltips // 34. Top Bar // 36. Visibility Classes // a. Base // - - - - - - - - - - - - - - - - - - - - - - - - - // This is the default html and body font-size for the base rem value. // $rem-base: 16px; // Allows the use of rem-calc() or lower-bound() in your settings @import 'foundation/functions'; // The default font-size is set to 100% of the browser style sheet (usually 16px) // for compatibility with browser-based text zoom or user-set defaults. // Since the typical default browser font-size is 16px, that makes the calculation for grid size. // If you want your base font-size to be different and not have it affect the grid breakpoints, // set $rem-base to $base-font-size and make sure $base-font-size is a px value. // $base-font-size: 100%; // The $base-font-size is 100% while $base-line-height is 150% // $base-line-height: 150%; // We use this to control whether or not CSS classes come through in the gem files. $include-html-classes: true; // $include-print-styles: true; $include-html-global-classes: $include-html-classes; // b. Grid // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-grid-classes: $include-html-classes; // $include-xl-html-grid-classes: false; // $row-width: rem-calc(1000); // $total-columns: 12; // $column-gutter: rem-calc(30); // c. Global // - - - - - - - - - - - - - - - - - - - - - - - - - // We use these to define default font stacks // $font-family-sans-serif: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; // $font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif; // $font-family-monospace: Consolas, "Liberation Mono", Courier, monospace; // We use these to define default font weights // $font-weight-normal: normal; // $font-weight-bold: bold; // $white : #FFFFFF; $ghost : #FAFAFA; // $snow : #F9F9F9; // $vapor : #F6F6F6; // $white-smoke : #F5F5F5; $silver : #EFEFEF; // $smoke : #EEEEEE; // $gainsboro : #DDDDDD; // $iron : #CCCCCC; $base : #AAAAAA; // $aluminum : #999999; // $jumbo : #888888; // $monsoon : #777777; // $steel : #666666; // $charcoal : #555555; // $tuatara : #444444; // $oil : #333333; // $jet : #222222; // $black : #000000; // We use these as default colors throughout $primary-color: #0074D9; $secondary-color: #DDDDDD; $alert-color: #FF4136; $success-color: #2ECC40; $warning-color: #FF851B; $info-color: #7FDBFF; // We use these to control various global styles $body-bg: $ghost; // $body-font-color: $jet; // $body-font-family: $font-family-sans-serif; // $body-font-weight: $font-weight-normal; // $body-font-style: normal; // We use this to control font-smoothing // $font-smoothing: antialiased; // We use these to control text direction settings // $text-direction: ltr; // $opposite-direction: right; // $default-float: left; // $last-child-float: $opposite-direction; // We use these to make sure border radius matches unless we want it different. // $global-radius: 3px; // $global-rounded: 1000px; // We use these to control inset shadow shiny edges and depressions. // $shiny-edge-size: 0 1px 0; // $shiny-edge-color: rgba($white, .5); // $shiny-edge-active-color: rgba($black, .2); // d. Media Query Ranges // - - - - - - - - - - - - - - - - - - - - - - - - - // $small-breakpoint: em-calc(640); // $medium-breakpoint: em-calc(1024); // $large-breakpoint: em-calc(1440); // $xlarge-breakpoint: em-calc(1920); // $small-range: (0, $small-breakpoint); // $medium-range: ($small-breakpoint + em-calc(1), $medium-breakpoint); // $large-range: ($medium-breakpoint + em-calc(1), $large-breakpoint); // $xlarge-range: ($large-breakpoint + em-calc(1), $xlarge-breakpoint); // $xxlarge-range: ($xlarge-breakpoint + em-calc(1), em-calc(99999999)); // $screen: "only screen"; // $landscape: "#{$screen} and (orientation: landscape)"; // $portrait: "#{$screen} and (orientation: portrait)"; // $small-up: $screen; // $small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})"; // $medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})"; // $medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})"; // $large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})"; // $large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})"; // $xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})"; // $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})"; // $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})"; // $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})"; // $retina: ( // "#{$screen} and (-webkit-min-device-pixel-ratio: 2)", // "#{$screen} and (min--moz-device-pixel-ratio: 2)", // "#{$screen} and (-o-min-device-pixel-ratio: 2/1)", // "#{$screen} and (min-device-pixel-ratio: 2)", // "#{$screen} and (min-resolution: 192dpi)", // "#{$screen} and (min-resolution: 2dppx)" // ); // Legacy // $small: $medium-up; // $medium: $medium-up; // $large: $large-up; // We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet // $cursor-crosshair-value: crosshair; // $cursor-default-value: default; // $cursor-disabled-value: not-allowed; // $cursor-pointer-value: pointer; // $cursor-help-value: help; // $cursor-text-value: text; // e. Typography // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-type-classes: $include-html-classes; // We use these to control header font styles // $header-font-family: $body-font-family; // $header-font-weight: $font-weight-normal; // $header-font-style: normal; // $header-font-color: $jet; // $header-line-height: 1.4; // $header-top-margin: .2rem; // $header-bottom-margin: .5rem; // $header-text-rendering: optimizeLegibility; // We use these to control header font sizes // $h1-font-size: rem-calc(44); // $h2-font-size: rem-calc(37); // $h3-font-size: rem-calc(27); // $h4-font-size: rem-calc(23); // $h5-font-size: rem-calc(18); // $h6-font-size: 1rem; // We use these to control header size reduction on small screens // $h1-font-reduction: rem-calc(10); // $h2-font-reduction: rem-calc(10); // $h3-font-reduction: rem-calc(5); // $h4-font-reduction: rem-calc(5); // $h5-font-reduction: 0; // $h6-font-reduction: 0; // These control how subheaders are styled. // $subheader-line-height: 1.4; // $subheader-font-color: scale-color($header-font-color, $lightness: 35%); // $subheader-font-weight: $font-weight-normal; // $subheader-top-margin: .2rem; // $subheader-bottom-margin: .5rem; // A general <small> styling // $small-font-size: 60%; // $small-font-color: scale-color($header-font-color, $lightness: 35%); // We use these to style paragraphs // $paragraph-font-family: inherit; // $paragraph-font-weight: $font-weight-normal; // $paragraph-font-size: 1rem; // $paragraph-line-height: 1.6; // $paragraph-margin-bottom: rem-calc(20); // $paragraph-aside-font-size: rem-calc(14); // $paragraph-aside-line-height: 1.35; // $paragraph-aside-font-style: italic; // $paragraph-text-rendering: optimizeLegibility; // We use these to style <code> tags // $code-color: $oil; // $code-font-family: $font-family-monospace; // $code-font-weight: $font-weight-normal; // $code-background-color: scale-color($secondary-color, $lightness: 70%); // $code-border-size: 1px; // $code-border-style: solid; // $code-border-color: scale-color($code-background-color, $lightness: -10%); // $code-padding: rem-calc(2) rem-calc(5) rem-calc(1); // We use these to style anchors // $anchor-text-decoration: none; // $anchor-text-decoration-hover: none; // $anchor-font-color: $primary-color; // $anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%); // We use these to style the <hr> element // $hr-border-width: 1px; // $hr-border-style: solid; // $hr-border-color: $gainsboro; // $hr-margin: rem-calc(20); // We use these to style lists // $list-font-family: $paragraph-font-family; // $list-font-size: $paragraph-font-size; // $list-line-height: $paragraph-line-height; // $list-margin-bottom: $paragraph-margin-bottom; // $list-style-position: outside; // $list-side-margin: 1.1rem; // $list-ordered-side-margin: 1.4rem; // $list-side-margin-no-bullet: 0; // $list-nested-margin: rem-calc(20); // $definition-list-header-weight: $font-weight-bold; // $definition-list-header-margin-bottom: .3rem; // $definition-list-margin-bottom: rem-calc(12); // We use these to style blockquotes // $blockquote-font-color: scale-color($header-font-color, $lightness: 35%); // $blockquote-padding: rem-calc(9 20 0 19); // $blockquote-border: 1px solid $gainsboro; // $blockquote-cite-font-size: rem-calc(13); // $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%); // $blockquote-cite-link-color: $blockquote-cite-font-color; // Acronym styles // $acronym-underline: 1px dotted $gainsboro; // We use these to control padding and margin // $microformat-padding: rem-calc(10 12); // $microformat-margin: rem-calc(0 0 20 0); // We use these to control the border styles // $microformat-border-width: 1px; // $microformat-border-style: solid; // $microformat-border-color: $gainsboro; // We use these to control full name font styles // $microformat-fullname-font-weight: $font-weight-bold; // $microformat-fullname-font-size: rem-calc(15); // We use this to control the summary font styles // $microformat-summary-font-weight: $font-weight-bold; // We use this to control abbr padding // $microformat-abbr-padding: rem-calc(0 1); // We use this to control abbr font styles // $microformat-abbr-font-weight: $font-weight-bold; // $microformat-abbr-font-decoration: none; // 01. Accordion // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-accordion-classes: $include-html-classes; // $accordion-navigation-padding: rem-calc(16); // $accordion-navigation-bg-color: $silver; // $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%); // $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%); // $accordion-navigation-active-font-color: $jet; // $accordion-navigation-font-color: $jet; // $accordion-navigation-font-size: rem-calc(16); // $accordion-navigation-font-family: $body-font-family; // $accordion-content-padding: ($column-gutter/2); // $accordion-content-active-bg-color: $white; // 02. Alert Boxes // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-alert-classes: $include-html-classes; // We use this to control alert padding. // $alert-padding-top: rem-calc(14); // $alert-padding-default-float: $alert-padding-top; // $alert-padding-opposite-direction: $alert-padding-top + rem-calc(10); // $alert-padding-bottom: $alert-padding-top; // We use these to control text style. // $alert-font-weight: $font-weight-normal; // $alert-font-size: rem-calc(13); // $alert-font-color: $white; // $alert-font-color-alt: scale-color($secondary-color, $lightness: -66%); // We use this for close hover effect. // $alert-function-factor: -14%; // We use these to control border styles. // $alert-border-style: solid; // $alert-border-width: 1px; // $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor); // $alert-bottom-margin: rem-calc(20); // We use these to style the close buttons // $alert-close-color: $oil; // $alert-close-top: 50%; // $alert-close-position: rem-calc(4); // $alert-close-font-size: rem-calc(22); // $alert-close-opacity: .3; // $alert-close-opacity-hover: .5; // $alert-close-padding: 9px 6px 4px; // $alert-close-background: inherit; // We use this to control border radius // $alert-radius: $global-radius; // $alert-transition-speed: 300ms; // $alert-transition-ease: ease-out; // 03. Block Grid // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-block-grid-classes: $include-html-classes; // $include-xl-html-block-grid-classes: false; // We use this to control the maximum number of block grid elements per row // $block-grid-elements: 12; // $block-grid-default-spacing: rem-calc(20); // $align-block-grid-to-grid: false; // @if $align-block-grid-to-grid {$block-grid-default-spacing: $column-gutter;} // Enables media queries for block-grid classes. Set to false if writing semantic HTML. // $block-grid-media-queries: true; // 04. Breadcrumbs // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-nav-classes: $include-html-classes; // We use this to set the background color for the breadcrumb container. // $crumb-bg: scale-color($secondary-color, $lightness: 55%); // We use these to set the padding around the breadcrumbs. // $crumb-padding: rem-calc(9 14 9); // $crumb-side-padding: rem-calc(12); // We use these to control border styles. // $crumb-function-factor: -10%; // $crumb-border-size: 1px; // $crumb-border-style: solid; // $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor); // $crumb-radius: $global-radius; // We use these to set various text styles for breadcrumbs. // $crumb-font-size: rem-calc(11); // $crumb-font-color: $primary-color; // $crumb-font-color-current: $oil; // $crumb-font-color-unavailable: $aluminum; // $crumb-font-transform: uppercase; // $crumb-link-decor: underline; // We use these to control the slash between breadcrumbs // $crumb-slash-color: $base; // $crumb-slash: "/"; // $crumb-slash-position: 1px; // 05. Buttons // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-button-classes: $include-html-classes; // We use these to build padding for buttons. // $button-tny: rem-calc(10); // $button-sml: rem-calc(14); // $button-med: rem-calc(16); // $button-lrg: rem-calc(18); // We use this to control the display property. // $button-display: inline-block; // $button-margin-bottom: rem-calc(20); // We use these to control button text styles. // $button-font-family: $body-font-family; // $button-font-color: $white; // $button-font-color-alt: $oil; // $button-font-tny: rem-calc(11); // $button-font-sml: rem-calc(13); // $button-font-med: rem-calc(16); // $button-font-lrg: rem-calc(20); // $button-font-weight: $font-weight-normal; // $button-font-align: center; // We use these to control various hover effects. // $button-function-factor: -20%; // We use these to control button border styles. // $button-border-width: 0; // $button-border-style: solid; // $button-bg-color: $primary-color; // $button-bg-hover: scale-color($button-bg-color, $lightness: $button-function-factor); // $button-border-color: $button-bg-hover; // $secondary-button-bg-hover: scale-color($secondary-color, $lightness: $button-function-factor); // $secondary-button-border-color: $secondary-button-bg-hover; // $success-button-bg-hover: scale-color($success-color, $lightness: $button-function-factor); // $success-button-border-color: $success-button-bg-hover; // $alert-button-bg-hover: scale-color($alert-color, $lightness: $button-function-factor); // $alert-button-border-color: $alert-button-bg-hover; // $warning-button-bg-hover: scale-color($warning-color, $lightness: $button-function-factor); // $warning-button-border-color: $warning-button-bg-hover; // $info-button-bg-hover: scale-color($info-color, $lightness: $button-function-factor); // $info-button-border-color: $info-button-bg-hover; // We use this to set the default radius used throughout the core. // $button-radius: $global-radius; // $button-round: $global-rounded; // We use this to set default opacity and cursor for disabled buttons. // $button-disabled-opacity: .7; // $button-disabled-cursor: $cursor-default-value; // 06. Button Groups // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-button-classes: $include-html-classes; // Sets the margin for the right side by default, and the left margin if right-to-left direction is used // $button-bar-margin-opposite: rem-calc(10); // $button-group-border-width: 1px; // 07. Clearing // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-clearing-classes: $include-html-classes; // We use these to set the background colors for parts of Clearing. // $clearing-bg: $oil; // $clearing-caption-bg: $clearing-bg; // $clearing-carousel-bg: rgba(51,51,51,0.8); // $clearing-img-bg: $clearing-bg; // We use these to style the close button // $clearing-close-color: $iron; // $clearing-close-size: 30px; // We use these to style the arrows // $clearing-arrow-size: 12px; // $clearing-arrow-color: $clearing-close-color; // We use these to style captions // $clearing-caption-font-color: $iron; // $clearing-caption-font-size: .875em; // $clearing-caption-padding: 10px 30px 20px; // We use these to make the image and carousel height and style // $clearing-active-img-height: 85%; // $clearing-carousel-height: 120px; // $clearing-carousel-thumb-width: 120px; // $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255); // 08. Dropdown // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-dropdown-classes: $include-html-classes; // We use these to controls height and width styles. // $f-dropdown-max-width: 200px; // $f-dropdown-height: auto; // $f-dropdown-max-height: none; // Used for bottom position // $f-dropdown-margin-top: 2px; // Used for right position // $f-dropdown-margin-left: $f-dropdown-margin-top; // Used for left position // $f-dropdown-margin-right: $f-dropdown-margin-top; // Used for top position // $f-dropdown-margin-bottom: $f-dropdown-margin-top; // We use this to control the background color // $f-dropdown-bg: $white; // We use this to set the border styles for dropdowns. // $f-dropdown-border-style: solid; // $f-dropdown-border-width: 1px; // $f-dropdown-border-color: scale-color($white, $lightness: -20%); // We use these to style the triangle pip. // $f-dropdown-triangle-size: 6px; // $f-dropdown-triangle-color: $white; // $f-dropdown-triangle-side-offset: 10px; // We use these to control styles for the list elements. // $f-dropdown-list-style: none; // $f-dropdown-font-color: $charcoal; // $f-dropdown-font-size: rem-calc(14); // $f-dropdown-list-padding: rem-calc(5, 10); // $f-dropdown-line-height: rem-calc(18); // $f-dropdown-list-hover-bg: $smoke; // $dropdown-mobile-default-float: 0; // We use this to control the styles for when the dropdown has custom content. // $f-dropdown-content-padding: rem-calc(20); // Default radius for dropdown. // $f-dropdown-radius: $global-radius; // 09. Dropdown Buttons // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-button-classes: $include-html-classes; // We use these to set the color of the pip in dropdown buttons // $dropdown-button-pip-color: $white; // $dropdown-button-pip-color-alt: $oil; // We use these to set the size of the pip in dropdown buttons // $button-pip-tny: rem-calc(6); // $button-pip-sml: rem-calc(7); // $button-pip-med: rem-calc(9); // $button-pip-lrg: rem-calc(11); // We use these to style tiny dropdown buttons // $dropdown-button-padding-tny: $button-pip-tny * 7; // $dropdown-button-pip-size-tny: $button-pip-tny; // $dropdown-button-pip-opposite-tny: $button-pip-tny * 3; // $dropdown-button-pip-top-tny: (-$button-pip-tny / 2) + rem-calc(1); // We use these to style small dropdown buttons // $dropdown-button-padding-sml: $button-pip-sml * 7; // $dropdown-button-pip-size-sml: $button-pip-sml; // $dropdown-button-pip-opposite-sml: $button-pip-sml * 3; // $dropdown-button-pip-top-sml: (-$button-pip-sml / 2) + rem-calc(1); // We use these to style medium dropdown buttons // $dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3); // $dropdown-button-pip-size-med: $button-pip-med - rem-calc(3); // $dropdown-button-pip-opposite-med: $button-pip-med * 2.5; // $dropdown-button-pip-top-med: (-$button-pip-med / 2) + rem-calc(2); // We use these to style large dropdown buttons // $dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3); // $dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6); // $dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5; // $dropdown-button-pip-top-lrg: (-$button-pip-lrg / 2) + rem-calc(3); // 10. Flex Video // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-media-classes: $include-html-classes; // We use these to control video container padding and margins // $flex-video-padding-top: rem-calc(25); // $flex-video-padding-bottom: 67.5%; // $flex-video-margin-bottom: rem-calc(16); // We use this to control widescreen bottom padding // $flex-video-widescreen-padding-bottom: 56.34%; // 11. Forms // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-form-classes: $include-html-classes; // We use this to set the base for lots of form spacing and positioning styles // $form-spacing: rem-calc(16); // We use these to style the labels in different ways // $form-label-pointer: pointer; // $form-label-font-size: rem-calc(14); // $form-label-font-weight: $font-weight-normal; // $form-label-line-height: 1.5; // $form-label-font-color: scale-color($black, $lightness: 30%); // $form-label-small-transform: capitalize; // $form-label-bottom-margin: 0; // $input-font-family: inherit; // $input-font-color: rgba(0,0,0,0.75); // $input-font-size: rem-calc(14); $input-placeholder-font-color: $base; // $input-bg-color: $white; // $input-focus-bg-color: scale-color($white, $lightness: -2%); // $input-border-color: scale-color($white, $lightness: -20%); // $input-focus-border-color: scale-color($white, $lightness: -40%); // $input-border-style: solid; // $input-border-width: 1px; // $input-border-radius: $global-radius; // $input-disabled-bg: $gainsboro; // $input-disabled-cursor: $cursor-default-value; // $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); // $input-include-glowing-effect: false; // We use these to style the fieldset border and spacing. // $fieldset-border-style: solid; // $fieldset-border-width: 1px; // $fieldset-border-color: $gainsboro; // $fieldset-padding: rem-calc(20); // $fieldset-margin: rem-calc(18 0); // We use these to style the legends when you use them // $legend-bg: $white; // $legend-font-weight: $font-weight-bold; // $legend-padding: rem-calc(0 3); // We use these to style the prefix and postfix input elements // $input-prefix-bg: scale-color($white, $lightness: -5%); // $input-prefix-border-color: scale-color($white, $lightness: -20%); // $input-prefix-border-size: 1px; // $input-prefix-border-type: solid; // $input-prefix-overflow: hidden; // $input-prefix-font-color: $oil; // $input-prefix-font-color-alt: $white; // We use this setting to turn on/off HTML5 number spinners (the up/down arrows) // $input-number-spinners: true; // We use these to style the error states for inputs and labels // $input-error-message-padding: rem-calc(6 9 9); // $input-error-message-top: -1px; // $input-error-message-font-size: rem-calc(12); // $input-error-message-font-weight: $font-weight-normal; // $input-error-message-font-style: italic; // $input-error-message-font-color: $white; // $input-error-message-bg-color: $alert-color; // $input-error-message-font-color-alt: $oil; // We use this to style the glowing effect of inputs when focused // $glowing-effect-fade-time: .45s; // $glowing-effect-color: $input-focus-border-color; // We use this to style the transition when inputs are focused and when the glowing effect is disabled. // $input-transition-fade-time: 0.15s; // $input-transition-fade-timing-function: linear; // Select variables // $select-bg-color: $ghost; // $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%); // 12. Icon Bar // - - - - - - - - - - - - - - - - - - - - - - - - - // We use these to style the icon-bar and items // $icon-bar-bg: $oil; // $icon-bar-font-color: $white; // $icon-bar-font-color-hover: $icon-bar-font-color; // $icon-bar-font-size: 1rem; // $icon-bar-hover-color: $primary-color; // $icon-bar-icon-color: $white; // $icon-bar-icon-color-hover: $icon-bar-icon-color; // $icon-bar-icon-size: 1.875rem; // $icon-bar-image-width: 1.875rem; // $icon-bar-image-height: 1.875rem; // $icon-bar-active-color: $primary-color; // $icon-bar-item-padding: 1.25rem; // We use this to set default opacity and cursor for disabled icons. // $icon-bar-disabled-opacity: .7; // 13. Inline Lists // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-inline-list-classes: $include-html-classes; // We use this to control the margins and padding of the inline list. // $inline-list-top-margin: 0; // $inline-list-opposite-margin: 0; // $inline-list-bottom-margin: rem-calc(17); // $inline-list-default-float-margin: rem-calc(-22); // $inline-list-default-float-list-margin: rem-calc(22); // $inline-list-padding: 0; // We use this to control the overflow of the inline list. // $inline-list-overflow: hidden; // We use this to control the list items // $inline-list-display: block; // We use this to control any elements within list items // $inline-list-children-display: block; // 14. Joyride // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-joyride-classes: $include-html-classes; // Controlling default Joyride styles // $joyride-tip-bg: $oil; // $joyride-tip-default-width: 300px; // $joyride-tip-padding: rem-calc(18 20 24); // $joyride-tip-border: solid 1px $charcoal; // $joyride-tip-radius: 4px; // $joyride-tip-position-offset: 22px; // Here, we're setting the tip font styles // $joyride-tip-font-color: $white; // $joyride-tip-font-size: rem-calc(14); // $joyride-tip-header-weight: $font-weight-bold; // This changes the nub size // $joyride-tip-nub-size: 10px; // This adjusts the styles for the timer when its enabled // $joyride-tip-timer-width: 50px; // $joyride-tip-timer-height: 3px; // $joyride-tip-timer-color: $steel; // This changes up the styles for the close button // $joyride-tip-close-color: $monsoon; // $joyride-tip-close-size: 24px; // $joyride-tip-close-weight: $font-weight-normal; // When Joyride is filling the screen, we use this style for the bg // $joyride-screenfill: rgba(0,0,0,0.5); // 15. Keystrokes // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-keystroke-classes: $include-html-classes; // We use these to control text styles. // $keystroke-font: "Consolas", "Menlo", "Courier", monospace; // $keystroke-font-size: inherit; // $keystroke-font-color: $jet; // $keystroke-font-color-alt: $white; // $keystroke-function-factor: -7%; // We use this to control keystroke padding. // $keystroke-padding: rem-calc(2 4 0); // We use these to control background and border styles. // $keystroke-bg: scale-color($white, $lightness: $keystroke-function-factor); // $keystroke-border-style: solid; // $keystroke-border-width: 1px; // $keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor); // $keystroke-radius: $global-radius; // 16. Labels // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-label-classes: $include-html-classes; // We use these to style the labels // $label-padding: rem-calc(4 8 4); // $label-radius: $global-radius; // We use these to style the label text // $label-font-sizing: rem-calc(11); // $label-font-weight: $font-weight-normal; // $label-font-color: $oil; // $label-font-color-alt: $white; // $label-font-family: $body-font-family; // 17. Magellan // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-magellan-classes: $include-html-classes; // $magellan-bg: $white; // $magellan-padding: 10px; // 18. Off-canvas // - - - - - - - - - - - - - - - - - - - - - - - - - // Off Canvas Tab Bar Variables // $include-html-off-canvas-classes: $include-html-classes; // $tabbar-bg: $oil; // $tabbar-height: rem-calc(45); // $tabbar-icon-width: $tabbar-height; // $tabbar-line-height: $tabbar-height; // $tabbar-color: $white; // $tabbar-middle-padding: 0 rem-calc(10); // Off Canvas Divider Styles // $tabbar-left-section-border: solid 1px scale-color($tabbar-bg, $lightness: -50%); // $tabbar-right-section-border: $tabbar-left-section-border; // Off Canvas Tab Bar Headers // $tabbar-header-color: $white; // $tabbar-header-weight: $font-weight-bold; // $tabbar-header-line-height: $tabbar-height; // $tabbar-header-margin: 0; // Off Canvas Menu Variables // $off-canvas-width: rem-calc(250); // $off-canvas-bg: $oil; // $off-canvas-bg-hover: scale-color($tabbar-bg, $lightness: -30%); // $off-canvas-bg-active: scale-color($tabbar-bg, $lightness: -30%); // Off Canvas Menu List Variables // $off-canvas-label-padding: .3rem rem-calc(15); // $off-canvas-label-color: $aluminum; // $off-canvas-label-text-transform: uppercase; // $off-canvas-label-font-size: rem-calc(12); // $off-canvas-label-font-weight: $font-weight-bold; // $off-canvas-label-bg: $tuatara; // $off-canvas-label-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%); // $off-canvas-label-border-bottom: none; // $off-canvas-label-margin:0; // $off-canvas-link-padding: rem-calc(10, 15); // $off-canvas-link-color: rgba($white, .7); // $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%); // $off-canvas-back-bg: #444; // $off-canvas-back-border-top: $off-canvas-label-border-top; // $off-canvas-back-border-bottom: $off-canvas-label-border-bottom; // $off-canvas-back-hover-bg: scale-color($off-canvas-back-bg, $lightness: -30%); // $off-canvas-back-hover-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%); // $off-canvas-back-hover-border-bottom: none; // Off Canvas Menu Icon Variables // $tabbar-menu-icon-color: $white; // $tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%); // $tabbar-menu-icon-text-indent: rem-calc(35); // $tabbar-menu-icon-width: $tabbar-icon-width; // $tabbar-menu-icon-height: $tabbar-height; // $tabbar-menu-icon-padding: 0; // $tabbar-hamburger-icon-width: rem-calc(16); // $tabbar-hamburger-icon-left: false; // $tabbar-hamburger-icon-top: false; // $tabbar-hamburger-icon-thickness: 1px; // $tabbar-hamburger-icon-gap: 6px; // Off Canvas Back-Link Overlay // $off-canvas-overlay-transition: background 300ms ease; // $off-canvas-overlay-cursor: pointer; // $off-canvas-overlay-box-shadow: -4px 0 4px rgba($black, .5), 4px 0 4px rgba($black, .5); // $off-canvas-overlay-background: rgba($white, .2); // $off-canvas-overlay-background-hover: rgba($white, .05); // Transition Variables // $menu-slide: "transform 500ms ease"; // 19. Orbit // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-orbit-classes: $include-html-classes; // We use these to control the caption styles // $orbit-container-bg: none; // $orbit-caption-bg: rgba(51,51,51, .8); // $orbit-caption-font-color: $white; // $orbit-caption-font-size: rem-calc(14); // $orbit-caption-position: "bottom"; // Supported values: "bottom", "under" // $orbit-caption-padding: rem-calc(10 14); // $orbit-caption-height: auto; // We use these to control the left/right nav styles // $orbit-nav-bg: transparent; // $orbit-nav-bg-hover: rgba(0,0,0,0.3); // $orbit-nav-arrow-color: $white; // $orbit-nav-arrow-color-hover: $white; // We use these to control the timer styles // $orbit-timer-bg: rgba(255,255,255,0.3); // $orbit-timer-show-progress-bar: true; // We use these to control the bullet nav styles // $orbit-bullet-nav-color: $iron; // $orbit-bullet-nav-color-active: $aluminum; // $orbit-bullet-radius: rem-calc(9); // We use these to controls the style of slide numbers // $orbit-slide-number-bg: rgba(0,0,0,0); // $orbit-slide-number-font-color: $white; // $orbit-slide-number-padding: rem-calc(5); // Graceful Loading Wrapper and preloader // $wrapper-class: "slideshow-wrapper"; // $preloader-class: "preloader"; // Hide controls on small // $orbit-nav-hide-for-small: true; // $orbit-bullet-hide-for-small: true; // $orbit-timer-hide-for-small: true; // 20. Pagination // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-pagination-classes: $include-html-classes; // We use these to control the pagination container // $pagination-height: rem-calc(24); // $pagination-margin: rem-calc(-5); // We use these to set the list-item properties // $pagination-li-float: $default-float; // $pagination-li-height: rem-calc(24); // $pagination-li-font-color: $jet; // $pagination-li-font-size: rem-calc(14); // $pagination-li-margin: rem-calc(5); // We use these for the pagination anchor links // $pagination-link-pad: rem-calc(1 10 1); // $pagination-link-font-color: $aluminum; // $pagination-link-active-bg: scale-color($white, $lightness: -10%); // We use these for disabled anchor links // $pagination-link-unavailable-cursor: default; // $pagination-link-unavailable-font-color: $aluminum; // $pagination-link-unavailable-bg-active: transparent; // We use these for currently selected anchor links // $pagination-link-current-background: $primary-color; // $pagination-link-current-font-color: $white; // $pagination-link-current-font-weight: $font-weight-bold; // $pagination-link-current-cursor: default; // $pagination-link-current-active-bg: $primary-color; // 21. Panels // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-panel-classes: $include-html-classes; // We use these to control the background and border styles // $panel-bg: scale-color($white, $lightness: -5%); // $panel-border-style: solid; // $panel-border-size: 1px; // $callout-panel-bg: scale-color($primary-color, $lightness: 94%); // We use this % to control how much we darken things on hover // $panel-border-color: scale-color($panel-bg, $lightness: -11%); // We use these to set default inner padding and bottom margin // $panel-margin-bottom: rem-calc(20); // $panel-padding: rem-calc(20); // We use these to set default font colors // $panel-font-color: $oil; // $panel-font-color-alt: $white; // $panel-header-adjust: true; // $callout-panel-link-color: $primary-color; // $callout-panel-link-color-hover: scale-color($callout-panel-link-color, $lightness: -14%); // 22. Pricing Tables // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-pricing-classes: $include-html-classes; // We use this to control the border color // $price-table-border: solid 1px $gainsboro; // We use this to control the bottom margin of the pricing table // $price-table-margin-bottom: rem-calc(20); // We use these to control the title styles // $price-title-bg: $oil; // $price-title-padding: rem-calc(15 20); // $price-title-align: center; // $price-title-color: $smoke; // $price-title-weight: $font-weight-normal; // $price-title-size: rem-calc(16); // $price-title-font-family: $body-font-family; // We use these to control the price styles // $price-money-bg: $vapor; // $price-money-padding: rem-calc(15 20); // $price-money-align: center; // $price-money-color: $oil; // $price-money-weight: $font-weight-normal; // $price-money-size: rem-calc(32); // $price-money-font-family: $body-font-family; // We use these to control the description styles // $price-bg: $white; // $price-desc-color: $monsoon; // $price-desc-padding: rem-calc(15); // $price-desc-align: center; // $price-desc-font-size: rem-calc(12); // $price-desc-weight: $font-weight-normal; // $price-desc-line-height: 1.4; // $price-desc-bottom-border: dotted 1px $gainsboro; // We use these to control the list item styles // $price-item-color: $oil; // $price-item-padding: rem-calc(15); // $price-item-align: center; // $price-item-font-size: rem-calc(14); // $price-item-weight: $font-weight-normal; // $price-item-bottom-border: dotted 1px $gainsboro; // We use these to control the CTA area styles // $price-cta-bg: $white; // $price-cta-align: center; // $price-cta-padding: rem-calc(20 20 0); // 23. Progress Bar // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-media-classes: $include-html-classes; // We use this to set the progress bar height // $progress-bar-height: rem-calc(25); // $progress-bar-color: $vapor; // We use these to control the border styles // $progress-bar-border-color: scale-color($white, $lightness: 20%); // $progress-bar-border-size: 1px; // $progress-bar-border-style: solid; // $progress-bar-border-radius: $global-radius; // We use these to control the margin & padding // $progress-bar-margin-bottom: rem-calc(10); // We use these to set the meter colors // $progress-meter-color: $primary-color; // $progress-meter-secondary-color: $secondary-color; // $progress-meter-success-color: $success-color; // $progress-meter-alert-color: $alert-color; // 24. Range Slider // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-range-slider-classes: $include-html-classes; // These variables define the slider bar styles // $range-slider-bar-width: 100%; // $range-slider-bar-height: rem-calc(16); // $range-slider-bar-border-width: 1px; // $range-slider-bar-border-style: solid; // $range-slider-bar-border-color: $gainsboro; // $range-slider-radius: $global-radius; // $range-slider-round: $global-rounded; // $range-slider-bar-bg-color: $ghost; // $range-slider-active-segment-bg-color: scale-color($secondary-color, $lightness: -1%); // Vertical bar styles // $range-slider-vertical-bar-width: rem-calc(16); // $range-slider-vertical-bar-height: rem-calc(200); // These variables define the slider handle styles // $range-slider-handle-width: rem-calc(32); // $range-slider-handle-height: rem-calc(22); // $range-slider-handle-position-top: rem-calc(-5); // $range-slider-handle-bg-color: $primary-color; // $range-slider-handle-border-width: 1px; // $range-slider-handle-border-style: solid; // $range-slider-handle-border-color: none; // $range-slider-handle-radius: $global-radius; // $range-slider-handle-round: $global-rounded; // $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%); // $range-slider-handle-cursor: pointer; // $range-slider-disabled-opacity: .7; // $range-slider-disabled-cursor: $cursor-disabled-value; // 25. Reveal // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-reveal-classes: $include-html-classes; // We use these to control the style of the reveal overlay. // $reveal-overlay-bg: rgba($black, .45); // $reveal-overlay-bg-old: $black; // We use these to control the style of the modal itself. // $reveal-modal-bg: $white; // $reveal-position-top: rem-calc(100); // $reveal-default-width: 80%; // $reveal-max-width: $row-width; // $reveal-modal-padding: rem-calc(20); // $reveal-box-shadow: 0 0 10px rgba($black,.4); // We use these to style the reveal close button // $reveal-close-font-size: rem-calc(40); // $reveal-close-top: rem-calc(10); // $reveal-close-side: rem-calc(22); // $reveal-close-color: $base; // $reveal-close-weight: $font-weight-bold; // We use this to set the default radius used throughout the core. // $reveal-radius: $global-radius; // $reveal-round: $global-rounded; // We use these to control the modal border // $reveal-border-style: solid; // $reveal-border-width: 1px; // $reveal-border-color: $steel; // $reveal-modal-class: "reveal-modal"; // $close-reveal-modal-class: "close-reveal-modal"; // 26. Side Nav // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-nav-classes: $include-html-classes; // We use this to control padding. // $side-nav-padding: rem-calc(14 0); // We use these to control list styles. // $side-nav-list-type: none; // $side-nav-list-position: outside; // $side-nav-list-margin: rem-calc(0 0 7 0); // We use these to control link styles. // $side-nav-link-color: $primary-color; // $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%); // $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%); // $side-nav-link-bg-hover: hsla(0, 0, 0, .025); // $side-nav-link-margin: 0; // $side-nav-link-padding: rem-calc(7 14); // $side-nav-font-size: rem-calc(14); // $side-nav-font-weight: $font-weight-normal; // $side-nav-font-weight-active: $side-nav-font-weight; // $side-nav-font-family: $body-font-family; // $side-nav-font-family-active: $side-nav-font-family; // We use these to control heading styles. // $side-nav-heading-color: $side-nav-link-color; // $side-nav-heading-font-size: $side-nav-font-size; // $side-nav-heading-font-weight: bold; // $side-nav-heading-text-transform: uppercase; // We use these to control border styles // $side-nav-divider-size: 1px; // $side-nav-divider-style: solid; // $side-nav-divider-color: scale-color($white, $lightness: 10%); // 27. Split Buttons // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-button-classes: $include-html-classes; // We use these to control different shared styles for Split Buttons // $split-button-function-factor: 10%; // $split-button-pip-color: $white; // $split-button-span-border-color: rgba(255,255,255,0.5); // $split-button-pip-color-alt: $oil; // $split-button-active-bg-tint: rgba(0,0,0,0.1); // We use these to control tiny split buttons // $split-button-padding-tny: $button-pip-tny * 10; // $split-button-span-width-tny: $button-pip-tny * 6; // $split-button-pip-size-tny: $button-pip-tny; // $split-button-pip-top-tny: $button-pip-tny * 2; // $split-button-pip-default-float-tny: rem-calc(-6); // We use these to control small split buttons // $split-button-padding-sml: $button-pip-sml * 10; // $split-button-span-width-sml: $button-pip-sml * 6; // $split-button-pip-size-sml: $button-pip-sml; // $split-button-pip-top-sml: $button-pip-sml * 1.5; // $split-button-pip-default-float-sml: rem-calc(-6); // We use these to control medium split buttons // $split-button-padding-med: $button-pip-med * 9; // $split-button-span-width-med: $button-pip-med * 5.5; // $split-button-pip-size-med: $button-pip-med - rem-calc(3); // $split-button-pip-top-med: $button-pip-med * 1.5; // $split-button-pip-default-float-med: rem-calc(-6); // We use these to control large split buttons // $split-button-padding-lrg: $button-pip-lrg * 8; // $split-button-span-width-lrg: $button-pip-lrg * 5; // $split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6); // $split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5); // $split-button-pip-default-float-lrg: rem-calc(-6); // 28. Sub Nav // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-nav-classes: $include-html-classes; // We use these to control margin and padding // $sub-nav-list-margin: rem-calc(-4 0 18); // $sub-nav-list-padding-top: rem-calc(4); // We use this to control the definition // $sub-nav-font-family: $body-font-family; // $sub-nav-font-size: rem-calc(14); // $sub-nav-font-color: $aluminum; // $sub-nav-font-weight: $font-weight-normal; // $sub-nav-text-decoration: none; // $sub-nav-padding: rem-calc(3 16); // $sub-nav-border-radius: 3px; // $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%); // We use these to control the active item styles // $sub-nav-active-font-weight: $font-weight-normal; // $sub-nav-active-bg: $primary-color; // $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%); // $sub-nav-active-color: $white; // $sub-nav-active-padding: $sub-nav-padding; // $sub-nav-active-cursor: default; // $sub-nav-item-divider: ""; // $sub-nav-item-divider-margin: rem-calc(12); // 29. Switch // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-form-classes: $include-html-classes; // Controlling background color for the switch container // $switch-bg: $gainsboro; // We use these to control the switch heights for our default classes // $switch-height-tny: 1.5rem; // $switch-height-sml: 1.75rem; // $switch-height-med: 2rem; // $switch-height-lrg: 2.5rem; // $switch-bottom-margin: 1.5rem; // We use these to style the switch-paddle // $switch-paddle-bg: $white; // $switch-paddle-transition-speed: .15s; // $switch-paddle-transition-ease: ease-out; // $switch-active-color: $primary-color; // 30. Tables // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-table-classes: $include-html-classes; // These control the background color for the table and even rows // $table-bg: $white; // $table-even-row-bg: $snow; // These control the table cell border style // $table-border-style: solid; // $table-border-size: 1px; // $table-border-color: $gainsboro; // These control the table head styles // $table-head-bg: $white-smoke; // $table-head-font-size: rem-calc(14); // $table-head-font-color: $jet; // $table-head-font-weight: $font-weight-bold; // $table-head-padding: rem-calc(8 10 10); // These control the table foot styles // $table-foot-bg: $table-head-bg; // $table-foot-font-size: $table-head-font-size; // $table-foot-font-color: $table-head-font-color; // $table-foot-font-weight: $table-head-font-weight; // $table-foot-padding: $table-head-padding; // These control the caption // $table-caption-bg: transparent; // $table-caption-font-color: $table-head-font-color; // $table-caption-font-size: rem-calc(16); // $table-caption-font-weight: bold; // These control the row padding and font styles // $table-row-padding: rem-calc(9 10); // $table-row-font-size: rem-calc(14); // $table-row-font-color: $jet; // $table-line-height: rem-calc(18); // These are for controlling the layout, display and margin of tables // $table-layout: auto; // $table-display: table-cell; // $table-margin-bottom: rem-calc(20); // 31. Tabs // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-tabs-classes: $include-html-classes; // $tabs-navigation-padding: rem-calc(16); // $tabs-navigation-bg-color: $silver; // $tabs-navigation-active-bg-color: $white; // $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%); // $tabs-navigation-font-color: $jet; // $tabs-navigation-active-font-color: $tabs-navigation-font-color; // $tabs-navigation-font-size: rem-calc(16); // $tabs-navigation-font-family: $body-font-family; // $tabs-content-margin-bottom: rem-calc(24); // $tabs-content-padding: ($column-gutter/2); // $tabs-vertical-navigation-margin-bottom: 1.25rem; // 32. Thumbnails // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-media-classes: $include-html-classes; // We use these to control border styles // $thumb-border-style: solid; // $thumb-border-width: 4px; // $thumb-border-color: $white; // $thumb-box-shadow: 0 0 0 1px rgba($black,.2); // $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5); // Radius and transition speed for thumbs // $thumb-radius: $global-radius; // $thumb-transition-speed: 200ms; // 33. Tooltips // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-tooltip-classes: $include-html-classes; // $has-tip-border-bottom: dotted 1px $iron; // $has-tip-font-weight: $font-weight-bold; // $has-tip-font-color: $oil; // $has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%); // $has-tip-font-color-hover: $primary-color; // $has-tip-cursor-type: help; // $tooltip-padding: rem-calc(12); // $tooltip-bg: $oil; // $tooltip-font-size: rem-calc(14); // $tooltip-font-weight: $font-weight-normal; // $tooltip-font-color: $white; // $tooltip-line-height: 1.3; // $tooltip-close-font-size: rem-calc(10); // $tooltip-close-font-weight: $font-weight-normal; // $tooltip-close-font-color: $monsoon; // $tooltip-font-size-sml: rem-calc(14); // $tooltip-radius: $global-radius; // $tooltip-rounded: $global-rounded; // $tooltip-pip-size: 5px; // $tooltip-max-width: 300px; // 34. Top Bar // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-top-bar-classes: $include-html-classes; // Background color for the top bar // $topbar-bg-color: $oil; // $topbar-bg: $topbar-bg-color; // Height and margin // $topbar-height: rem-calc(45); // $topbar-margin-bottom: 0; // Controlling the styles for the title in the top bar // $topbar-title-weight: $font-weight-normal; // $topbar-title-font-size: rem-calc(17); // Set the link colors and styles for top-level nav // $topbar-link-color: $white; // $topbar-link-color-hover: $white; // $topbar-link-color-active: $white; // $topbar-link-color-active-hover: $white; // $topbar-link-weight: $font-weight-normal; // $topbar-link-font-size: rem-calc(13); // $topbar-link-hover-lightness: -10%; // Darken by 10% // $topbar-link-bg: $topbar-bg; // $topbar-link-bg-hover: $jet; // $topbar-link-bg-color-hover: $charcoal; // $topbar-link-bg-active: $primary-color; // $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%); // $topbar-link-font-family: $body-font-family; // $topbar-link-text-transform: none; // $topbar-link-padding: ($topbar-height / 3); // $topbar-back-link-size: rem-calc(18); // $topbar-link-dropdown-padding: rem-calc(20); // $topbar-button-font-size: .75rem; // $topbar-button-top: 7px; // Style the top bar dropdown elements // $topbar-dropdown-bg: $oil; // $topbar-dropdown-link-color: $white; // $topbar-dropdown-link-color-hover: $topbar-link-color-hover; // $topbar-dropdown-link-bg: $oil; // $topbar-dropdown-link-bg-hover: $jet; // $topbar-dropdown-link-weight: $font-weight-normal; // $topbar-dropdown-toggle-size: 5px; // $topbar-dropdown-toggle-color: $white; // $topbar-dropdown-toggle-alpha: .4; // $topbar-dropdown-label-color: $monsoon; // $topbar-dropdown-label-text-transform: uppercase; // $topbar-dropdown-label-font-weight: $font-weight-bold; // $topbar-dropdown-label-font-size: rem-calc(10); // $topbar-dropdown-label-bg: $oil; // Top menu icon styles // $topbar-menu-link-transform: uppercase; // $topbar-menu-link-font-size: rem-calc(13); // $topbar-menu-link-weight: $font-weight-bold; // $topbar-menu-link-color: $white; // $topbar-menu-icon-color: $white; // $topbar-menu-link-color-toggled: $jumbo; // $topbar-menu-icon-color-toggled: $jumbo; // $topbar-menu-icon-position: $opposite-direction; // Change to $default-float for a left menu icon // Transitions and breakpoint styles // $topbar-transition-speed: 300ms; // Using rem-calc for the below breakpoint causes issues with top bar // $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for always mobile layout // $topbar-media-query: "#{$screen} and (min-width:#{lower-bound($topbar-breakpoint)})"; // Top-bar input styles // $topbar-input-height: rem-calc(28); // Divider Styles // $topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%); // $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%); // Sticky Class // $topbar-sticky-class: ".sticky"; // $topbar-arrows: true; //Set false to remove the triangle icon from the menu item // $topbar-dropdown-arrows: true; //Set false to remove the \00bb >> text from dropdown subnavigation li// // 36. Visibility Classes // - - - - - - - - - - - - - - - - - - - - - - - - - // $include-html-visibility-classes: $include-html-classes; // $include-accessibility-classes: true; // $include-table-visibility-classes: true; // $include-legacy-visibility-classes: true;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
app.scss
SCSS
@import "settings"; @import "foundation"; .pr { font-weight: bold; } .pr::after { font-style: oblique; font-size: 75%; content: ' (pr)'; } .circle { border-radius: 50%; padding-left: 0.45rem; padding-right: 0.45rem; } .primary-bg-color { background-color: $primary-color; } .secondary-bg-color { background-color: $secondary-color; } .alert-bg-color { background-color: $alert-color; } .success-bg-color { background-color: $success-color; } .warning-bg-color { background-color: $warning-color; } .info-bg-color { background-color: $info-color; } li.comma-separated::after { content: "," } li.comma-separated:last-child::after { content: "" } blockquote.short { padding-left: 9px; padding-top: 0px; }
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
assets/css/font-awesome.css
CSS
/*! * Font Awesome 4.4.0 by @davegandy - http://fontawesome.io - @fontawesome * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.4.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.4.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.4.0') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.4.0') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.4.0') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.4.0#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
assets/css/foundation.css
CSS
meta.foundation-version{font-family:"/5.5.3/"}meta.foundation-mq-small{font-family:"/only screen/";width:0}meta.foundation-mq-small-only{font-family:"/only screen and (max-width: 40em)/";width:0}meta.foundation-mq-medium{font-family:"/only screen and (min-width:40.0625em)/";width:40.0625em}meta.foundation-mq-medium-only{font-family:"/only screen and (min-width:40.0625em) and (max-width:64em)/";width:40.0625em}meta.foundation-mq-large{font-family:"/only screen and (min-width:64.0625em)/";width:64.0625em}meta.foundation-mq-large-only{font-family:"/only screen and (min-width:64.0625em) and (max-width:90em)/";width:64.0625em}meta.foundation-mq-xlarge{font-family:"/only screen and (min-width:90.0625em)/";width:90.0625em}meta.foundation-mq-xlarge-only{font-family:"/only screen and (min-width:90.0625em) and (max-width:120em)/";width:90.0625em}meta.foundation-mq-xxlarge{font-family:"/only screen and (min-width:120.0625em)/";width:120.0625em}meta.foundation-data-attribute-namespace{font-family:false}html,body{height:100%}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html,body{font-size:100%}body{background:#FAFAFA;color:#222;cursor:auto;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-style:normal;font-weight:normal;line-height:1.5;margin:0;padding:0;position:relative}a:hover{cursor:pointer}img{max-width:100%;height:auto}img{-ms-interpolation-mode:bicubic}#map_canvas img,#map_canvas embed,#map_canvas object,.map_canvas img,.map_canvas embed,.map_canvas object,.mqa-display img,.mqa-display embed,.mqa-display object{max-width:none !important}.left{float:left !important}.right{float:right !important}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.invisible{visibility:hidden}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img{display:inline-block;vertical-align:middle}textarea{height:auto;min-height:50px}select{width:100%}.row{margin:0 auto;max-width:62.5rem;width:100%}.row:before,.row:after{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{margin:0 -0.9375rem;max-width:none;width:auto}.row .row:before,.row .row:after{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{margin:0;max-width:none;width:auto}.row .row.collapse:before,.row .row.collapse:after{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:0.9375rem;padding-right:0.9375rem;width:100%;float:left}.column+.column:last-child,.columns+.columns:last-child{float:right}.column+.column.end,.columns+.columns.end{float:left}@media only screen{.small-push-0{position:relative;left:0;right:auto}.small-pull-0{position:relative;right:0;left:auto}.small-push-1{position:relative;left:8.3333333333%;right:auto}.small-pull-1{position:relative;right:8.3333333333%;left:auto}.small-push-2{position:relative;left:16.6666666667%;right:auto}.small-pull-2{position:relative;right:16.6666666667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.3333333333%;right:auto}.small-pull-4{position:relative;right:33.3333333333%;left:auto}.small-push-5{position:relative;left:41.6666666667%;right:auto}.small-pull-5{position:relative;right:41.6666666667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.3333333333%;right:auto}.small-pull-7{position:relative;right:58.3333333333%;left:auto}.small-push-8{position:relative;left:66.6666666667%;right:auto}.small-pull-8{position:relative;right:66.6666666667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.3333333333%;right:auto}.small-pull-10{position:relative;right:83.3333333333%;left:auto}.small-push-11{position:relative;left:91.6666666667%;right:auto}.small-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left}.small-1{width:8.3333333333%}.small-2{width:16.6666666667%}.small-3{width:25%}.small-4{width:33.3333333333%}.small-5{width:41.6666666667%}.small-6{width:50%}.small-7{width:58.3333333333%}.small-8{width:66.6666666667%}.small-9{width:75%}.small-10{width:83.3333333333%}.small-11{width:91.6666666667%}.small-12{width:100%}.small-offset-0{margin-left:0 !important}.small-offset-1{margin-left:8.3333333333% !important}.small-offset-2{margin-left:16.6666666667% !important}.small-offset-3{margin-left:25% !important}.small-offset-4{margin-left:33.3333333333% !important}.small-offset-5{margin-left:41.6666666667% !important}.small-offset-6{margin-left:50% !important}.small-offset-7{margin-left:58.3333333333% !important}.small-offset-8{margin-left:66.6666666667% !important}.small-offset-9{margin-left:75% !important}.small-offset-10{margin-left:83.3333333333% !important}.small-offset-11{margin-left:91.6666666667% !important}.small-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.small-centered,.columns.small-centered{margin-left:auto;margin-right:auto;float:none}.column.small-uncentered,.columns.small-uncentered{float:left;margin-left:0;margin-right:0}.column.small-centered:last-child,.columns.small-centered:last-child{float:none}.column.small-uncentered:last-child,.columns.small-uncentered:last-child{float:left}.column.small-uncentered.opposite,.columns.small-uncentered.opposite{float:right}.row.small-collapse>.column,.row.small-collapse>.columns{padding-left:0;padding-right:0}.row.small-collapse .row{margin-left:0;margin-right:0}.row.small-uncollapse>.column,.row.small-uncollapse>.columns{padding-left:0.9375rem;padding-right:0.9375rem;float:left}}@media only screen and (min-width: 40.0625em){.medium-push-0{position:relative;left:0;right:auto}.medium-pull-0{position:relative;right:0;left:auto}.medium-push-1{position:relative;left:8.3333333333%;right:auto}.medium-pull-1{position:relative;right:8.3333333333%;left:auto}.medium-push-2{position:relative;left:16.6666666667%;right:auto}.medium-pull-2{position:relative;right:16.6666666667%;left:auto}.medium-push-3{position:relative;left:25%;right:auto}.medium-pull-3{position:relative;right:25%;left:auto}.medium-push-4{position:relative;left:33.3333333333%;right:auto}.medium-pull-4{position:relative;right:33.3333333333%;left:auto}.medium-push-5{position:relative;left:41.6666666667%;right:auto}.medium-pull-5{position:relative;right:41.6666666667%;left:auto}.medium-push-6{position:relative;left:50%;right:auto}.medium-pull-6{position:relative;right:50%;left:auto}.medium-push-7{position:relative;left:58.3333333333%;right:auto}.medium-pull-7{position:relative;right:58.3333333333%;left:auto}.medium-push-8{position:relative;left:66.6666666667%;right:auto}.medium-pull-8{position:relative;right:66.6666666667%;left:auto}.medium-push-9{position:relative;left:75%;right:auto}.medium-pull-9{position:relative;right:75%;left:auto}.medium-push-10{position:relative;left:83.3333333333%;right:auto}.medium-pull-10{position:relative;right:83.3333333333%;left:auto}.medium-push-11{position:relative;left:91.6666666667%;right:auto}.medium-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left}.medium-1{width:8.3333333333%}.medium-2{width:16.6666666667%}.medium-3{width:25%}.medium-4{width:33.3333333333%}.medium-5{width:41.6666666667%}.medium-6{width:50%}.medium-7{width:58.3333333333%}.medium-8{width:66.6666666667%}.medium-9{width:75%}.medium-10{width:83.3333333333%}.medium-11{width:91.6666666667%}.medium-12{width:100%}.medium-offset-0{margin-left:0 !important}.medium-offset-1{margin-left:8.3333333333% !important}.medium-offset-2{margin-left:16.6666666667% !important}.medium-offset-3{margin-left:25% !important}.medium-offset-4{margin-left:33.3333333333% !important}.medium-offset-5{margin-left:41.6666666667% !important}.medium-offset-6{margin-left:50% !important}.medium-offset-7{margin-left:58.3333333333% !important}.medium-offset-8{margin-left:66.6666666667% !important}.medium-offset-9{margin-left:75% !important}.medium-offset-10{margin-left:83.3333333333% !important}.medium-offset-11{margin-left:91.6666666667% !important}.medium-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.medium-centered,.columns.medium-centered{margin-left:auto;margin-right:auto;float:none}.column.medium-uncentered,.columns.medium-uncentered{float:left;margin-left:0;margin-right:0}.column.medium-centered:last-child,.columns.medium-centered:last-child{float:none}.column.medium-uncentered:last-child,.columns.medium-uncentered:last-child{float:left}.column.medium-uncentered.opposite,.columns.medium-uncentered.opposite{float:right}.row.medium-collapse>.column,.row.medium-collapse>.columns{padding-left:0;padding-right:0}.row.medium-collapse .row{margin-left:0;margin-right:0}.row.medium-uncollapse>.column,.row.medium-uncollapse>.columns{padding-left:0.9375rem;padding-right:0.9375rem;float:left}.push-0{position:relative;left:0;right:auto}.pull-0{position:relative;right:0;left:auto}.push-1{position:relative;left:8.3333333333%;right:auto}.pull-1{position:relative;right:8.3333333333%;left:auto}.push-2{position:relative;left:16.6666666667%;right:auto}.pull-2{position:relative;right:16.6666666667%;left:auto}.push-3{position:relative;left:25%;right:auto}.pull-3{position:relative;right:25%;left:auto}.push-4{position:relative;left:33.3333333333%;right:auto}.pull-4{position:relative;right:33.3333333333%;left:auto}.push-5{position:relative;left:41.6666666667%;right:auto}.pull-5{position:relative;right:41.6666666667%;left:auto}.push-6{position:relative;left:50%;right:auto}.pull-6{position:relative;right:50%;left:auto}.push-7{position:relative;left:58.3333333333%;right:auto}.pull-7{position:relative;right:58.3333333333%;left:auto}.push-8{position:relative;left:66.6666666667%;right:auto}.pull-8{position:relative;right:66.6666666667%;left:auto}.push-9{position:relative;left:75%;right:auto}.pull-9{position:relative;right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}@media only screen and (min-width: 64.0625em){.large-push-0{position:relative;left:0;right:auto}.large-pull-0{position:relative;right:0;left:auto}.large-push-1{position:relative;left:8.3333333333%;right:auto}.large-pull-1{position:relative;right:8.3333333333%;left:auto}.large-push-2{position:relative;left:16.6666666667%;right:auto}.large-pull-2{position:relative;right:16.6666666667%;left:auto}.large-push-3{position:relative;left:25%;right:auto}.large-pull-3{position:relative;right:25%;left:auto}.large-push-4{position:relative;left:33.3333333333%;right:auto}.large-pull-4{position:relative;right:33.3333333333%;left:auto}.large-push-5{position:relative;left:41.6666666667%;right:auto}.large-pull-5{position:relative;right:41.6666666667%;left:auto}.large-push-6{position:relative;left:50%;right:auto}.large-pull-6{position:relative;right:50%;left:auto}.large-push-7{position:relative;left:58.3333333333%;right:auto}.large-pull-7{position:relative;right:58.3333333333%;left:auto}.large-push-8{position:relative;left:66.6666666667%;right:auto}.large-pull-8{position:relative;right:66.6666666667%;left:auto}.large-push-9{position:relative;left:75%;right:auto}.large-pull-9{position:relative;right:75%;left:auto}.large-push-10{position:relative;left:83.3333333333%;right:auto}.large-pull-10{position:relative;right:83.3333333333%;left:auto}.large-push-11{position:relative;left:91.6666666667%;right:auto}.large-pull-11{position:relative;right:91.6666666667%;left:auto}.column,.columns{position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left}.large-1{width:8.3333333333%}.large-2{width:16.6666666667%}.large-3{width:25%}.large-4{width:33.3333333333%}.large-5{width:41.6666666667%}.large-6{width:50%}.large-7{width:58.3333333333%}.large-8{width:66.6666666667%}.large-9{width:75%}.large-10{width:83.3333333333%}.large-11{width:91.6666666667%}.large-12{width:100%}.large-offset-0{margin-left:0 !important}.large-offset-1{margin-left:8.3333333333% !important}.large-offset-2{margin-left:16.6666666667% !important}.large-offset-3{margin-left:25% !important}.large-offset-4{margin-left:33.3333333333% !important}.large-offset-5{margin-left:41.6666666667% !important}.large-offset-6{margin-left:50% !important}.large-offset-7{margin-left:58.3333333333% !important}.large-offset-8{margin-left:66.6666666667% !important}.large-offset-9{margin-left:75% !important}.large-offset-10{margin-left:83.3333333333% !important}.large-offset-11{margin-left:91.6666666667% !important}.large-reset-order{float:left;left:auto;margin-left:0;margin-right:0;right:auto}.column.large-centered,.columns.large-centered{margin-left:auto;margin-right:auto;float:none}.column.large-uncentered,.columns.large-uncentered{float:left;margin-left:0;margin-right:0}.column.large-centered:last-child,.columns.large-centered:last-child{float:none}.column.large-uncentered:last-child,.columns.large-uncentered:last-child{float:left}.column.large-uncentered.opposite,.columns.large-uncentered.opposite{float:right}.row.large-collapse>.column,.row.large-collapse>.columns{padding-left:0;padding-right:0}.row.large-collapse .row{margin-left:0;margin-right:0}.row.large-uncollapse>.column,.row.large-uncollapse>.columns{padding-left:0.9375rem;padding-right:0.9375rem;float:left}.push-0{position:relative;left:0;right:auto}.pull-0{position:relative;right:0;left:auto}.push-1{position:relative;left:8.3333333333%;right:auto}.pull-1{position:relative;right:8.3333333333%;left:auto}.push-2{position:relative;left:16.6666666667%;right:auto}.pull-2{position:relative;right:16.6666666667%;left:auto}.push-3{position:relative;left:25%;right:auto}.pull-3{position:relative;right:25%;left:auto}.push-4{position:relative;left:33.3333333333%;right:auto}.pull-4{position:relative;right:33.3333333333%;left:auto}.push-5{position:relative;left:41.6666666667%;right:auto}.pull-5{position:relative;right:41.6666666667%;left:auto}.push-6{position:relative;left:50%;right:auto}.pull-6{position:relative;right:50%;left:auto}.push-7{position:relative;left:58.3333333333%;right:auto}.pull-7{position:relative;right:58.3333333333%;left:auto}.push-8{position:relative;left:66.6666666667%;right:auto}.pull-8{position:relative;right:66.6666666667%;left:auto}.push-9{position:relative;left:75%;right:auto}.pull-9{position:relative;right:75%;left:auto}.push-10{position:relative;left:83.3333333333%;right:auto}.pull-10{position:relative;right:83.3333333333%;left:auto}.push-11{position:relative;left:91.6666666667%;right:auto}.pull-11{position:relative;right:91.6666666667%;left:auto}}.accordion{margin-bottom:0;margin-left:0}.accordion:before,.accordion:after{content:" ";display:table}.accordion:after{clear:both}.accordion .accordion-navigation,.accordion dd{display:block;margin-bottom:0 !important}.accordion .accordion-navigation.active>a,.accordion dd.active>a{background:#e8e8e8;color:#222}.accordion .accordion-navigation>a,.accordion dd>a{background:#EFEFEF;color:#222;display:block;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-size:1rem;padding:1rem}.accordion .accordion-navigation>a:hover,.accordion dd>a:hover{background:#e3e3e3}.accordion .accordion-navigation>.content,.accordion dd>.content{display:none;padding:0.9375rem}.accordion .accordion-navigation>.content.active,.accordion dd>.content.active{background:#fff;display:block}.alert-box{border-style:solid;border-width:1px;display:block;font-size:0.8125rem;font-weight:normal;margin-bottom:1.25rem;padding:0.875rem 1.5rem 0.875rem 0.875rem;position:relative;transition:opacity 300ms ease-out;background-color:#0074D9;border-color:#0064bb;color:#fff}.alert-box .close{right:0.25rem;background:inherit;color:#333;font-size:1.375rem;line-height:.9;margin-top:-0.6875rem;opacity:0.3;padding:0 6px 4px;position:absolute;top:50%}.alert-box .close:hover,.alert-box .close:focus{opacity:0.5}.alert-box.radius{border-radius:3px}.alert-box.round{border-radius:1000px}.alert-box.success{background-color:#2ECC40;border-color:#28af37;color:#fff}.alert-box.alert{background-color:#FF4136;border-color:#ff180b;color:#fff}.alert-box.secondary{background-color:#ddd;border-color:#bebebe;color:#4b4b4b}.alert-box.warning{background-color:#FF851B;border-color:#f37100;color:#fff}.alert-box.info{background-color:#7FDBFF;border-color:#4accff;color:#4b4b4b}.alert-box.alert-close{opacity:0}[class*="block-grid-"]{display:block;padding:0;margin:0 -0.625rem}[class*="block-grid-"]:before,[class*="block-grid-"]:after{content:" ";display:table}[class*="block-grid-"]:after{clear:both}[class*="block-grid-"]>li{display:block;float:left;height:auto;padding:0 0.625rem 1.25rem}@media only screen{.small-block-grid-1>li{list-style:none;width:100%}.small-block-grid-1>li:nth-of-type(1n){clear:none}.small-block-grid-1>li:nth-of-type(1n+1){clear:both}.small-block-grid-2>li{list-style:none;width:50%}.small-block-grid-2>li:nth-of-type(1n){clear:none}.small-block-grid-2>li:nth-of-type(2n+1){clear:both}.small-block-grid-3>li{list-style:none;width:33.3333333333%}.small-block-grid-3>li:nth-of-type(1n){clear:none}.small-block-grid-3>li:nth-of-type(3n+1){clear:both}.small-block-grid-4>li{list-style:none;width:25%}.small-block-grid-4>li:nth-of-type(1n){clear:none}.small-block-grid-4>li:nth-of-type(4n+1){clear:both}.small-block-grid-5>li{list-style:none;width:20%}.small-block-grid-5>li:nth-of-type(1n){clear:none}.small-block-grid-5>li:nth-of-type(5n+1){clear:both}.small-block-grid-6>li{list-style:none;width:16.6666666667%}.small-block-grid-6>li:nth-of-type(1n){clear:none}.small-block-grid-6>li:nth-of-type(6n+1){clear:both}.small-block-grid-7>li{list-style:none;width:14.2857142857%}.small-block-grid-7>li:nth-of-type(1n){clear:none}.small-block-grid-7>li:nth-of-type(7n+1){clear:both}.small-block-grid-8>li{list-style:none;width:12.5%}.small-block-grid-8>li:nth-of-type(1n){clear:none}.small-block-grid-8>li:nth-of-type(8n+1){clear:both}.small-block-grid-9>li{list-style:none;width:11.1111111111%}.small-block-grid-9>li:nth-of-type(1n){clear:none}.small-block-grid-9>li:nth-of-type(9n+1){clear:both}.small-block-grid-10>li{list-style:none;width:10%}.small-block-grid-10>li:nth-of-type(1n){clear:none}.small-block-grid-10>li:nth-of-type(10n+1){clear:both}.small-block-grid-11>li{list-style:none;width:9.0909090909%}.small-block-grid-11>li:nth-of-type(1n){clear:none}.small-block-grid-11>li:nth-of-type(11n+1){clear:both}.small-block-grid-12>li{list-style:none;width:8.3333333333%}.small-block-grid-12>li:nth-of-type(1n){clear:none}.small-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width: 40.0625em){.medium-block-grid-1>li{list-style:none;width:100%}.medium-block-grid-1>li:nth-of-type(1n){clear:none}.medium-block-grid-1>li:nth-of-type(1n+1){clear:both}.medium-block-grid-2>li{list-style:none;width:50%}.medium-block-grid-2>li:nth-of-type(1n){clear:none}.medium-block-grid-2>li:nth-of-type(2n+1){clear:both}.medium-block-grid-3>li{list-style:none;width:33.3333333333%}.medium-block-grid-3>li:nth-of-type(1n){clear:none}.medium-block-grid-3>li:nth-of-type(3n+1){clear:both}.medium-block-grid-4>li{list-style:none;width:25%}.medium-block-grid-4>li:nth-of-type(1n){clear:none}.medium-block-grid-4>li:nth-of-type(4n+1){clear:both}.medium-block-grid-5>li{list-style:none;width:20%}.medium-block-grid-5>li:nth-of-type(1n){clear:none}.medium-block-grid-5>li:nth-of-type(5n+1){clear:both}.medium-block-grid-6>li{list-style:none;width:16.6666666667%}.medium-block-grid-6>li:nth-of-type(1n){clear:none}.medium-block-grid-6>li:nth-of-type(6n+1){clear:both}.medium-block-grid-7>li{list-style:none;width:14.2857142857%}.medium-block-grid-7>li:nth-of-type(1n){clear:none}.medium-block-grid-7>li:nth-of-type(7n+1){clear:both}.medium-block-grid-8>li{list-style:none;width:12.5%}.medium-block-grid-8>li:nth-of-type(1n){clear:none}.medium-block-grid-8>li:nth-of-type(8n+1){clear:both}.medium-block-grid-9>li{list-style:none;width:11.1111111111%}.medium-block-grid-9>li:nth-of-type(1n){clear:none}.medium-block-grid-9>li:nth-of-type(9n+1){clear:both}.medium-block-grid-10>li{list-style:none;width:10%}.medium-block-grid-10>li:nth-of-type(1n){clear:none}.medium-block-grid-10>li:nth-of-type(10n+1){clear:both}.medium-block-grid-11>li{list-style:none;width:9.0909090909%}.medium-block-grid-11>li:nth-of-type(1n){clear:none}.medium-block-grid-11>li:nth-of-type(11n+1){clear:both}.medium-block-grid-12>li{list-style:none;width:8.3333333333%}.medium-block-grid-12>li:nth-of-type(1n){clear:none}.medium-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width: 64.0625em){.large-block-grid-1>li{list-style:none;width:100%}.large-block-grid-1>li:nth-of-type(1n){clear:none}.large-block-grid-1>li:nth-of-type(1n+1){clear:both}.large-block-grid-2>li{list-style:none;width:50%}.large-block-grid-2>li:nth-of-type(1n){clear:none}.large-block-grid-2>li:nth-of-type(2n+1){clear:both}.large-block-grid-3>li{list-style:none;width:33.3333333333%}.large-block-grid-3>li:nth-of-type(1n){clear:none}.large-block-grid-3>li:nth-of-type(3n+1){clear:both}.large-block-grid-4>li{list-style:none;width:25%}.large-block-grid-4>li:nth-of-type(1n){clear:none}.large-block-grid-4>li:nth-of-type(4n+1){clear:both}.large-block-grid-5>li{list-style:none;width:20%}.large-block-grid-5>li:nth-of-type(1n){clear:none}.large-block-grid-5>li:nth-of-type(5n+1){clear:both}.large-block-grid-6>li{list-style:none;width:16.6666666667%}.large-block-grid-6>li:nth-of-type(1n){clear:none}.large-block-grid-6>li:nth-of-type(6n+1){clear:both}.large-block-grid-7>li{list-style:none;width:14.2857142857%}.large-block-grid-7>li:nth-of-type(1n){clear:none}.large-block-grid-7>li:nth-of-type(7n+1){clear:both}.large-block-grid-8>li{list-style:none;width:12.5%}.large-block-grid-8>li:nth-of-type(1n){clear:none}.large-block-grid-8>li:nth-of-type(8n+1){clear:both}.large-block-grid-9>li{list-style:none;width:11.1111111111%}.large-block-grid-9>li:nth-of-type(1n){clear:none}.large-block-grid-9>li:nth-of-type(9n+1){clear:both}.large-block-grid-10>li{list-style:none;width:10%}.large-block-grid-10>li:nth-of-type(1n){clear:none}.large-block-grid-10>li:nth-of-type(10n+1){clear:both}.large-block-grid-11>li{list-style:none;width:9.0909090909%}.large-block-grid-11>li:nth-of-type(1n){clear:none}.large-block-grid-11>li:nth-of-type(11n+1){clear:both}.large-block-grid-12>li{list-style:none;width:8.3333333333%}.large-block-grid-12>li:nth-of-type(1n){clear:none}.large-block-grid-12>li:nth-of-type(12n+1){clear:both}}.breadcrumbs{border-style:solid;border-width:1px;display:block;list-style:none;margin-left:0;overflow:hidden;padding:0.5625rem 0.875rem 0.5625rem;background-color:#f0f0f0;border-color:#d8d8d8;border-radius:3px}.breadcrumbs>*{color:#0074D9;float:left;font-size:0.6875rem;line-height:0.6875rem;margin:0;text-transform:uppercase}.breadcrumbs>*:hover a,.breadcrumbs>*:focus a{text-decoration:underline}.breadcrumbs>* a{color:#0074D9}.breadcrumbs>*.current{color:#333;cursor:default}.breadcrumbs>*.current a{color:#333;cursor:default}.breadcrumbs>*.current:hover,.breadcrumbs>*.current:hover a,.breadcrumbs>*.current:focus,.breadcrumbs>*.current:focus a{text-decoration:none}.breadcrumbs>*.unavailable{color:#999}.breadcrumbs>*.unavailable a{color:#999}.breadcrumbs>*.unavailable:hover,.breadcrumbs>*.unavailable:hover a,.breadcrumbs>*.unavailable:focus,.breadcrumbs>*.unavailable a:focus{color:#999;cursor:not-allowed;text-decoration:none}.breadcrumbs>*:before{color:#aaa;content:"/";margin:0 0.75rem;position:relative;top:1px}.breadcrumbs>*:first-child:before{content:" ";margin:0}[aria-label="breadcrumbs"] [aria-hidden="true"]:after{content:"/"}button,.button{-webkit-appearance:none;-moz-appearance:none;border-radius:0;border-style:solid;border-width:0;cursor:pointer;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-weight:normal;line-height:normal;margin:0 0 1.25rem;position:relative;text-align:center;text-decoration:none;display:inline-block;padding:1rem 2rem 1.0625rem 2rem;font-size:1rem;background-color:#0074D9;border-color:#005dae;color:#fff;transition:background-color 300ms ease-out}button:hover,button:focus,.button:hover,.button:focus{background-color:#005dae}button:hover,button:focus,.button:hover,.button:focus{color:#fff}button.secondary,.button.secondary{background-color:#ddd;border-color:#b1b1b1;color:#333}button.secondary:hover,button.secondary:focus,.button.secondary:hover,.button.secondary:focus{background-color:#b1b1b1}button.secondary:hover,button.secondary:focus,.button.secondary:hover,.button.secondary:focus{color:#fff}button.success,.button.success{background-color:#2ECC40;border-color:#25a333;color:#fff}button.success:hover,button.success:focus,.button.success:hover,.button.success:focus{background-color:#25a333}button.success:hover,button.success:focus,.button.success:hover,.button.success:focus{color:#fff}button.alert,.button.alert{background-color:#FF4136;border-color:#f70e00;color:#fff}button.alert:hover,button.alert:focus,.button.alert:hover,.button.alert:focus{background-color:#f70e00}button.alert:hover,button.alert:focus,.button.alert:hover,.button.alert:focus{color:#fff}button.warning,.button.warning{background-color:#FF851B;border-color:#e26900;color:#fff}button.warning:hover,button.warning:focus,.button.warning:hover,.button.warning:focus{background-color:#e26900}button.warning:hover,button.warning:focus,.button.warning:hover,.button.warning:focus{color:#fff}button.info,.button.info{background-color:#7FDBFF;border-color:#33c6ff;color:#333}button.info:hover,button.info:focus,.button.info:hover,.button.info:focus{background-color:#33c6ff}button.info:hover,button.info:focus,.button.info:hover,.button.info:focus{color:#fff}button.large,.button.large{padding:1.125rem 2.25rem 1.1875rem 2.25rem;font-size:1.25rem}button.small,.button.small{padding:0.875rem 1.75rem 0.9375rem 1.75rem;font-size:0.8125rem}button.tiny,.button.tiny{padding:0.625rem 1.25rem 0.6875rem 1.25rem;font-size:0.6875rem}button.expand,.button.expand{padding:1rem 2rem 1.0625rem 2rem;font-size:1rem;padding-bottom:1.0625rem;padding-top:1rem;padding-left:1rem;padding-right:1rem;width:100%}button.left-align,.button.left-align{text-align:left;text-indent:0.75rem}button.right-align,.button.right-align{text-align:right;padding-right:0.75rem}button.radius,.button.radius{border-radius:3px}button.round,.button.round{border-radius:1000px}button.disabled,button[disabled],.button.disabled,.button[disabled]{background-color:#0074D9;border-color:#005dae;color:#fff;box-shadow:none;cursor:default;opacity:0.7}button.disabled:hover,button.disabled:focus,button[disabled]:hover,button[disabled]:focus,.button.disabled:hover,.button.disabled:focus,.button[disabled]:hover,.button[disabled]:focus{background-color:#005dae}button.disabled:hover,button.disabled:focus,button[disabled]:hover,button[disabled]:focus,.button.disabled:hover,.button.disabled:focus,.button[disabled]:hover,.button[disabled]:focus{color:#fff}button.disabled:hover,button.disabled:focus,button[disabled]:hover,button[disabled]:focus,.button.disabled:hover,.button.disabled:focus,.button[disabled]:hover,.button[disabled]:focus{background-color:#0074D9}button.disabled.secondary,button[disabled].secondary,.button.disabled.secondary,.button[disabled].secondary{background-color:#ddd;border-color:#b1b1b1;color:#333;box-shadow:none;cursor:default;opacity:0.7}button.disabled.secondary:hover,button.disabled.secondary:focus,button[disabled].secondary:hover,button[disabled].secondary:focus,.button.disabled.secondary:hover,.button.disabled.secondary:focus,.button[disabled].secondary:hover,.button[disabled].secondary:focus{background-color:#b1b1b1}button.disabled.secondary:hover,button.disabled.secondary:focus,button[disabled].secondary:hover,button[disabled].secondary:focus,.button.disabled.secondary:hover,.button.disabled.secondary:focus,.button[disabled].secondary:hover,.button[disabled].secondary:focus{color:#fff}button.disabled.secondary:hover,button.disabled.secondary:focus,button[disabled].secondary:hover,button[disabled].secondary:focus,.button.disabled.secondary:hover,.button.disabled.secondary:focus,.button[disabled].secondary:hover,.button[disabled].secondary:focus{background-color:#ddd}button.disabled.success,button[disabled].success,.button.disabled.success,.button[disabled].success{background-color:#2ECC40;border-color:#25a333;color:#fff;box-shadow:none;cursor:default;opacity:0.7}button.disabled.success:hover,button.disabled.success:focus,button[disabled].success:hover,button[disabled].success:focus,.button.disabled.success:hover,.button.disabled.success:focus,.button[disabled].success:hover,.button[disabled].success:focus{background-color:#25a333}button.disabled.success:hover,button.disabled.success:focus,button[disabled].success:hover,button[disabled].success:focus,.button.disabled.success:hover,.button.disabled.success:focus,.button[disabled].success:hover,.button[disabled].success:focus{color:#fff}button.disabled.success:hover,button.disabled.success:focus,button[disabled].success:hover,button[disabled].success:focus,.button.disabled.success:hover,.button.disabled.success:focus,.button[disabled].success:hover,.button[disabled].success:focus{background-color:#2ECC40}button.disabled.alert,button[disabled].alert,.button.disabled.alert,.button[disabled].alert{background-color:#FF4136;border-color:#f70e00;color:#fff;box-shadow:none;cursor:default;opacity:0.7}button.disabled.alert:hover,button.disabled.alert:focus,button[disabled].alert:hover,button[disabled].alert:focus,.button.disabled.alert:hover,.button.disabled.alert:focus,.button[disabled].alert:hover,.button[disabled].alert:focus{background-color:#f70e00}button.disabled.alert:hover,button.disabled.alert:focus,button[disabled].alert:hover,button[disabled].alert:focus,.button.disabled.alert:hover,.button.disabled.alert:focus,.button[disabled].alert:hover,.button[disabled].alert:focus{color:#fff}button.disabled.alert:hover,button.disabled.alert:focus,button[disabled].alert:hover,button[disabled].alert:focus,.button.disabled.alert:hover,.button.disabled.alert:focus,.button[disabled].alert:hover,.button[disabled].alert:focus{background-color:#FF4136}button.disabled.warning,button[disabled].warning,.button.disabled.warning,.button[disabled].warning{background-color:#FF851B;border-color:#e26900;color:#fff;box-shadow:none;cursor:default;opacity:0.7}button.disabled.warning:hover,button.disabled.warning:focus,button[disabled].warning:hover,button[disabled].warning:focus,.button.disabled.warning:hover,.button.disabled.warning:focus,.button[disabled].warning:hover,.button[disabled].warning:focus{background-color:#e26900}button.disabled.warning:hover,button.disabled.warning:focus,button[disabled].warning:hover,button[disabled].warning:focus,.button.disabled.warning:hover,.button.disabled.warning:focus,.button[disabled].warning:hover,.button[disabled].warning:focus{color:#fff}button.disabled.warning:hover,button.disabled.warning:focus,button[disabled].warning:hover,button[disabled].warning:focus,.button.disabled.warning:hover,.button.disabled.warning:focus,.button[disabled].warning:hover,.button[disabled].warning:focus{background-color:#FF851B}button.disabled.info,button[disabled].info,.button.disabled.info,.button[disabled].info{background-color:#7FDBFF;border-color:#33c6ff;color:#333;box-shadow:none;cursor:default;opacity:0.7}button.disabled.info:hover,button.disabled.info:focus,button[disabled].info:hover,button[disabled].info:focus,.button.disabled.info:hover,.button.disabled.info:focus,.button[disabled].info:hover,.button[disabled].info:focus{background-color:#33c6ff}button.disabled.info:hover,button.disabled.info:focus,button[disabled].info:hover,button[disabled].info:focus,.button.disabled.info:hover,.button.disabled.info:focus,.button[disabled].info:hover,.button[disabled].info:focus{color:#fff}button.disabled.info:hover,button.disabled.info:focus,button[disabled].info:hover,button[disabled].info:focus,.button.disabled.info:hover,.button.disabled.info:focus,.button[disabled].info:hover,.button[disabled].info:focus{background-color:#7FDBFF}button::-moz-focus-inner{border:0;padding:0}@media only screen and (min-width: 40.0625em){button,.button{display:inline-block}}.button-group{list-style:none;margin:0;left:0}.button-group:before,.button-group:after{content:" ";display:table}.button-group:after{clear:both}.button-group.even-2 li{display:inline-block;margin:0 -2px;width:50%}.button-group.even-2 li>button,.button-group.even-2 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-2 li:first-child button,.button-group.even-2 li:first-child .button{border-left:0}.button-group.even-2 li button,.button-group.even-2 li .button{width:100%}.button-group.even-3 li{display:inline-block;margin:0 -2px;width:33.3333333333%}.button-group.even-3 li>button,.button-group.even-3 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-3 li:first-child button,.button-group.even-3 li:first-child .button{border-left:0}.button-group.even-3 li button,.button-group.even-3 li .button{width:100%}.button-group.even-4 li{display:inline-block;margin:0 -2px;width:25%}.button-group.even-4 li>button,.button-group.even-4 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-4 li:first-child button,.button-group.even-4 li:first-child .button{border-left:0}.button-group.even-4 li button,.button-group.even-4 li .button{width:100%}.button-group.even-5 li{display:inline-block;margin:0 -2px;width:20%}.button-group.even-5 li>button,.button-group.even-5 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-5 li:first-child button,.button-group.even-5 li:first-child .button{border-left:0}.button-group.even-5 li button,.button-group.even-5 li .button{width:100%}.button-group.even-6 li{display:inline-block;margin:0 -2px;width:16.6666666667%}.button-group.even-6 li>button,.button-group.even-6 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-6 li:first-child button,.button-group.even-6 li:first-child .button{border-left:0}.button-group.even-6 li button,.button-group.even-6 li .button{width:100%}.button-group.even-7 li{display:inline-block;margin:0 -2px;width:14.2857142857%}.button-group.even-7 li>button,.button-group.even-7 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-7 li:first-child button,.button-group.even-7 li:first-child .button{border-left:0}.button-group.even-7 li button,.button-group.even-7 li .button{width:100%}.button-group.even-8 li{display:inline-block;margin:0 -2px;width:12.5%}.button-group.even-8 li>button,.button-group.even-8 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-8 li:first-child button,.button-group.even-8 li:first-child .button{border-left:0}.button-group.even-8 li button,.button-group.even-8 li .button{width:100%}.button-group>li{display:inline-block;margin:0 -2px}.button-group>li>button,.button-group>li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group>li:first-child button,.button-group>li:first-child .button{border-left:0}.button-group.stack>li{display:block;margin:0;float:none}.button-group.stack>li>button,.button-group.stack>li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.stack>li:first-child button,.button-group.stack>li:first-child .button{border-left:0}.button-group.stack>li>button,.button-group.stack>li .button{border-color:rgba(255,255,255,0.5);border-left-width:0;border-top:1px solid;display:block;margin:0}.button-group.stack>li>button{width:100%}.button-group.stack>li:first-child button,.button-group.stack>li:first-child .button{border-top:0}.button-group.stack-for-small>li{display:inline-block;margin:0 -2px}.button-group.stack-for-small>li>button,.button-group.stack-for-small>li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.stack-for-small>li:first-child button,.button-group.stack-for-small>li:first-child .button{border-left:0}@media only screen and (max-width: 40em){.button-group.stack-for-small>li{display:block;margin:0;width:100%}.button-group.stack-for-small>li>button,.button-group.stack-for-small>li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.stack-for-small>li:first-child button,.button-group.stack-for-small>li:first-child .button{border-left:0}.button-group.stack-for-small>li>button,.button-group.stack-for-small>li .button{border-color:rgba(255,255,255,0.5);border-left-width:0;border-top:1px solid;display:block;margin:0}.button-group.stack-for-small>li>button{width:100%}.button-group.stack-for-small>li:first-child button,.button-group.stack-for-small>li:first-child .button{border-top:0}}.button-group.radius>*{display:inline-block;margin:0 -2px}.button-group.radius>*>button,.button-group.radius>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.radius>*:first-child button,.button-group.radius>*:first-child .button{border-left:0}.button-group.radius>*,.button-group.radius>*>a,.button-group.radius>*>button,.button-group.radius>*>.button{border-radius:0}.button-group.radius>*:first-child,.button-group.radius>*:first-child>a,.button-group.radius>*:first-child>button,.button-group.radius>*:first-child>.button{-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.button-group.radius>*:last-child,.button-group.radius>*:last-child>a,.button-group.radius>*:last-child>button,.button-group.radius>*:last-child>.button{-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}.button-group.radius.stack>*{display:block;margin:0}.button-group.radius.stack>*>button,.button-group.radius.stack>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.radius.stack>*:first-child button,.button-group.radius.stack>*:first-child .button{border-left:0}.button-group.radius.stack>*>button,.button-group.radius.stack>* .button{border-color:rgba(255,255,255,0.5);border-left-width:0;border-top:1px solid;display:block;margin:0}.button-group.radius.stack>*>button{width:100%}.button-group.radius.stack>*:first-child button,.button-group.radius.stack>*:first-child .button{border-top:0}.button-group.radius.stack>*,.button-group.radius.stack>*>a,.button-group.radius.stack>*>button,.button-group.radius.stack>*>.button{border-radius:0}.button-group.radius.stack>*:first-child,.button-group.radius.stack>*:first-child>a,.button-group.radius.stack>*:first-child>button,.button-group.radius.stack>*:first-child>.button{-webkit-top-left-radius:3px;-webkit-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.button-group.radius.stack>*:last-child,.button-group.radius.stack>*:last-child>a,.button-group.radius.stack>*:last-child>button,.button-group.radius.stack>*:last-child>.button{-webkit-bottom-left-radius:3px;-webkit-bottom-right-radius:3px;border-bottom-left-radius:3px;border-bottom-right-radius:3px}@media only screen and (min-width: 40.0625em){.button-group.radius.stack-for-small>*{display:inline-block;margin:0 -2px}.button-group.radius.stack-for-small>*>button,.button-group.radius.stack-for-small>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.radius.stack-for-small>*:first-child button,.button-group.radius.stack-for-small>*:first-child .button{border-left:0}.button-group.radius.stack-for-small>*,.button-group.radius.stack-for-small>*>a,.button-group.radius.stack-for-small>*>button,.button-group.radius.stack-for-small>*>.button{border-radius:0}.button-group.radius.stack-for-small>*:first-child,.button-group.radius.stack-for-small>*:first-child>a,.button-group.radius.stack-for-small>*:first-child>button,.button-group.radius.stack-for-small>*:first-child>.button{-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.button-group.radius.stack-for-small>*:last-child,.button-group.radius.stack-for-small>*:last-child>a,.button-group.radius.stack-for-small>*:last-child>button,.button-group.radius.stack-for-small>*:last-child>.button{-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}}@media only screen and (max-width: 40em){.button-group.radius.stack-for-small>*{display:block;margin:0}.button-group.radius.stack-for-small>*>button,.button-group.radius.stack-for-small>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.radius.stack-for-small>*:first-child button,.button-group.radius.stack-for-small>*:first-child .button{border-left:0}.button-group.radius.stack-for-small>*>button,.button-group.radius.stack-for-small>* .button{border-color:rgba(255,255,255,0.5);border-left-width:0;border-top:1px solid;display:block;margin:0}.button-group.radius.stack-for-small>*>button{width:100%}.button-group.radius.stack-for-small>*:first-child button,.button-group.radius.stack-for-small>*:first-child .button{border-top:0}.button-group.radius.stack-for-small>*,.button-group.radius.stack-for-small>*>a,.button-group.radius.stack-for-small>*>button,.button-group.radius.stack-for-small>*>.button{border-radius:0}.button-group.radius.stack-for-small>*:first-child,.button-group.radius.stack-for-small>*:first-child>a,.button-group.radius.stack-for-small>*:first-child>button,.button-group.radius.stack-for-small>*:first-child>.button{-webkit-top-left-radius:3px;-webkit-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px}.button-group.radius.stack-for-small>*:last-child,.button-group.radius.stack-for-small>*:last-child>a,.button-group.radius.stack-for-small>*:last-child>button,.button-group.radius.stack-for-small>*:last-child>.button{-webkit-bottom-left-radius:3px;-webkit-bottom-right-radius:3px;border-bottom-left-radius:3px;border-bottom-right-radius:3px}}.button-group.round>*{display:inline-block;margin:0 -2px}.button-group.round>*>button,.button-group.round>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.round>*:first-child button,.button-group.round>*:first-child .button{border-left:0}.button-group.round>*,.button-group.round>*>a,.button-group.round>*>button,.button-group.round>*>.button{border-radius:0}.button-group.round>*:first-child,.button-group.round>*:first-child>a,.button-group.round>*:first-child>button,.button-group.round>*:first-child>.button{-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.button-group.round>*:last-child,.button-group.round>*:last-child>a,.button-group.round>*:last-child>button,.button-group.round>*:last-child>.button{-webkit-border-bottom-right-radius:1000px;-webkit-border-top-right-radius:1000px;border-bottom-right-radius:1000px;border-top-right-radius:1000px}.button-group.round.stack>*{display:block;margin:0}.button-group.round.stack>*>button,.button-group.round.stack>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.round.stack>*:first-child button,.button-group.round.stack>*:first-child .button{border-left:0}.button-group.round.stack>*>button,.button-group.round.stack>* .button{border-color:rgba(255,255,255,0.5);border-left-width:0;border-top:1px solid;display:block;margin:0}.button-group.round.stack>*>button{width:100%}.button-group.round.stack>*:first-child button,.button-group.round.stack>*:first-child .button{border-top:0}.button-group.round.stack>*,.button-group.round.stack>*>a,.button-group.round.stack>*>button,.button-group.round.stack>*>.button{border-radius:0}.button-group.round.stack>*:first-child,.button-group.round.stack>*:first-child>a,.button-group.round.stack>*:first-child>button,.button-group.round.stack>*:first-child>.button{-webkit-top-left-radius:1rem;-webkit-top-right-radius:1rem;border-top-left-radius:1rem;border-top-right-radius:1rem}.button-group.round.stack>*:last-child,.button-group.round.stack>*:last-child>a,.button-group.round.stack>*:last-child>button,.button-group.round.stack>*:last-child>.button{-webkit-bottom-left-radius:1rem;-webkit-bottom-right-radius:1rem;border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}@media only screen and (min-width: 40.0625em){.button-group.round.stack-for-small>*{display:inline-block;margin:0 -2px}.button-group.round.stack-for-small>*>button,.button-group.round.stack-for-small>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.round.stack-for-small>*:first-child button,.button-group.round.stack-for-small>*:first-child .button{border-left:0}.button-group.round.stack-for-small>*,.button-group.round.stack-for-small>*>a,.button-group.round.stack-for-small>*>button,.button-group.round.stack-for-small>*>.button{border-radius:0}.button-group.round.stack-for-small>*:first-child,.button-group.round.stack-for-small>*:first-child>a,.button-group.round.stack-for-small>*:first-child>button,.button-group.round.stack-for-small>*:first-child>.button{-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.button-group.round.stack-for-small>*:last-child,.button-group.round.stack-for-small>*:last-child>a,.button-group.round.stack-for-small>*:last-child>button,.button-group.round.stack-for-small>*:last-child>.button{-webkit-border-bottom-right-radius:1000px;-webkit-border-top-right-radius:1000px;border-bottom-right-radius:1000px;border-top-right-radius:1000px}}@media only screen and (max-width: 40em){.button-group.round.stack-for-small>*{display:block;margin:0}.button-group.round.stack-for-small>*>button,.button-group.round.stack-for-small>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.round.stack-for-small>*:first-child button,.button-group.round.stack-for-small>*:first-child .button{border-left:0}.button-group.round.stack-for-small>*>button,.button-group.round.stack-for-small>* .button{border-color:rgba(255,255,255,0.5);border-left-width:0;border-top:1px solid;display:block;margin:0}.button-group.round.stack-for-small>*>button{width:100%}.button-group.round.stack-for-small>*:first-child button,.button-group.round.stack-for-small>*:first-child .button{border-top:0}.button-group.round.stack-for-small>*,.button-group.round.stack-for-small>*>a,.button-group.round.stack-for-small>*>button,.button-group.round.stack-for-small>*>.button{border-radius:0}.button-group.round.stack-for-small>*:first-child,.button-group.round.stack-for-small>*:first-child>a,.button-group.round.stack-for-small>*:first-child>button,.button-group.round.stack-for-small>*:first-child>.button{-webkit-top-left-radius:1rem;-webkit-top-right-radius:1rem;border-top-left-radius:1rem;border-top-right-radius:1rem}.button-group.round.stack-for-small>*:last-child,.button-group.round.stack-for-small>*:last-child>a,.button-group.round.stack-for-small>*:last-child>button,.button-group.round.stack-for-small>*:last-child>.button{-webkit-bottom-left-radius:1rem;-webkit-bottom-right-radius:1rem;border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}}.button-bar:before,.button-bar:after{content:" ";display:table}.button-bar:after{clear:both}.button-bar .button-group{float:left;margin-right:0.625rem}.button-bar .button-group div{overflow:hidden}.clearing-thumbs,[data-clearing]{list-style:none;margin-left:0;margin-bottom:0}.clearing-thumbs:before,.clearing-thumbs:after,[data-clearing]:before,[data-clearing]:after{content:" ";display:table}.clearing-thumbs:after,[data-clearing]:after{clear:both}.clearing-thumbs li,[data-clearing] li{float:left;margin-right:10px}.clearing-thumbs[class*="block-grid-"] li,[data-clearing][class*="block-grid-"] li{margin-right:0}.clearing-blackout{background:#333;height:100%;position:fixed;top:0;width:100%;z-index:998;left:0}.clearing-blackout .clearing-close{display:block}.clearing-container{height:100%;margin:0;overflow:hidden;position:relative;z-index:998}.clearing-touch-label{color:#aaa;font-size:.6em;left:50%;position:absolute;top:50%}.visible-img{height:95%;position:relative}.visible-img img{position:absolute;left:50%;top:50%;-webkit-transform:translateY(-50%) translateX(-50%);-moz-transform:translateY(-50%) translateX(-50%);-ms-transform:translateY(-50%) translateX(-50%);-o-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);max-height:100%;max-width:100%}.clearing-caption{background:#333;bottom:0;color:#ccc;font-size:0.875em;line-height:1.3;margin-bottom:0;padding:10px 30px 20px;position:absolute;text-align:center;width:100%;left:0}.clearing-close{color:#ccc;display:none;font-size:30px;line-height:1;padding-left:20px;padding-top:10px;z-index:999}.clearing-close:hover,.clearing-close:focus{color:#ccc}.clearing-assembled .clearing-container{height:100%}.clearing-assembled .clearing-container .carousel>ul{display:none}.clearing-feature li{display:none}.clearing-feature li.clearing-featured-img{display:block}@media only screen and (min-width: 40.0625em){.clearing-main-prev,.clearing-main-next{height:100%;position:absolute;top:0;width:40px}.clearing-main-prev>span,.clearing-main-next>span{border:solid 12px;display:block;height:0;position:absolute;top:50%;width:0}.clearing-main-prev>span:hover,.clearing-main-next>span:hover{opacity:.8}.clearing-main-prev{left:0}.clearing-main-prev>span{left:5px;border-color:transparent;border-right-color:#ccc}.clearing-main-next{right:0}.clearing-main-next>span{border-color:transparent;border-left-color:#ccc}.clearing-main-prev.disabled,.clearing-main-next.disabled{opacity:.3}.clearing-assembled .clearing-container .carousel{background:rgba(51,51,51,0.8);height:120px;margin-top:10px;text-align:center}.clearing-assembled .clearing-container .carousel>ul{display:inline-block;z-index:999;height:100%;position:relative;float:none}.clearing-assembled .clearing-container .carousel>ul li{clear:none;cursor:pointer;display:block;float:left;margin-right:0;min-height:inherit;opacity:.4;overflow:hidden;padding:0;position:relative;width:120px}.clearing-assembled .clearing-container .carousel>ul li.fix-height img{height:100%;max-width:none}.clearing-assembled .clearing-container .carousel>ul li a.th{border:none;box-shadow:none;display:block}.clearing-assembled .clearing-container .carousel>ul li img{cursor:pointer !important;width:100% !important}.clearing-assembled .clearing-container .carousel>ul li.visible{opacity:1}.clearing-assembled .clearing-container .carousel>ul li:hover{opacity:.8}.clearing-assembled .clearing-container .visible-img{background:#333;height:85%;overflow:hidden}.clearing-close{padding-left:0;padding-top:0;position:absolute;top:10px;right:20px}}.f-dropdown{display:none;left:-9999px;list-style:none;margin-left:0;position:absolute;background:#fff;border:solid 1px #ccc;font-size:0.875rem;height:auto;max-height:none;width:100%;z-index:89;margin-top:2px;max-width:200px}.f-dropdown.open{display:block}.f-dropdown>*:first-child{margin-top:0}.f-dropdown>*:last-child{margin-bottom:0}.f-dropdown:before{border:inset 6px;content:"";display:block;height:0;width:0;border-color:transparent transparent #fff transparent;border-bottom-style:solid;position:absolute;top:-12px;left:10px;z-index:89}.f-dropdown:after{border:inset 7px;content:"";display:block;height:0;width:0;border-color:transparent transparent #ccc transparent;border-bottom-style:solid;position:absolute;top:-14px;left:9px;z-index:88}.f-dropdown.right:before{left:auto;right:10px}.f-dropdown.right:after{left:auto;right:9px}.f-dropdown.drop-right{display:none;left:-9999px;list-style:none;margin-left:0;position:absolute;background:#fff;border:solid 1px #ccc;font-size:0.875rem;height:auto;max-height:none;width:100%;z-index:89;margin-top:0;margin-left:2px;max-width:200px}.f-dropdown.drop-right.open{display:block}.f-dropdown.drop-right>*:first-child{margin-top:0}.f-dropdown.drop-right>*:last-child{margin-bottom:0}.f-dropdown.drop-right:before{border:inset 6px;content:"";display:block;height:0;width:0;border-color:transparent #fff transparent transparent;border-right-style:solid;position:absolute;top:10px;left:-12px;z-index:89}.f-dropdown.drop-right:after{border:inset 7px;content:"";display:block;height:0;width:0;border-color:transparent #ccc transparent transparent;border-right-style:solid;position:absolute;top:9px;left:-14px;z-index:88}.f-dropdown.drop-left{display:none;left:-9999px;list-style:none;margin-left:0;position:absolute;background:#fff;border:solid 1px #ccc;font-size:0.875rem;height:auto;max-height:none;width:100%;z-index:89;margin-top:0;margin-left:-2px;max-width:200px}.f-dropdown.drop-left.open{display:block}.f-dropdown.drop-left>*:first-child{margin-top:0}.f-dropdown.drop-left>*:last-child{margin-bottom:0}.f-dropdown.drop-left:before{border:inset 6px;content:"";display:block;height:0;width:0;border-color:transparent transparent transparent #fff;border-left-style:solid;position:absolute;top:10px;right:-12px;left:auto;z-index:89}.f-dropdown.drop-left:after{border:inset 7px;content:"";display:block;height:0;width:0;border-color:transparent transparent transparent #ccc;border-left-style:solid;position:absolute;top:9px;right:-14px;left:auto;z-index:88}.f-dropdown.drop-top{display:none;left:-9999px;list-style:none;margin-left:0;position:absolute;background:#fff;border:solid 1px #ccc;font-size:0.875rem;height:auto;max-height:none;width:100%;z-index:89;margin-left:0;margin-top:-2px;max-width:200px}.f-dropdown.drop-top.open{display:block}.f-dropdown.drop-top>*:first-child{margin-top:0}.f-dropdown.drop-top>*:last-child{margin-bottom:0}.f-dropdown.drop-top:before{border:inset 6px;content:"";display:block;height:0;width:0;border-color:#fff transparent transparent transparent;border-top-style:solid;bottom:-12px;position:absolute;top:auto;left:10px;right:auto;z-index:89}.f-dropdown.drop-top:after{border:inset 7px;content:"";display:block;height:0;width:0;border-color:#ccc transparent transparent transparent;border-top-style:solid;bottom:-14px;position:absolute;top:auto;left:9px;right:auto;z-index:88}.f-dropdown li{cursor:pointer;font-size:0.875rem;line-height:1.125rem;margin:0}.f-dropdown li:hover,.f-dropdown li:focus{background:#eee}.f-dropdown li a{display:block;padding:0.5rem;color:#555}.f-dropdown.content{display:none;left:-9999px;list-style:none;margin-left:0;position:absolute;background:#fff;border:solid 1px #ccc;font-size:0.875rem;height:auto;max-height:none;padding:1.25rem;width:100%;z-index:89;max-width:200px}.f-dropdown.content.open{display:block}.f-dropdown.content>*:first-child{margin-top:0}.f-dropdown.content>*:last-child{margin-bottom:0}.f-dropdown.radius{border-radius:3px}.f-dropdown.tiny{max-width:200px}.f-dropdown.small{max-width:300px}.f-dropdown.medium{max-width:500px}.f-dropdown.large{max-width:800px}.f-dropdown.mega{width:100% !important;max-width:100% !important}.f-dropdown.mega.open{left:0 !important}.dropdown.button,button.dropdown{position:relative;padding-right:3.5625rem}.dropdown.button::after,button.dropdown::after{border-color:#fff transparent transparent transparent;border-style:solid;content:"";display:block;height:0;position:absolute;top:50%;width:0}.dropdown.button::after,button.dropdown::after{border-width:0.375rem;right:1.40625rem;margin-top:-0.15625rem}.dropdown.button::after,button.dropdown::after{border-color:#fff transparent transparent transparent}.dropdown.button.tiny,button.dropdown.tiny{padding-right:2.625rem}.dropdown.button.tiny:after,button.dropdown.tiny:after{border-width:0.375rem;right:1.125rem;margin-top:-0.125rem}.dropdown.button.tiny::after,button.dropdown.tiny::after{border-color:#fff transparent transparent transparent}.dropdown.button.small,button.dropdown.small{padding-right:3.0625rem}.dropdown.button.small::after,button.dropdown.small::after{border-width:0.4375rem;right:1.3125rem;margin-top:-0.15625rem}.dropdown.button.small::after,button.dropdown.small::after{border-color:#fff transparent transparent transparent}.dropdown.button.large,button.dropdown.large{padding-right:3.625rem}.dropdown.button.large::after,button.dropdown.large::after{border-width:0.3125rem;right:1.71875rem;margin-top:-0.15625rem}.dropdown.button.large::after,button.dropdown.large::after{border-color:#fff transparent transparent transparent}.dropdown.button.secondary:after,button.dropdown.secondary:after{border-color:#333 transparent transparent transparent}.flex-video{height:0;margin-bottom:1rem;overflow:hidden;padding-bottom:67.5%;padding-top:1.5625rem;position:relative}.flex-video.widescreen{padding-bottom:56.34%}.flex-video.vimeo{padding-top:0}.flex-video iframe,.flex-video object,.flex-video embed,.flex-video video{height:100%;position:absolute;top:0;width:100%;left:0}form{margin:0 0 1rem}form .row .row{margin:0 -0.5rem}form .row .row .column,form .row .row .columns{padding:0 0.5rem}form .row .row.collapse{margin:0}form .row .row.collapse .column,form .row .row.collapse .columns{padding:0}form .row .row.collapse input{-webkit-border-bottom-right-radius:0;-webkit-border-top-right-radius:0;border-bottom-right-radius:0;border-top-right-radius:0}form .row input.column,form .row input.columns,form .row textarea.column,form .row textarea.columns{padding-left:0.5rem}label{color:#4d4d4d;cursor:pointer;display:block;font-size:0.875rem;font-weight:normal;line-height:1.5;margin-bottom:0}label.right{float:none !important;text-align:right}label.inline{margin:0 0 1rem 0;padding:0.5625rem 0}label small{text-transform:capitalize;color:#676767}.prefix,.postfix{border-style:solid;border-width:1px;display:block;font-size:0.875rem;height:2.3125rem;line-height:2.3125rem;overflow:visible;padding-bottom:0;padding-top:0;position:relative;text-align:center;width:100%;z-index:2}.postfix.button{border:none;padding-left:0;padding-right:0;padding-bottom:0;padding-top:0;text-align:center}.prefix.button{border:none;padding-left:0;padding-right:0;padding-bottom:0;padding-top:0;text-align:center}.prefix.button.radius{border-radius:0;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.postfix.button.radius{border-radius:0;-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}.prefix.button.round{border-radius:0;-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.postfix.button.round{border-radius:0;-webkit-border-bottom-right-radius:1000px;-webkit-border-top-right-radius:1000px;border-bottom-right-radius:1000px;border-top-right-radius:1000px}span.prefix,label.prefix{background:#f2f2f2;border-right:none;color:#333;border-color:#ccc}span.postfix,label.postfix{background:#f2f2f2;border-left:none;color:#333;border-color:#ccc}input:not([type]),input[type="text"],input[type="password"],input[type="date"],input[type="datetime"],input[type="datetime-local"],input[type="month"],input[type="week"],input[type="email"],input[type="number"],input[type="search"],input[type="tel"],input[type="time"],input[type="url"],input[type="color"],textarea{-webkit-appearance:none;-moz-appearance:none;border-radius:0;background-color:#fff;border-style:solid;border-width:1px;border-color:#ccc;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);color:rgba(0,0,0,0.75);display:block;font-family:inherit;font-size:0.875rem;height:2.3125rem;margin:0 0 1rem 0;padding:0.5rem;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:border-color 0.15s linear,background 0.15s linear;-moz-transition:border-color 0.15s linear,background 0.15s linear;-ms-transition:border-color 0.15s linear,background 0.15s linear;-o-transition:border-color 0.15s linear,background 0.15s linear;transition:border-color 0.15s linear,background 0.15s linear}input:not([type]):focus,input[type="text"]:focus,input[type="password"]:focus,input[type="date"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="email"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="time"]:focus,input[type="url"]:focus,input[type="color"]:focus,textarea:focus{background:#fafafa;border-color:#999;outline:none}input:not([type]):disabled,input[type="text"]:disabled,input[type="password"]:disabled,input[type="date"]:disabled,input[type="datetime"]:disabled,input[type="datetime-local"]:disabled,input[type="month"]:disabled,input[type="week"]:disabled,input[type="email"]:disabled,input[type="number"]:disabled,input[type="search"]:disabled,input[type="tel"]:disabled,input[type="time"]:disabled,input[type="url"]:disabled,input[type="color"]:disabled,textarea:disabled{background-color:#ddd;cursor:default}input:not([type])[disabled],input:not([type])[readonly],fieldset[disabled] input:not([type]),input[type="text"][disabled],input[type="text"][readonly],fieldset[disabled] input[type="text"],input[type="password"][disabled],input[type="password"][readonly],fieldset[disabled] input[type="password"],input[type="date"][disabled],input[type="date"][readonly],fieldset[disabled] input[type="date"],input[type="datetime"][disabled],input[type="datetime"][readonly],fieldset[disabled] input[type="datetime"],input[type="datetime-local"][disabled],input[type="datetime-local"][readonly],fieldset[disabled] input[type="datetime-local"],input[type="month"][disabled],input[type="month"][readonly],fieldset[disabled] input[type="month"],input[type="week"][disabled],input[type="week"][readonly],fieldset[disabled] input[type="week"],input[type="email"][disabled],input[type="email"][readonly],fieldset[disabled] input[type="email"],input[type="number"][disabled],input[type="number"][readonly],fieldset[disabled] input[type="number"],input[type="search"][disabled],input[type="search"][readonly],fieldset[disabled] input[type="search"],input[type="tel"][disabled],input[type="tel"][readonly],fieldset[disabled] input[type="tel"],input[type="time"][disabled],input[type="time"][readonly],fieldset[disabled] input[type="time"],input[type="url"][disabled],input[type="url"][readonly],fieldset[disabled] input[type="url"],input[type="color"][disabled],input[type="color"][readonly],fieldset[disabled] input[type="color"],textarea[disabled],textarea[readonly],fieldset[disabled] textarea{background-color:#ddd;cursor:default}input:not([type]).radius,input[type="text"].radius,input[type="password"].radius,input[type="date"].radius,input[type="datetime"].radius,input[type="datetime-local"].radius,input[type="month"].radius,input[type="week"].radius,input[type="email"].radius,input[type="number"].radius,input[type="search"].radius,input[type="tel"].radius,input[type="time"].radius,input[type="url"].radius,input[type="color"].radius,textarea.radius{border-radius:3px}form .row .prefix-radius.row.collapse input,form .row .prefix-radius.row.collapse textarea,form .row .prefix-radius.row.collapse select,form .row .prefix-radius.row.collapse button{border-radius:0;-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}form .row .prefix-radius.row.collapse .prefix{border-radius:0;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}form .row .postfix-radius.row.collapse input,form .row .postfix-radius.row.collapse textarea,form .row .postfix-radius.row.collapse select,form .row .postfix-radius.row.collapse button{border-radius:0;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}form .row .postfix-radius.row.collapse .postfix{border-radius:0;-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}form .row .prefix-round.row.collapse input,form .row .prefix-round.row.collapse textarea,form .row .prefix-round.row.collapse select,form .row .prefix-round.row.collapse button{border-radius:0;-webkit-border-bottom-right-radius:1000px;-webkit-border-top-right-radius:1000px;border-bottom-right-radius:1000px;border-top-right-radius:1000px}form .row .prefix-round.row.collapse .prefix{border-radius:0;-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}form .row .postfix-round.row.collapse input,form .row .postfix-round.row.collapse textarea,form .row .postfix-round.row.collapse select,form .row .postfix-round.row.collapse button{border-radius:0;-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}form .row .postfix-round.row.collapse .postfix{border-radius:0;-webkit-border-bottom-right-radius:1000px;-webkit-border-top-right-radius:1000px;border-bottom-right-radius:1000px;border-top-right-radius:1000px}input[type="submit"]{-webkit-appearance:none;-moz-appearance:none;border-radius:0}textarea[rows]{height:auto}textarea{max-width:100%}::-webkit-input-placeholder{color:#aaa}:-moz-placeholder{color:#aaa}::-moz-placeholder{color:#aaa}:-ms-input-placeholder{color:#aaa}select{-webkit-appearance:none !important;-moz-appearance:none !important;background-color:#FAFAFA;border-radius:0;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMTJweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIzcHgiIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBvbHlnb24gcG9pbnRzPSI1Ljk5MiwwIDIuOTkyLDMgLTAuMDA4LDAgIi8+PC9zdmc+");background-position:100% center;background-repeat:no-repeat;border-style:solid;border-width:1px;border-color:#ccc;color:rgba(0,0,0,0.75);font-family:inherit;font-size:0.875rem;line-height:normal;padding:0.5rem;border-radius:0;height:2.3125rem}select::-ms-expand{display:none}select.radius{border-radius:3px}select:focus{background-color:#f3f3f3;border-color:#999}select:disabled{background-color:#ddd;cursor:default}select[multiple]{height:auto}input[type="file"],input[type="checkbox"],input[type="radio"],select{margin:0 0 1rem 0}input[type="checkbox"]+label,input[type="radio"]+label{display:inline-block;margin-left:0.5rem;margin-right:1rem;margin-bottom:0;vertical-align:baseline}input[type="file"]{width:100%}fieldset{border:1px solid #ddd;margin:1.125rem 0;padding:1.25rem}fieldset legend{font-weight:bold;margin:0;margin-left:-0.1875rem;padding:0 0.1875rem}[data-abide] .error small.error,[data-abide] .error span.error,[data-abide] span.error,[data-abide] small.error{display:block;font-size:0.75rem;font-style:italic;font-weight:normal;margin-bottom:1rem;margin-top:-1px;padding:0.375rem 0.5625rem 0.5625rem;background:#FF4136;color:#fff}[data-abide] span.error,[data-abide] small.error{display:none}span.error,small.error{display:block;font-size:0.75rem;font-style:italic;font-weight:normal;margin-bottom:1rem;margin-top:-1px;padding:0.375rem 0.5625rem 0.5625rem;background:#FF4136;color:#fff}.error input,.error textarea,.error select{margin-bottom:0}.error input[type="checkbox"],.error input[type="radio"]{margin-bottom:1rem}.error label,.error label.error{color:#FF4136}.error small.error{display:block;font-size:0.75rem;font-style:italic;font-weight:normal;margin-bottom:1rem;margin-top:-1px;padding:0.375rem 0.5625rem 0.5625rem;background:#FF4136;color:#fff}.error>label>small{background:transparent;color:#676767;display:inline;font-size:60%;font-style:normal;margin:0;padding:0;text-transform:capitalize}.error span.error-message{display:block}input.error,textarea.error,select.error{margin-bottom:0}label.error{color:#FF4136}.icon-bar{display:inline-block;font-size:0;width:100%;background:#333}.icon-bar>*{display:block;float:left;font-size:1rem;margin:0 auto;padding:1.25rem;text-align:center;width:25%}.icon-bar>* i,.icon-bar>* img{display:block;margin:0 auto}.icon-bar>* i+label,.icon-bar>* img+label{margin-top:.0625rem}.icon-bar>* i{font-size:1.875rem;vertical-align:middle}.icon-bar>* img{height:1.875rem;width:1.875rem}.icon-bar.label-right>* i,.icon-bar.label-right>* img{display:inline-block;margin:0 0.0625rem 0 0}.icon-bar.label-right>* i+label,.icon-bar.label-right>* img+label{margin-top:0}.icon-bar.label-right>* label{display:inline-block}.icon-bar.vertical.label-right>*{text-align:left}.icon-bar.vertical,.icon-bar.small-vertical{height:100%;width:auto}.icon-bar.vertical .item,.icon-bar.small-vertical .item{float:none;margin:auto;width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.medium-vertical{height:100%;width:auto}.icon-bar.medium-vertical .item{float:none;margin:auto;width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.large-vertical{height:100%;width:auto}.icon-bar.large-vertical .item{float:none;margin:auto;width:auto}}.icon-bar>*{font-size:1rem;padding:1.25rem}.icon-bar>* i+label,.icon-bar>* img+label{margin-top:.0625rem;font-size:1rem}.icon-bar>* i{font-size:1.875rem}.icon-bar>* img{height:1.875rem;width:1.875rem}.icon-bar>* label{color:#fff}.icon-bar>* i{color:#fff}.icon-bar>a:hover{background:#0074D9}.icon-bar>a:hover label{color:#fff}.icon-bar>a:hover i{color:#fff}.icon-bar>a.active{background:#0074D9}.icon-bar>a.active label{color:#fff}.icon-bar>a.active i{color:#fff}.icon-bar .item.disabled{cursor:not-allowed;opacity:0.7;pointer-events:none}.icon-bar .item.disabled>*{opacity:0.7;cursor:not-allowed}.icon-bar.two-up .item{width:50%}.icon-bar.two-up.vertical .item,.icon-bar.two-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.two-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.two-up.large-vertical .item{width:auto}}.icon-bar.three-up .item{width:33.3333%}.icon-bar.three-up.vertical .item,.icon-bar.three-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.three-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.three-up.large-vertical .item{width:auto}}.icon-bar.four-up .item{width:25%}.icon-bar.four-up.vertical .item,.icon-bar.four-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.four-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.four-up.large-vertical .item{width:auto}}.icon-bar.five-up .item{width:20%}.icon-bar.five-up.vertical .item,.icon-bar.five-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.five-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.five-up.large-vertical .item{width:auto}}.icon-bar.six-up .item{width:16.66667%}.icon-bar.six-up.vertical .item,.icon-bar.six-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.six-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.six-up.large-vertical .item{width:auto}}.icon-bar.seven-up .item{width:14.28571%}.icon-bar.seven-up.vertical .item,.icon-bar.seven-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.seven-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.seven-up.large-vertical .item{width:auto}}.icon-bar.eight-up .item{width:12.5%}.icon-bar.eight-up.vertical .item,.icon-bar.eight-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.eight-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.eight-up.large-vertical .item{width:auto}}.icon-bar.two-up .item{width:50%}.icon-bar.two-up.vertical .item,.icon-bar.two-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.two-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.two-up.large-vertical .item{width:auto}}.icon-bar.three-up .item{width:33.3333%}.icon-bar.three-up.vertical .item,.icon-bar.three-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.three-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.three-up.large-vertical .item{width:auto}}.icon-bar.four-up .item{width:25%}.icon-bar.four-up.vertical .item,.icon-bar.four-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.four-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.four-up.large-vertical .item{width:auto}}.icon-bar.five-up .item{width:20%}.icon-bar.five-up.vertical .item,.icon-bar.five-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.five-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.five-up.large-vertical .item{width:auto}}.icon-bar.six-up .item{width:16.66667%}.icon-bar.six-up.vertical .item,.icon-bar.six-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.six-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.six-up.large-vertical .item{width:auto}}.icon-bar.seven-up .item{width:14.28571%}.icon-bar.seven-up.vertical .item,.icon-bar.seven-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.seven-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.seven-up.large-vertical .item{width:auto}}.icon-bar.eight-up .item{width:12.5%}.icon-bar.eight-up.vertical .item,.icon-bar.eight-up.small-vertical .item{width:auto}@media only screen and (min-width: 40.0625em){.icon-bar.eight-up.medium-vertical .item{width:auto}}@media only screen and (min-width: 64.0625em){.icon-bar.eight-up.large-vertical .item{width:auto}}.inline-list{list-style:none;margin-top:0;margin-bottom:1.0625rem;margin-left:-1.375rem;margin-right:0;overflow:hidden;padding:0}.inline-list>li{display:block;float:left;list-style:none;margin-left:1.375rem}.inline-list>li>*{display:block}.joyride-list{display:none}.joyride-tip-guide{background:#333;color:#fff;display:none;font-family:inherit;font-weight:normal;position:absolute;top:0;width:95%;z-index:103;left:2.5%}.lt-ie9 .joyride-tip-guide{margin-left:-400px;max-width:800px;left:50%}.joyride-content-wrapper{padding:1.125rem 1.25rem 1.5rem;width:100%}.joyride-content-wrapper .button{margin-bottom:0 !important}.joyride-content-wrapper .joyride-prev-tip{margin-right:10px}.joyride-tip-guide .joyride-nub{border:10px solid #333;display:block;height:0;position:absolute;width:0;left:22px}.joyride-tip-guide .joyride-nub.top{border-color:#333;border-top-color:transparent !important;border-top-style:solid;border-left-color:transparent !important;border-right-color:transparent !important;top:-20px}.joyride-tip-guide .joyride-nub.bottom{border-color:#333 !important;border-bottom-color:transparent !important;border-bottom-style:solid;border-left-color:transparent !important;border-right-color:transparent !important;bottom:-20px}.joyride-tip-guide .joyride-nub.right{right:-20px}.joyride-tip-guide .joyride-nub.left{left:-20px}.joyride-tip-guide h1,.joyride-tip-guide h2,.joyride-tip-guide h3,.joyride-tip-guide h4,.joyride-tip-guide h5,.joyride-tip-guide h6{color:#fff;font-weight:bold;line-height:1.25;margin:0}.joyride-tip-guide p{font-size:0.875rem;line-height:1.3;margin:0 0 1.125rem 0}.joyride-timer-indicator-wrap{border:solid 1px #555;bottom:1rem;height:3px;position:absolute;width:50px;right:1.0625rem}.joyride-timer-indicator{background:#666;display:block;height:inherit;width:0}.joyride-close-tip{color:#777 !important;font-size:24px;font-weight:normal;line-height:.5 !important;position:absolute;text-decoration:none;top:10px;right:12px}.joyride-close-tip:hover,.joyride-close-tip:focus{color:#eee !important}.joyride-modal-bg{background:rgba(0,0,0,0.5);cursor:pointer;display:none;height:100%;position:fixed;top:0;width:100%;z-index:100;left:0}.joyride-expose-wrapper{background-color:#fff;border-radius:3px;box-shadow:0 0 15px #fff;position:absolute;z-index:102}.joyride-expose-cover{background:transparent;border-radius:3px;left:0;position:absolute;top:0;z-index:9999}@media only screen{.joyride-tip-guide{width:300px;left:inherit}.joyride-tip-guide .joyride-nub.bottom{border-color:#333 !important;border-bottom-color:transparent !important;border-left-color:transparent !important;border-right-color:transparent !important;bottom:-20px}.joyride-tip-guide .joyride-nub.right{border-color:#333 !important;border-right-color:transparent !important;border-bottom-color:transparent !important;border-top-color:transparent !important;left:auto;right:-20px;top:22px}.joyride-tip-guide .joyride-nub.left{border-color:#333 !important;border-bottom-color:transparent !important;border-left-color:transparent !important;border-top-color:transparent !important;left:-20px;right:auto;top:22px}}.keystroke,kbd{background-color:#ededed;border-color:#ddd;color:#222;border-style:solid;border-width:1px;font-family:"Consolas","Menlo","Courier",monospace;font-size:inherit;margin:0;padding:0.125rem 0.25rem 0;border-radius:3px}.label{display:inline-block;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-weight:normal;line-height:1;margin-bottom:auto;position:relative;text-align:center;text-decoration:none;white-space:nowrap;padding:0.25rem 0.5rem 0.25rem;font-size:0.6875rem;background-color:#0074D9;color:#fff}.label.radius{border-radius:3px}.label.round{border-radius:1000px}.label.alert{background-color:#FF4136;color:#fff}.label.warning{background-color:#FF851B;color:#fff}.label.success{background-color:#2ECC40;color:#fff}.label.secondary{background-color:#ddd;color:#333}.label.info{background-color:#7FDBFF;color:#333}[data-magellan-expedition],[data-magellan-expedition-clone]{background:#fff;min-width:100%;padding:10px;z-index:50}[data-magellan-expedition] .sub-nav,[data-magellan-expedition-clone] .sub-nav{margin-bottom:0}[data-magellan-expedition] .sub-nav dd,[data-magellan-expedition-clone] .sub-nav dd{margin-bottom:0}[data-magellan-expedition] .sub-nav a,[data-magellan-expedition-clone] .sub-nav a{line-height:1.8em}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{from{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg)}}.slideshow-wrapper{position:relative}.slideshow-wrapper ul{list-style-type:none;margin:0}.slideshow-wrapper ul li,.slideshow-wrapper ul li .orbit-caption{display:none}.slideshow-wrapper ul li:first-child{display:block}.slideshow-wrapper .orbit-container{background-color:transparent}.slideshow-wrapper .orbit-container li{display:block}.slideshow-wrapper .orbit-container li .orbit-caption{display:block}.slideshow-wrapper .orbit-container .orbit-bullets li{display:inline-block}.slideshow-wrapper .preloader{border-radius:1000px;animation-duration:1.5s;animation-iteration-count:infinite;animation-name:rotate;animation-timing-function:linear;border-color:#555 #fff;border:solid 3px;display:block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px}.orbit-container{background:none;overflow:hidden;position:relative;width:100%}.orbit-container .orbit-slides-container{list-style:none;margin:0;padding:0;position:relative;-webkit-transform:translateZ(0);-moz-transform:translateZ(0);-ms-transform:translateZ(0);-o-transform:translateZ(0);transform:translateZ(0)}.orbit-container .orbit-slides-container img{display:block;max-width:100%}.orbit-container .orbit-slides-container>*{position:absolute;top:0;width:100%;margin-left:100%}.orbit-container .orbit-slides-container>*:first-child{margin-left:0}.orbit-container .orbit-slides-container>* .orbit-caption{bottom:0;position:absolute;background-color:rgba(51,51,51,0.8);color:#fff;font-size:0.875rem;padding:0.625rem 0.875rem;width:100%}.orbit-container .orbit-slide-number{left:10px;background:transparent;color:#fff;font-size:12px;position:absolute;top:10px;z-index:10}.orbit-container .orbit-slide-number span{font-weight:700;padding:0.3125rem}.orbit-container .orbit-timer{position:absolute;top:12px;right:10px;height:6px;width:100px;z-index:10}.orbit-container .orbit-timer .orbit-progress{height:3px;background-color:rgba(255,255,255,0.3);display:block;width:0;position:relative;right:20px;top:5px}.orbit-container .orbit-timer>span{border:solid 4px #fff;border-bottom:none;border-top:none;display:none;height:14px;position:absolute;top:0;width:11px;right:0}.orbit-container .orbit-timer.paused>span{top:0;width:11px;height:14px;border:inset 8px;border-left-style:solid;border-color:transparent;border-left-color:#fff;right:-4px}.orbit-container .orbit-timer.paused>span.dark{border-left-color:#333}.orbit-container:hover .orbit-timer>span{display:block}.orbit-container .orbit-prev,.orbit-container .orbit-next{background-color:transparent;color:white;height:60px;line-height:50px;margin-top:-25px;position:absolute;text-indent:-9999px !important;top:45%;width:36px;z-index:10}.orbit-container .orbit-prev:hover,.orbit-container .orbit-next:hover{background-color:rgba(0,0,0,0.3)}.orbit-container .orbit-prev>span,.orbit-container .orbit-next>span{border:inset 10px;display:block;height:0;margin-top:-10px;position:absolute;top:50%;width:0}.orbit-container .orbit-prev{left:0}.orbit-container .orbit-prev>span{border-right-style:solid;border-color:transparent;border-right-color:#fff}.orbit-container .orbit-prev:hover>span{border-right-color:#fff}.orbit-container .orbit-next{right:0}.orbit-container .orbit-next>span{border-color:transparent;border-left-style:solid;border-left-color:#fff;left:50%;margin-left:-4px}.orbit-container .orbit-next:hover>span{border-left-color:#fff}.orbit-bullets-container{text-align:center}.orbit-bullets{display:block;float:none;margin:0 auto 30px auto;overflow:hidden;position:relative;text-align:center;top:10px}.orbit-bullets li{background:#ccc;cursor:pointer;display:inline-block;float:none;height:0.5625rem;margin-right:6px;width:0.5625rem;border-radius:1000px}.orbit-bullets li.active{background:#999}.orbit-bullets li:last-child{margin-right:0}.touch .orbit-container .orbit-prev,.touch .orbit-container .orbit-next{display:none}.touch .orbit-bullets{display:none}@media only screen and (min-width: 40.0625em){.touch .orbit-container .orbit-prev,.touch .orbit-container .orbit-next{display:inherit}.touch .orbit-bullets{display:block}}@media only screen and (max-width: 40em){.orbit-stack-on-small .orbit-slides-container{height:auto !important}.orbit-stack-on-small .orbit-slides-container>*{margin:0 !important;opacity:1 !important;position:relative}.orbit-stack-on-small .orbit-slide-number{display:none}.orbit-timer{display:none}.orbit-next,.orbit-prev{display:none}.orbit-bullets{display:none}}ul.pagination{display:block;margin-left:-0.3125rem;min-height:1.5rem}ul.pagination li{color:#222;font-size:0.875rem;height:1.5rem;margin-left:0.3125rem}ul.pagination li a,ul.pagination li button{border-radius:3px;transition:background-color 300ms ease-out;background:none;color:#999;display:block;font-size:1em;font-weight:normal;line-height:inherit;padding:0.0625rem 0.625rem 0.0625rem}ul.pagination li:hover a,ul.pagination li a:focus,ul.pagination li:hover button,ul.pagination li button:focus{background:#e6e6e6}ul.pagination li.unavailable a,ul.pagination li.unavailable button{cursor:default;color:#999;pointer-events:none}ul.pagination li.unavailable:hover a,ul.pagination li.unavailable a:focus,ul.pagination li.unavailable:hover button,ul.pagination li.unavailable button:focus{background:transparent}ul.pagination li.current a,ul.pagination li.current button{background:#0074D9;color:#fff;cursor:default;font-weight:bold}ul.pagination li.current a:hover,ul.pagination li.current a:focus,ul.pagination li.current button:hover,ul.pagination li.current button:focus{background:#0074D9}ul.pagination li{display:block;float:left}.pagination-centered{text-align:center}.pagination-centered ul.pagination li{display:inline-block;float:none}.panel{border-style:solid;border-width:1px;border-color:#d8d8d8;margin-bottom:1.25rem;padding:1.25rem;background:#f2f2f2;color:#333}.panel>:first-child{margin-top:0}.panel>:last-child{margin-bottom:0}.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6,.panel p,.panel li,.panel dl{color:#333}.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6{line-height:1;margin-bottom:0.625rem}.panel h1.subheader,.panel h2.subheader,.panel h3.subheader,.panel h4.subheader,.panel h5.subheader,.panel h6.subheader{line-height:1.4}.panel.callout{border-style:solid;border-width:1px;border-color:#d8d8d8;margin-bottom:1.25rem;padding:1.25rem;background:#edf7ff;color:#333}.panel.callout>:first-child{margin-top:0}.panel.callout>:last-child{margin-bottom:0}.panel.callout h1,.panel.callout h2,.panel.callout h3,.panel.callout h4,.panel.callout h5,.panel.callout h6,.panel.callout p,.panel.callout li,.panel.callout dl{color:#333}.panel.callout h1,.panel.callout h2,.panel.callout h3,.panel.callout h4,.panel.callout h5,.panel.callout h6{line-height:1;margin-bottom:0.625rem}.panel.callout h1.subheader,.panel.callout h2.subheader,.panel.callout h3.subheader,.panel.callout h4.subheader,.panel.callout h5.subheader,.panel.callout h6.subheader{line-height:1.4}.panel.callout a:not(.button){color:#0074D9}.panel.callout a:not(.button):hover,.panel.callout a:not(.button):focus{color:#0064bb}.panel.radius{border-radius:3px}.pricing-table{border:solid 1px #ddd;margin-left:0;margin-bottom:1.25rem}.pricing-table *{list-style:none;line-height:1}.pricing-table .title{background-color:#333;color:#eee;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-size:1rem;font-weight:normal;padding:0.9375rem 1.25rem;text-align:center}.pricing-table .price{background-color:#F6F6F6;color:#333;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-size:2rem;font-weight:normal;padding:0.9375rem 1.25rem;text-align:center}.pricing-table .description{background-color:#fff;border-bottom:dotted 1px #ddd;color:#777;font-size:0.75rem;font-weight:normal;line-height:1.4;padding:0.9375rem;text-align:center}.pricing-table .bullet-item{background-color:#fff;border-bottom:dotted 1px #ddd;color:#333;font-size:0.875rem;font-weight:normal;padding:0.9375rem;text-align:center}.pricing-table .cta-button{background-color:#fff;padding:1.25rem 1.25rem 0;text-align:center}.progress{background-color:#F6F6F6;border:1px solid #fff;height:1.5625rem;margin-bottom:0.625rem;padding:0.125rem}.progress .meter{background:#0074D9;display:block;height:100%;float:left;width:0%}.progress .meter.secondary{background:#ddd;display:block;height:100%;float:left;width:0%}.progress .meter.success{background:#2ECC40;display:block;height:100%;float:left;width:0%}.progress .meter.alert{background:#FF4136;display:block;height:100%;float:left;width:0%}.progress.secondary .meter{background:#ddd;display:block;height:100%;float:left;width:0%}.progress.success .meter{background:#2ECC40;display:block;height:100%;float:left;width:0%}.progress.alert .meter{background:#FF4136;display:block;height:100%;float:left;width:0%}.progress.radius{border-radius:3px}.progress.radius .meter{border-radius:2px}.progress.round{border-radius:1000px}.progress.round .meter{border-radius:999px}.range-slider{border:1px solid #ddd;margin:1.25rem 0;position:relative;-ms-touch-action:none;touch-action:none;display:block;height:1rem;width:100%;background:#FAFAFA}.range-slider.vertical-range{border:1px solid #ddd;margin:1.25rem 0;position:relative;-ms-touch-action:none;touch-action:none;display:inline-block;height:12.5rem;width:1rem}.range-slider.vertical-range .range-slider-handle{bottom:-10.5rem;margin-left:-0.5rem;margin-top:0;position:absolute}.range-slider.vertical-range .range-slider-active-segment{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-top-left-radius:initial;bottom:0;height:auto;width:0.875rem}.range-slider.radius{background:#FAFAFA;border-radius:3px}.range-slider.radius .range-slider-handle{background:#0074D9;border-radius:3px}.range-slider.radius .range-slider-handle:hover{background:#0066bf}.range-slider.round{background:#FAFAFA;border-radius:1000px}.range-slider.round .range-slider-handle{background:#0074D9;border-radius:1000px}.range-slider.round .range-slider-handle:hover{background:#0066bf}.range-slider.disabled,.range-slider[disabled]{background:#FAFAFA;cursor:not-allowed;opacity:0.7}.range-slider.disabled .range-slider-handle,.range-slider[disabled] .range-slider-handle{background:#0074D9;cursor:default;opacity:0.7}.range-slider.disabled .range-slider-handle:hover,.range-slider[disabled] .range-slider-handle:hover{background:#0066bf}.range-slider-active-segment{background:#dbdbdb;border-bottom-left-radius:inherit;border-top-left-radius:inherit;display:inline-block;height:0.875rem;position:absolute}.range-slider-handle{border:1px solid none;cursor:pointer;display:inline-block;height:1.375rem;position:absolute;top:-0.3125rem;width:2rem;z-index:1;-ms-touch-action:manipulation;touch-action:manipulation;background:#0074D9}.range-slider-handle:hover{background:#0066bf}.reveal-modal-bg{background:#000;background:rgba(0,0,0,0.45);bottom:0;display:none;left:0;position:fixed;right:0;top:0;z-index:1004;left:0}.reveal-modal{border-radius:3px;display:none;position:absolute;top:0;visibility:hidden;width:100%;z-index:1005;left:0;background-color:#fff;padding:1.875rem;border:solid 1px #666;box-shadow:0 0 10px rgba(0,0,0,0.4)}@media only screen and (max-width: 40em){.reveal-modal{min-height:100vh}}.reveal-modal .column,.reveal-modal .columns{min-width:0}.reveal-modal>:first-child{margin-top:0}.reveal-modal>:last-child{margin-bottom:0}@media only screen and (min-width: 40.0625em){.reveal-modal{left:0;margin:0 auto;max-width:62.5rem;right:0;width:80%}}@media only screen and (min-width: 40.0625em){.reveal-modal{top:6.25rem}}.reveal-modal.radius{box-shadow:none;border-radius:3px}.reveal-modal.round{box-shadow:none;border-radius:1000px}.reveal-modal.collapse{padding:0;box-shadow:none}@media only screen and (min-width: 40.0625em){.reveal-modal.tiny{left:0;margin:0 auto;max-width:62.5rem;right:0;width:30%}}@media only screen and (min-width: 40.0625em){.reveal-modal.small{left:0;margin:0 auto;max-width:62.5rem;right:0;width:40%}}@media only screen and (min-width: 40.0625em){.reveal-modal.medium{left:0;margin:0 auto;max-width:62.5rem;right:0;width:60%}}@media only screen and (min-width: 40.0625em){.reveal-modal.large{left:0;margin:0 auto;max-width:62.5rem;right:0;width:70%}}@media only screen and (min-width: 40.0625em){.reveal-modal.xlarge{left:0;margin:0 auto;max-width:62.5rem;right:0;width:95%}}.reveal-modal.full{height:100vh;height:100%;left:0;margin-left:0 !important;max-width:none !important;min-height:100vh;top:0}@media only screen and (min-width: 40.0625em){.reveal-modal.full{left:0;margin:0 auto;max-width:62.5rem;right:0;width:100%}}.reveal-modal.toback{z-index:1003}.reveal-modal .close-reveal-modal{color:#aaa;cursor:pointer;font-size:2.5rem;font-weight:bold;line-height:1;position:absolute;top:0.625rem;right:1.375rem}.side-nav{display:block;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;list-style-position:outside;list-style-type:none;margin:0;padding:0.875rem 0}.side-nav li{font-size:0.875rem;font-weight:normal;margin:0 0 0.4375rem 0}.side-nav li a:not(.button){color:#0074D9;display:block;margin:0;padding:0.4375rem 0.875rem}.side-nav li a:not(.button):hover,.side-nav li a:not(.button):focus{background:rgba(0,0,0,0.025);color:#32a0ff}.side-nav li a:not(.button):active{color:#32a0ff}.side-nav li.active>a:first-child:not(.button){color:#32a0ff;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-weight:normal}.side-nav li.divider{border-top:1px solid;height:0;list-style:none;padding:0;border-top-color:#e6e6e6}.side-nav li.heading{color:#0074D9;font-size:0.875rem;font-weight:bold;text-transform:uppercase}.split.button{position:relative;padding-right:5.0625rem}.split.button span{display:block;height:100%;position:absolute;right:0;top:0;border-left:solid 1px}.split.button span:after{position:absolute;content:"";width:0;height:0;display:block;border-style:inset;top:50%;left:50%}.split.button span:active{background-color:rgba(0,0,0,0.1)}.split.button span{border-left-color:rgba(255,255,255,0.5)}.split.button span{width:3.09375rem}.split.button span:after{border-top-style:solid;border-width:0.375rem;margin-left:-0.375rem;top:48%}.split.button span:after{border-color:#fff transparent transparent transparent}.split.button.secondary span{border-left-color:rgba(255,255,255,0.5)}.split.button.secondary span:after{border-color:#fff transparent transparent transparent}.split.button.alert span{border-left-color:rgba(255,255,255,0.5)}.split.button.success span{border-left-color:rgba(255,255,255,0.5)}.split.button.tiny{padding-right:3.75rem}.split.button.tiny span{width:2.25rem}.split.button.tiny span:after{border-top-style:solid;border-width:0.375rem;margin-left:-0.375rem;top:48%}.split.button.small{padding-right:4.375rem}.split.button.small span{width:2.625rem}.split.button.small span:after{border-top-style:solid;border-width:0.4375rem;margin-left:-0.375rem;top:48%}.split.button.large{padding-right:5.5rem}.split.button.large span{width:3.4375rem}.split.button.large span:after{border-top-style:solid;border-width:0.3125rem;margin-left:-0.375rem;top:48%}.split.button.expand{padding-left:2rem}.split.button.secondary span:after{border-color:#333 transparent transparent transparent}.split.button.radius span{-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}.split.button.round span{-webkit-border-bottom-right-radius:1000px;-webkit-border-top-right-radius:1000px;border-bottom-right-radius:1000px;border-top-right-radius:1000px}.split.button.no-pip span:before{border-style:none}.split.button.no-pip span:after{border-style:none}.split.button.no-pip span>i{display:block;left:50%;margin-left:-0.28889em;margin-top:-0.48889em;position:absolute;top:50%}.sub-nav{display:block;margin:-0.25rem 0 1.125rem;overflow:hidden;padding-top:0.25rem;width:auto}.sub-nav dt{text-transform:uppercase}.sub-nav dt,.sub-nav dd,.sub-nav li{color:#999;float:left;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-size:0.875rem;font-weight:normal;margin-left:1rem;margin-bottom:0}.sub-nav dt a,.sub-nav dd a,.sub-nav li a{color:#999;padding:0.1875rem 1rem;text-decoration:none}.sub-nav dt a:hover,.sub-nav dd a:hover,.sub-nav li a:hover{color:#737373}.sub-nav dt.active a,.sub-nav dd.active a,.sub-nav li.active a{border-radius:3px;background:#0074D9;color:#fff;cursor:default;font-weight:normal;padding:0.1875rem 1rem}.sub-nav dt.active a:hover,.sub-nav dd.active a:hover,.sub-nav li.active a:hover{background:#0064bb}.switch{border:none;margin-bottom:1.5rem;outline:0;padding:0;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.switch label{background:#ddd;color:transparent;cursor:pointer;display:block;margin-bottom:1rem;position:relative;text-indent:100%;width:4rem;height:2rem;transition:left 0.15s ease-out}.switch input{left:10px;opacity:0;padding:0;position:absolute;top:9px}.switch input+label{margin-left:0;margin-right:0}.switch label:after{background:#fff;content:"";display:block;height:1.5rem;left:.25rem;position:absolute;top:.25rem;width:1.5rem;-webkit-transition:left 0.15s ease-out;-moz-transition:left 0.15s ease-out;-o-transition:translate3d(0, 0, 0);transition:left 0.15s ease-out;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.switch input:checked+label{background:#0074D9}.switch input:checked+label:after{left:2.25rem}.switch label{height:2rem;width:4rem}.switch label:after{height:1.5rem;width:1.5rem}.switch input:checked+label:after{left:2.25rem}.switch label{color:transparent;background:#ddd}.switch label:after{background:#fff}.switch input:checked+label{background:#0074D9}.switch.large label{height:2.5rem;width:5rem}.switch.large label:after{height:2rem;width:2rem}.switch.large input:checked+label:after{left:2.75rem}.switch.small label{height:1.75rem;width:3.5rem}.switch.small label:after{height:1.25rem;width:1.25rem}.switch.small input:checked+label:after{left:2rem}.switch.tiny label{height:1.5rem;width:3rem}.switch.tiny label:after{height:1rem;width:1rem}.switch.tiny input:checked+label:after{left:1.75rem}.switch.radius label{border-radius:4px}.switch.radius label:after{border-radius:3px}.switch.round{border-radius:1000px}.switch.round label{border-radius:2rem}.switch.round label:after{border-radius:2rem}table{background:#fff;border:solid 1px #ddd;margin-bottom:1.25rem;table-layout:auto}table caption{background:transparent;color:#222;font-size:1rem;font-weight:bold}table thead{background:#f5f5f5}table thead tr th,table thead tr td{color:#222;font-size:0.875rem;font-weight:bold;padding:0.5rem 0.625rem 0.625rem}table tfoot{background:#f5f5f5}table tfoot tr th,table tfoot tr td{color:#222;font-size:0.875rem;font-weight:bold;padding:0.5rem 0.625rem 0.625rem}table tr th,table tr td{color:#222;font-size:0.875rem;padding:0.5625rem 0.625rem;text-align:left}table tr.even,table tr.alt,table tr:nth-of-type(even){background:#F9F9F9}table thead tr th,table tfoot tr th,table tfoot tr td,table tbody tr th,table tbody tr td,table tr td{display:table-cell;line-height:1.125rem}.tabs{margin-bottom:0 !important;margin-left:0}.tabs:before,.tabs:after{content:" ";display:table}.tabs:after{clear:both}.tabs dd,.tabs .tab-title{float:left;list-style:none;margin-bottom:0 !important;position:relative}.tabs dd>a,.tabs .tab-title>a{display:block;background-color:#EFEFEF;color:#222;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-size:1rem;padding:1rem 2rem}.tabs dd>a:hover,.tabs .tab-title>a:hover{background-color:#e1e1e1}.tabs dd.active>a,.tabs .tab-title.active>a{background-color:#fff;color:#222}.tabs.radius dd:first-child a,.tabs.radius .tab:first-child a{-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.tabs.radius dd:last-child a,.tabs.radius .tab:last-child a{-webkit-border-bottom-right-radius:3px;-webkit-border-top-right-radius:3px;border-bottom-right-radius:3px;border-top-right-radius:3px}.tabs.vertical dd,.tabs.vertical .tab-title{position:inherit;float:none;display:block;top:auto}.tabs-content{margin-bottom:1.5rem;width:100%}.tabs-content:before,.tabs-content:after{content:" ";display:table}.tabs-content:after{clear:both}.tabs-content>.content{display:none;float:left;padding:0.9375rem 0;width:100%}.tabs-content>.content.active{display:block;float:none}.tabs-content>.content.contained{padding:0.9375rem}.tabs-content.vertical{display:block}.tabs-content.vertical>.content{padding:0 0.9375rem}@media only screen and (min-width: 40.0625em){.tabs.vertical{float:left;margin:0;margin-bottom:1.25rem !important;max-width:20%;width:20%}.tabs-content.vertical{float:left;margin-left:-1px;max-width:80%;padding-left:1rem;width:80%}}.no-js .tabs-content>.content{display:block;float:none}.th{border:solid 4px #fff;box-shadow:0 0 0 1px rgba(0,0,0,0.2);display:inline-block;line-height:0;max-width:100%;transition:all 200ms ease-out}.th:hover,.th:focus{box-shadow:0 0 6px 1px rgba(0,116,217,0.5)}.th.radius{border-radius:3px}.has-tip{border-bottom:dotted 1px #ccc;color:#333;cursor:help;font-weight:bold}.has-tip:hover,.has-tip:focus{border-bottom:dotted 1px #003462;color:#0074D9}.has-tip.tip-left,.has-tip.tip-right{float:none !important}.tooltip{background:#333;color:#fff;display:none;font-size:0.875rem;font-weight:normal;line-height:1.3;max-width:300px;padding:0.75rem;position:absolute;width:100%;z-index:1006;left:50%}.tooltip>.nub{border:solid 5px;border-color:transparent transparent #333 transparent;display:block;height:0;pointer-events:none;position:absolute;top:-10px;width:0;left:5px}.tooltip>.nub.rtl{left:auto;right:5px}.tooltip.radius{border-radius:3px}.tooltip.round{border-radius:1000px}.tooltip.round>.nub{left:2rem}.tooltip.opened{border-bottom:dotted 1px #003462 !important;color:#0074D9 !important}.tap-to-close{color:#777;display:block;font-size:0.625rem;font-weight:normal}@media only screen{.tooltip>.nub{border-color:transparent transparent #333 transparent;top:-10px}.tooltip.tip-top>.nub{border-color:#333 transparent transparent transparent;bottom:-10px;top:auto}.tooltip.tip-left,.tooltip.tip-right{float:none !important}.tooltip.tip-left>.nub{border-color:transparent transparent transparent #333;left:auto;margin-top:-5px;right:-10px;top:50%}.tooltip.tip-right>.nub{border-color:transparent #333 transparent transparent;left:-10px;margin-top:-5px;right:auto;top:50%}}meta.foundation-mq-topbar{font-family:"/only screen and (min-width:40.0625em)/";width:40.0625em}.contain-to-grid{width:100%;background:#333}.contain-to-grid .top-bar{margin-bottom:0}.fixed{position:fixed;top:0;width:100%;z-index:99;left:0}.fixed.expanded:not(.top-bar){height:auto;max-height:100%;overflow-y:auto;width:100%}.fixed.expanded:not(.top-bar) .title-area{position:fixed;width:100%;z-index:99}.fixed.expanded:not(.top-bar) .top-bar-section{margin-top:2.8125rem;z-index:98}.top-bar{background:#333;height:2.8125rem;line-height:2.8125rem;margin-bottom:0;overflow:hidden;position:relative}.top-bar ul{list-style:none;margin-bottom:0}.top-bar .row{max-width:none}.top-bar form,.top-bar input,.top-bar select{margin-bottom:0}.top-bar input,.top-bar select{font-size:0.75rem;height:1.75rem;padding-bottom:.35rem;padding-top:.35rem}.top-bar .button,.top-bar button{font-size:0.75rem;margin-bottom:0;padding-bottom:0.4125rem;padding-top:0.4125rem}@media only screen and (max-width: 40em){.top-bar .button,.top-bar button{position:relative;top:-1px}}.top-bar .title-area{margin:0;position:relative}.top-bar .name{font-size:16px;height:2.8125rem;margin:0}.top-bar .name h1,.top-bar .name h2,.top-bar .name h3,.top-bar .name h4,.top-bar .name p,.top-bar .name span{font-size:1.0625rem;line-height:2.8125rem;margin:0}.top-bar .name h1 a,.top-bar .name h2 a,.top-bar .name h3 a,.top-bar .name h4 a,.top-bar .name p a,.top-bar .name span a{color:#fff;display:block;font-weight:normal;padding:0 0.9375rem;width:75%}.top-bar .toggle-topbar{position:absolute;right:0;top:0}.top-bar .toggle-topbar a{color:#fff;display:block;font-size:0.8125rem;font-weight:bold;height:2.8125rem;line-height:2.8125rem;padding:0 0.9375rem;position:relative;text-transform:uppercase}.top-bar .toggle-topbar.menu-icon{margin-top:-16px;top:50%}.top-bar .toggle-topbar.menu-icon a{color:#fff;height:34px;line-height:33px;padding:0 2.5rem 0 0.9375rem;position:relative}.top-bar .toggle-topbar.menu-icon a span::after{content:"";display:block;height:0;position:absolute;margin-top:-8px;top:50%;right:0.9375rem;box-shadow:0 0 0 1px #fff,0 7px 0 1px #fff,0 14px 0 1px #fff;width:16px}.top-bar .toggle-topbar.menu-icon a span:hover:after{box-shadow:0 0 0 1px "",0 7px 0 1px "",0 14px 0 1px ""}.top-bar.expanded{background:transparent;height:auto}.top-bar.expanded .title-area{background:#333}.top-bar.expanded .toggle-topbar a{color:#888}.top-bar.expanded .toggle-topbar a span::after{box-shadow:0 0 0 1px #888,0 7px 0 1px #888,0 14px 0 1px #888}@media screen and (-webkit-min-device-pixel-ratio: 0){.top-bar.expanded .top-bar-section .has-dropdown.moved>.dropdown,.top-bar.expanded .top-bar-section .dropdown{clip:initial}.top-bar.expanded .top-bar-section .has-dropdown:not(.moved)>ul{padding:0}}.top-bar-section{left:0;position:relative;width:auto;transition:left 300ms ease-out}.top-bar-section ul{display:block;font-size:16px;height:auto;margin:0;padding:0;width:100%}.top-bar-section .divider,.top-bar-section [role="separator"]{border-top:solid 1px #1a1a1a;clear:both;height:1px;width:100%}.top-bar-section ul li{background:#333}.top-bar-section ul li>a{color:#fff;display:block;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-size:0.8125rem;font-weight:normal;padding-left:0.9375rem;padding:12px 0 12px 0.9375rem;text-transform:none;width:100%}.top-bar-section ul li>a.button{font-size:0.8125rem;padding-left:0.9375rem;padding-right:0.9375rem;background-color:#0074D9;border-color:#005dae;color:#fff}.top-bar-section ul li>a.button:hover,.top-bar-section ul li>a.button:focus{background-color:#005dae}.top-bar-section ul li>a.button:hover,.top-bar-section ul li>a.button:focus{color:#fff}.top-bar-section ul li>a.button.secondary{background-color:#ddd;border-color:#b1b1b1;color:#333}.top-bar-section ul li>a.button.secondary:hover,.top-bar-section ul li>a.button.secondary:focus{background-color:#b1b1b1}.top-bar-section ul li>a.button.secondary:hover,.top-bar-section ul li>a.button.secondary:focus{color:#fff}.top-bar-section ul li>a.button.success{background-color:#2ECC40;border-color:#25a333;color:#fff}.top-bar-section ul li>a.button.success:hover,.top-bar-section ul li>a.button.success:focus{background-color:#25a333}.top-bar-section ul li>a.button.success:hover,.top-bar-section ul li>a.button.success:focus{color:#fff}.top-bar-section ul li>a.button.alert{background-color:#FF4136;border-color:#f70e00;color:#fff}.top-bar-section ul li>a.button.alert:hover,.top-bar-section ul li>a.button.alert:focus{background-color:#f70e00}.top-bar-section ul li>a.button.alert:hover,.top-bar-section ul li>a.button.alert:focus{color:#fff}.top-bar-section ul li>a.button.warning{background-color:#FF851B;border-color:#e26900;color:#fff}.top-bar-section ul li>a.button.warning:hover,.top-bar-section ul li>a.button.warning:focus{background-color:#e26900}.top-bar-section ul li>a.button.warning:hover,.top-bar-section ul li>a.button.warning:focus{color:#fff}.top-bar-section ul li>a.button.info{background-color:#7FDBFF;border-color:#33c6ff;color:#333}.top-bar-section ul li>a.button.info:hover,.top-bar-section ul li>a.button.info:focus{background-color:#33c6ff}.top-bar-section ul li>a.button.info:hover,.top-bar-section ul li>a.button.info:focus{color:#fff}.top-bar-section ul li>button{font-size:0.8125rem;padding-left:0.9375rem;padding-right:0.9375rem;background-color:#0074D9;border-color:#005dae;color:#fff}.top-bar-section ul li>button:hover,.top-bar-section ul li>button:focus{background-color:#005dae}.top-bar-section ul li>button:hover,.top-bar-section ul li>button:focus{color:#fff}.top-bar-section ul li>button.secondary{background-color:#ddd;border-color:#b1b1b1;color:#333}.top-bar-section ul li>button.secondary:hover,.top-bar-section ul li>button.secondary:focus{background-color:#b1b1b1}.top-bar-section ul li>button.secondary:hover,.top-bar-section ul li>button.secondary:focus{color:#fff}.top-bar-section ul li>button.success{background-color:#2ECC40;border-color:#25a333;color:#fff}.top-bar-section ul li>button.success:hover,.top-bar-section ul li>button.success:focus{background-color:#25a333}.top-bar-section ul li>button.success:hover,.top-bar-section ul li>button.success:focus{color:#fff}.top-bar-section ul li>button.alert{background-color:#FF4136;border-color:#f70e00;color:#fff}.top-bar-section ul li>button.alert:hover,.top-bar-section ul li>button.alert:focus{background-color:#f70e00}.top-bar-section ul li>button.alert:hover,.top-bar-section ul li>button.alert:focus{color:#fff}.top-bar-section ul li>button.warning{background-color:#FF851B;border-color:#e26900;color:#fff}.top-bar-section ul li>button.warning:hover,.top-bar-section ul li>button.warning:focus{background-color:#e26900}.top-bar-section ul li>button.warning:hover,.top-bar-section ul li>button.warning:focus{color:#fff}.top-bar-section ul li>button.info{background-color:#7FDBFF;border-color:#33c6ff;color:#333}.top-bar-section ul li>button.info:hover,.top-bar-section ul li>button.info:focus{background-color:#33c6ff}.top-bar-section ul li>button.info:hover,.top-bar-section ul li>button.info:focus{color:#fff}.top-bar-section ul li:hover:not(.has-form)>a{background-color:#555;color:#fff;background:#222}.top-bar-section ul li.active>a{background:#0074D9;color:#fff}.top-bar-section ul li.active>a:hover{background:#0064bb;color:#fff}.top-bar-section .has-form{padding:0.9375rem}.top-bar-section .has-dropdown{position:relative}.top-bar-section .has-dropdown>a:after{border:inset 5px;content:"";display:block;height:0;width:0;border-color:transparent transparent transparent rgba(255,255,255,0.4);border-left-style:solid;margin-right:0.9375rem;margin-top:-4.5px;position:absolute;top:50%;right:0}.top-bar-section .has-dropdown.moved{position:static}.top-bar-section .has-dropdown.moved>.dropdown{position:static !important;height:auto;width:auto;overflow:visible;clip:auto;display:block;position:absolute !important;width:100%}.top-bar-section .has-dropdown.moved>a:after{display:none}.top-bar-section .dropdown{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px;display:block;padding:0;position:absolute;top:0;z-index:99;left:100%}.top-bar-section .dropdown li{height:auto;width:100%}.top-bar-section .dropdown li a{font-weight:normal;padding:8px 0.9375rem}.top-bar-section .dropdown li a.parent-link{font-weight:normal}.top-bar-section .dropdown li.title h5,.top-bar-section .dropdown li.parent-link{margin-bottom:0;margin-top:0;font-size:1.125rem}.top-bar-section .dropdown li.title h5 a,.top-bar-section .dropdown li.parent-link a{color:#fff;display:block}.top-bar-section .dropdown li.title h5 a:hover,.top-bar-section .dropdown li.parent-link a:hover{background:none}.top-bar-section .dropdown li.has-form{padding:8px 0.9375rem}.top-bar-section .dropdown li .button,.top-bar-section .dropdown li button{top:auto}.top-bar-section .dropdown label{color:#777;font-size:0.625rem;font-weight:bold;margin-bottom:0;padding:8px 0.9375rem 2px;text-transform:uppercase}.js-generated{display:block}@media only screen and (min-width: 40.0625em){.top-bar{background:#333;overflow:visible}.top-bar:before,.top-bar:after{content:" ";display:table}.top-bar:after{clear:both}.top-bar .toggle-topbar{display:none}.top-bar .title-area{float:left}.top-bar .name h1 a,.top-bar .name h2 a,.top-bar .name h3 a,.top-bar .name h4 a,.top-bar .name h5 a,.top-bar .name h6 a{width:auto}.top-bar input,.top-bar select,.top-bar .button,.top-bar button{font-size:0.875rem;height:1.75rem;position:relative;top:0.53125rem}.top-bar .has-form>.button,.top-bar .has-form>button{font-size:0.875rem;height:1.75rem;position:relative;top:0.53125rem}.top-bar.expanded{background:#333}.contain-to-grid .top-bar{margin:0 auto;margin-bottom:0;max-width:62.5rem}.top-bar-section{transition:none 0 0;left:0 !important}.top-bar-section ul{display:inline;height:auto !important;width:auto}.top-bar-section ul li{float:left}.top-bar-section ul li .js-generated{display:none}.top-bar-section li.hover>a:not(.button){background-color:#555;background:#222;color:#fff}.top-bar-section li:not(.has-form) a:not(.button){background:#333;line-height:2.8125rem;padding:0 0.9375rem}.top-bar-section li:not(.has-form) a:not(.button):hover{background-color:#555;background:#222}.top-bar-section li.active:not(.has-form) a:not(.button){background:#0074D9;color:#fff;line-height:2.8125rem;padding:0 0.9375rem}.top-bar-section li.active:not(.has-form) a:not(.button):hover{background:#0064bb;color:#fff}.top-bar-section .has-dropdown>a{padding-right:2.1875rem !important}.top-bar-section .has-dropdown>a:after{border:inset 5px;content:"";display:block;height:0;width:0;border-color:rgba(255,255,255,0.4) transparent transparent transparent;border-top-style:solid;margin-top:-2.5px;top:1.40625rem}.top-bar-section .has-dropdown.moved{position:relative}.top-bar-section .has-dropdown.moved>.dropdown{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px;display:block}.top-bar-section .has-dropdown.hover>.dropdown,.top-bar-section .has-dropdown.not-click:hover>.dropdown{position:static !important;height:auto;width:auto;overflow:visible;clip:auto;display:block;position:absolute !important}.top-bar-section .has-dropdown>a:focus+.dropdown{position:static !important;height:auto;width:auto;overflow:visible;clip:auto;display:block;position:absolute !important}.top-bar-section .has-dropdown .dropdown li.has-dropdown>a:after{border:none;content:"\00bb";top:0.1875rem;right:5px}.top-bar-section .dropdown{left:0;background:transparent;min-width:100%;top:auto}.top-bar-section .dropdown li a{background:#333;color:#fff;line-height:2.8125rem;padding:12px 0.9375rem;white-space:nowrap}.top-bar-section .dropdown li:not(.has-form):not(.active)>a:not(.button){background:#333;color:#fff}.top-bar-section .dropdown li:not(.has-form):not(.active):hover>a:not(.button){background-color:#555;color:#fff;background:#222}.top-bar-section .dropdown li label{background:#333;white-space:nowrap}.top-bar-section .dropdown li .dropdown{left:100%;top:0}.top-bar-section>ul>.divider,.top-bar-section>ul>[role="separator"]{border-right:solid 1px #4e4e4e;border-bottom:none;border-top:none;clear:none;height:2.8125rem;width:0}.top-bar-section .has-form{background:#333;height:2.8125rem;padding:0 0.9375rem}.top-bar-section .right li .dropdown{left:auto;right:0}.top-bar-section .right li .dropdown li .dropdown{right:100%}.top-bar-section .left li .dropdown{right:auto;left:0}.top-bar-section .left li .dropdown li .dropdown{left:100%}.no-js .top-bar-section ul li:hover>a{background-color:#555;background:#222;color:#fff}.no-js .top-bar-section ul li:active>a{background:#0074D9;color:#fff}.no-js .top-bar-section .has-dropdown:hover>.dropdown{position:static !important;height:auto;width:auto;overflow:visible;clip:auto;display:block;position:absolute !important}.no-js .top-bar-section .has-dropdown>a:focus+.dropdown{position:static !important;height:auto;width:auto;overflow:visible;clip:auto;display:block;position:absolute !important}}.text-left{text-align:left !important}.text-right{text-align:right !important}.text-center{text-align:center !important}.text-justify{text-align:justify !important}@media only screen and (max-width: 40em){.small-only-text-left{text-align:left !important}.small-only-text-right{text-align:right !important}.small-only-text-center{text-align:center !important}.small-only-text-justify{text-align:justify !important}}@media only screen{.small-text-left{text-align:left !important}.small-text-right{text-align:right !important}.small-text-center{text-align:center !important}.small-text-justify{text-align:justify !important}}@media only screen and (min-width: 40.0625em) and (max-width: 64em){.medium-only-text-left{text-align:left !important}.medium-only-text-right{text-align:right !important}.medium-only-text-center{text-align:center !important}.medium-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 40.0625em){.medium-text-left{text-align:left !important}.medium-text-right{text-align:right !important}.medium-text-center{text-align:center !important}.medium-text-justify{text-align:justify !important}}@media only screen and (min-width: 64.0625em) and (max-width: 90em){.large-only-text-left{text-align:left !important}.large-only-text-right{text-align:right !important}.large-only-text-center{text-align:center !important}.large-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 64.0625em){.large-text-left{text-align:left !important}.large-text-right{text-align:right !important}.large-text-center{text-align:center !important}.large-text-justify{text-align:justify !important}}@media only screen and (min-width: 90.0625em) and (max-width: 120em){.xlarge-only-text-left{text-align:left !important}.xlarge-only-text-right{text-align:right !important}.xlarge-only-text-center{text-align:center !important}.xlarge-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 90.0625em){.xlarge-text-left{text-align:left !important}.xlarge-text-right{text-align:right !important}.xlarge-text-center{text-align:center !important}.xlarge-text-justify{text-align:justify !important}}@media only screen and (min-width: 120.0625em) and (max-width: 6249999.9375em){.xxlarge-only-text-left{text-align:left !important}.xxlarge-only-text-right{text-align:right !important}.xxlarge-only-text-center{text-align:center !important}.xxlarge-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 120.0625em){.xxlarge-text-left{text-align:left !important}.xxlarge-text-right{text-align:right !important}.xxlarge-text-center{text-align:center !important}.xxlarge-text-justify{text-align:justify !important}}div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0}a{color:#0074D9;line-height:inherit;text-decoration:none}a:hover,a:focus{color:#0064bb}a img{border:none}p{font-family:inherit;font-size:1rem;font-weight:normal;line-height:1.6;margin-bottom:1.25rem;text-rendering:optimizeLegibility}p.lead{font-size:1.21875rem;line-height:1.6}p aside{font-size:0.875rem;font-style:italic;line-height:1.35}h1,h2,h3,h4,h5,h6{color:#222;font-family:"Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;font-style:normal;font-weight:normal;line-height:1.4;margin-bottom:0.5rem;margin-top:0.2rem;text-rendering:optimizeLegibility}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{color:#6f6f6f;font-size:60%;line-height:0}h1{font-size:2.125rem}h2{font-size:1.6875rem}h3{font-size:1.375rem}h4{font-size:1.125rem}h5{font-size:1.125rem}h6{font-size:1rem}.subheader{line-height:1.4;color:#6f6f6f;font-weight:normal;margin-top:0.2rem;margin-bottom:0.5rem}hr{border:solid #ddd;border-width:1px 0 0;clear:both;height:0;margin:1.25rem 0 1.1875rem}em,i{font-style:italic;line-height:inherit}strong,b{font-weight:bold;line-height:inherit}small{font-size:60%;line-height:inherit}code{background-color:#f5f5f5;border-color:#dcdcdc;border-style:solid;border-width:1px;color:#333;font-family:Consolas,"Liberation Mono",Courier,monospace;font-weight:normal;padding:0.125rem 0.3125rem 0.0625rem}ul,ol,dl{font-family:inherit;font-size:1rem;line-height:1.6;list-style-position:outside;margin-bottom:1.25rem}ul{margin-left:1.1rem}ul li ul,ul li ol{margin-left:1.25rem;margin-bottom:0}ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}ul.square{list-style-type:square;margin-left:1.1rem}ul.circle{list-style-type:circle;margin-left:1.1rem}ul.disc{list-style-type:disc;margin-left:1.1rem}ol{margin-left:1.4rem}ol li ul,ol li ol{margin-left:1.25rem;margin-bottom:0}.no-bullet{list-style-type:none;margin-left:0}.no-bullet li ul,.no-bullet li ol{margin-left:1.25rem;margin-bottom:0;list-style:none}dl dt{margin-bottom:0.3rem;font-weight:bold}dl dd{margin-bottom:0.75rem}abbr,acronym{text-transform:uppercase;font-size:90%;color:#222;cursor:help}abbr{text-transform:none}abbr[title]{border-bottom:1px dotted #ddd}blockquote{margin:0 0 1.25rem;padding:0.5625rem 1.25rem 0 1.1875rem;border-left:1px solid #ddd}blockquote cite{display:block;font-size:0.8125rem;color:#555}blockquote cite:before{content:"\2014 \0020"}blockquote cite a,blockquote cite a:visited{color:#555}blockquote,blockquote p{line-height:1.6;color:#6f6f6f}.vcard{display:inline-block;margin:0 0 1.25rem 0;border:1px solid #ddd;padding:0.625rem 0.75rem}.vcard li{margin:0;display:block}.vcard .fn{font-weight:bold;font-size:0.9375rem}.vevent .summary{font-weight:bold}.vevent abbr{cursor:default;text-decoration:none;font-weight:bold;border:none;padding:0 0.0625rem}@media only screen and (min-width: 40.0625em){h1,h2,h3,h4,h5,h6{line-height:1.4}h1{font-size:2.75rem}h2{font-size:2.3125rem}h3{font-size:1.6875rem}h4{font-size:1.4375rem}h5{font-size:1.125rem}h6{font-size:1rem}}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.34in}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}}.off-canvas-wrap{-webkit-backface-visibility:hidden;position:relative;width:100%;overflow:hidden}.off-canvas-wrap.move-right,.off-canvas-wrap.move-left,.off-canvas-wrap.move-bottom,.off-canvas-wrap.move-top{min-height:100%;-webkit-overflow-scrolling:touch}.inner-wrap{position:relative;width:100%;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.inner-wrap:before,.inner-wrap:after{content:" ";display:table}.inner-wrap:after{clear:both}.tab-bar{-webkit-backface-visibility:hidden;background:#333;color:#fff;height:2.8125rem;line-height:2.8125rem;position:relative}.tab-bar h1,.tab-bar h2,.tab-bar h3,.tab-bar h4,.tab-bar h5,.tab-bar h6{color:#fff;font-weight:bold;line-height:2.8125rem;margin:0}.tab-bar h1,.tab-bar h2,.tab-bar h3,.tab-bar h4{font-size:1.125rem}.left-small{height:2.8125rem;position:absolute;top:0;width:2.8125rem;border-right:solid 1px #1a1a1a;left:0}.right-small{height:2.8125rem;position:absolute;top:0;width:2.8125rem;border-left:solid 1px #1a1a1a;right:0}.tab-bar-section{height:2.8125rem;padding:0 0.625rem;position:absolute;text-align:center;top:0}.tab-bar-section.left{text-align:left}.tab-bar-section.right{text-align:right}.tab-bar-section.left{left:0;right:2.8125rem}.tab-bar-section.right{left:2.8125rem;right:0}.tab-bar-section.middle{left:2.8125rem;right:2.8125rem}.tab-bar .menu-icon{color:#fff;display:block;height:2.8125rem;padding:0;position:relative;text-indent:2.1875rem;transform:translate3d(0, 0, 0);width:2.8125rem}.tab-bar .menu-icon span::after{content:"";display:block;height:0;position:absolute;top:50%;margin-top:-0.5rem;left:0.90625rem;box-shadow:0 0 0 1px #fff,0 7px 0 1px #fff,0 14px 0 1px #fff;width:1rem}.tab-bar .menu-icon span:hover:after{box-shadow:0 0 0 1px #b3b3b3,0 7px 0 1px #b3b3b3,0 14px 0 1px #b3b3b3}.left-off-canvas-menu{-webkit-backface-visibility:hidden;background:#333;bottom:0;box-sizing:content-box;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:hidden;overflow-y:auto;position:absolute;transition:transform 500ms ease 0s;width:15.625rem;z-index:1001;-webkit-transform:translate3d(-100%, 0, 0);-moz-transform:translate3d(-100%, 0, 0);-ms-transform:translate(-100%, 0);-o-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0;top:0}.left-off-canvas-menu *{-webkit-backface-visibility:hidden}.right-off-canvas-menu{-webkit-backface-visibility:hidden;background:#333;bottom:0;box-sizing:content-box;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:hidden;overflow-y:auto;position:absolute;transition:transform 500ms ease 0s;width:15.625rem;z-index:1001;-webkit-transform:translate3d(100%, 0, 0);-moz-transform:translate3d(100%, 0, 0);-ms-transform:translate(100%, 0);-o-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);right:0;top:0}.right-off-canvas-menu *{-webkit-backface-visibility:hidden}.top-off-canvas-menu{-webkit-backface-visibility:hidden;background:#333;bottom:0;box-sizing:content-box;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:hidden;overflow-y:auto;position:absolute;transition:transform 500ms ease 0s;width:15.625rem;z-index:1001;-webkit-transform:translate3d(0, -100%, 0);-moz-transform:translate3d(0, -100%, 0);-ms-transform:translate(0, -100%);-o-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0;width:100%;height:18.75rem}.top-off-canvas-menu *{-webkit-backface-visibility:hidden}.bottom-off-canvas-menu{-webkit-backface-visibility:hidden;background:#333;bottom:0;box-sizing:content-box;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar;overflow-x:hidden;overflow-y:auto;position:absolute;transition:transform 500ms ease 0s;width:15.625rem;z-index:1001;-webkit-transform:translate3d(0, 100%, 0);-moz-transform:translate3d(0, 100%, 0);-ms-transform:translate(0, 100%);-o-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0;width:100%;height:18.75rem}.bottom-off-canvas-menu *{-webkit-backface-visibility:hidden}ul.off-canvas-list{list-style-type:none;margin:0;padding:0}ul.off-canvas-list li label{background:#444;border-bottom:none;border-top:1px solid #5e5e5e;color:#999;display:block;font-size:0.75rem;font-weight:bold;margin:0;padding:0.3rem 0.9375rem;text-transform:uppercase}ul.off-canvas-list li a{border-bottom:1px solid #262626;color:rgba(255,255,255,0.7);display:block;padding:0.6666666667rem;transition:background 300ms ease}ul.off-canvas-list li a:hover{background:#242424}ul.off-canvas-list li a:active{background:#242424}.move-right>.inner-wrap{-webkit-transform:translate3d(15.625rem, 0, 0);-moz-transform:translate3d(15.625rem, 0, 0);-ms-transform:translate(15.625rem, 0);-o-transform:translate3d(15.625rem, 0, 0);transform:translate3d(15.625rem, 0, 0)}.move-right .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.move-right .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.move-left>.inner-wrap{-webkit-transform:translate3d(-15.625rem, 0, 0);-moz-transform:translate3d(-15.625rem, 0, 0);-ms-transform:translate(-15.625rem, 0);-o-transform:translate3d(-15.625rem, 0, 0);transform:translate3d(-15.625rem, 0, 0)}.move-left .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.move-left .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.move-top>.inner-wrap{-webkit-transform:translate3d(0, -18.75rem, 0);-moz-transform:translate3d(0, -18.75rem, 0);-ms-transform:translate(0, -18.75rem);-o-transform:translate3d(0, -18.75rem, 0);transform:translate3d(0, -18.75rem, 0)}.move-top .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.move-top .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.move-bottom>.inner-wrap{-webkit-transform:translate3d(0, 18.75rem, 0);-moz-transform:translate3d(0, 18.75rem, 0);-ms-transform:translate(0, 18.75rem);-o-transform:translate3d(0, 18.75rem, 0);transform:translate3d(0, 18.75rem, 0)}.move-bottom .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.move-bottom .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.offcanvas-overlap .left-off-canvas-menu,.offcanvas-overlap .right-off-canvas-menu,.offcanvas-overlap .top-off-canvas-menu,.offcanvas-overlap .bottom-off-canvas-menu{-ms-transform:none;-webkit-transform:none;-moz-transform:none;-o-transform:none;transform:none;z-index:1003}.offcanvas-overlap .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.offcanvas-overlap .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.offcanvas-overlap-left .right-off-canvas-menu{-ms-transform:none;-webkit-transform:none;-moz-transform:none;-o-transform:none;transform:none;z-index:1003}.offcanvas-overlap-left .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.offcanvas-overlap-left .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.offcanvas-overlap-right .left-off-canvas-menu{-ms-transform:none;-webkit-transform:none;-moz-transform:none;-o-transform:none;transform:none;z-index:1003}.offcanvas-overlap-right .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.offcanvas-overlap-right .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.offcanvas-overlap-top .bottom-off-canvas-menu{-ms-transform:none;-webkit-transform:none;-moz-transform:none;-o-transform:none;transform:none;z-index:1003}.offcanvas-overlap-top .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.offcanvas-overlap-top .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.offcanvas-overlap-bottom .top-off-canvas-menu{-ms-transform:none;-webkit-transform:none;-moz-transform:none;-o-transform:none;transform:none;z-index:1003}.offcanvas-overlap-bottom .exit-off-canvas{-webkit-backface-visibility:hidden;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);cursor:pointer;transition:background 300ms ease;-webkit-tap-highlight-color:transparent;background:rgba(255,255,255,0.2);bottom:0;display:block;left:0;position:absolute;right:0;top:0;z-index:1002}@media only screen and (min-width: 40.0625em){.offcanvas-overlap-bottom .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.no-csstransforms .left-off-canvas-menu{left:-15.625rem}.no-csstransforms .right-off-canvas-menu{right:-15.625rem}.no-csstransforms .top-off-canvas-menu{top:-18.75rem}.no-csstransforms .bottom-off-canvas-menu{bottom:-18.75rem}.no-csstransforms .move-left>.inner-wrap{right:15.625rem}.no-csstransforms .move-right>.inner-wrap{left:15.625rem}.no-csstransforms .move-top>.inner-wrap{right:18.75rem}.no-csstransforms .move-bottom>.inner-wrap{left:18.75rem}.left-submenu{-webkit-backface-visibility:hidden;-webkit-overflow-scrolling:touch;background:#333;bottom:0;box-sizing:content-box;margin:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:15.625rem;height:18.75rem;z-index:1002;-webkit-transform:translate3d(-100%, 0, 0);-moz-transform:translate3d(-100%, 0, 0);-ms-transform:translate(-100%, 0);-o-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.left-submenu *{-webkit-backface-visibility:hidden}.left-submenu .back>a{background:#444;border-bottom:none;border-top:1px solid #5e5e5e;color:#999;font-weight:bold;padding:0.3rem 0.9375rem;text-transform:uppercase;margin:0}.left-submenu .back>a:hover{background:#303030;border-bottom:none;border-top:1px solid #5e5e5e}.left-submenu .back>a:before{content:"\AB";margin-right:.5rem;display:inline}.left-submenu.move-right,.left-submenu.offcanvas-overlap-right,.left-submenu.offcanvas-overlap{-webkit-transform:translate3d(0%, 0, 0);-moz-transform:translate3d(0%, 0, 0);-ms-transform:translate(0%, 0);-o-transform:translate3d(0%, 0, 0);transform:translate3d(0%, 0, 0)}.right-submenu{-webkit-backface-visibility:hidden;-webkit-overflow-scrolling:touch;background:#333;bottom:0;box-sizing:content-box;margin:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:15.625rem;height:18.75rem;z-index:1002;-webkit-transform:translate3d(100%, 0, 0);-moz-transform:translate3d(100%, 0, 0);-ms-transform:translate(100%, 0);-o-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);right:0;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.right-submenu *{-webkit-backface-visibility:hidden}.right-submenu .back>a{background:#444;border-bottom:none;border-top:1px solid #5e5e5e;color:#999;font-weight:bold;padding:0.3rem 0.9375rem;text-transform:uppercase;margin:0}.right-submenu .back>a:hover{background:#303030;border-bottom:none;border-top:1px solid #5e5e5e}.right-submenu .back>a:after{content:"\BB";margin-left:.5rem;display:inline}.right-submenu.move-left,.right-submenu.offcanvas-overlap-left,.right-submenu.offcanvas-overlap{-webkit-transform:translate3d(0%, 0, 0);-moz-transform:translate3d(0%, 0, 0);-ms-transform:translate(0%, 0);-o-transform:translate3d(0%, 0, 0);transform:translate3d(0%, 0, 0)}.top-submenu{-webkit-backface-visibility:hidden;-webkit-overflow-scrolling:touch;background:#333;bottom:0;box-sizing:content-box;margin:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:15.625rem;height:18.75rem;z-index:1002;-webkit-transform:translate3d(0, -100%, 0);-moz-transform:translate3d(0, -100%, 0);-ms-transform:translate(0, -100%);-o-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0;width:100%;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.top-submenu *{-webkit-backface-visibility:hidden}.top-submenu .back>a{background:#444;border-bottom:none;border-top:1px solid #5e5e5e;color:#999;font-weight:bold;padding:0.3rem 0.9375rem;text-transform:uppercase;margin:0}.top-submenu .back>a:hover{background:#303030;border-bottom:none;border-top:1px solid #5e5e5e}.top-submenu.move-bottom,.top-submenu.offcanvas-overlap-bottom,.top-submenu.offcanvas-overlap{-webkit-transform:translate3d(0, 0%, 0);-moz-transform:translate3d(0, 0%, 0);-ms-transform:translate(0, 0%);-o-transform:translate3d(0, 0%, 0);transform:translate3d(0, 0%, 0)}.bottom-submenu{-webkit-backface-visibility:hidden;-webkit-overflow-scrolling:touch;background:#333;bottom:0;box-sizing:content-box;margin:0;overflow-x:hidden;overflow-y:auto;position:absolute;top:0;width:15.625rem;height:18.75rem;z-index:1002;-webkit-transform:translate3d(0, 100%, 0);-moz-transform:translate3d(0, 100%, 0);-ms-transform:translate(0, 100%);-o-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0;width:100%;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.bottom-submenu *{-webkit-backface-visibility:hidden}.bottom-submenu .back>a{background:#444;border-bottom:none;border-top:1px solid #5e5e5e;color:#999;font-weight:bold;padding:0.3rem 0.9375rem;text-transform:uppercase;margin:0}.bottom-submenu .back>a:hover{background:#303030;border-bottom:none;border-top:1px solid #5e5e5e}.bottom-submenu.move-top,.bottom-submenu.offcanvas-overlap-top,.bottom-submenu.offcanvas-overlap{-webkit-transform:translate3d(0, 0%, 0);-moz-transform:translate3d(0, 0%, 0);-ms-transform:translate(0, 0%);-o-transform:translate3d(0, 0%, 0);transform:translate3d(0, 0%, 0)}.left-off-canvas-menu ul.off-canvas-list li.has-submenu>a:after{content:"\BB";margin-left:.5rem;display:inline}.right-off-canvas-menu ul.off-canvas-list li.has-submenu>a:before{content:"\AB";margin-right:.5rem;display:inline}@media only screen{.show-for-small-only,.show-for-small-up,.show-for-small,.show-for-small-down,.hide-for-medium-only,.hide-for-medium-up,.hide-for-medium,.show-for-medium-down,.hide-for-large-only,.hide-for-large-up,.hide-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xlarge,.show-for-xlarge-down,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.hide-for-xxlarge,.show-for-xxlarge-down{display:inherit !important}.hide-for-small-only,.hide-for-small-up,.hide-for-small,.hide-for-small-down,.show-for-medium-only,.show-for-medium-up,.show-for-medium,.hide-for-medium-down,.show-for-large-only,.show-for-large-up,.show-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xlarge,.hide-for-xlarge-down,.show-for-xxlarge-only,.show-for-xxlarge-up,.show-for-xxlarge,.hide-for-xxlarge-down{display:none !important}.visible-for-small-only,.visible-for-small-up,.visible-for-small,.visible-for-small-down,.hidden-for-medium-only,.hidden-for-medium-up,.hidden-for-medium,.visible-for-medium-down,.hidden-for-large-only,.hidden-for-large-up,.hidden-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xlarge,.visible-for-xlarge-down,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up,.hidden-for-xxlarge,.visible-for-xxlarge-down{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.hidden-for-small-only,.hidden-for-small-up,.hidden-for-small,.hidden-for-small-down,.visible-for-medium-only,.visible-for-medium-up,.visible-for-medium,.hidden-for-medium-down,.visible-for-large-only,.visible-for-large-up,.visible-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xlarge,.hidden-for-xlarge-down,.visible-for-xxlarge-only,.visible-for-xxlarge-up,.visible-for-xxlarge,.hidden-for-xxlarge-down{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}table.show-for-small-only,table.show-for-small-up,table.show-for-small,table.show-for-small-down,table.hide-for-medium-only,table.hide-for-medium-up,table.hide-for-medium,table.show-for-medium-down,table.hide-for-large-only,table.hide-for-large-up,table.hide-for-large,table.show-for-large-down,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xlarge,table.show-for-xlarge-down,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.hide-for-xxlarge,table.show-for-xxlarge-down{display:table !important}thead.show-for-small-only,thead.show-for-small-up,thead.show-for-small,thead.show-for-small-down,thead.hide-for-medium-only,thead.hide-for-medium-up,thead.hide-for-medium,thead.show-for-medium-down,thead.hide-for-large-only,thead.hide-for-large-up,thead.hide-for-large,thead.show-for-large-down,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xlarge,thead.show-for-xlarge-down,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.hide-for-xxlarge,thead.show-for-xxlarge-down{display:table-header-group !important}tbody.show-for-small-only,tbody.show-for-small-up,tbody.show-for-small,tbody.show-for-small-down,tbody.hide-for-medium-only,tbody.hide-for-medium-up,tbody.hide-for-medium,tbody.show-for-medium-down,tbody.hide-for-large-only,tbody.hide-for-large-up,tbody.hide-for-large,tbody.show-for-large-down,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xlarge,tbody.show-for-xlarge-down,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.hide-for-xxlarge,tbody.show-for-xxlarge-down{display:table-row-group !important}tr.show-for-small-only,tr.show-for-small-up,tr.show-for-small,tr.show-for-small-down,tr.hide-for-medium-only,tr.hide-for-medium-up,tr.hide-for-medium,tr.show-for-medium-down,tr.hide-for-large-only,tr.hide-for-large-up,tr.hide-for-large,tr.show-for-large-down,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xlarge,tr.show-for-xlarge-down,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.hide-for-xxlarge,tr.show-for-xxlarge-down{display:table-row}th.show-for-small-only,td.show-for-small-only,th.show-for-small-up,td.show-for-small-up,th.show-for-small,td.show-for-small,th.show-for-small-down,td.show-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.hide-for-medium-up,td.hide-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.show-for-medium-down,td.show-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.hide-for-large-up,td.hide-for-large-up,th.hide-for-large,td.hide-for-large,th.show-for-large-down,td.show-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.hide-for-xlarge-up,td.hide-for-xlarge-up,th.hide-for-xlarge,td.hide-for-xlarge,th.show-for-xlarge-down,td.show-for-xlarge-down,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up,th.hide-for-xxlarge,td.hide-for-xxlarge,th.show-for-xxlarge-down,td.show-for-xxlarge-down{display:table-cell !important}}@media only screen and (min-width: 40.0625em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.show-for-medium-only,.show-for-medium-up,.show-for-medium,.show-for-medium-down,.hide-for-large-only,.hide-for-large-up,.hide-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xlarge,.show-for-xlarge-down,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.hide-for-xxlarge,.show-for-xxlarge-down{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.hide-for-medium-only,.hide-for-medium-up,.hide-for-medium,.hide-for-medium-down,.show-for-large-only,.show-for-large-up,.show-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xlarge,.hide-for-xlarge-down,.show-for-xxlarge-only,.show-for-xxlarge-up,.show-for-xxlarge,.hide-for-xxlarge-down{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.visible-for-medium-only,.visible-for-medium-up,.visible-for-medium,.visible-for-medium-down,.hidden-for-large-only,.hidden-for-large-up,.hidden-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xlarge,.visible-for-xlarge-down,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up,.hidden-for-xxlarge,.visible-for-xxlarge-down{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.hidden-for-medium-only,.hidden-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.visible-for-large-only,.visible-for-large-up,.visible-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xlarge,.hidden-for-xlarge-down,.visible-for-xxlarge-only,.visible-for-xxlarge-up,.visible-for-xxlarge,.hidden-for-xxlarge-down{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.show-for-medium-only,table.show-for-medium-up,table.show-for-medium,table.show-for-medium-down,table.hide-for-large-only,table.hide-for-large-up,table.hide-for-large,table.show-for-large-down,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xlarge,table.show-for-xlarge-down,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.hide-for-xxlarge,table.show-for-xxlarge-down{display:table !important}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.show-for-medium-only,thead.show-for-medium-up,thead.show-for-medium,thead.show-for-medium-down,thead.hide-for-large-only,thead.hide-for-large-up,thead.hide-for-large,thead.show-for-large-down,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xlarge,thead.show-for-xlarge-down,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.hide-for-xxlarge,thead.show-for-xxlarge-down{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.show-for-medium-only,tbody.show-for-medium-up,tbody.show-for-medium,tbody.show-for-medium-down,tbody.hide-for-large-only,tbody.hide-for-large-up,tbody.hide-for-large,tbody.show-for-large-down,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xlarge,tbody.show-for-xlarge-down,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.hide-for-xxlarge,tbody.show-for-xxlarge-down{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.show-for-medium-only,tr.show-for-medium-up,tr.show-for-medium,tr.show-for-medium-down,tr.hide-for-large-only,tr.hide-for-large-up,tr.hide-for-large,tr.show-for-large-down,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xlarge,tr.show-for-xlarge-down,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.hide-for-xxlarge,tr.show-for-xxlarge-down{display:table-row}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.show-for-medium-only,td.show-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.show-for-medium,td.show-for-medium,th.show-for-medium-down,td.show-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.hide-for-large-up,td.hide-for-large-up,th.hide-for-large,td.hide-for-large,th.show-for-large-down,td.show-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.hide-for-xlarge-up,td.hide-for-xlarge-up,th.hide-for-xlarge,td.hide-for-xlarge,th.show-for-xlarge-down,td.show-for-xlarge-down,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up,th.hide-for-xxlarge,td.hide-for-xxlarge,th.show-for-xxlarge-down,td.show-for-xxlarge-down{display:table-cell !important}}@media only screen and (min-width: 64.0625em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.hide-for-medium-only,.show-for-medium-up,.hide-for-medium,.hide-for-medium-down,.show-for-large-only,.show-for-large-up,.show-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xlarge,.show-for-xlarge-down,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.hide-for-xxlarge,.show-for-xxlarge-down{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.show-for-medium-only,.hide-for-medium-up,.show-for-medium,.show-for-medium-down,.hide-for-large-only,.hide-for-large-up,.hide-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xlarge,.hide-for-xlarge-down,.show-for-xxlarge-only,.show-for-xxlarge-up,.show-for-xxlarge,.hide-for-xxlarge-down{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.hidden-for-medium-only,.visible-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.visible-for-large-only,.visible-for-large-up,.visible-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xlarge,.visible-for-xlarge-down,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up,.hidden-for-xxlarge,.visible-for-xxlarge-down{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.visible-for-medium-only,.hidden-for-medium-up,.visible-for-medium,.visible-for-medium-down,.hidden-for-large-only,.hidden-for-large-up,.hidden-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xlarge,.hidden-for-xlarge-down,.visible-for-xxlarge-only,.visible-for-xxlarge-up,.visible-for-xxlarge,.hidden-for-xxlarge-down{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.hide-for-medium-only,table.show-for-medium-up,table.hide-for-medium,table.hide-for-medium-down,table.show-for-large-only,table.show-for-large-up,table.show-for-large,table.show-for-large-down,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xlarge,table.show-for-xlarge-down,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.hide-for-xxlarge,table.show-for-xxlarge-down{display:table !important}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.hide-for-medium-only,thead.show-for-medium-up,thead.hide-for-medium,thead.hide-for-medium-down,thead.show-for-large-only,thead.show-for-large-up,thead.show-for-large,thead.show-for-large-down,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xlarge,thead.show-for-xlarge-down,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.hide-for-xxlarge,thead.show-for-xxlarge-down{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.hide-for-medium-only,tbody.show-for-medium-up,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.show-for-large-only,tbody.show-for-large-up,tbody.show-for-large,tbody.show-for-large-down,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xlarge,tbody.show-for-xlarge-down,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.hide-for-xxlarge,tbody.show-for-xxlarge-down{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.hide-for-medium-only,tr.show-for-medium-up,tr.hide-for-medium,tr.hide-for-medium-down,tr.show-for-large-only,tr.show-for-large-up,tr.show-for-large,tr.show-for-large-down,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xlarge,tr.show-for-xlarge-down,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.hide-for-xxlarge,tr.show-for-xxlarge-down{display:table-row}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.hide-for-medium-down,td.hide-for-medium-down,th.show-for-large-only,td.show-for-large-only,th.show-for-large-up,td.show-for-large-up,th.show-for-large,td.show-for-large,th.show-for-large-down,td.show-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.hide-for-xlarge-up,td.hide-for-xlarge-up,th.hide-for-xlarge,td.hide-for-xlarge,th.show-for-xlarge-down,td.show-for-xlarge-down,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up,th.hide-for-xxlarge,td.hide-for-xxlarge,th.show-for-xxlarge-down,td.show-for-xxlarge-down{display:table-cell !important}}@media only screen and (min-width: 90.0625em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.hide-for-medium-only,.show-for-medium-up,.hide-for-medium,.hide-for-medium-down,.hide-for-large-only,.show-for-large-up,.hide-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xlarge,.show-for-xlarge-down,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.hide-for-xxlarge,.show-for-xxlarge-down{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.show-for-medium-only,.hide-for-medium-up,.show-for-medium,.show-for-medium-down,.show-for-large-only,.hide-for-large-up,.show-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xlarge,.hide-for-xlarge-down,.show-for-xxlarge-only,.show-for-xxlarge-up,.show-for-xxlarge,.hide-for-xxlarge-down{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.hidden-for-medium-only,.visible-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.hidden-for-large-only,.visible-for-large-up,.hidden-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xlarge,.visible-for-xlarge-down,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up,.hidden-for-xxlarge,.visible-for-xxlarge-down{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.visible-for-medium-only,.hidden-for-medium-up,.visible-for-medium,.visible-for-medium-down,.visible-for-large-only,.hidden-for-large-up,.visible-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xlarge,.hidden-for-xlarge-down,.visible-for-xxlarge-only,.visible-for-xxlarge-up,.visible-for-xxlarge,.hidden-for-xxlarge-down{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.hide-for-medium-only,table.show-for-medium-up,table.hide-for-medium,table.hide-for-medium-down,table.hide-for-large-only,table.show-for-large-up,table.hide-for-large,table.hide-for-large-down,table.show-for-xlarge-only,table.show-for-xlarge-up,table.show-for-xlarge,table.show-for-xlarge-down,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.hide-for-xxlarge,table.show-for-xxlarge-down{display:table !important}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.hide-for-medium-only,thead.show-for-medium-up,thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-large-only,thead.show-for-large-up,thead.hide-for-large,thead.hide-for-large-down,thead.show-for-xlarge-only,thead.show-for-xlarge-up,thead.show-for-xlarge,thead.show-for-xlarge-down,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.hide-for-xxlarge,thead.show-for-xxlarge-down{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.hide-for-medium-only,tbody.show-for-medium-up,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-large-only,tbody.show-for-large-up,tbody.hide-for-large,tbody.hide-for-large-down,tbody.show-for-xlarge-only,tbody.show-for-xlarge-up,tbody.show-for-xlarge,tbody.show-for-xlarge-down,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.hide-for-xxlarge,tbody.show-for-xxlarge-down{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.hide-for-medium-only,tr.show-for-medium-up,tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-large-only,tr.show-for-large-up,tr.hide-for-large,tr.hide-for-large-down,tr.show-for-xlarge-only,tr.show-for-xlarge-up,tr.show-for-xlarge,tr.show-for-xlarge-down,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.hide-for-xxlarge,tr.show-for-xxlarge-down{display:table-row}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.hide-for-medium-down,td.hide-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.show-for-large-up,td.show-for-large-up,th.hide-for-large,td.hide-for-large,th.hide-for-large-down,td.hide-for-large-down,th.show-for-xlarge-only,td.show-for-xlarge-only,th.show-for-xlarge-up,td.show-for-xlarge-up,th.show-for-xlarge,td.show-for-xlarge,th.show-for-xlarge-down,td.show-for-xlarge-down,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up,th.hide-for-xxlarge,td.hide-for-xxlarge,th.show-for-xxlarge-down,td.show-for-xxlarge-down{display:table-cell !important}}@media only screen and (min-width: 120.0625em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.hide-for-medium-only,.show-for-medium-up,.hide-for-medium,.hide-for-medium-down,.hide-for-large-only,.show-for-large-up,.hide-for-large,.hide-for-large-down,.hide-for-xlarge-only,.show-for-xlarge-up,.hide-for-xlarge,.hide-for-xlarge-down,.show-for-xxlarge-only,.show-for-xxlarge-up,.show-for-xxlarge,.show-for-xxlarge-down{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.show-for-medium-only,.hide-for-medium-up,.show-for-medium,.show-for-medium-down,.show-for-large-only,.hide-for-large-up,.show-for-large,.show-for-large-down,.show-for-xlarge-only,.hide-for-xlarge-up,.show-for-xlarge,.show-for-xlarge-down,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.hide-for-xxlarge,.hide-for-xxlarge-down{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.hidden-for-medium-only,.visible-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.hidden-for-large-only,.visible-for-large-up,.hidden-for-large,.hidden-for-large-down,.hidden-for-xlarge-only,.visible-for-xlarge-up,.hidden-for-xlarge,.hidden-for-xlarge-down,.visible-for-xxlarge-only,.visible-for-xxlarge-up,.visible-for-xxlarge,.visible-for-xxlarge-down{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.visible-for-medium-only,.hidden-for-medium-up,.visible-for-medium,.visible-for-medium-down,.visible-for-large-only,.hidden-for-large-up,.visible-for-large,.visible-for-large-down,.visible-for-xlarge-only,.hidden-for-xlarge-up,.visible-for-xlarge,.visible-for-xlarge-down,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up,.hidden-for-xxlarge,.hidden-for-xxlarge-down{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.hide-for-medium-only,table.show-for-medium-up,table.hide-for-medium,table.hide-for-medium-down,table.hide-for-large-only,table.show-for-large-up,table.hide-for-large,table.hide-for-large-down,table.hide-for-xlarge-only,table.show-for-xlarge-up,table.hide-for-xlarge,table.hide-for-xlarge-down,table.show-for-xxlarge-only,table.show-for-xxlarge-up,table.show-for-xxlarge,table.show-for-xxlarge-down{display:table !important}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.hide-for-medium-only,thead.show-for-medium-up,thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-large-only,thead.show-for-large-up,thead.hide-for-large,thead.hide-for-large-down,thead.hide-for-xlarge-only,thead.show-for-xlarge-up,thead.hide-for-xlarge,thead.hide-for-xlarge-down,thead.show-for-xxlarge-only,thead.show-for-xxlarge-up,thead.show-for-xxlarge,thead.show-for-xxlarge-down{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.hide-for-medium-only,tbody.show-for-medium-up,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-large-only,tbody.show-for-large-up,tbody.hide-for-large,tbody.hide-for-large-down,tbody.hide-for-xlarge-only,tbody.show-for-xlarge-up,tbody.hide-for-xlarge,tbody.hide-for-xlarge-down,tbody.show-for-xxlarge-only,tbody.show-for-xxlarge-up,tbody.show-for-xxlarge,tbody.show-for-xxlarge-down{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.hide-for-medium-only,tr.show-for-medium-up,tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-large-only,tr.show-for-large-up,tr.hide-for-large,tr.hide-for-large-down,tr.hide-for-xlarge-only,tr.show-for-xlarge-up,tr.hide-for-xlarge,tr.hide-for-xlarge-down,tr.show-for-xxlarge-only,tr.show-for-xxlarge-up,tr.show-for-xxlarge,tr.show-for-xxlarge-down{display:table-row}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.hide-for-medium-down,td.hide-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.show-for-large-up,td.show-for-large-up,th.hide-for-large,td.hide-for-large,th.hide-for-large-down,td.hide-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.show-for-xlarge-up,td.show-for-xlarge-up,th.hide-for-xlarge,td.hide-for-xlarge,th.hide-for-xlarge-down,td.hide-for-xlarge-down,th.show-for-xxlarge-only,td.show-for-xxlarge-only,th.show-for-xxlarge-up,td.show-for-xxlarge-up,th.show-for-xxlarge,td.show-for-xxlarge,th.show-for-xxlarge-down,td.show-for-xxlarge-down{display:table-cell !important}}.show-for-landscape,.hide-for-portrait{display:inherit !important}.hide-for-landscape,.show-for-portrait{display:none !important}table.hide-for-landscape,table.show-for-portrait{display:table !important}thead.hide-for-landscape,thead.show-for-portrait{display:table-header-group !important}tbody.hide-for-landscape,tbody.show-for-portrait{display:table-row-group !important}tr.hide-for-landscape,tr.show-for-portrait{display:table-row !important}td.hide-for-landscape,td.show-for-portrait,th.hide-for-landscape,th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.show-for-landscape,.hide-for-portrait{display:inherit !important}.hide-for-landscape,.show-for-portrait{display:none !important}table.show-for-landscape,table.hide-for-portrait{display:table !important}thead.show-for-landscape,thead.hide-for-portrait{display:table-header-group !important}tbody.show-for-landscape,tbody.hide-for-portrait{display:table-row-group !important}tr.show-for-landscape,tr.hide-for-portrait{display:table-row !important}td.show-for-landscape,td.hide-for-portrait,th.show-for-landscape,th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.show-for-portrait,.hide-for-landscape{display:inherit !important}.hide-for-portrait,.show-for-landscape{display:none !important}table.show-for-portrait,table.hide-for-landscape{display:table !important}thead.show-for-portrait,thead.hide-for-landscape{display:table-header-group !important}tbody.show-for-portrait,tbody.hide-for-landscape{display:table-row-group !important}tr.show-for-portrait,tr.hide-for-landscape{display:table-row !important}td.show-for-portrait,td.hide-for-landscape,th.show-for-portrait,th.hide-for-landscape{display:table-cell !important}}.show-for-touch{display:none !important}.hide-for-touch{display:inherit !important}.touch .show-for-touch{display:inherit !important}.touch .hide-for-touch{display:none !important}table.hide-for-touch{display:table !important}.touch table.show-for-touch{display:table !important}thead.hide-for-touch{display:table-header-group !important}.touch thead.show-for-touch{display:table-header-group !important}tbody.hide-for-touch{display:table-row-group !important}.touch tbody.show-for-touch{display:table-row-group !important}tr.hide-for-touch{display:table-row !important}.touch tr.show-for-touch{display:table-row !important}td.hide-for-touch{display:table-cell !important}.touch td.show-for-touch{display:table-cell !important}th.hide-for-touch{display:table-cell !important}.touch th.show-for-touch{display:table-cell !important}.show-for-sr{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.show-on-focus{clip:rect(1px, 1px, 1px, 1px);height:1px;overflow:hidden;position:absolute !important;width:1px}.show-on-focus:focus,.show-on-focus:active{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.print-only,.show-for-print{display:none !important}@media print{.print-only,.show-for-print{display:block !important}.hide-on-print,.hide-for-print{display:none !important}table.show-for-print{display:table !important}thead.show-for-print{display:table-header-group !important}tbody.show-for-print{display:table-row-group !important}tr.show-for-print{display:table-row !important}td.show-for-print{display:table-cell !important}th.show-for-print{display:table-cell !important}}.nonpr{display:none}.pr{font-weight:bold}.pr::after{font-style:oblique;font-size:75%;content:' (pr)'}.circle{border-radius:50%;padding-left:0.45rem;padding-right:0.45rem}.primary-bg-color{background-color:#0074D9}.secondary-bg-color{background-color:#ddd}.alert-bg-color{background-color:#FF4136}.success-bg-color{background-color:#2ECC40}.warning-bg-color{background-color:#FF851B}.info-bg-color{background-color:#7FDBFF}li.comma-separated::after{content:","}li.comma-separated:last-child::after{content:""}blockquote.short{padding-left:9px;padding-top:0px} /*# sourceMappingURL=foundation.css.map */
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
assets/css/normalize.css
CSS
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ /** * 1. Set default font family to sans-serif. * 2. Prevent iOS and IE text size adjust after device orientation change, * without disabling user zoom. */ html { font-family: sans-serif; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /** * Remove default margin. */ body { margin: 0; } /* HTML5 display definitions ========================================================================== */ /** * Correct `block` display not defined for any HTML5 element in IE 8/9. * Correct `block` display not defined for `details` or `summary` in IE 10/11 * and Firefox. * Correct `block` display not defined for `main` in IE 11. */ article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary { display: block; } /** * 1. Correct `inline-block` display not defined in IE 8/9. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. */ audio, canvas, progress, video { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } /** * Prevent modern browsers from displaying `audio` without controls. * Remove excess height in iOS 5 devices. */ audio:not([controls]) { display: none; height: 0; } /** * Address `[hidden]` styling not present in IE 8/9/10. * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22. */ [hidden], template { display: none; } /* Links ========================================================================== */ /** * Remove the gray background color from active links in IE 10. */ a { background-color: transparent; } /** * Improve readability of focused elements when they are also in an * active/hover state. */ a:active, a:hover { outline: 0; } /* Text-level semantics ========================================================================== */ /** * Address styling not present in IE 8/9/10/11, Safari, and Chrome. */ abbr[title] { border-bottom: 1px dotted; } /** * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. */ b, strong { font-weight: bold; } /** * Address styling not present in Safari and Chrome. */ dfn { font-style: italic; } /** * Address variable `h1` font-size and margin within `section` and `article` * contexts in Firefox 4+, Safari, and Chrome. */ h1 { font-size: 2em; margin: 0.67em 0; } /** * Address styling not present in IE 8/9. */ mark { background: #ff0; color: #000; } /** * Address inconsistent and variable font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup { top: -0.5em; } sub { bottom: -0.25em; } /* Embedded content ========================================================================== */ /** * Remove border when inside `a` element in IE 8/9/10. */ img { border: 0; } /** * Correct overflow not hidden in IE 9/10/11. */ svg:not(:root) { overflow: hidden; } /* Grouping content ========================================================================== */ /** * Address margin not present in IE 8/9 and Safari. */ figure { margin: 1em 40px; } /** * Address differences between Firefox and other browsers. */ hr { box-sizing: content-box; height: 0; } /** * Contain overflow in all browsers. */ pre { overflow: auto; } /** * Address odd `em`-unit font size rendering in all browsers. */ code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; } /* Forms ========================================================================== */ /** * Known limitation: by default, Chrome and Safari on OS X allow very limited * styling of `select`, unless a `border` property is set. */ /** * 1. Correct color not being inherited. * Known issue: affects color of disabled elements. * 2. Correct font properties not being inherited. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. */ button, input, optgroup, select, textarea { color: inherit; /* 1 */ font: inherit; /* 2 */ margin: 0; /* 3 */ } /** * Address `overflow` set to `hidden` in IE 8/9/10/11. */ button { overflow: visible; } /** * Address inconsistent `text-transform` inheritance for `button` and `select`. * All other form control elements do not inherit `text-transform` values. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. * Correct `select` style inheritance in Firefox. */ button, select { text-transform: none; } /** * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` * and `video` controls. * 2. Correct inability to style clickable `input` types in iOS. * 3. Improve usability and consistency of cursor style between image-type * `input` and others. */ button, html input[type="button"], /* 1 */ input[type="reset"], input[type="submit"] { -webkit-appearance: button; /* 2 */ cursor: pointer; /* 3 */ } /** * Re-set default cursor for disabled elements. */ button[disabled], html input[disabled] { cursor: default; } /** * Remove inner padding and border in Firefox 4+. */ button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; } /** * Address Firefox 4+ setting `line-height` on `input` using `!important` in * the UA stylesheet. */ input { line-height: normal; } /** * It's recommended that you don't attempt to style these elements. * Firefox's implementation doesn't respect box-sizing, padding, or width. * * 1. Address box sizing set to `content-box` in IE 8/9/10. * 2. Remove excess padding in IE 8/9/10. */ input[type="checkbox"], input[type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Fix the cursor style for Chrome's increment/decrement buttons. For certain * `font-size` values of the `input`, it causes the cursor style of the * decrement button to change from `default` to `text`. */ input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Address `appearance` set to `searchfield` in Safari and Chrome. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome. */ input[type="search"] { -webkit-appearance: textfield; /* 1 */ box-sizing: content-box; /* 2 */ } /** * Remove inner padding and search cancel button in Safari and Chrome on OS X. * Safari (but not Chrome) clips the cancel button when the search input has * padding (and `textfield` appearance). */ input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * Define consistent border, margin, and padding. */ fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; } /** * 1. Correct `color` not being inherited in IE 8/9/10/11. * 2. Remove padding so people aren't caught out if they zero out fieldsets. */ legend { border: 0; /* 1 */ padding: 0; /* 2 */ } /** * Remove default vertical scrollbar in IE 8/9/10/11. */ textarea { overflow: auto; } /** * Don't inherit the `font-weight` (applied by a rule above). * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. */ optgroup { font-weight: bold; } /* Tables ========================================================================== */ /** * Remove most spacing between table cells. */ table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; }
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
bin/build-local.js
JavaScript
#!/usr/bin/env node 'use strict'; var Pug = require('pug'); var Fs = require('fs'); var Path = require('path'); var log = require('debug')('lift.zone'); const Config = require('../configs/local.js'); //This is a little hard coded but whatever //[pug, html] var pages = [ ['pages/static.pug', 'index.html'] ]; var bodyPug = Fs.readFileSync('./client/templates/body.pug').toString(); var indexPug = Fs.readFileSync('./client/templates/index.pug').toString(); pages.forEach((page) => { log('building %s to %s', page[0], page[1]); var pageHtml = Pug.renderFile(Path.join('./client/templates/', page[0]), { assetsUrl: Config.ASSETSURL }); //replace body page w/ html var pageBodyPug = bodyPug.replace('block page', pageHtml); var pageBodyHtml = Pug.render(pageBodyPug, { assetsUrl: Config.ASSETSURL }); var pageIndexHtml = Pug.render(indexPug.replace('block body', pageBodyHtml), { assetsUrl: Config.ASSETSURL }); Fs.writeFileSync(Path.join('./local', page[1]), pageIndexHtml); });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
bin/build-production.js
JavaScript
#!/usr/bin/env node 'use strict'; var Pug = require('pug'); var Fs = require('fs'); var Path = require('path'); var ChildProcess = require('child_process'); var log = require('debug')('lift.zone'); var Config = require('../configs/production.js'); //This is a little hard coded but whatever //[pug, html] var pages = [ ['pages/static.pug', 'index.html'], ['pages/about.pug', 'about'], ['pages/privacy.pug', 'privacy'], ['pages/tools.pug', 'tools'], ['pages/login.pug', 'login'], ['pages/news.pug', 'news'], ['pages/old-news.pug', 'old-news'] ]; var bodyPug = Fs.readFileSync('./client/templates/body.pug').toString(); var indexPug = Fs.readFileSync('./client/templates/index.pug').toString(); ChildProcess.execSync('mkdir -p production'); ChildProcess.execSync('mkdir -p production-assets'); ChildProcess.execSync('rsync -a --delete assets/ production-assets/'); ChildProcess.execSync('rsync -a --delete public/ production/'); pages.forEach((page) => { log('building %s to %s', page[0], page[1]); var pageHtml = Pug.renderFile(Path.join('./client/templates/', page[0]), { assetsUrl: Config.ASSETSURL }); //replace body page w/ html var pageBodyPug = bodyPug.replace('block page', pageHtml); var pageBodyHtml = Pug.render(pageBodyPug, { assetsUrl: Config.ASSETSURL }); var pageIndexHtml = Pug.render(indexPug.replace('block body', pageBodyHtml), { assetsUrl: Config.ASSETSURL }); Fs.writeFileSync(Path.join('./production', page[1]), pageIndexHtml); });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
bin/build-staging.js
JavaScript
#!/usr/bin/env node 'use strict'; var Pug = require('pug'); var Fs = require('fs'); var Path = require('path'); var ChildProcess = require('child_process'); var log = require('debug')('lift.zone'); var Config = require('../configs/staging.js'); //This is a little hard coded but whatever //[pug, html] var pages = [ ['pages/static.pug', 'index.html'], ['pages/about.pug', 'about'], ['pages/privacy.pug', 'privacy'], ['pages/tools.pug', 'tools'], ['pages/login.pug', 'login'], ['pages/news.pug', 'news'], ['pages/old-news.pug', 'old-news'] ]; var bodyPug = Fs.readFileSync('./client/templates/body.pug').toString(); var indexPug = Fs.readFileSync('./client/templates/index.pug').toString(); ChildProcess.execSync('mkdir -p staging'); ChildProcess.execSync('mkdir -p staging-assets'); ChildProcess.execSync('rsync -a --delete assets/ staging-assets/'); ChildProcess.execSync('rsync -a --delete public/ staging/'); pages.forEach((page) => { log('building %s to %s', page[0], page[1]); var pageHtml = Pug.renderFile(Path.join('./client/templates/', page[0]), { assetsUrl: Config.ASSETSURL }); //replace body page w/ html var pageBodyPug = bodyPug.replace('block page', pageHtml); var pageBodyHtml = Pug.render(pageBodyPug, { assetsUrl: Config.ASSETSURL }); var pageIndexHtml = Pug.render(indexPug.replace('block body', pageBodyHtml), { assetsUrl: Config.ASSETSURL }); Fs.writeFileSync(Path.join('./staging', page[1]), pageIndexHtml); });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
bin/deploy-production.sh
Shell
#!/bin/sh s3cmd sync ./production-assets/ s3://assets.lift.zone -v --acl-public --delete-removed --guess-mime-type --config ./.s3cfg s3cmd sync ./production/ s3://lift.zone -v --acl-public --delete-removed -m text/html --config ./.s3cfg #ugh s3cmd sync ./production-assets/css/*.css s3://assets.lift.zone/css -v --acl-public --config -./.s3cfg -m text/css
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
bin/deploy-staging.sh
Shell
#!/bin/sh s3cmd sync ./staging-assets/ s3://staging.assets.lift.zone -v --acl-public --delete-removed --guess-mime-type --config ./.s3cfg s3cmd sync ./staging/ s3://staging.lift.zone -v --acl-public --delete-removed -m text/html --config ./.s3cfg #ugh s3cmd sync ./staging-assets/css/*.css s3://staging.assets.lift.zone/css -v --acl-public --config -./.s3cfg -m text/css
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
bin/prepare-build.sh
Shell
#!/bin/sh mkdir -p staging mkdir -p staging-assets mkdir -p production mkdir -p production-assets
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/app.js
JavaScript
'use strict'; var logger = require('debug')('lift.zone'); var App = require('ampersand-app'); var Domready = require('domready'); var Router = require('./router'); var MainView = require('./main-view'); var Me = require('./models/me'); var WorkoutSummaries = require('./models/workout-summaries'); var Config = require('../config'); App.extend({ apiUrl: Config.APIURL, assetsUrl: Config.ASSETSURL, portalUrl: Config.PORTALURL, init: function () { var self = this; if (App.me.loggedIn && !App.me.id) { //Wait for actual fetch to finish App.me.once('change:id', function () { self.render(); }); return; } self.render(); }, render: function () { this.view = new MainView({ model: App.me, el: document.querySelector('[data-hook=app]') }); $(document).foundation({ reveal: { 'dismiss_modal_class': 'dismiss-reveal-modal' } }); this.router.history.start(); }, setAccessToken: function (token) { if (this.accessToken !== token) { this.accessToken = token; if (token !== undefined) { localStorage.accessToken = token; } else { delete localStorage.accessToken; } this.trigger('accessToken', token); } }, router: new Router(), me: new Me(), workoutSummaries: new WorkoutSummaries(), log: logger, navigate: function (page) { var url = (page.charAt(0) === '/') ? page.slice(1) : page; this.router.history.navigate(url, { trigger: true }); } }); Domready(function () { App.setAccessToken(localStorage.accessToken); App.init(); }); if (Config.DEV) { //Name something other than what modules assign locally so we don't accidentally rely on this in development window.liftApp = App; }
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/main-view.js
JavaScript
'use strict'; var App = require('ampersand-app'); var View = require('ampersand-view'); var ViewSwitcher = require('ampersand-view-switcher'); var Dom = require('ampersand-dom'); var LocalLinks = require('local-links'); module.exports = View.extend({ template: require('./templates/body.pug'), autoRender: true, events: { 'click a[href]': 'handleLinkClick' }, session: { message: 'string', assetsUrl: 'string' }, bindings: { 'message': [ { type: 'text', hook: 'page-message' }, { type: 'toggle', hook: 'page-message' } ], 'model.displayName': { type: 'text', hook: 'nav-user-name' }, 'model.link': { type: 'attribute', name: 'href', hook: 'nav-user-name' }, 'model.isAdmin': { type: 'toggle', hook: 'nav-admin' }, 'model.loggedIn': [ { type: 'booleanClass', no: 'button', hook: 'nav-user-name' }, { type: 'toggle', hook: 'nav-logout' } ] }, initialize: function () { this.listenTo(App.router, 'page', this.handlePage); this.assetsUrl = App.assetsUrl; }, render: function () { this.renderWithTemplate(this); this.pages = new ViewSwitcher(this.queryByHook('page-container'), { show: function (view) { $(view.el).foundation(); } }); }, handlePage: function (pageView) { this.message = ''; App.currentPage = pageView; Dom.removeClass(this.query('.top-bar'), 'expanded'); this.pages.set(pageView); this.setActiveNavItem(); }, handleLinkClick: function (e) { var localPath = LocalLinks.pathname(e); if (localPath) { e.preventDefault(); App.navigate(localPath); // Hacky way to get nav dropdowns to close. e.target.blur(); setTimeout(document.body.click.bind(document.body), 0); } }, setActiveNavItem: function () { var path = window.location.pathname; this.queryAll('[data-hook=navigation] a').forEach(function (aTag) { if (path.indexOf(aTag.pathname) === 0 && aTag.getAttribute('href') !== '#' && aTag.pathname !== '/') { //if (aTag.pathname === path) { Dom.addClass(aTag.parentNode, 'active'); } else { Dom.removeClass(aTag.parentNode, 'active'); } }); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/activities.js
JavaScript
'use strict'; var RestCollection = require('ampersand-rest-collection'); var ApiCollectionMixin = require('./mixins/api-collection'); var App = require('ampersand-app'); var ActivityModel = require('./activity'); var ActivityCollection = RestCollection.extend(ApiCollectionMixin, { comparator: 'name', url: function () { return App.apiUrl + '/activities'; }, model: ActivityModel }); module.exports = ActivityCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/activity-histories.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Model = require('ampersand-state'); var Collection = require('ampersand-rest-collection'); var ApiCollectionMixin = require('./mixins/api-collection'); var Sets = require('./sets'); var ActivityHistory = Model.extend({ props: { name: 'string', workout_name: 'string', workout_date: 'string', comment: 'string' }, derived: { hasComment: { deps: ['comment'], fn: function () { if (this.comment) { return true; } return false; } }, showUrl: { deps: ['workout_date'], fn: function () { return '/workouts/' + this.workout_date; } } }, collections: { sets: Sets } }); var ActivityHistories = Collection.extend(ApiCollectionMixin, { model: ActivityHistory, comparator: 'workout_date', initialize: function (opts) { this.id = opts.id; }, url: function () { return App.apiUrl + '/activities/' + this.id + '/history'; } }); module.exports = ActivityHistories;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/activity.js
JavaScript
'use strict'; var Collection = require('ampersand-collection'); var Model = require('ampersand-model'); var ApiModelMixin = require('./mixins/api-model'); var App = require('ampersand-app'); var AliasModel = Model.extend(ApiModelMixin, { urlRoot: function () { return App.apiUrl + '/activities'; }, props: { id: 'string', activity_id: 'string', name: 'string' } }); var AliasCollection = Collection.extend({ comparator: 'name', model: AliasModel }); var ActivityModel = Model.extend(ApiModelMixin, { urlRoot: function () { return App.apiUrl + '/activities'; }, props: { id: 'string', activity_id: 'string', name: 'string', alias: 'string' }, derived: { displayName: { deps: ['name', 'alias'], fn: function () { return this.alias || this.name; } }, historyUrl: { deps: ['id'], fn: function () { if (this.id) { return '/activities/' + this.id + '/history'; } return '#'; } } }, collections: { aliases: AliasCollection } }); module.exports = ActivityModel;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/admin-users.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Collection = require('ampersand-rest-collection'); var State = require('ampersand-state'); var ApiMixin = require('./mixins/api-collection'); var AdminUser = State.extend({ props: { id: 'string', name: 'string', email: 'string', validated: 'boolean', activities: 'number', workouts: 'number', invites: 'number' } }); var AdminUsersCollection = Collection.extend(ApiMixin, { url: function () { return App.apiUrl + '/admin/users'; }, model: AdminUser }); module.exports = AdminUsersCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/invite.js
JavaScript
'use strict'; var Model = require('ampersand-model'); var ApiMixin = require('./mixins/api-model'); var App = require('ampersand-app'); module.exports = Model.extend(ApiMixin, { urlRoot: function () { return App.apiUrl + '/invites'; }, type: 'invite', idAttribute: 'token', props: { token: 'string' } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/invites.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Collection = require('ampersand-rest-collection'); var ApiMixin = require('./mixins/api-collection'); var InviteModel = require('./invite'); var InviteCollection = Collection.extend(ApiMixin, { url: function () { return App.apiUrl + '/user/invites'; }, model: InviteModel }); module.exports = InviteCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/lift531.js
JavaScript
'use strict'; var Model = require('ampersand-state'); var multipliers = [ [0.4, 0.5, 0.6], //Warmup [0.65, 0.75, 0.85], //Wave 1 [0.7, 0.8, 0.9], //Wave 2 [0.75, 0.85, 0.95] //Wave 3 ]; var nearest = function (weight) { return (5 * Math.round(weight / 5)); }; //Warmup is wave 0 //Sets start at 1 var calculate = function (wave, set, weight) { var multiplier = multipliers[wave][set]; if (weight > 0) { return String(nearest(weight * multiplier)) + ' lb'; } }; //We should just re-render whenever it changes then we could //keep these in an array/object module.exports = Model.extend({ props: { name: 'string', weight: 'number', reps: 'number', extra: 'number', goal: 'number' }, derived: { //Whether or not this is ready to render ready: { deps: ['weight', 'reps'], fn: function () { return (this.weight > 0 && this.reps > 0); } }, //Theoretical one rep max calculated: { deps: ['weight', 'reps'], fn: function () { if (this.weight > 0 && this.reps > 0) { return ( (this.weight * this.reps / 30) + this.weight ); } } }, //Training one rep max training: { deps: ['calculated', 'extra'], fn: function () { var calculated = this.calculated; //If we reference it directly we get NaN somehow? if (calculated !== undefined) { calculated = calculated * 0.9; if (this.extra > 0) { calculated = calculated + this.extra; } } return calculated; } }, waves: { deps: ['training'], fn: function () { return [[ //Warmups calculate(0, 0, this.training), calculate(0, 1, this.training), calculate(0, 2, this.training) ], [ //Wave 1 calculate(1, 0, this.training), calculate(1, 1, this.training), calculate(1, 2, this.training) ], [ //Wave 2 calculate(2, 0, this.training), calculate(2, 1, this.training), calculate(2, 2, this.training) ], [ //Wave 3 calculate(3, 0, this.training), calculate(3, 1, this.training), calculate(3, 2, this.training) ]]; } } } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/me.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Model = require('ampersand-model'); var ApiMixin = require('./mixins/api-model'); var InviteCollection = require('./invites'); module.exports = Model.extend(ApiMixin, { url: function () { return App.apiUrl + '/user'; }, type: 'user', initialize: function () { this.listenToAndRun(App, 'accessToken', function () { this.loggedIn = App.accessToken !== undefined; if (this.loggedIn) { this.fetch({ success: function () { App.workoutSummaries.fetch({ reset: true, success: function () { App.workoutSummaries.fetched = true; } }); } }); } }); }, props: { id: 'string', name: 'string', email: 'string', validated: 'boolean', preferences: 'object', scope: 'array', password: 'string', passwordConfirm: 'string' }, derived: { isAdmin: { deps: ['scope'], fn: function () { if (!this.scope) { return false; } return this.scope.indexOf('admin') > -1; } }, invalid: { deps: ['validated'], fn: function () { return !this.validated; } }, displayName: { deps: ['loggedIn', 'name'], fn: function () { if (this.loggedIn) { return this.name; } return 'Log in'; } }, link: { deps: ['loggedIn'], fn: function () { if (this.loggedIn) { return '/me'; } return '/login'; } }, weightLb: { deps: ['preferences'], fn: function () { if (this.preferences.weightUnit === 'lb') { return true; } return false; } } }, session: { loggedIn: ['boolean', true, false] }, collections: { invites: InviteCollection }, authenticate: function (email, password, options) { var payload = { email: email, password: password }; var syncOptions = { url: App.apiUrl + '/user/login', json: payload, success: options.success, error: options.error }; this.sync('create', this, syncOptions); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/mixins/api-collection.js
JavaScript
'use strict'; //Base mixin for collections to interact w/ api var App = require('ampersand-app'); var Sync = require('ampersand-sync'); module.exports = { links: {}, next: function () { if (this.links && this.links.next) { this.fetch({ url: this.links.next, reset: true }); } }, hasNext: function () { return this.links && this.links.next; }, prev: function () { if (this.links && this.links.prev) { this.fetch({ url: this.links.prev, reset: true }); } }, hasPrev: function () { return this.links && this.links.prev; }, ajaxConfig: function () { var headers = {}; if (App.accessToken) { headers.Authorization = 'Bearer ' + App.accessToken; } return { headers: headers }; }, sync: function (event, collection, options) { var self = this; var error = options.error; var success = options.success; self.links = {}; options.error = function (resp) { //4xx errors that aren't 404 //if (resp.statusCode > 400 && resp.statusCode !== 404 && resp.statusCode !== 409 && resp.statusCode < 500) { if (resp.statusCode === 401 || resp.statusCode === 403) { App.setAccessToken(undefined); } if (error) { error(collection, resp, options); } }; options.success = function (body, ignored, resp) { var link = resp.headers.link; if (link) { //Adapted from https://github.com/mikedeboer/node-github/blob/7f7e14b4fc3e64110bb7b9b069674ef804f4a0f6/index.js#L414 link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, function (m, uri, type) { self.links[type] = uri; }); } if (success) { success(body, ignored, resp); } }; return Sync.apply(this, arguments); } };
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/mixins/api-model.js
JavaScript
'use strict'; //Base mixin for models to interact w/ api var App = require('ampersand-app'); var Model = require('ampersand-model'); module.exports = { ajaxConfig: function () { var headers = {}; if (App.accessToken) { headers.Authorization = 'Bearer ' + App.accessToken; } return { headers: headers }; }, sync: function (event, model, options) { var error = options.error; options.error = function (resp) { //4xx errors that aren't 404 //if (resp.statusCode > 400 && resp.statusCode !== 404 && resp.statusCode !== 409 && resp.statusCode < 500) { if (resp.statusCode === 401 || resp.statusCode === 403) { App.setAccessToken(undefined); } if (error) { error(model, resp, options); } }; return Model.prototype.sync.apply(this, arguments); } };
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/sets.js
JavaScript
'use strict'; var Model = require('ampersand-state'); var Collection = require('ampersand-collection'); var SetModel = Model.extend({ props: { 'weight': 'number', 'reps': 'number', 'time': 'number', 'distance': 'number', 'unit': 'string', 'pr': ['boolean', true, false] }, derived: { formattedFull: { deps: ['distance', 'weight', 'reps', 'unit'], fn: function formattedFull() { var formatted = []; if (this.time) { formatted.push(this.formattedTime); } if (this.time && this.distance) { formatted.push('|'); } if (this.distance) { formatted.push(this.distance); formatted.push(this.unit); } if (this.weight) { formatted.push(this.weight); formatted.push(this.unit); } if (this.weight && this.reps) { formatted.push('x'); } if (this.reps) { formatted.push(this.reps); if (this.reps === 1) { formatted.push('rep'); } else { formatted.push('reps'); } } return formatted.join(' '); } }, formattedShort: { deps: ['distance', 'weight', 'reps', 'unit'], fn: function formattedShort() { var formatted = []; if (this.time) { formatted.push(this.formattedTime); } if (this.time && this.distance) { formatted.push('|'); } if (this.distance) { formatted.push(this.distance); formatted.push(' '); if (this.unit === 'miles') { formatted.push('mi'); } else { formatted.push('km'); } } if (this.weight) { formatted.push(this.weight); } if (this.weight && this.reps) { formatted.push('x'); } if (this.reps) { formatted.push(this.reps); } return formatted.join(''); } }, formattedTime: { deps: ['time'], fn: function () { var segments = []; var segment = this.time % 60; if (segment === 0) { segment = '00'; } segments.unshift(segment); if (this.time > 60) { segment = (this.time - this.time % 60) % 3600 / 60; if (segment === 0) { segment = '00'; } segments.unshift(segment); if (this.time > 3600) { segment = (this.time - this.time % 3600) / 3600; if (segment === 0) { segment = '00'; } segments.unshift(segment); } } return segments.join(':'); } } } }); var SetCollection = Collection.extend({ model: SetModel }); module.exports = SetCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/suggestions.js
JavaScript
'use strict'; var Collection = require('ampersand-collection'); var Model = require('ampersand-state'); var SuggestionModel = Model.extend({ props: { id: 'string', activity_id: 'string', name: 'string', rank: 'number' } }); var SuggestionCollection = Collection.extend({ model: SuggestionModel, comparator: 'rank' }); module.exports = SuggestionCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/wendler531.js
JavaScript
'use strict'; var Model = require('ampersand-state'); var LiftModel = require('./lift531'); module.exports = Model.extend({ initialize: function () { this.ohp.name = 'OHP'; this.squat.name = 'Squat'; this.bench.name = 'Bench'; this.deadlift.name = 'Deadlift'; if (localStorage && localStorage.wendler531) { try { this.set(JSON.parse(localStorage.wendler531)); } catch (err) { localStorage.wendler531 = undefined; } } }, save: function () { if (localStorage) { localStorage.wendler531 = JSON.stringify(this.toJSON()); } }, children: { ohp: LiftModel, squat: LiftModel, bench: LiftModel, deadlift: LiftModel } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/workout-activities.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Collection = require('ampersand-collection'); var Model = require('ampersand-model'); var ApiMixin = require('./mixins/api-model'); var Sets = require('./sets'); var Suggestions = require('./suggestions'); var ActivityModel = Model.extend(ApiMixin, { urlRoot: function () { return App.apiUrl + '/activities'; }, initialize: function (attrs, options) { var self = this; if (options && options.fetch) { self.fetch({ url: App.apiUrl + '/suggest/activities/' + encodeURIComponent(self.name) }); } self.listenTo(self.suggestions, 'add remove reset', function () { self.hasSuggestions = self.suggestions.length > 0; }); }, props: { id: 'string', activity_id: 'string', alias: 'string', comment: 'string', name: ['string', true] }, collections: { sets: Sets, suggestions: Suggestions }, session: { hasSuggestions: 'boolean' }, derived: { displayName: { deps: ['name', 'alias'], fn: function () { return this.alias || this.name; } }, hasComment: { deps: ['comment'], fn: function () { if (this.comment) { return true; } return false; } }, ready: { deps: ['id'], fn: function () { return !this.isNew(); } }, historyUrl: { deps: ['id'], fn: function () { if (this.id) { return '/activities/' + this.id + '/history'; } return '#'; } } } }); var ActivityCollection = Collection.extend({ model: ActivityModel, indexes: ['name'] }); module.exports = ActivityCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/workout-summaries.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Collection = require('ampersand-rest-collection'); var State = require('ampersand-state'); var ApiMixin = require('./mixins/api-collection'); var WorkoutSummary = State.extend({ idAttribute: 'date', props: { id: 'string', name: 'string', date: 'string', activities: 'number' }, derived: { activityLabel: { deps: ['activities'], fn: function () { if (this.activities === 1) { return '1 activity'; } return String(this.activities) + ' activities'; } }, link: { deps: ['date'], fn: function () { return '/workouts/' + this.date; } }, datetime: { deps: ['date'], fn: function () { return new Date(this.date); } } } }); var WorkoutSummaryCollection = Collection.extend(ApiMixin, { comparator: 'date', url: function () { return App.apiUrl + '/workouts'; }, fetched: false, model: WorkoutSummary }); module.exports = WorkoutSummaryCollection;
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/models/workout.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Model = require('ampersand-model'); var ApiMixin = require('./mixins/api-model'); var Activities = require('./workout-activities'); var Moment = require('moment'); var dateId = function (date) { return Moment(date).format('YYYY-MM-DD'); }; module.exports = Model.extend(ApiMixin, { urlRoot: function () { return App.apiUrl + '/workouts'; }, props: { id: 'string', name: ['string', true, 'My Workout'], date: ['date', true, function () { return new Date(); }], raw_date: 'string', user_name: 'string', visible: 'boolean', raw: 'string' }, session: { exists: 'boolean', lastInGroup: 'boolean' //used for sharing styles }, collections: { activities: Activities }, parse: function (resp) { if (resp && resp.date) { resp.date = Moment(resp.date, 'YYYY-MM-DD'); } return resp; }, serialize: function () { var res = Model.prototype.serialize.apply(this, arguments); res.date = this.dateId; return res; }, fetchPublic: function (opts) { opts.url = App.apiUrl + '/public/workouts/' + this.id; this.fetch(opts); }, derived: { canShare: { deps: ['visible'], fn: function () { if (this.visible === null && App.me.preferences) { return App.me.preferences.visible; } return this.visible; } }, shareLink: { deps: ['id'], fn: function () { return App.portalUrl + '/public/workouts/' + this.id; } }, editLink: { deps: ['dateId'], fn: function () { return '/workouts/' + this.dateId + '/edit'; } }, formattedDate: { deps: ['date'], fn: function () { if (App.me.preferences) { return Moment(this.date).format(App.me.preferences.dateFormat); } //TODO add user_date_format for public workouts return Moment(this.date).format('dddd, MMM Do YYYY'); } }, dateId: { deps: ['date'], fn: function () { return dateId(this.date); } } } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/about.js
JavaScript
'use strict'; var View = require('ampersand-view'); module.exports = View.extend({ template: require('../templates/pages/about.pug'), session: { assetsUrl: 'string' } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/activities.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Dom = require('ampersand-dom'); var View = require('ampersand-view'); var ActivityView = require('../views/user-activity'); module.exports = View.extend({ template: require('../templates/pages/activities.pug'), initialize: function () { this.collection.fetch({ reset: true }); }, events: { 'click [data-hook=activities-prev]': 'prevActivities', 'click [data-hook=activities-next]': 'nextActivities', 'submit form[data-hook=activity-form]': 'addActivity' }, rePaginate: function () { var next = this.queryByHook('activities-next'); var prev = this.queryByHook('activities-prev'); if (this.collection.hasNext()) { Dom.removeClass(next, 'disabled'); Dom.removeAttribute(next, 'disabled'); } if (this.collection.hasPrev()) { Dom.removeClass(prev, 'disabled'); Dom.removeAttribute(prev, 'disabled'); } }, render: function () { this.renderWithTemplate(this); this.renderCollection(this.collection, ActivityView, this.queryByHook('activities')); this.cacheElements({ activityModal: '[data-hook=activity-modal]' }); this.listenToAndRun(this.collection, 'reset', this.rePaginate); $(this.el).foundation(); }, addActivity: function (e) { e.preventDefault(); App.view.message = ''; var self = this; var name = self.query('[name=activity]').value; if (!name) { return; } var activity = new this.collection.model({ name: name }); activity.save(null, { success: function () { self.collection.add(activity); self.query('[name=activity]').value = ''; }, error: function (model, newActivity, ctx) { if (ctx.xhr.status === 409) { $(self.queryByHook('activity-exists')).foundation('reveal', 'open'); } else { App.view.message = 'Unknown error trying to save activity'; } } }); }, prevActivities: function () { var prev = this.queryByHook('activities-prev'); Dom.addClass(prev, 'disabled'); Dom.addAttribute(prev, 'disabled'); this.collection.prev(); }, nextActivities: function () { var next = this.queryByHook('activities-next'); Dom.addClass(next, 'disabled'); Dom.addAttribute(next, 'disabled'); this.collection.next(); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/activity-history.js
JavaScript
'use strict'; var Dom = require('ampersand-dom'); var View = require('ampersand-view'); var ActivityView = require('../views/activity-history'); module.exports = View.extend({ template: require('../templates/pages/activity-history.pug'), initialize: function () { this.model.fetch(); this.collection.fetch({ sort: true, reset: true }); }, rePaginate: function () { var next = this.queryByHook('activities-next'); var prev = this.queryByHook('activities-prev'); if (this.collection.hasNext()) { Dom.removeClass(next, 'disabled'); Dom.removeAttribute(next, 'disabled'); } if (this.collection.hasPrev()) { Dom.removeClass(prev, 'disabled'); Dom.removeAttribute(prev, 'disabled'); } }, bindings: { 'model.displayName': { type: 'text', hook: 'activity-name' } }, render: function () { this.renderWithTemplate(); this.renderCollection(this.collection, ActivityView, this.queryByHook('activity-history')); this.listenToAndRun(this.collection, 'reset', this.rePaginate); }, events: { 'click [data-hook=activities-prev]': 'prevActivities', 'click [data-hook=activities-next]': 'nextActivities' }, prevActivities: function () { var prev = this.queryByHook('activities-prev'); Dom.addClass(prev, 'disabled'); Dom.addAttribute(prev, 'disabled'); this.collection.prev(); }, nextActivities: function () { var next = this.queryByHook('activities-next'); Dom.addClass(next, 'disabled'); Dom.addAttribute(next, 'disabled'); this.collection.next(); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/admin.js
JavaScript
'use strict'; var View = require('ampersand-view'); var AdminUserView = require('../views/admin-user'); module.exports = View.extend({ template: require('../templates/pages/admin.pug'), initialize: function () { this.collection.fetch(); }, render: function () { this.renderWithTemplate(this); this.renderCollection(this.collection, AdminUserView, this.queryByHook('users')); return this; } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/edit-workout.js
JavaScript
'use strict'; var Caber = require('caber'); var Debounce = require('lodash.debounce'); var Moment = require('moment'); var App = require('ampersand-app'); var View = require('ampersand-view'); var ActivityView = require('../views/workout-activity-short'); var dateFormats = [ 'MM/DD/YYYY', 'YYYY/MM/DD', 'MM-DD-YYYY', 'YYYY-MM-DD', 'dddd' ]; module.exports = View.extend({ template: require('../templates/pages/new-workout.pug'), initialize: function (options) { if (options.date) { this.template = require('../templates/pages/edit-workout.pug'); this.date = options.date; var workoutSummary = App.workoutSummaries.get(options.date); if (!workoutSummary) { this.template = require('../templates/pages/not-found.pug'); } else { this.model.id = workoutSummary.id; this.model.date = workoutSummary.date + ' 00:00'; this.model.fetch(); } } this.throttledParse = Debounce(this.userInputChanged, 1000); this.listenTo(this.model, 'change:date', this.checkExisting); this.listenToOnce(App.workoutSummaries, 'reset', this.checkExisting); }, events: { 'input [data-hook=workout-input]': 'throttledParse', 'input [data-hook=name-input]': 'setName', 'input [data-hook=date-input]': 'setDate', 'submit form': 'saveWorkout' }, session: { 'working': 'boolean', 'save': ['string', true, 'Save'] }, checkExisting: function (model, newDate, ctx) { if (!ctx || !ctx.xhr) { var date = Moment(newDate).format('YYYY-MM-DD'); var exists = App.workoutSummaries.get(date); if (!this.model.id && exists) { return $(this.queryByHook('workout-exists')).foundation('reveal', 'open'); } if (this.model.id && (date !== this.date) && exists) { return $(this.queryByHook('workout-exists')).foundation('reveal', 'open'); } } }, bindings: { save: { type: 'attribute', name: 'value', hook: 'save-workout' }, working: { type: 'booleanClass', hook: 'save-workout', name: 'disabled' }, 'model.raw': { type: 'text', hook: 'workout-input' }, 'model.name': { type: 'text', hook: 'workout-name' }, 'model.formattedDate': { type: 'text', hook: 'workout-date' } }, derived: { smartLabel: { deps: ['smartMode'], fn: function () { if (this.smartMode) { return 'on'; } return 'off'; } } }, render: function () { this.renderWithTemplate(); this.renderCollection(this.model.activities, ActivityView, this.queryByHook('workout-activities')); this.checkExisting(this.model, this.model.dateId); return this; }, setName: function (e) { var name = e.target.value; if (name === '') { this.model.unset('name'); } else { this.model.name = e.target.value; } }, setDate: function (e) { var date = e.target.value; if (date === '') { this.model.unset('date'); } else if (this.model.dateId !== Moment(e.target.value, dateFormats).format('YYYY-MM-DD')) { this.model.date = Moment(e.target.value, dateFormats); } }, userInputChanged: function (e) { this.parseWorkout(e.target); }, addActivities: function (activities) { //TODO figure out how to make this not bump name changes to the bottom of the pile var activityNames = []; //We need to do a janky merge by alternate index so that our search() functions only have to run once //find things to add activities.forEach(function (activity, i) { activityNames.push(activity.name); if (!this.model.activities.get(activity.name, 'name')) { this.model.activities.add(activity, { fetch: true, at: i }); } else { this.model.activities.get(activity.name, 'name').set({ comment: undefined }); this.model.activities.get(activity.name, 'name').set(activity); } }, this); //find things to remove this.model.activities.forEach(function (activity) { if (activityNames.indexOf(activity.name) === -1) { this.model.activities.remove(activity); } }, this); }, parseWorkout: function (el) { var data = el.value; this.model.raw = data; if (!data) { this.model.unset('name'); if (this.model.dateId !== Moment().format('YYYY-MM-DD')) { this.model.unset('date'); } this.model.raw_date = workout.rawDate; this.model.activities.reset(); return; } var workout = Caber.workout(data, App.me.preferences.weightUnit); if (workout.name) { this.model.name = workout.name; } else { this.model.unset('name'); } if (workout.date) { if (workout.rawDate !== this.model.raw_date) { this.model.date = workout.date; } } else if (this.model.dateId !== Moment().format('YYYY-MM-DD')) { if (!this.model.id) { this.model.unset('date'); } } this.model.raw_date = workout.rawDate; this.addActivities(workout.activities); }, saveWorkout: function (e) { e.preventDefault(); var self = this; App.view.message = ''; var ready = self.model.activities.every(function (activity) { return activity.ready; }); if (this.model.activities.length === 0) { return $(self.queryByHook('workout-empty')).foundation('reveal', 'open'); } if (!ready) { return $(self.queryByHook('new-activities')).foundation('reveal', 'open'); } self.save = 'Saving…'; self.working = true; self.model.save(null, { success: function (saved) { if (self.date) { App.workoutSummaries.remove({ date: self.date }); } App.workoutSummaries.add({ id: saved.id, date: saved.dateId, name: saved.name, activities: saved.activities.length }); App.navigate('/workouts/' + saved.dateId); }, error: function (model, newModel, ctx) { App.view.message = 'Unknown error saving workout.'; self.working = false; self.save = 'Save'; if (ctx.xhr.status === 409) { return $(self.queryByHook('workout-exists')).foundation('reveal', 'open'); } } }); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/home.js
JavaScript
'use strict'; var View = require('ampersand-view'); var App = require('ampersand-app'); module.exports = View.extend({ template: require('../templates/pages/home.pug'), initialize: function () { this.listenTo(App.me, 'change', this.render.bind(this)); }, session: { assetsUrl: 'string' }, events: { 'submit form': 'invite' }, render: function () { this.renderWithTemplate({ me: App.me, assetsUrl: this.assetsUrl }); $(this.el).foundation(); return this; }, invite: function (e) { e.preventDefault(); var inviteCode = this.query('[name=invite]').value; App.navigate('/signup?invite=' + encodeURIComponent(inviteCode)); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/index.js
JavaScript
'use strict'; module.exports = { 'not-found': require('./not-found'), about: require('./about'), admin: require('./admin'), activities: require('./activities'), activityHistory: require('./activity-history'), editWorkout: require('./edit-workout'), home: require('./home'), index: require('./index'), invites: require('./invites'), login: require('./login'), me: require('./me'), news: require('./news'), oldNews: require('./old-news'), privacy: require('./privacy'), publicWorkout: require('./public-workout'), recover: require('./recover'), showWorkout: require('./show-workout'), signup: require('./signup'), tools: require('./tools'), validate: require('./validate'), wendler531: require('./wendler531'), workouts: require('./workouts') };
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/invites.js
JavaScript
'use strict'; var View = require('ampersand-view'); var InviteView = View.extend({ template: require('../templates/views/user-invite.pug'), bindings: { 'model.token': { type: 'text', hook: 'token' } } }); module.exports = View.extend({ template: require('../templates/pages/invites.pug'), render: function () { this.renderWithTemplate(this); this.renderCollection(this.model.invites, InviteView, this.queryByHook('invites')); this.model.invites.fetch(); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/login.js
JavaScript
'use strict'; var View = require('ampersand-view'); var App = require('ampersand-app'); module.exports = View.extend({ template: require('../templates/pages/login.pug'), events: { 'submit form': 'authenticate' }, render: function () { if (App.me.loggedIn) { return App.navigate('/'); } this.renderWithTemplate(this); $(this.el).foundation(); return this; }, session: { 'working': 'boolean', 'login': ['string', true, 'Log in'] }, bindings: { login: { type: 'attribute', name: 'value', hook: 'login' }, working: { type: 'booleanClass', hook: 'login', name: 'disabled' } }, authenticate: function (e) { e.preventDefault(); var self = this; self.login = 'Logging in…'; self.working = true; App.view.message = ''; var email = self.query('[name=email]').value; var password = self.query('[name=password]').value; App.me.authenticate(email, password, { success: function (response) { App.setAccessToken(response.token); App.navigate('/'); }, error: function (model, resp) { //enable the page self.working = false; self.login = 'Log in'; App.log(resp); App.view.message = 'Invalid login. Please try again.'; } }); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/me.js
JavaScript
'use strict'; var View = require('ampersand-view'); var App = require('ampersand-app'); module.exports = View.extend({ template: require('../templates/pages/me.pug'), bindings: { 'model.validated': { type: 'toggle', hook: 'validated' }, 'model.name': { type: 'attribute', name: 'value', selector: '[name=name]' }, 'model.email': { type: 'attribute', name: 'value', selector: '[name=email]' }, 'model.invalid': { type: 'toggle', hook: 'invalid' }, 'model.preferences.visible': { type: 'booleanAttribute', name: 'checked', selector: '[name=visible]' }, 'model.weightLb': [{ type: 'booleanAttribute', name: 'checked', hook: 'weight-unit-lb' },{ type: 'booleanAttribute', name: 'checked', invert: true, hook: 'weight-unit-kg' }] }, events: { 'submit form': 'update' }, render: function () { this.renderWithTemplate(this); $(this.el).foundation(); return this; }, update: function (e) { var self = this; e.preventDefault(); App.view.message = ''; var visible = self.query('[name=visible]').checked; var name = self.query('[name=name]').value; var email = self.query('[name=email]').value; var currentPassword = self.query('[name=currentPassword]').value; var newPassword = self.query('[name=newPassword]').value; var confirmPassword = self.query('[name=confirmPassword]').value; var weightUnit = self.query('[name=weightUnit]:checked').value; var attrs = {}; var hasPreferences = false; attrs.preferences = Object.assign({}, self.model.preferences); if (visible !== self.model.preferences.visible) { hasPreferences = true; attrs.preferences.visible = visible; } if (weightUnit !== self.model.preferences.weightUnit) { hasPreferences = true; attrs.preferences.weightUnit = weightUnit; } if (!hasPreferences) { delete attrs.preferences; } attrs.currentPassword = currentPassword; if (name !== self.model.name) { attrs.name = name; } if (email !== self.model.email) { attrs.email = email; } if (newPassword && confirmPassword) { attrs.newPassword = newPassword; attrs.confirmPassword = confirmPassword; } App.log('saving %j', attrs); if (Object.keys(attrs).length === 1) { App.view.message = 'You didn\'t change anything'; return; } self.model.save(attrs, { patch: true, success: function () { App.view.message = 'Saved your new info'; self.query('[name=currentPassword]').value = ''; self.query('[name=newPassword]').value = ''; self.query('[name=currentPassword]').value = ''; }, error: function () { App.view.message = 'There was an error saving your info!'; } }); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/news.js
JavaScript
'use strict'; var View = require('ampersand-view'); module.exports = View.extend({ template: require('../templates/pages/news.pug'), session: { assetsUrl: 'string' } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/not-found.js
JavaScript
'use strict'; var View = require('ampersand-view'); module.exports = View.extend({ template: require('../templates/pages/not-found.pug') });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/old-news.js
JavaScript
'use strict'; var View = require('ampersand-view'); module.exports = View.extend({ template: require('../templates/pages/old-news.pug'), session: { assetsUrl: 'string' } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/privacy.js
JavaScript
'use strict'; var View = require('ampersand-view'); module.exports = View.extend({ template: require('../templates/pages/privacy.pug') });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/public-workout.js
JavaScript
'use strict'; var View = require('ampersand-view'); var ActivityView = require('../views/workout-activity'); var ActivityShortView = require('../views/workout-activity-short'); var ActivityBindings = Object.assign({}, ActivityView.prototype.bindings); var ActivityShortBindings = Object.assign({}, ActivityShortView.prototype.bindings); delete ActivityBindings['model.historyUrl']; delete ActivityShortBindings['model.historyUrl']; var PublicActivityView = ActivityView.extend({ bindings: ActivityBindings }); var PublicActivityShortView = ActivityShortView.extend({ bindings: ActivityShortBindings }); module.exports = View.extend({ template: require('../templates/pages/public-workout.pug'), initialize: function () { this.format = window.location.hash.slice(1) || 'short'; }, props: { format: 'string' }, bindings: { format: [{ type: 'switch', cases: { 'long': '[data-hook=long-format]', 'short': '[data-hook=short-format]', 'raw': '[data-hook=raw-format]' } }, { type: 'switchClass', name: 'active', cases: { 'long': '[data-hook=format-nav-long]', 'short': '[data-hook=format-nav-short]', 'raw': '[data-hook=format-nav-raw]' } }], 'model.user_name': { type: 'text', hook: 'workout-user' }, 'model.name': { type: 'text', hook: 'workout-name' }, 'model.formattedDate': { type: 'text', hook: 'workout-date' }, 'model.raw': { type: 'text', hook: 'raw' } }, events: { 'click [data-hook=change-format]': 'changeFormat' }, render: function () { var self = this; self.renderWithTemplate(); self.renderCollection(self.model.activities, PublicActivityView, self.queryByHook('activities-long')); self.renderCollection(self.model.activities, PublicActivityShortView, self.queryByHook('activities-short')); self.model.fetchPublic({ error: function () { self.template = require('../templates/pages/not-found.pug'); self.renderWithTemplate(); } }); }, changeFormat: function (e) { e.preventDefault(); this.format = e.target.hash.slice(1); window.location.hash = this.format; } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/recover.js
JavaScript
'use strict'; var View = require('ampersand-view'); var Querystring = require('querystring'); var ViewSwitcher = require('ampersand-view-switcher'); var RequestView = require('../views/request-recover'); var RecoverView = require('../views/recover'); module.exports = View.extend({ template: require('../templates/pages/recover.pug'), session: { 'code': 'string' }, render: function () { var params = Querystring.parse(window.location.search.slice('1')); this.token = params.token && params.token.replace(/\s+/, ''); this.renderWithTemplate(this); this.queryByHook('stage').innerHTML = ''; //This clears out the static content this.stages = new ViewSwitcher(this.queryByHook('stage'), { show: function (view) { $(view.el).foundation(); } }); if (this.token) { return this.stages.set(new RecoverView({ parent: this })); } return this.stages.set(new RequestView()); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/show-workout.js
JavaScript
'use strict'; var App = require('ampersand-app'); var View = require('ampersand-view'); var ActivityView = require('../views/workout-activity'); var ActivityShortView = require('../views/workout-activity-short'); var WorkoutShareView = require('../views/workout-share'); var DeleteButtonsView = View.extend({ template: require('../templates/views/delete-workout.pug'), events: { 'click [data-hook=delete-workout]': 'deleteWorkout' }, deleteWorkout: function () { var dateId = this.model.dateId; this.parent.closeDelete(); App.workoutSummaries.remove({ date: dateId }); this.model.destroy({ success: function (model, resp, options) { App.navigate('/workouts'); } }); } }); module.exports = View.extend({ template: require('../templates/pages/show-workout.pug'), session: { format: 'string' }, initialize: function (options) { this.format = window.location.hash.slice(1) || 'short'; var workoutSummary = App.workoutSummaries.get(options.date); if (!workoutSummary) { this.template = require('../templates/pages/not-found.pug'); } else { this.model.id = workoutSummary.id; this.model.fetch(); } }, bindings: { format: [{ type: 'switch', cases: { 'long': '[data-hook=long-format]', 'short': '[data-hook=short-format]', 'raw': '[data-hook=raw-format]', 'share': '[data-hook=share-format]' } }, { type: 'switchClass', name: 'active', cases: { 'long': '[data-hook=format-nav-long]', 'short': '[data-hook=format-nav-short]', 'raw': '[data-hook=format-nav-raw]', 'share': '[data-hook=format-nav-share]' } }], 'model.name': { type: 'text', hook: 'workout-name' }, 'model.formattedDate': { type: 'text', hook: 'workout-date' }, 'model.raw': { type: 'text', hook: 'raw' }, 'model.editLink': { type: 'attribute', hook: 'edit-link', name: 'href' }, 'model.dateId': { type: 'text', hook: 'workout-id' } }, events: { 'click [data-hook=change-format]': 'changeFormat', 'click [data-hook=confirm-delete]': 'confirmDelete' }, render: function () { this.renderWithTemplate(); this.cacheElements({ deleteModal: '[data-hook=delete-modal]' }); this.renderSubview(new WorkoutShareView({ model: this.model }), this.queryByHook('share-format')); this.renderSubview(new DeleteButtonsView({ model: this.model }), this.queryByHook('delete-modal')); this.renderCollection(this.model.activities, ActivityView, this.queryByHook('activities-long')); this.renderCollection(this.model.activities, ActivityShortView, this.queryByHook('activities-short')); $(this.el).foundation(); return this; }, changeFormat: function (e) { e.preventDefault(); this.format = e.target.hash.slice(1); window.location.hash = this.format; }, confirmDelete: function () { $(this.deleteModal).foundation('reveal', 'open'); }, closeDelete: function () { $(this.deleteModal).foundation('reveal', 'close'); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/signup.js
JavaScript
'use strict'; var View = require('ampersand-view'); var Querystring = require('querystring'); var ViewSwitcher = require('ampersand-view-switcher'); var InviteView = require('../views/invite'); var SignupView = require('../views/signup'); var InviteModel = require('../models/invite'); module.exports = View.extend({ template: require('../templates/pages/signup.pug'), initialize: function () { var params = Querystring.parse(window.location.search.slice('1')); var token = params.invite && params.invite.replace(/\s+/, ''); this.invite = new InviteModel({ token: token }); this.listenTo(this, 'change:stage', this.renderStage.bind(this)); }, session: { 'stage': 'string' }, render: function () { this.renderWithTemplate(this); this.queryByHook('stage').innerHTML = ''; //This clears out the static content this.stages = new ViewSwitcher(this.queryByHook('stage'), { show: function (view) { $(view.el).foundation(); } }); this.stage = 'invite'; return this; }, renderStage: function () { if (this.stage === 'signup') { return this.stages.set(new SignupView({ model: this.invite, parent: this })); } return this.stages.set(new InviteView({ model: this.invite, parent: this })); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/tools.js
JavaScript
'use strict'; var View = require('ampersand-view'); module.exports = View.extend({ template: require('../templates/pages/tools.pug') });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/validate.js
JavaScript
'use strict'; var View = require('ampersand-view'); var Querystring = require('querystring'); var ViewSwitcher = require('ampersand-view-switcher'); var RequestView = require('../views/request-validation'); var ValidateView = require('../views/validate'); var ValidatedView = View.extend({ template: require('../templates/views/validated.pug') }); module.exports = View.extend({ template: require('../templates/pages/validate.pug'), initialize: function () { this.listenTo(this, 'change:stage', this.renderStage.bind(this), { show: function (view) { $(view.el).foundation(); } }); }, session: { 'token': 'string', 'stage': 'string' }, render: function () { var params = Querystring.parse(window.location.search.slice('1')); this.token = params.token && params.token.replace(/\s+/, ''); this.renderWithTemplate(this); this.stages = new ViewSwitcher(this.queryByHook('stage')); if (this.model.validated) { this.stage = 'validated'; } else if (this.token) { this.stage = 'validate'; } else { this.stage = 'request'; } return this; }, renderStage: function () { if (this.stage === 'validated') { return this.stages.set(new ValidatedView()); } if (this.stage === 'validate') { return this.stages.set(new ValidateView({ parent: this })); } return this.stages.set(new RequestView({ model: this.model })); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/wendler531.js
JavaScript
'use strict'; var View = require('ampersand-view'); var LiftView = require('../views/lift531'); var Debounce = require('lodash.debounce'); var fuzzyNumber = function fuzzyNumber(value) { if (value !== '') { return Number(value); } return undefined; }; module.exports = View.extend({ template: require('../templates/pages/wendler531.pug'), bindings: { 'model.ohp.ready': { type: 'toggle', hook: 'ohp-results' }, 'model.squat.ready': { type: 'toggle', hook: 'squat-results' }, 'model.bench.ready': { type: 'toggle', hook: 'bench-results' }, 'model.deadlift.ready': { type: 'toggle', hook: 'deadlift-results' } }, initialize: function () { this.saveModel = Debounce(this.model.save.bind(this.model), 250); }, render: function () { this.renderWithTemplate(this); this.renderSubview(new LiftView({ model: this.model.ohp }), this.queryByHook('ohp-results')); this.renderSubview(new LiftView({ model: this.model.squat }), this.queryByHook('squat-results')); this.renderSubview(new LiftView({ model: this.model.bench }), this.queryByHook('bench-results')); this.renderSubview(new LiftView({ model: this.model.deadlift }), this.queryByHook('deadlift-results')); }, events: { 'input [data-hook=ohp-weight]': 'setOHPWeight', 'input [data-hook=ohp-reps]': 'setOHPReps', 'input [data-hook=ohp-extra]': 'setOHPExtra', 'input [data-hook=squat-weight]': 'setSquatWeight', 'input [data-hook=squat-reps]': 'setSquatReps', 'input [data-hook=squat-extra]': 'setSquatExtra', 'input [data-hook=bench-weight]': 'setBenchWeight', 'input [data-hook=bench-reps]': 'setBenchReps', 'input [data-hook=bench-extra]': 'setBenchExtra', 'input [data-hook=deadlift-weight]': 'setDeadliftWeight', 'input [data-hook=deadlift-reps]': 'setDeadliftReps', 'input [data-hook=deadlift-extra]': 'setDeadliftExtra' }, setOHPWeight: function (e) { e.preventDefault(); this.model.ohp.weight = fuzzyNumber(e.target.value); this.saveModel(); }, setOHPReps: function (e) { e.preventDefault(); this.model.ohp.reps = fuzzyNumber(e.target.value); this.saveModel(); }, setOHPExtra: function (e) { e.preventDefault(); this.model.ohp.extra = fuzzyNumber(e.target.value); this.saveModel(); }, setSquatWeight: function (e) { e.preventDefault(); this.model.squat.weight = fuzzyNumber(e.target.value); this.saveModel(); }, setSquatReps: function (e) { e.preventDefault(); this.model.squat.reps = fuzzyNumber(e.target.value); this.saveModel(); }, setSquatExtra: function (e) { e.preventDefault(); this.model.squat.extra = fuzzyNumber(e.target.value); this.saveModel(); }, setBenchWeight: function (e) { e.preventDefault(); this.model.bench.weight = fuzzyNumber(e.target.value); this.saveModel(); }, setBenchReps: function (e) { e.preventDefault(); this.model.bench.reps = fuzzyNumber(e.target.value); this.saveModel(); }, setBenchExtra: function (e) { e.preventDefault(); this.model.bench.extra = fuzzyNumber(e.target.value); this.saveModel(); }, setDeadliftWeight: function (e) { e.preventDefault(); this.model.deadlift.weight = fuzzyNumber(e.target.value); this.saveModel(); }, setDeadliftReps: function (e) { e.preventDefault(); this.model.deadlift.reps = fuzzyNumber(e.target.value); this.saveModel(); }, setDeadliftExtra: function (e) { e.preventDefault(); this.model.deadlift.extra = fuzzyNumber(e.target.value); this.saveModel(); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar
client/pages/workouts.js
JavaScript
'use strict'; var App = require('ampersand-app'); var Dom = require('ampersand-dom'); var PaginatedSubcollection = require('ampersand-paginated-subcollection'); var View = require('ampersand-view'); var SummaryView = require('../views/workout-summary'); var perPage = 5; module.exports = View.extend({ initialize: function () { this.workoutSummaries = new PaginatedSubcollection(App.workoutSummaries, { limit: perPage }); }, rePaginate: function () { var offset = App.workoutSummaries.length - perPage; var prev = this.queryByHook('workouts-prev'); Dom.removeClass(prev, 'disabled'); Dom.removeAttribute(prev, 'disabled'); if (offset < 0) { offset = 0; } if (offset === 0) { Dom.addClass(prev, 'disabled'); Dom.addAttribute(prev, 'disabled'); } this.workoutSummaries.configure({ offset: offset }); }, render: function () { this.renderWithTemplate(); this.renderCollection(this.workoutSummaries, SummaryView, this.queryByHook('summaries')); this.listenToAndRun(App.workoutSummaries, 'reset', this.rePaginate); }, template: require('../templates/pages/workouts.pug'), events: { 'click [data-hook=workouts-prev]': 'prevWorkouts', 'click [data-hook=workouts-next]': 'nextWorkouts' }, prevWorkouts: function () { var prev = this.queryByHook('workouts-prev'); var next = this.queryByHook('workouts-next'); var offset = this.workoutSummaries.offset - perPage; Dom.removeClass(next, 'disabled'); Dom.removeAttribute(next, 'disabled'); Dom.removeClass(prev, 'disabled'); Dom.removeAttribute(prev, 'disabled'); if (offset < 0) { offset = 0; } if (offset === 0) { Dom.addAttribute(prev, 'disabled'); Dom.addClass(prev, 'disabled'); } this.workoutSummaries.configure({ offset: offset }); }, nextWorkouts: function () { var prev = this.queryByHook('workouts-prev'); var next = this.queryByHook('workouts-next'); var max = App.workoutSummaries.length - perPage; var offset = this.workoutSummaries.offset + perPage; Dom.removeClass(next, 'disabled'); Dom.removeAttribute(next, 'disabled'); Dom.removeClass(prev, 'disabled'); Dom.removeAttribute(prev, 'disabled'); if (offset + perPage > App.workoutSummaries.length) { offset = max; } if (offset === max) { Dom.addAttribute(next, 'disabled'); Dom.addClass(next, 'disabled'); } this.workoutSummaries.configure({ offset: offset }); } });
wraithgar/lift.zone
0
JavaScript
wraithgar
Gar