All new website files
@@ -0,0 +1,2 @@
|
|||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Image Credits
|
||||||
|
|
||||||
|
All images courtesy of Unsplash (https://unsplash.com).
|
||||||
|
|
||||||
|
- Martin Grincevschi (https://unsplash.com/photos/uCnOENPOBxM)
|
||||||
|
- Pete Bellis (https://unsplash.com/photos/eDVQwVMLMgU)
|
||||||
|
- Ciprian Lipenschi (https://unsplash.com/photos/OULAwYI3AGs)
|
||||||
|
- Michael Dam (https://unsplash.com/photos/mEZ3PoFGs_k)
|
||||||
|
- rawpixel.com (https://unsplash.com/photos/izTZ-TtdwCs)
|
||||||
|
|
||||||
|
# Video Credits
|
||||||
|
|
||||||
|
Video courtesy of Coverr (http://coverr.co).
|
||||||
|
After Width: | Height: | Size: 434 KiB |
@@ -0,0 +1,351 @@
|
|||||||
|
/* breakpoints.js v0.1-dev | @ajlkn | MIT licensed */
|
||||||
|
|
||||||
|
var breakpoints = (function() { "use strict"; var _ = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List.
|
||||||
|
* @var {array}
|
||||||
|
*/
|
||||||
|
list: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Media cache.
|
||||||
|
* @var {object}
|
||||||
|
*/
|
||||||
|
media: {},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Events.
|
||||||
|
* @var {array}
|
||||||
|
*/
|
||||||
|
events: [],
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize.
|
||||||
|
* @param {array} list List.
|
||||||
|
*/
|
||||||
|
init: function(list) {
|
||||||
|
|
||||||
|
// Set list.
|
||||||
|
_.list = list;
|
||||||
|
|
||||||
|
// Add event listeners.
|
||||||
|
window.addEventListener('resize', _.poll);
|
||||||
|
window.addEventListener('orientationchange', _.poll);
|
||||||
|
window.addEventListener('load', _.poll);
|
||||||
|
window.addEventListener('fullscreenchange', _.poll);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines if a given query is active.
|
||||||
|
* @param {string} query Query.
|
||||||
|
* @return {bool} True if yes, false if no.
|
||||||
|
*/
|
||||||
|
active: function(query) {
|
||||||
|
|
||||||
|
var breakpoint, op, media,
|
||||||
|
a, x, y, units;
|
||||||
|
|
||||||
|
// Media for this query doesn't exist? Generate it.
|
||||||
|
if (!(query in _.media)) {
|
||||||
|
|
||||||
|
// Determine operator, breakpoint.
|
||||||
|
|
||||||
|
// Greater than or equal.
|
||||||
|
if (query.substr(0, 2) == '>=') {
|
||||||
|
|
||||||
|
op = 'gte';
|
||||||
|
breakpoint = query.substr(2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than or equal.
|
||||||
|
else if (query.substr(0, 2) == '<=') {
|
||||||
|
|
||||||
|
op = 'lte';
|
||||||
|
breakpoint = query.substr(2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Greater than.
|
||||||
|
else if (query.substr(0, 1) == '>') {
|
||||||
|
|
||||||
|
op = 'gt';
|
||||||
|
breakpoint = query.substr(1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than.
|
||||||
|
else if (query.substr(0, 1) == '<') {
|
||||||
|
|
||||||
|
op = 'lt';
|
||||||
|
breakpoint = query.substr(1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not.
|
||||||
|
else if (query.substr(0, 1) == '!') {
|
||||||
|
|
||||||
|
op = 'not';
|
||||||
|
breakpoint = query.substr(1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equal.
|
||||||
|
else {
|
||||||
|
|
||||||
|
op = 'eq';
|
||||||
|
breakpoint = query;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build media.
|
||||||
|
if (breakpoint && breakpoint in _.list) {
|
||||||
|
|
||||||
|
a = _.list[breakpoint];
|
||||||
|
|
||||||
|
// Range.
|
||||||
|
if (Array.isArray(a)) {
|
||||||
|
|
||||||
|
x = parseInt(a[0]);
|
||||||
|
y = parseInt(a[1]);
|
||||||
|
|
||||||
|
if (!isNaN(x))
|
||||||
|
units = a[0].substr(String(x).length);
|
||||||
|
else if (!isNaN(y))
|
||||||
|
units = a[1].substr(String(y).length);
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Max only.
|
||||||
|
if (isNaN(x)) {
|
||||||
|
|
||||||
|
switch (op) {
|
||||||
|
|
||||||
|
// Greater than or equal (>= 0 / anything)
|
||||||
|
case 'gte':
|
||||||
|
media = 'screen';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Less than or equal (<= y)
|
||||||
|
case 'lte':
|
||||||
|
media = 'screen and (max-width: ' + y + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Greater than (> y)
|
||||||
|
case 'gt':
|
||||||
|
media = 'screen and (min-width: ' + (y + 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Less than (< 0 / invalid)
|
||||||
|
case 'lt':
|
||||||
|
media = 'screen and (max-width: -1px)';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Not (> y)
|
||||||
|
case 'not':
|
||||||
|
media = 'screen and (min-width: ' + (y + 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Equal (<= y)
|
||||||
|
default:
|
||||||
|
media = 'screen and (max-width: ' + y + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Min only.
|
||||||
|
else if (isNaN(y)) {
|
||||||
|
|
||||||
|
switch (op) {
|
||||||
|
|
||||||
|
// Greater than or equal (>= x)
|
||||||
|
case 'gte':
|
||||||
|
media = 'screen and (min-width: ' + x + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Less than or equal (<= inf / anything)
|
||||||
|
case 'lte':
|
||||||
|
media = 'screen';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Greater than (> inf / invalid)
|
||||||
|
case 'gt':
|
||||||
|
media = 'screen and (max-width: -1px)';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Less than (< x)
|
||||||
|
case 'lt':
|
||||||
|
media = 'screen and (max-width: ' + (x - 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Not (< x)
|
||||||
|
case 'not':
|
||||||
|
media = 'screen and (max-width: ' + (x - 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Equal (>= x)
|
||||||
|
default:
|
||||||
|
media = 'screen and (min-width: ' + x + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Min and max.
|
||||||
|
else {
|
||||||
|
|
||||||
|
switch (op) {
|
||||||
|
|
||||||
|
// Greater than or equal.
|
||||||
|
case 'gte':
|
||||||
|
media = 'screen and (min-width: ' + x + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Less than or equal.
|
||||||
|
case 'lte':
|
||||||
|
media = 'screen and (max-width: ' + y + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Greater than.
|
||||||
|
case 'gt':
|
||||||
|
media = 'screen and (min-width: ' + (y + 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Less than.
|
||||||
|
case 'lt':
|
||||||
|
media = 'screen and (max-width: ' + (x - 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Not.
|
||||||
|
case 'not':
|
||||||
|
media = 'screen and (max-width: ' + (x - 1) + units + '), screen and (min-width: ' + (y + 1) + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
// Equal.
|
||||||
|
default:
|
||||||
|
media = 'screen and (min-width: ' + x + units + ') and (max-width: ' + y + units + ')';
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// String.
|
||||||
|
else {
|
||||||
|
|
||||||
|
// Missing a media type? Prefix with "screen".
|
||||||
|
if (a.charAt(0) == '(')
|
||||||
|
media = 'screen and ' + a;
|
||||||
|
|
||||||
|
// Otherwise, use as-is.
|
||||||
|
else
|
||||||
|
media = a;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cache.
|
||||||
|
_.media[query] = (media ? media : false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
_.media[query] === false
|
||||||
|
? false
|
||||||
|
: window.matchMedia(_.media[query]).matches
|
||||||
|
);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Registers an event.
|
||||||
|
* @param {string} query Query.
|
||||||
|
* @param {function} handler Handler.
|
||||||
|
*/
|
||||||
|
on: function(query, handler) {
|
||||||
|
|
||||||
|
// Register event.
|
||||||
|
_.events.push({
|
||||||
|
query: query,
|
||||||
|
handler: handler,
|
||||||
|
state: false
|
||||||
|
});
|
||||||
|
|
||||||
|
// Query active *right now*? Call handler.
|
||||||
|
if (_.active(query))
|
||||||
|
(handler)();
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Polls for events.
|
||||||
|
*/
|
||||||
|
poll: function() {
|
||||||
|
|
||||||
|
var i, e;
|
||||||
|
|
||||||
|
// Step through events.
|
||||||
|
for (i=0; i < _.events.length; i++) {
|
||||||
|
|
||||||
|
// Get event.
|
||||||
|
e = _.events[i];
|
||||||
|
|
||||||
|
// Active?
|
||||||
|
if (_.active(e.query)) {
|
||||||
|
|
||||||
|
// Hasn't been called yet?
|
||||||
|
if (!e.state) {
|
||||||
|
|
||||||
|
// Mark as called.
|
||||||
|
e.state = true;
|
||||||
|
|
||||||
|
// Call handler.
|
||||||
|
(e.handler)();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Otherwise ...
|
||||||
|
else {
|
||||||
|
|
||||||
|
// Previously called?
|
||||||
|
if (e.state) {
|
||||||
|
|
||||||
|
// Unmark as called.
|
||||||
|
e.state = false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
}; function __(list) { _.init(list); }; __._ = _; __.on = function(query, handler) { _.on(query, handler); }; __.active = function(query) { return _.active(query); }; return __; })();
|
||||||
|
|
||||||
|
// UMD Wrapper (github.com/umdjs/umd/blob/master/returnExports.js | @umdjs + @nason)
|
||||||
|
(function(root, factory) {
|
||||||
|
|
||||||
|
// AMD.
|
||||||
|
if (typeof define === 'function' && define.amd)
|
||||||
|
define([], factory);
|
||||||
|
|
||||||
|
// Node.
|
||||||
|
else if (typeof exports === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
|
||||||
|
// Breakpoints global.
|
||||||
|
else
|
||||||
|
root.breakpoints = factory();
|
||||||
|
|
||||||
|
}(this, function() { return breakpoints; }));
|
||||||
@@ -0,0 +1,166 @@
|
|||||||
|
/* browser.js v0.1-dev | @ajlkn | MIT licensed */
|
||||||
|
|
||||||
|
var browser = (function() { "use strict"; var _ = {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name.
|
||||||
|
* @var {string}
|
||||||
|
*/
|
||||||
|
name: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Version.
|
||||||
|
* @var {float}
|
||||||
|
*/
|
||||||
|
version: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OS.
|
||||||
|
* @var {string}
|
||||||
|
*/
|
||||||
|
os: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* OS version.
|
||||||
|
* @var {float}
|
||||||
|
*/
|
||||||
|
osVersion: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Touch.
|
||||||
|
* @var {bool}
|
||||||
|
*/
|
||||||
|
touch: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mobile.
|
||||||
|
* @var {bool}
|
||||||
|
*/
|
||||||
|
mobile: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Temporary element for canUse()
|
||||||
|
* @var {DOMElement}
|
||||||
|
*/
|
||||||
|
_canUse: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determines if the browser supports a given property.
|
||||||
|
* @param {string} p Property.
|
||||||
|
* @return {bool} True if property is supported, false if not.
|
||||||
|
*/
|
||||||
|
canUse: function(p) {
|
||||||
|
|
||||||
|
// Create temporary element if it doesn't already exist.
|
||||||
|
if (!_._canUse)
|
||||||
|
_._canUse = document.createElement('div');
|
||||||
|
|
||||||
|
// Check for property.
|
||||||
|
var e = _._canUse.style,
|
||||||
|
up = p.charAt(0).toUpperCase() + p.slice(1);
|
||||||
|
|
||||||
|
return (
|
||||||
|
p in e
|
||||||
|
|| ('Moz' + up) in e
|
||||||
|
|| ('Webkit' + up) in e
|
||||||
|
|| ('O' + up) in e
|
||||||
|
|| ('ms' + up) in e
|
||||||
|
);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize.
|
||||||
|
*/
|
||||||
|
init: function() {
|
||||||
|
|
||||||
|
var x, y, a, i, ua = navigator.userAgent;
|
||||||
|
|
||||||
|
// name, version.
|
||||||
|
x = 'other';
|
||||||
|
y = 0;
|
||||||
|
a = [
|
||||||
|
['firefox', /Firefox\/([0-9\.]+)/],
|
||||||
|
['bb', /BlackBerry.+Version\/([0-9\.]+)/],
|
||||||
|
['bb', /BB[0-9]+.+Version\/([0-9\.]+)/],
|
||||||
|
['opera', /OPR\/([0-9\.]+)/],
|
||||||
|
['opera', /Opera\/([0-9\.]+)/],
|
||||||
|
['edge', /Edge\/([0-9\.]+)/],
|
||||||
|
['safari', /Version\/([0-9\.]+).+Safari/],
|
||||||
|
['chrome', /Chrome\/([0-9\.]+)/],
|
||||||
|
['ie', /MSIE ([0-9]+)/],
|
||||||
|
['ie', /Trident\/.+rv:([0-9]+)/]
|
||||||
|
];
|
||||||
|
|
||||||
|
for (i=0; i < a.length; i++) {
|
||||||
|
|
||||||
|
if (ua.match(a[i][1])) {
|
||||||
|
|
||||||
|
x = a[i][0];
|
||||||
|
y = parseFloat(RegExp.$1);
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_.name = x;
|
||||||
|
_.version = y;
|
||||||
|
|
||||||
|
// os, osVersion.
|
||||||
|
x = 'other';
|
||||||
|
y = 0;
|
||||||
|
a = [
|
||||||
|
['ios', /([0-9_]+) like Mac OS X/, function(v) { return v.replace('_', '.').replace('_', ''); }],
|
||||||
|
['ios', /CPU like Mac OS X/, function(v) { return 0 }],
|
||||||
|
['wp', /Windows Phone ([0-9\.]+)/, null],
|
||||||
|
['android', /Android ([0-9\.]+)/, null],
|
||||||
|
['mac', /Macintosh.+Mac OS X ([0-9_]+)/, function(v) { return v.replace('_', '.').replace('_', ''); }],
|
||||||
|
['windows', /Windows NT ([0-9\.]+)/, null],
|
||||||
|
['bb', /BlackBerry.+Version\/([0-9\.]+)/, null],
|
||||||
|
['bb', /BB[0-9]+.+Version\/([0-9\.]+)/, null]
|
||||||
|
];
|
||||||
|
|
||||||
|
for (i=0; i < a.length; i++) {
|
||||||
|
|
||||||
|
if (ua.match(a[i][1])) {
|
||||||
|
|
||||||
|
x = a[i][0];
|
||||||
|
y = parseFloat( a[i][2] ? (a[i][2])(RegExp.$1) : RegExp.$1 );
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_.os = x;
|
||||||
|
_.osVersion = y;
|
||||||
|
|
||||||
|
// touch.
|
||||||
|
_.touch = (_.os == 'wp' ? (navigator.msMaxTouchPoints > 0) : !!('ontouchstart' in window));
|
||||||
|
|
||||||
|
// mobile.
|
||||||
|
_.mobile = (_.os == 'wp' || _.os == 'android' || _.os == 'ios' || _.os == 'bb');
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
}; _.init(); return _; })();
|
||||||
|
|
||||||
|
// UMD Wrapper (github.com/umdjs/umd/blob/master/returnExports.js | @umdjs + @nason)
|
||||||
|
(function(root, factory) {
|
||||||
|
|
||||||
|
// AMD.
|
||||||
|
if (typeof define === 'function' && define.amd)
|
||||||
|
define([], factory);
|
||||||
|
|
||||||
|
// Node.
|
||||||
|
else if (typeof exports === 'object')
|
||||||
|
module.exports = factory();
|
||||||
|
|
||||||
|
// Browser global.
|
||||||
|
else
|
||||||
|
root.browser = factory();
|
||||||
|
|
||||||
|
}(this, function() { return browser; }));
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
Industrious by TEMPLATED
|
||||||
|
templated.co @templatedco
|
||||||
|
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
||||||
|
*/
|
||||||
|
(function($) {
|
||||||
|
|
||||||
|
var $window = $(window),
|
||||||
|
$banner = $('#banner'),
|
||||||
|
$body = $('body');
|
||||||
|
|
||||||
|
// Breakpoints.
|
||||||
|
breakpoints({
|
||||||
|
default: ['1681px', null ],
|
||||||
|
xlarge: ['1281px', '1680px' ],
|
||||||
|
large: ['981px', '1280px' ],
|
||||||
|
medium: ['737px', '980px' ],
|
||||||
|
small: ['481px', '736px' ],
|
||||||
|
xsmall: ['361px', '480px' ],
|
||||||
|
xxsmall: [null, '360px' ]
|
||||||
|
});
|
||||||
|
|
||||||
|
// Play initial animations on page load.
|
||||||
|
$window.on('load', function() {
|
||||||
|
window.setTimeout(function() {
|
||||||
|
$body.removeClass('is-preload');
|
||||||
|
}, 100);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Menu.
|
||||||
|
$('#menu')
|
||||||
|
.append('<a href="#menu" class="close"></a>')
|
||||||
|
.appendTo($body)
|
||||||
|
.panel({
|
||||||
|
target: $body,
|
||||||
|
visibleClass: 'is-menu-visible',
|
||||||
|
delay: 500,
|
||||||
|
hideOnClick: true,
|
||||||
|
hideOnSwipe: true,
|
||||||
|
resetScroll: true,
|
||||||
|
resetForms: true,
|
||||||
|
side: 'right'
|
||||||
|
});
|
||||||
|
|
||||||
|
})(jQuery);
|
||||||
@@ -0,0 +1,587 @@
|
|||||||
|
(function($) {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generate an indented list of links from a nav. Meant for use with panel().
|
||||||
|
* @return {jQuery} jQuery object.
|
||||||
|
*/
|
||||||
|
$.fn.navList = function() {
|
||||||
|
|
||||||
|
var $this = $(this);
|
||||||
|
$a = $this.find('a'),
|
||||||
|
b = [];
|
||||||
|
|
||||||
|
$a.each(function() {
|
||||||
|
|
||||||
|
var $this = $(this),
|
||||||
|
indent = Math.max(0, $this.parents('li').length - 1),
|
||||||
|
href = $this.attr('href'),
|
||||||
|
target = $this.attr('target');
|
||||||
|
|
||||||
|
b.push(
|
||||||
|
'<a ' +
|
||||||
|
'class="link depth-' + indent + '"' +
|
||||||
|
( (typeof target !== 'undefined' && target != '') ? ' target="' + target + '"' : '') +
|
||||||
|
( (typeof href !== 'undefined' && href != '') ? ' href="' + href + '"' : '') +
|
||||||
|
'>' +
|
||||||
|
'<span class="indent-' + indent + '"></span>' +
|
||||||
|
$this.text() +
|
||||||
|
'</a>'
|
||||||
|
);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return b.join('');
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Panel-ify an element.
|
||||||
|
* @param {object} userConfig User config.
|
||||||
|
* @return {jQuery} jQuery object.
|
||||||
|
*/
|
||||||
|
$.fn.panel = function(userConfig) {
|
||||||
|
|
||||||
|
// No elements?
|
||||||
|
if (this.length == 0)
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
// Multiple elements?
|
||||||
|
if (this.length > 1) {
|
||||||
|
|
||||||
|
for (var i=0; i < this.length; i++)
|
||||||
|
$(this[i]).panel(userConfig);
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vars.
|
||||||
|
var $this = $(this),
|
||||||
|
$body = $('body'),
|
||||||
|
$window = $(window),
|
||||||
|
id = $this.attr('id'),
|
||||||
|
config;
|
||||||
|
|
||||||
|
// Config.
|
||||||
|
config = $.extend({
|
||||||
|
|
||||||
|
// Delay.
|
||||||
|
delay: 0,
|
||||||
|
|
||||||
|
// Hide panel on link click.
|
||||||
|
hideOnClick: false,
|
||||||
|
|
||||||
|
// Hide panel on escape keypress.
|
||||||
|
hideOnEscape: false,
|
||||||
|
|
||||||
|
// Hide panel on swipe.
|
||||||
|
hideOnSwipe: false,
|
||||||
|
|
||||||
|
// Reset scroll position on hide.
|
||||||
|
resetScroll: false,
|
||||||
|
|
||||||
|
// Reset forms on hide.
|
||||||
|
resetForms: false,
|
||||||
|
|
||||||
|
// Side of viewport the panel will appear.
|
||||||
|
side: null,
|
||||||
|
|
||||||
|
// Target element for "class".
|
||||||
|
target: $this,
|
||||||
|
|
||||||
|
// Class to toggle.
|
||||||
|
visibleClass: 'visible'
|
||||||
|
|
||||||
|
}, userConfig);
|
||||||
|
|
||||||
|
// Expand "target" if it's not a jQuery object already.
|
||||||
|
if (typeof config.target != 'jQuery')
|
||||||
|
config.target = $(config.target);
|
||||||
|
|
||||||
|
// Panel.
|
||||||
|
|
||||||
|
// Methods.
|
||||||
|
$this._hide = function(event) {
|
||||||
|
|
||||||
|
// Already hidden? Bail.
|
||||||
|
if (!config.target.hasClass(config.visibleClass))
|
||||||
|
return;
|
||||||
|
|
||||||
|
// If an event was provided, cancel it.
|
||||||
|
if (event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Hide.
|
||||||
|
config.target.removeClass(config.visibleClass);
|
||||||
|
|
||||||
|
// Post-hide stuff.
|
||||||
|
window.setTimeout(function() {
|
||||||
|
|
||||||
|
// Reset scroll position.
|
||||||
|
if (config.resetScroll)
|
||||||
|
$this.scrollTop(0);
|
||||||
|
|
||||||
|
// Reset forms.
|
||||||
|
if (config.resetForms)
|
||||||
|
$this.find('form').each(function() {
|
||||||
|
this.reset();
|
||||||
|
});
|
||||||
|
|
||||||
|
}, config.delay);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Vendor fixes.
|
||||||
|
$this
|
||||||
|
.css('-ms-overflow-style', '-ms-autohiding-scrollbar')
|
||||||
|
.css('-webkit-overflow-scrolling', 'touch');
|
||||||
|
|
||||||
|
// Hide on click.
|
||||||
|
if (config.hideOnClick) {
|
||||||
|
|
||||||
|
$this.find('a')
|
||||||
|
.css('-webkit-tap-highlight-color', 'rgba(0,0,0,0)');
|
||||||
|
|
||||||
|
$this
|
||||||
|
.on('click', 'a', function(event) {
|
||||||
|
|
||||||
|
var $a = $(this),
|
||||||
|
href = $a.attr('href'),
|
||||||
|
target = $a.attr('target');
|
||||||
|
|
||||||
|
if (!href || href == '#' || href == '' || href == '#' + id)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Cancel original event.
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
// Hide panel.
|
||||||
|
$this._hide();
|
||||||
|
|
||||||
|
// Redirect to href.
|
||||||
|
window.setTimeout(function() {
|
||||||
|
|
||||||
|
if (target == '_blank')
|
||||||
|
window.open(href);
|
||||||
|
else
|
||||||
|
window.location.href = href;
|
||||||
|
|
||||||
|
}, config.delay + 10);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Event: Touch stuff.
|
||||||
|
$this.on('touchstart', function(event) {
|
||||||
|
|
||||||
|
$this.touchPosX = event.originalEvent.touches[0].pageX;
|
||||||
|
$this.touchPosY = event.originalEvent.touches[0].pageY;
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
$this.on('touchmove', function(event) {
|
||||||
|
|
||||||
|
if ($this.touchPosX === null
|
||||||
|
|| $this.touchPosY === null)
|
||||||
|
return;
|
||||||
|
|
||||||
|
var diffX = $this.touchPosX - event.originalEvent.touches[0].pageX,
|
||||||
|
diffY = $this.touchPosY - event.originalEvent.touches[0].pageY,
|
||||||
|
th = $this.outerHeight(),
|
||||||
|
ts = ($this.get(0).scrollHeight - $this.scrollTop());
|
||||||
|
|
||||||
|
// Hide on swipe?
|
||||||
|
if (config.hideOnSwipe) {
|
||||||
|
|
||||||
|
var result = false,
|
||||||
|
boundary = 20,
|
||||||
|
delta = 50;
|
||||||
|
|
||||||
|
switch (config.side) {
|
||||||
|
|
||||||
|
case 'left':
|
||||||
|
result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX > delta);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'right':
|
||||||
|
result = (diffY < boundary && diffY > (-1 * boundary)) && (diffX < (-1 * delta));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'top':
|
||||||
|
result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY > delta);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'bottom':
|
||||||
|
result = (diffX < boundary && diffX > (-1 * boundary)) && (diffY < (-1 * delta));
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (result) {
|
||||||
|
|
||||||
|
$this.touchPosX = null;
|
||||||
|
$this.touchPosY = null;
|
||||||
|
$this._hide();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prevent vertical scrolling past the top or bottom.
|
||||||
|
if (($this.scrollTop() < 0 && diffY < 0)
|
||||||
|
|| (ts > (th - 2) && ts < (th + 2) && diffY > 0)) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Event: Prevent certain events inside the panel from bubbling.
|
||||||
|
$this.on('click touchend touchstart touchmove', function(event) {
|
||||||
|
event.stopPropagation();
|
||||||
|
});
|
||||||
|
|
||||||
|
// Event: Hide panel if a child anchor tag pointing to its ID is clicked.
|
||||||
|
$this.on('click', 'a[href="#' + id + '"]', function(event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
config.target.removeClass(config.visibleClass);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Body.
|
||||||
|
|
||||||
|
// Event: Hide panel on body click/tap.
|
||||||
|
$body.on('click touchend', function(event) {
|
||||||
|
$this._hide(event);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Event: Toggle.
|
||||||
|
$body.on('click', 'a[href="#' + id + '"]', function(event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
|
config.target.toggleClass(config.visibleClass);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Window.
|
||||||
|
|
||||||
|
// Event: Hide on ESC.
|
||||||
|
if (config.hideOnEscape)
|
||||||
|
$window.on('keydown', function(event) {
|
||||||
|
|
||||||
|
if (event.keyCode == 27)
|
||||||
|
$this._hide(event);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Apply "placeholder" attribute polyfill to one or more forms.
|
||||||
|
* @return {jQuery} jQuery object.
|
||||||
|
*/
|
||||||
|
$.fn.placeholder = function() {
|
||||||
|
|
||||||
|
// Browser natively supports placeholders? Bail.
|
||||||
|
if (typeof (document.createElement('input')).placeholder != 'undefined')
|
||||||
|
return $(this);
|
||||||
|
|
||||||
|
// No elements?
|
||||||
|
if (this.length == 0)
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
// Multiple elements?
|
||||||
|
if (this.length > 1) {
|
||||||
|
|
||||||
|
for (var i=0; i < this.length; i++)
|
||||||
|
$(this[i]).placeholder();
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vars.
|
||||||
|
var $this = $(this);
|
||||||
|
|
||||||
|
// Text, TextArea.
|
||||||
|
$this.find('input[type=text],textarea')
|
||||||
|
.each(function() {
|
||||||
|
|
||||||
|
var i = $(this);
|
||||||
|
|
||||||
|
if (i.val() == ''
|
||||||
|
|| i.val() == i.attr('placeholder'))
|
||||||
|
i
|
||||||
|
.addClass('polyfill-placeholder')
|
||||||
|
.val(i.attr('placeholder'));
|
||||||
|
|
||||||
|
})
|
||||||
|
.on('blur', function() {
|
||||||
|
|
||||||
|
var i = $(this);
|
||||||
|
|
||||||
|
if (i.attr('name').match(/-polyfill-field$/))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (i.val() == '')
|
||||||
|
i
|
||||||
|
.addClass('polyfill-placeholder')
|
||||||
|
.val(i.attr('placeholder'));
|
||||||
|
|
||||||
|
})
|
||||||
|
.on('focus', function() {
|
||||||
|
|
||||||
|
var i = $(this);
|
||||||
|
|
||||||
|
if (i.attr('name').match(/-polyfill-field$/))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (i.val() == i.attr('placeholder'))
|
||||||
|
i
|
||||||
|
.removeClass('polyfill-placeholder')
|
||||||
|
.val('');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Password.
|
||||||
|
$this.find('input[type=password]')
|
||||||
|
.each(function() {
|
||||||
|
|
||||||
|
var i = $(this);
|
||||||
|
var x = $(
|
||||||
|
$('<div>')
|
||||||
|
.append(i.clone())
|
||||||
|
.remove()
|
||||||
|
.html()
|
||||||
|
.replace(/type="password"/i, 'type="text"')
|
||||||
|
.replace(/type=password/i, 'type=text')
|
||||||
|
);
|
||||||
|
|
||||||
|
if (i.attr('id') != '')
|
||||||
|
x.attr('id', i.attr('id') + '-polyfill-field');
|
||||||
|
|
||||||
|
if (i.attr('name') != '')
|
||||||
|
x.attr('name', i.attr('name') + '-polyfill-field');
|
||||||
|
|
||||||
|
x.addClass('polyfill-placeholder')
|
||||||
|
.val(x.attr('placeholder')).insertAfter(i);
|
||||||
|
|
||||||
|
if (i.val() == '')
|
||||||
|
i.hide();
|
||||||
|
else
|
||||||
|
x.hide();
|
||||||
|
|
||||||
|
i
|
||||||
|
.on('blur', function(event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
|
||||||
|
|
||||||
|
if (i.val() == '') {
|
||||||
|
|
||||||
|
i.hide();
|
||||||
|
x.show();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
x
|
||||||
|
.on('focus', function(event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']');
|
||||||
|
|
||||||
|
x.hide();
|
||||||
|
|
||||||
|
i
|
||||||
|
.show()
|
||||||
|
.focus();
|
||||||
|
|
||||||
|
})
|
||||||
|
.on('keypress', function(event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
x.val('');
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
// Events.
|
||||||
|
$this
|
||||||
|
.on('submit', function() {
|
||||||
|
|
||||||
|
$this.find('input[type=text],input[type=password],textarea')
|
||||||
|
.each(function(event) {
|
||||||
|
|
||||||
|
var i = $(this);
|
||||||
|
|
||||||
|
if (i.attr('name').match(/-polyfill-field$/))
|
||||||
|
i.attr('name', '');
|
||||||
|
|
||||||
|
if (i.val() == i.attr('placeholder')) {
|
||||||
|
|
||||||
|
i.removeClass('polyfill-placeholder');
|
||||||
|
i.val('');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
})
|
||||||
|
.on('reset', function(event) {
|
||||||
|
|
||||||
|
event.preventDefault();
|
||||||
|
|
||||||
|
$this.find('select')
|
||||||
|
.val($('option:first').val());
|
||||||
|
|
||||||
|
$this.find('input,textarea')
|
||||||
|
.each(function() {
|
||||||
|
|
||||||
|
var i = $(this),
|
||||||
|
x;
|
||||||
|
|
||||||
|
i.removeClass('polyfill-placeholder');
|
||||||
|
|
||||||
|
switch (this.type) {
|
||||||
|
|
||||||
|
case 'submit':
|
||||||
|
case 'reset':
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'password':
|
||||||
|
i.val(i.attr('defaultValue'));
|
||||||
|
|
||||||
|
x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
|
||||||
|
|
||||||
|
if (i.val() == '') {
|
||||||
|
i.hide();
|
||||||
|
x.show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
i.show();
|
||||||
|
x.hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'checkbox':
|
||||||
|
case 'radio':
|
||||||
|
i.attr('checked', i.attr('defaultValue'));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 'text':
|
||||||
|
case 'textarea':
|
||||||
|
i.val(i.attr('defaultValue'));
|
||||||
|
|
||||||
|
if (i.val() == '') {
|
||||||
|
i.addClass('polyfill-placeholder');
|
||||||
|
i.val(i.attr('placeholder'));
|
||||||
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
i.val(i.attr('defaultValue'));
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Moves elements to/from the first positions of their respective parents.
|
||||||
|
* @param {jQuery} $elements Elements (or selector) to move.
|
||||||
|
* @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
|
||||||
|
*/
|
||||||
|
$.prioritize = function($elements, condition) {
|
||||||
|
|
||||||
|
var key = '__prioritize';
|
||||||
|
|
||||||
|
// Expand $elements if it's not already a jQuery object.
|
||||||
|
if (typeof $elements != 'jQuery')
|
||||||
|
$elements = $($elements);
|
||||||
|
|
||||||
|
// Step through elements.
|
||||||
|
$elements.each(function() {
|
||||||
|
|
||||||
|
var $e = $(this), $p,
|
||||||
|
$parent = $e.parent();
|
||||||
|
|
||||||
|
// No parent? Bail.
|
||||||
|
if ($parent.length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Not moved? Move it.
|
||||||
|
if (!$e.data(key)) {
|
||||||
|
|
||||||
|
// Condition is false? Bail.
|
||||||
|
if (!condition)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Get placeholder (which will serve as our point of reference for when this element needs to move back).
|
||||||
|
$p = $e.prev();
|
||||||
|
|
||||||
|
// Couldn't find anything? Means this element's already at the top, so bail.
|
||||||
|
if ($p.length == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// Move element to top of parent.
|
||||||
|
$e.prependTo($parent);
|
||||||
|
|
||||||
|
// Mark element as moved.
|
||||||
|
$e.data(key, $p);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Moved already?
|
||||||
|
else {
|
||||||
|
|
||||||
|
// Condition is true? Bail.
|
||||||
|
if (condition)
|
||||||
|
return;
|
||||||
|
|
||||||
|
$p = $e.data(key);
|
||||||
|
|
||||||
|
// Move element back to its original location (using our placeholder).
|
||||||
|
$e.insertAfter($p);
|
||||||
|
|
||||||
|
// Unmark element as moved.
|
||||||
|
$e.removeData(key);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
})(jQuery);
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
/* Basic */
|
||||||
|
|
||||||
|
// MSIE: Required for IEMobile.
|
||||||
|
@-ms-viewport {
|
||||||
|
width: device-width;
|
||||||
|
}
|
||||||
|
|
||||||
|
// MSIE: Prevents scrollbar from overlapping content.
|
||||||
|
body {
|
||||||
|
-ms-overflow-style: scrollbar;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Ensures page width is always >=320px.
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
html, body {
|
||||||
|
min-width: 320px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set box model to border-box.
|
||||||
|
// Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
|
||||||
|
html {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
*, *:before, *:after {
|
||||||
|
box-sizing: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: _palette(bg);
|
||||||
|
|
||||||
|
// Stops initial animations until page loads.
|
||||||
|
&.is-preload {
|
||||||
|
*, *:before, *:after {
|
||||||
|
@include vendor('animation', 'none !important');
|
||||||
|
@include vendor('transition', 'none !important');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
// Reset.
|
||||||
|
// Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain)
|
||||||
|
|
||||||
|
html, body, div, span, applet, object,
|
||||||
|
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
|
||||||
|
pre, a, abbr, acronym, address, big, cite,
|
||||||
|
code, del, dfn, em, img, ins, kbd, q, s, samp,
|
||||||
|
small, strike, strong, sub, sup, tt, var, b,
|
||||||
|
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
|
||||||
|
form, label, legend, table, caption, tbody,
|
||||||
|
tfoot, thead, tr, th, td, article, aside,
|
||||||
|
canvas, details, embed, figure, figcaption,
|
||||||
|
footer, header, hgroup, menu, nav, output, ruby,
|
||||||
|
section, summary, time, mark, audio, video {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
font-size: 100%;
|
||||||
|
font: inherit;
|
||||||
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
|
article, aside, details, figcaption, figure,
|
||||||
|
footer, header, hgroup, menu, nav, section {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol, ul {
|
||||||
|
list-style:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote, q {
|
||||||
|
quotes: none;
|
||||||
|
|
||||||
|
&:before,
|
||||||
|
&:after {
|
||||||
|
content: '';
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
border-collapse: collapse;
|
||||||
|
border-spacing: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
-webkit-text-size-adjust: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
mark {
|
||||||
|
background-color: transparent;
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
input::-moz-focus-inner {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input, select, textarea {
|
||||||
|
-moz-appearance: none;
|
||||||
|
-webkit-appearance: none;
|
||||||
|
-ms-appearance: none;
|
||||||
|
appearance: none;
|
||||||
|
}
|
||||||
@@ -0,0 +1,214 @@
|
|||||||
|
/* Typography */
|
||||||
|
|
||||||
|
html {
|
||||||
|
font-size: 13pt;
|
||||||
|
|
||||||
|
@include breakpoint('<=xlarge') {
|
||||||
|
font-size: 11pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
font-size: 12pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
font-size: 11pt;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background-color: _palette(bg);
|
||||||
|
color: _palette(fg);
|
||||||
|
}
|
||||||
|
|
||||||
|
body, input, select, textarea {
|
||||||
|
font-family: _font(family);
|
||||||
|
font-weight: _font(weight);
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
@include vendor('transition', 'color #{_duration(transition)} ease-in-out');
|
||||||
|
text-decoration: underline;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
strong, b {
|
||||||
|
font-weight: _font(weight-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
em, i {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
&.special {
|
||||||
|
text-align:center;
|
||||||
|
margin-bottom: _size(element-margin) * 2;
|
||||||
|
|
||||||
|
p {
|
||||||
|
max-width: 75%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
font-weight: _font(weight-light);
|
||||||
|
line-height: 1.5;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin: 0 0 (_size(element-margin) * 0.75) 0;
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 3rem;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 2.25rem;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h5 {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h6 {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
h1 {
|
||||||
|
font-size: 2.75rem;
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sub {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
position: relative;
|
||||||
|
top: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
sup {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
position: relative;
|
||||||
|
top: -0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border-left: solid 0.5rem;
|
||||||
|
font-style: italic;
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
padding: (_size(element-margin) * 0.5) 0 (_size(element-margin) * 0.5) _size(element-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
border: solid 1px;
|
||||||
|
font-family: _font(family-fixed);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin: 0 0.25rem;
|
||||||
|
padding: 0.25rem 0.65rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
font-family: _font(family-fixed);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
|
||||||
|
code {
|
||||||
|
display: block;
|
||||||
|
line-height: 1.75;
|
||||||
|
padding: 1rem 1.5rem;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border: 0;
|
||||||
|
border-bottom: solid 1px;
|
||||||
|
margin: _size(element-margin) 0;
|
||||||
|
|
||||||
|
&.major {
|
||||||
|
margin: (_size(element-margin) * 2) 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-typography($p: null) {
|
||||||
|
$highlight: _palette($p, highlight);
|
||||||
|
|
||||||
|
@if $p != null {
|
||||||
|
background-color: _palette($p, bg);
|
||||||
|
color: _palette($p, fg);
|
||||||
|
}
|
||||||
|
|
||||||
|
input, select, textarea {
|
||||||
|
color: _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
@if $p == $highlight {
|
||||||
|
color: _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
color: _palette(accent1, bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
strong, b {
|
||||||
|
color: _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
color: _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border-left-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: _palette($p, border-bg);
|
||||||
|
border-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
border-bottom-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-typography;
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
/* Actions */
|
||||||
|
|
||||||
|
ul.actions {
|
||||||
|
@include vendor('display', 'flex');
|
||||||
|
cursor: default;
|
||||||
|
list-style: none;
|
||||||
|
margin-left: (_size(element-margin) * -0.5);
|
||||||
|
padding-left: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding: 0 0 0 (_size(element-margin) * 0.5);
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.special {
|
||||||
|
@include vendor('justify-content', 'center');
|
||||||
|
width: calc(100% + #{_size(element-margin) * 0.5});
|
||||||
|
}
|
||||||
|
|
||||||
|
&.stacked {
|
||||||
|
@include vendor('flex-direction', 'column');
|
||||||
|
margin-left: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding: (_size(element-margin) * 0.65) 0 0 0;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.fit {
|
||||||
|
width: calc(100% + #{_size(element-margin) * 0.5});
|
||||||
|
|
||||||
|
li {
|
||||||
|
@include vendor('flex-grow', '1');
|
||||||
|
@include vendor('flex-shrink', '1');
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.stacked {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
&:not(.fixed) {
|
||||||
|
@include vendor('flex-direction', 'column');
|
||||||
|
margin-left: 0;
|
||||||
|
width: 100% !important;
|
||||||
|
|
||||||
|
li {
|
||||||
|
@include vendor('flex-grow', '1');
|
||||||
|
@include vendor('flex-shrink', '1');
|
||||||
|
padding: (_size(element-margin) * 0.5) 0 0 0;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"],
|
||||||
|
button,
|
||||||
|
.button {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&.icon {
|
||||||
|
&:before {
|
||||||
|
margin-left: -0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
/* Box */
|
||||||
|
|
||||||
|
.box {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
box-shadow: 0px 0px 4px 1px _palette(border-lt);
|
||||||
|
padding: 3rem;
|
||||||
|
|
||||||
|
> :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.alt {
|
||||||
|
border: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-box($p: null) {
|
||||||
|
.box {
|
||||||
|
border-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-box;
|
||||||
@@ -0,0 +1,126 @@
|
|||||||
|
/* Button */
|
||||||
|
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"],
|
||||||
|
button,
|
||||||
|
.button {
|
||||||
|
@include vendor('appearance', 'none');
|
||||||
|
@include vendor('transition', (
|
||||||
|
'background-color #{_duration(transition)} ease-in-out',
|
||||||
|
'box-shadow #{_duration(transition)} ease-in-out',
|
||||||
|
'color #{_duration(transition)} ease-in-out'
|
||||||
|
));
|
||||||
|
border: 0;
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: _font(weight-bold);
|
||||||
|
height: _size(element-height);
|
||||||
|
line-height: _size(element-height);
|
||||||
|
padding: 0 1.75rem;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
|
&.small {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
height: _size(element-height) * 0.75;
|
||||||
|
line-height: _size(element-height) * 0.75;
|
||||||
|
padding: 0 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.large {
|
||||||
|
font-size: 1.35rem;
|
||||||
|
height: _size(element-height) * 1.25;
|
||||||
|
line-height: _size(element-height) * 1.25;
|
||||||
|
padding: 0 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.wide {
|
||||||
|
min-width: 13rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.icon {
|
||||||
|
&:before {
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.fit {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.disabled,
|
||||||
|
&:disabled {
|
||||||
|
@include vendor('pointer-events', 'none');
|
||||||
|
opacity: 0.25;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-button($p: null) {
|
||||||
|
$highlight: _palette($p, highlight);
|
||||||
|
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="reset"],
|
||||||
|
input[type="button"],
|
||||||
|
button,
|
||||||
|
.button {
|
||||||
|
background-color: transparent;
|
||||||
|
box-shadow: inset 0 0 0 1px _palette($p, fg-bold);
|
||||||
|
color: _palette($p, fg-bold) !important;
|
||||||
|
|
||||||
|
@if ($p == $highlight) {
|
||||||
|
&:hover {
|
||||||
|
background-color: transparentize(_palette($p, fg-bold), 0.9);
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: transparentize(_palette($p, fg-bold), 0.75);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
&:hover {
|
||||||
|
box-shadow: inset 0 0 0 1px _palette($highlight, bg);
|
||||||
|
color: _palette($highlight, bg) !important;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: transparentize(_palette($highlight, bg), 0.75);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.primary {
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
@if $p == $highlight {
|
||||||
|
background-color: _palette($p, fg-bold);
|
||||||
|
color: _palette($p, bg) !important;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: transparentize(_palette($p, fg-bold), 0.125);
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: transparentize(_palette($p, fg-bold), 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
background-color: _palette($highlight, bg);
|
||||||
|
color: _palette($highlight, fg-bold) !important;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: lighten(_palette($highlight, bg), 5);
|
||||||
|
box-shadow: none;
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
background-color: darken(_palette($highlight, bg), 5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-button;
|
||||||
@@ -0,0 +1,240 @@
|
|||||||
|
/* Form */
|
||||||
|
|
||||||
|
form {
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"],
|
||||||
|
input[type="password"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="url"],
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
@include vendor('appearance', 'none');
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
border: none;
|
||||||
|
border: solid 1px;
|
||||||
|
color: inherit;
|
||||||
|
display: block;
|
||||||
|
outline: 0;
|
||||||
|
padding: 0 1rem;
|
||||||
|
text-decoration: none;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&:invalid {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: _font(weight-bold);
|
||||||
|
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"],
|
||||||
|
input[type="password"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="url"] {
|
||||||
|
height: _size(element-height);
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
background-size: 1.25rem;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: calc(100% - 1rem) center;
|
||||||
|
height: _size(element-height);
|
||||||
|
padding-right: _size(element-height);
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
&::-ms-value {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&::-ms-expand {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"], {
|
||||||
|
@include vendor('appearance', 'none');
|
||||||
|
display: block;
|
||||||
|
float: left;
|
||||||
|
margin-right: -2rem;
|
||||||
|
opacity: 0;
|
||||||
|
width: 1rem;
|
||||||
|
z-index: -1;
|
||||||
|
|
||||||
|
& + label {
|
||||||
|
@include icon;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: _font(weight);
|
||||||
|
padding-left: (_size(element-height) * 0.6) + 0.875rem;
|
||||||
|
padding-right: 0.875rem;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
border: solid 1px;
|
||||||
|
content: '';
|
||||||
|
display: inline-block;
|
||||||
|
height: (_size(element-height) * 0.6);
|
||||||
|
left: 0;
|
||||||
|
line-height: (_size(element-height) * 0.575);
|
||||||
|
position: absolute;
|
||||||
|
text-align: center;
|
||||||
|
top: (_size(element-height) * -0.05);
|
||||||
|
width: (_size(element-height) * 0.6);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:checked + label {
|
||||||
|
&:before {
|
||||||
|
content: '\f00c';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"] {
|
||||||
|
& + label {
|
||||||
|
&:before {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="radio"] {
|
||||||
|
& + label {
|
||||||
|
&:before {
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-input-placeholder {
|
||||||
|
opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:-moz-placeholder {
|
||||||
|
opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-moz-placeholder {
|
||||||
|
opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:-ms-input-placeholder {
|
||||||
|
opacity: 1.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-form($p: null) {
|
||||||
|
$highlight: _palette($p, highlight);
|
||||||
|
|
||||||
|
label {
|
||||||
|
color: _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"],
|
||||||
|
input[type="password"],
|
||||||
|
input[type="email"],
|
||||||
|
input[type="tel"],
|
||||||
|
input[type="search"],
|
||||||
|
input[type="url"],
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
background-color: _palette($p, border-bg);
|
||||||
|
border-color: _palette($p, border);
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
@if $p == $highlight {
|
||||||
|
border-color: _palette($p, fg-bold);
|
||||||
|
box-shadow: 0 0 0 1px _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
border-color: _palette(accent1, bg);
|
||||||
|
box-shadow: 0 0 0 1px _palette(accent1, bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
background-image: svg-url("<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'><path d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='#{_palette($p, border)}' /></svg>");
|
||||||
|
|
||||||
|
option {
|
||||||
|
color: _palette($p, fg);
|
||||||
|
background-color: _palette($p, bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"],
|
||||||
|
input[type="radio"], {
|
||||||
|
& + label {
|
||||||
|
color: _palette($p, fg);
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
background: _palette($p, border-bg);
|
||||||
|
border-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:checked + label {
|
||||||
|
&:before {
|
||||||
|
@if $p == $highlight {
|
||||||
|
background-color: _palette($p, fg-bold);
|
||||||
|
border-color: _palette($p, fg-bold);
|
||||||
|
color: _palette($p, bg);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
background-color: _palette(accent1, bg);
|
||||||
|
border-color: _palette(accent1, bg);
|
||||||
|
color: _palette(accent1, fg-bold);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:focus + label {
|
||||||
|
&:before {
|
||||||
|
@if $p == $highlight {
|
||||||
|
border-color: _palette($p, fg-bold);
|
||||||
|
box-shadow: 0 0 0 1px _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
border-color: _palette(accent1, bg);
|
||||||
|
box-shadow: 0 0 0 1px _palette(accent1, bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-input-placeholder {
|
||||||
|
color: _palette($p, fg-light) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:-moz-placeholder {
|
||||||
|
color: _palette($p, fg-light) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-moz-placeholder {
|
||||||
|
color: _palette($p, fg-light) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
:-ms-input-placeholder {
|
||||||
|
color: _palette($p, fg-light) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-form;
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
/* Grid */
|
||||||
|
|
||||||
|
@include grid(3rem);
|
||||||
|
|
||||||
|
@include breakpoint('<=xlarge') {
|
||||||
|
@include grid(3rem, 'xlarge');
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=large') {
|
||||||
|
@include grid(1.5rem, 'large');
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
@include grid(1.5rem, 'medium');
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
@include grid(1.25rem, 'small');
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
@include grid(1.25rem, 'xsmall');
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
/* Highlights */
|
||||||
|
|
||||||
|
.highlights {
|
||||||
|
width: 100%;
|
||||||
|
margin: (_size(element-margin) * 1.25) 0;
|
||||||
|
|
||||||
|
@include flexgrid((
|
||||||
|
columns: 3,
|
||||||
|
gutters: 3rem,
|
||||||
|
vertical-align: stretch
|
||||||
|
));
|
||||||
|
|
||||||
|
.content {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
height: 100%;
|
||||||
|
padding: 3rem;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
font-size: 5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> div {
|
||||||
|
|
||||||
|
> :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
@include flexgrid-resize((
|
||||||
|
columns: 2,
|
||||||
|
gutters: 2rem,
|
||||||
|
prev-columns: 3
|
||||||
|
));
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
@include flexgrid-resize((
|
||||||
|
columns: 1,
|
||||||
|
gutters: 2rem,
|
||||||
|
prev-columns: (3, 2)
|
||||||
|
));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-highlights($p: null) {
|
||||||
|
$highlight: _palette($p, highlight);
|
||||||
|
|
||||||
|
.highlights {
|
||||||
|
.content {
|
||||||
|
background: _palette($p, bg);
|
||||||
|
box-shadow: 0px 0px 4px 1px _palette($p, border-lt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-highlights;
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/* Icon */
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
@include icon;
|
||||||
|
border-bottom: none;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
> .label {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/* Icons */
|
||||||
|
|
||||||
|
ul.icons {
|
||||||
|
cursor: default;
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 1rem 0 0;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
&:before {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
/* Image */
|
||||||
|
|
||||||
|
.image {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
border: 0;
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
img {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left,
|
||||||
|
&.right {
|
||||||
|
max-width: 40%;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.left {
|
||||||
|
float: left;
|
||||||
|
margin: 0 2rem 2rem 0;
|
||||||
|
top: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.right {
|
||||||
|
float: right;
|
||||||
|
margin: 0 0 2rem 2rem;
|
||||||
|
top: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.fit {
|
||||||
|
display: block;
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.main {
|
||||||
|
display: block;
|
||||||
|
margin: 0 0 (_size(element-margin) * 1.5) 0;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/* Inner */
|
||||||
|
|
||||||
|
.inner {
|
||||||
|
margin: 0 auto;
|
||||||
|
width: _size(inner-width);
|
||||||
|
max-width: calc(100% - 6rem);
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
max-width: calc(100% - 3rem);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,88 @@
|
|||||||
|
/* List */
|
||||||
|
|
||||||
|
ol {
|
||||||
|
list-style: decimal;
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
padding-left: 1.25rem;
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding-left: 0.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style: disc;
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
padding-left: 1rem;
|
||||||
|
|
||||||
|
li {
|
||||||
|
padding-left: 0.325rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.plain {
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
color: _palette(accent1,fg-bold);
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 1rem;
|
||||||
|
text-align:center;
|
||||||
|
width: 2rem;
|
||||||
|
height: 2rem;
|
||||||
|
line-height: 2rem;
|
||||||
|
background: rgba(0,0,0,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.alt {
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0;
|
||||||
|
|
||||||
|
li {
|
||||||
|
border-top: solid 1px;
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-top: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dl {
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
|
||||||
|
dt {
|
||||||
|
display: block;
|
||||||
|
font-weight: _font(weight-bold);
|
||||||
|
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
dd {
|
||||||
|
margin-left: (_size(element-margin) * 0.75);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-list($p: null) {
|
||||||
|
ul {
|
||||||
|
&.alt {
|
||||||
|
li {
|
||||||
|
border-top-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-list;
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
/* Table */
|
||||||
|
|
||||||
|
.table-wrapper {
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
margin: 0 0 _size(element-margin) 0;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
tr {
|
||||||
|
border: solid 1px;
|
||||||
|
border-left: 0;
|
||||||
|
border-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 0.75rem 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
font-weight: _font(weight-bold);
|
||||||
|
padding: 0 0.75rem 0.75rem 0.75rem;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
border-bottom: solid 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
tfoot {
|
||||||
|
border-top: solid 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.alt {
|
||||||
|
border-collapse: separate;
|
||||||
|
|
||||||
|
tbody {
|
||||||
|
tr {
|
||||||
|
td {
|
||||||
|
border: solid 1px;
|
||||||
|
border-left-width: 0;
|
||||||
|
border-top-width: 0;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
border-left-width: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
td {
|
||||||
|
border-top-width: 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tfoot {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-table($p: null) {
|
||||||
|
table {
|
||||||
|
tbody {
|
||||||
|
tr {
|
||||||
|
border-color: _palette($p, border);
|
||||||
|
|
||||||
|
&:nth-child(2n + 1) {
|
||||||
|
background-color: _palette($p, border-bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
color: _palette($p, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
thead {
|
||||||
|
border-bottom-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
|
||||||
|
tfoot {
|
||||||
|
border-top-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.alt {
|
||||||
|
tbody {
|
||||||
|
tr {
|
||||||
|
td {
|
||||||
|
border-color: _palette($p, border);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-table;
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
/* Testimonials */
|
||||||
|
|
||||||
|
.testimonials {
|
||||||
|
margin: (_size(element-margin) * 1.25) 0;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
@include flexgrid((
|
||||||
|
columns: 3,
|
||||||
|
gutters: 3rem,
|
||||||
|
vertical-align: stretch,
|
||||||
|
));
|
||||||
|
|
||||||
|
.content {
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
height: 100%;
|
||||||
|
padding: 3rem;
|
||||||
|
|
||||||
|
.author {
|
||||||
|
@include vendor('display','flex');
|
||||||
|
@include vendor('align-items','center');
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.image {
|
||||||
|
margin-right: 2rem;
|
||||||
|
width: 20%;
|
||||||
|
|
||||||
|
img {
|
||||||
|
border-radius: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.credit {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
&:last-child {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
> div {
|
||||||
|
> :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
@include flexgrid-resize((
|
||||||
|
columns: 2,
|
||||||
|
gutters: 2rem,
|
||||||
|
prev-columns: 3
|
||||||
|
));
|
||||||
|
|
||||||
|
.content {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
@include flexgrid-resize((
|
||||||
|
columns: 1,
|
||||||
|
gutters: 2rem,
|
||||||
|
prev-columns: (3, 2)
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin color-testimonials($p: null) {
|
||||||
|
$highlight: _palette($p, highlight);
|
||||||
|
|
||||||
|
.testimonials {
|
||||||
|
.content {
|
||||||
|
background: _palette($p, bg);
|
||||||
|
box-shadow: 0px 0px 4px 1px _palette($p, border-lt);
|
||||||
|
|
||||||
|
.credit {
|
||||||
|
strong {
|
||||||
|
color: _palette($highlight,bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include color-testimonials;
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/* Wrapper */
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
@include padding(8rem, 0);
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
@include breakpoint('<=large') {
|
||||||
|
@include padding(4rem, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
@include padding(3rem, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
@include padding(2rem, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,152 @@
|
|||||||
|
/* Banner */
|
||||||
|
|
||||||
|
#banner {
|
||||||
|
-ms-flex-align: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
@include color(accent2);
|
||||||
|
@include vendor('align-items', 'center');
|
||||||
|
@include vendor('display', 'flex');
|
||||||
|
@include vendor('justify-content', 'center');
|
||||||
|
background-image: url('../../images/banner.jpg');
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
border-top: 0;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
height: 35rem !important;
|
||||||
|
min-height: 35rem;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
> .inner {
|
||||||
|
@include vendor('transform', 'scale(1.0)');
|
||||||
|
@include vendor('transition', (
|
||||||
|
'opacity #{_duration(banner)} ease',
|
||||||
|
'transform #{_duration(banner)} ease'
|
||||||
|
));
|
||||||
|
opacity: 1;
|
||||||
|
position: relative;
|
||||||
|
z-index: 3;
|
||||||
|
|
||||||
|
> :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 4rem;
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: _palette(accent2, fg);
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: _palette(accent2, fg-bold);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
video {
|
||||||
|
@include vendor('transform', 'translateX(50%) translateY(50%)');
|
||||||
|
bottom: 50%;
|
||||||
|
height: auto;
|
||||||
|
min-height: 100%;
|
||||||
|
min-width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
position: absolute;
|
||||||
|
right: 50%;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
@include vendor('transition', 'opacity 3s ease');
|
||||||
|
@include vendor('transition-delay', '#{_duration(banner) * 1.25}');
|
||||||
|
background: _palette(accent2,bg);
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.45;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
background: linear-gradient(135deg, _palette(accent1,bg) 0%,_palette(accent2,bg) 74%);
|
||||||
|
content: ' ';
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.6;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
webkit-linear-gradientidth: 100%;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.small {
|
||||||
|
height: 30vh !important;
|
||||||
|
min-height: 30vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=large') {
|
||||||
|
video {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
height: auto !important;
|
||||||
|
min-height: 0;
|
||||||
|
padding: 4rem 2rem 4rem 2rem;
|
||||||
|
|
||||||
|
.inner {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.75rem;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
p {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body.is-preload & {
|
||||||
|
.inner {
|
||||||
|
@include vendor('transform', 'scale(0.99)');
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
/* CTA */
|
||||||
|
|
||||||
|
#cta {
|
||||||
|
@include color(accent1);
|
||||||
|
background-attachment: fixed;
|
||||||
|
background-image: linear-gradient(transparentize(_palette(accent1,bg), 0.75), transparentize(_palette(accent1,bg), 0.75)), url(../../images/cta01.jpg);
|
||||||
|
background-position: bottom;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
.inner {
|
||||||
|
position: relative;
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
background-attachment: scroll;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
/* Footer */
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
@include color(accent2);
|
||||||
|
@include padding(8rem, 0);
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: _palette(accent2, fg);
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: _palette(accent1, bg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
@include vendor('display', 'flex');
|
||||||
|
|
||||||
|
section {
|
||||||
|
width: 25%;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
width: 50%;
|
||||||
|
padding-right: _size(element-margin) * 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-left: _size(element-margin) * 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.copyright {
|
||||||
|
border-top: 1px solid;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
opacity: 0.5;
|
||||||
|
padding: _size(element-margin) 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=large') {
|
||||||
|
@include padding(4rem, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
.content {
|
||||||
|
@include vendor('flex-wrap', 'wrap');
|
||||||
|
|
||||||
|
section {
|
||||||
|
width: 50%;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
width: 100%;
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
@include padding(3rem, 0);
|
||||||
|
|
||||||
|
.content {
|
||||||
|
section {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
@include padding(2rem, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
/* Header */
|
||||||
|
|
||||||
|
$accent: accent2;
|
||||||
|
|
||||||
|
body {
|
||||||
|
|
||||||
|
padding-top: _size(header-height);
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: ' ';
|
||||||
|
background-image: url(../../images/bg.jpg);
|
||||||
|
background-size: cover;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-attachment: fixed;
|
||||||
|
display: block;
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: -1;
|
||||||
|
opacity: 0.05;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#header {
|
||||||
|
@include vendor('align-items', 'center');
|
||||||
|
@include vendor('display', 'flex');
|
||||||
|
@include vendor('justify-content', 'space-between');
|
||||||
|
background: _palette($accent, bg);
|
||||||
|
color: _palette($accent, fg);
|
||||||
|
cursor: default;
|
||||||
|
height: _size(header-height);
|
||||||
|
left: 0;
|
||||||
|
line-height: _size(header-height);
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: _misc(z-index-base) + 1;
|
||||||
|
|
||||||
|
> .logo {
|
||||||
|
color: _palette($accent, fg-bold);
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: _font(weight-bold);
|
||||||
|
height: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
padding: 0 1.25rem;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
> nav {
|
||||||
|
> a {
|
||||||
|
color: inherit;
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 0.75rem;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: _palette($accent, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
&[href="#menu"] {
|
||||||
|
@include icon;
|
||||||
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: '\f0c9';
|
||||||
|
margin: 0 0.5rem 0 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
& + a[href="#menu"]:last-child {
|
||||||
|
border-left: solid 1px _palette($accent, border);
|
||||||
|
margin-left: 0.5rem;
|
||||||
|
padding-left: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-right: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
padding: 0 0.5rem;
|
||||||
|
|
||||||
|
& + a[href="#menu"]:last-child {
|
||||||
|
margin-left: 0.25rem;
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
body {
|
||||||
|
padding-top: 44px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#header {
|
||||||
|
height: 44px;
|
||||||
|
line-height: 44px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
#header {
|
||||||
|
min-width: 320px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/* Heading */
|
||||||
|
|
||||||
|
#heading {
|
||||||
|
-ms-flex-align: center;
|
||||||
|
-ms-flex-pack: center;
|
||||||
|
@include color(accent2);
|
||||||
|
@include vendor('align-items', 'center');
|
||||||
|
@include vendor('display', 'flex');
|
||||||
|
@include vendor('justify-content', 'center');
|
||||||
|
background-image: linear-gradient(transparentize(_palette(accent2,bg), 0.75), transparentize(_palette(accent2,bg), 0.75)), url('../../images/banner.jpg');
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
border-top: 0;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
height: 15rem !important;
|
||||||
|
min-height: 15rem;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
background: linear-gradient(135deg, _palette(accent1,bg) 0%,_palette(accent2,bg) 74%);
|
||||||
|
content: ' ';
|
||||||
|
display: block;
|
||||||
|
height: 100%;
|
||||||
|
left: 0;
|
||||||
|
opacity: 0.6;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/* Main */
|
||||||
|
|
||||||
|
#main {
|
||||||
|
.content {
|
||||||
|
background: _palette(bg);
|
||||||
|
border-radius: _size(border-radius);
|
||||||
|
box-shadow: 0px 0px 4px 1px _palette(border-lt);
|
||||||
|
margin-bottom: _size(element-margin);
|
||||||
|
padding: 3rem;
|
||||||
|
|
||||||
|
@include breakpoint('<=medium') {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=xsmall') {
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
/* Menu */
|
||||||
|
|
||||||
|
$accent: accent2;
|
||||||
|
|
||||||
|
#menu {
|
||||||
|
@include color-typography($accent);
|
||||||
|
@include color-button($accent);
|
||||||
|
@include vendor('transform', 'translateX(#{_size(menu-width)})');
|
||||||
|
@include vendor('transition', (
|
||||||
|
'transform #{_duration(menu)} ease',
|
||||||
|
'box-shadow #{_duration(menu)} ease',
|
||||||
|
'visibility #{_duration(menu)}'
|
||||||
|
));
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
|
box-shadow: none;
|
||||||
|
height: 100%;
|
||||||
|
max-width: 80%;
|
||||||
|
overflow-y: auto;
|
||||||
|
padding: 3rem 2rem;
|
||||||
|
position: fixed;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
width: _size(menu-width);
|
||||||
|
z-index: _misc(z-index-base) + 2;
|
||||||
|
|
||||||
|
> ul {
|
||||||
|
margin: 0 0 (_size(element-margin) * 0.5) 0;
|
||||||
|
|
||||||
|
&.links {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
> li {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
> a {
|
||||||
|
border: 0;
|
||||||
|
border-top: solid 1px _palette($accent, border);
|
||||||
|
color: inherit;
|
||||||
|
display: block;
|
||||||
|
letter-spacing: _size(letter-spacing-alt);
|
||||||
|
line-height: 3.5rem;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: _palette($accent, fg-bold);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
> a {
|
||||||
|
border-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.close {
|
||||||
|
@include icon;
|
||||||
|
@include vendor('transition', 'color #{_duration(transition)} ease-in-out');
|
||||||
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
||||||
|
border: 0;
|
||||||
|
color: _palette($accent, fg-light);
|
||||||
|
cursor: pointer;
|
||||||
|
display: block;
|
||||||
|
height: 3.25rem;
|
||||||
|
line-height: 3.25rem;
|
||||||
|
padding-right: 1.25rem;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
text-align: right;
|
||||||
|
top: 0;
|
||||||
|
vertical-align: middle;
|
||||||
|
width: 7rem;
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
content: '\f00d';
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: _palette($accent, fg-bold);
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
height: 4rem;
|
||||||
|
line-height: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include breakpoint('<=small') {
|
||||||
|
padding: 2.5rem 1.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
body.is-menu-visible {
|
||||||
|
#menu {
|
||||||
|
@include vendor('transform', 'translateX(0)');
|
||||||
|
box-shadow: 0 0 1.5rem 0 rgba(0,0,0,0.2);
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,223 @@
|
|||||||
|
// breakpoints.scss v0.1-dev | @ajlkn | MIT licensed */
|
||||||
|
|
||||||
|
// Vars.
|
||||||
|
|
||||||
|
/// Breakpoints.
|
||||||
|
/// @var {list}
|
||||||
|
$breakpoints: () !global;
|
||||||
|
|
||||||
|
// Mixins.
|
||||||
|
|
||||||
|
/// Sets breakpoints.
|
||||||
|
/// @param {map} $x Breakpoints.
|
||||||
|
@mixin breakpoints($x: ()) {
|
||||||
|
$breakpoints: $x !global;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Wraps @content in a @media block targeting a specific orientation.
|
||||||
|
/// @param {string} $orientation Orientation.
|
||||||
|
@mixin orientation($orientation) {
|
||||||
|
@media screen and (orientation: #{$orientation}) {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Wraps @content in a @media block using a given query.
|
||||||
|
/// @param {string} $query Query.
|
||||||
|
@mixin breakpoint($query: null) {
|
||||||
|
|
||||||
|
$breakpoint: null;
|
||||||
|
$op: null;
|
||||||
|
$media: null;
|
||||||
|
|
||||||
|
// Determine operator, breakpoint.
|
||||||
|
|
||||||
|
// Greater than or equal.
|
||||||
|
@if (str-slice($query, 0, 2) == '>=') {
|
||||||
|
|
||||||
|
$op: 'gte';
|
||||||
|
$breakpoint: str-slice($query, 3);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than or equal.
|
||||||
|
@elseif (str-slice($query, 0, 2) == '<=') {
|
||||||
|
|
||||||
|
$op: 'lte';
|
||||||
|
$breakpoint: str-slice($query, 3);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Greater than.
|
||||||
|
@elseif (str-slice($query, 0, 1) == '>') {
|
||||||
|
|
||||||
|
$op: 'gt';
|
||||||
|
$breakpoint: str-slice($query, 2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than.
|
||||||
|
@elseif (str-slice($query, 0, 1) == '<') {
|
||||||
|
|
||||||
|
$op: 'lt';
|
||||||
|
$breakpoint: str-slice($query, 2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not.
|
||||||
|
@elseif (str-slice($query, 0, 1) == '!') {
|
||||||
|
|
||||||
|
$op: 'not';
|
||||||
|
$breakpoint: str-slice($query, 2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equal.
|
||||||
|
@else {
|
||||||
|
|
||||||
|
$op: 'eq';
|
||||||
|
$breakpoint: $query;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build media.
|
||||||
|
@if ($breakpoint and map-has-key($breakpoints, $breakpoint)) {
|
||||||
|
|
||||||
|
$a: map-get($breakpoints, $breakpoint);
|
||||||
|
|
||||||
|
// Range.
|
||||||
|
@if (type-of($a) == 'list') {
|
||||||
|
|
||||||
|
$x: nth($a, 1);
|
||||||
|
$y: nth($a, 2);
|
||||||
|
|
||||||
|
// Max only.
|
||||||
|
@if ($x == null) {
|
||||||
|
|
||||||
|
// Greater than or equal (>= 0 / anything)
|
||||||
|
@if ($op == 'gte') {
|
||||||
|
$media: 'screen';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than or equal (<= y)
|
||||||
|
@elseif ($op == 'lte') {
|
||||||
|
$media: 'screen and (max-width: ' + $y + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Greater than (> y)
|
||||||
|
@elseif ($op == 'gt') {
|
||||||
|
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than (< 0 / invalid)
|
||||||
|
@elseif ($op == 'lt') {
|
||||||
|
$media: 'screen and (max-width: -1px)';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not (> y)
|
||||||
|
@elseif ($op == 'not') {
|
||||||
|
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equal (<= y)
|
||||||
|
@else {
|
||||||
|
$media: 'screen and (max-width: ' + $y + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Min only.
|
||||||
|
@else if ($y == null) {
|
||||||
|
|
||||||
|
// Greater than or equal (>= x)
|
||||||
|
@if ($op == 'gte') {
|
||||||
|
$media: 'screen and (min-width: ' + $x + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than or equal (<= inf / anything)
|
||||||
|
@elseif ($op == 'lte') {
|
||||||
|
$media: 'screen';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Greater than (> inf / invalid)
|
||||||
|
@elseif ($op == 'gt') {
|
||||||
|
$media: 'screen and (max-width: -1px)';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than (< x)
|
||||||
|
@elseif ($op == 'lt') {
|
||||||
|
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not (< x)
|
||||||
|
@elseif ($op == 'not') {
|
||||||
|
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equal (>= x)
|
||||||
|
@else {
|
||||||
|
$media: 'screen and (min-width: ' + $x + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Min and max.
|
||||||
|
@else {
|
||||||
|
|
||||||
|
// Greater than or equal (>= x)
|
||||||
|
@if ($op == 'gte') {
|
||||||
|
$media: 'screen and (min-width: ' + $x + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than or equal (<= y)
|
||||||
|
@elseif ($op == 'lte') {
|
||||||
|
$media: 'screen and (max-width: ' + $y + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Greater than (> y)
|
||||||
|
@elseif ($op == 'gt') {
|
||||||
|
$media: 'screen and (min-width: ' + ($y + 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less than (< x)
|
||||||
|
@elseif ($op == 'lt') {
|
||||||
|
$media: 'screen and (max-width: ' + ($x - 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Not (< x and > y)
|
||||||
|
@elseif ($op == 'not') {
|
||||||
|
$media: 'screen and (max-width: ' + ($x - 1) + '), screen and (min-width: ' + ($y + 1) + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Equal (>= x and <= y)
|
||||||
|
@else {
|
||||||
|
$media: 'screen and (min-width: ' + $x + ') and (max-width: ' + $y + ')';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// String.
|
||||||
|
@else {
|
||||||
|
|
||||||
|
// Missing a media type? Prefix with "screen".
|
||||||
|
@if (str-slice($a, 0, 1) == '(') {
|
||||||
|
$media: 'screen and ' + $a;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Otherwise, use as-is.
|
||||||
|
@else {
|
||||||
|
$media: $a;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Output.
|
||||||
|
@media #{$media} {
|
||||||
|
@content;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,338 @@
|
|||||||
|
// flexgrid.scss v0.1-dev | @ajlkn | MIT licensed */
|
||||||
|
|
||||||
|
// Mixins.
|
||||||
|
|
||||||
|
/// Initializes base flexgrid classes.
|
||||||
|
/// @param {string} $vertical-align Vertical alignment of cells.
|
||||||
|
/// @param {string} $horizontal-align Horizontal alignment of cells.
|
||||||
|
@mixin flexgrid-base($vertical-align: null, $horizontal-align: null) {
|
||||||
|
|
||||||
|
// Grid.
|
||||||
|
@include vendor('display', 'flex');
|
||||||
|
@include vendor('flex-wrap', 'wrap');
|
||||||
|
|
||||||
|
// Vertical alignment.
|
||||||
|
@if ($vertical-align == top) {
|
||||||
|
@include vendor('align-items', 'flex-start');
|
||||||
|
}
|
||||||
|
@else if ($vertical-align == bottom) {
|
||||||
|
@include vendor('align-items', 'flex-end');
|
||||||
|
}
|
||||||
|
@else if ($vertical-align == center) {
|
||||||
|
@include vendor('align-items', 'center');
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
@include vendor('align-items', 'stretch');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Horizontal alignment.
|
||||||
|
@if ($horizontal-align != null) {
|
||||||
|
text-align: $horizontal-align;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Cells.
|
||||||
|
> * {
|
||||||
|
@include vendor('flex-shrink', '1');
|
||||||
|
@include vendor('flex-grow', '0');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sets up flexgrid columns.
|
||||||
|
/// @param {integer} $columns Columns.
|
||||||
|
@mixin flexgrid-columns($columns) {
|
||||||
|
|
||||||
|
> * {
|
||||||
|
$cell-width: 100% / $columns;
|
||||||
|
width: #{$cell-width};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sets up flexgrid gutters.
|
||||||
|
/// @param {integer} $columns Columns.
|
||||||
|
/// @param {number} $gutters Gutters.
|
||||||
|
@mixin flexgrid-gutters($columns, $gutters) {
|
||||||
|
|
||||||
|
// Apply padding.
|
||||||
|
> * {
|
||||||
|
$cell-width: 100% / $columns;
|
||||||
|
|
||||||
|
padding: ($gutters * 0.5);
|
||||||
|
width: $cell-width;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Sets up flexgrid gutters (flush).
|
||||||
|
/// @param {integer} $columns Columns.
|
||||||
|
/// @param {number} $gutters Gutters.
|
||||||
|
@mixin flexgrid-gutters-flush($columns, $gutters) {
|
||||||
|
|
||||||
|
// Apply padding.
|
||||||
|
> * {
|
||||||
|
$cell-width: 100% / $columns;
|
||||||
|
$cell-width-pad: $gutters / $columns;
|
||||||
|
|
||||||
|
padding: ($gutters * 0.5);
|
||||||
|
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear top/bottom gutters.
|
||||||
|
> :nth-child(-n + #{$columns}) {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> :nth-last-child(-n + #{$columns}) {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear left/right gutters.
|
||||||
|
> :nth-child(#{$columns}n + 1) {
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> :nth-child(#{$columns}n) {
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adjust widths of leftmost and rightmost cells.
|
||||||
|
> :nth-child(#{$columns}n + 1),
|
||||||
|
> :nth-child(#{$columns}n) {
|
||||||
|
$cell-width: 100% / $columns;
|
||||||
|
$cell-width-pad: ($gutters / $columns) - ($gutters / 2);
|
||||||
|
|
||||||
|
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Reset flexgrid gutters (flush only).
|
||||||
|
/// Used to override a previous set of flexgrid gutter classes.
|
||||||
|
/// @param {integer} $columns Columns.
|
||||||
|
/// @param {number} $gutters Gutters.
|
||||||
|
/// @param {integer} $prev-columns Previous columns.
|
||||||
|
@mixin flexgrid-gutters-flush-reset($columns, $gutters, $prev-columns) {
|
||||||
|
|
||||||
|
// Apply padding.
|
||||||
|
> * {
|
||||||
|
$cell-width: 100% / $prev-columns;
|
||||||
|
$cell-width-pad: $gutters / $prev-columns;
|
||||||
|
|
||||||
|
padding: ($gutters * 0.5);
|
||||||
|
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear top/bottom gutters.
|
||||||
|
> :nth-child(-n + #{$prev-columns}) {
|
||||||
|
padding-top: ($gutters * 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
> :nth-last-child(-n + #{$prev-columns}) {
|
||||||
|
padding-bottom: ($gutters * 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear left/right gutters.
|
||||||
|
> :nth-child(#{$prev-columns}n + 1) {
|
||||||
|
padding-left: ($gutters * 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
> :nth-child(#{$prev-columns}n) {
|
||||||
|
padding-right: ($gutters * 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Adjust widths of leftmost and rightmost cells.
|
||||||
|
> :nth-child(#{$prev-columns}n + 1),
|
||||||
|
> :nth-child(#{$prev-columns}n) {
|
||||||
|
$cell-width: 100% / $columns;
|
||||||
|
$cell-width-pad: $gutters / $columns;
|
||||||
|
|
||||||
|
padding: ($gutters * 0.5);
|
||||||
|
width: calc(#{$cell-width} + #{$cell-width-pad});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Adds debug styles to current flexgrid element.
|
||||||
|
@mixin flexgrid-debug() {
|
||||||
|
|
||||||
|
box-shadow: 0 0 0 1px red;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
box-shadow: inset 0 0 0 1px blue;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
position: relative;
|
||||||
|
box-shadow: inset 0 0 0 1px green;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Initializes the current element as a flexgrid.
|
||||||
|
/// @param {integer} $columns Columns (optional).
|
||||||
|
/// @param {number} $gutters Gutters (optional).
|
||||||
|
/// @param {bool} $flush If true, clears padding around the very edge of the grid.
|
||||||
|
@mixin flexgrid($settings: ()) {
|
||||||
|
|
||||||
|
// Settings.
|
||||||
|
|
||||||
|
// Debug.
|
||||||
|
$debug: false;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'debug')) {
|
||||||
|
$debug: map-get($settings, 'debug');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Vertical align.
|
||||||
|
$vertical-align: null;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'vertical-align')) {
|
||||||
|
$vertical-align: map-get($settings, 'vertical-align');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Horizontal align.
|
||||||
|
$horizontal-align: null;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'horizontal-align')) {
|
||||||
|
$horizontal-align: map-get($settings, 'horizontal-align');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Columns.
|
||||||
|
$columns: null;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'columns')) {
|
||||||
|
$columns: map-get($settings, 'columns');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gutters.
|
||||||
|
$gutters: 0;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'gutters')) {
|
||||||
|
$gutters: map-get($settings, 'gutters');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flush.
|
||||||
|
$flush: true;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'flush')) {
|
||||||
|
$flush: map-get($settings, 'flush');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Initialize base grid.
|
||||||
|
@include flexgrid-base($vertical-align, $horizontal-align);
|
||||||
|
|
||||||
|
// Debug?
|
||||||
|
@if ($debug) {
|
||||||
|
@include flexgrid-debug;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Columns specified?
|
||||||
|
@if ($columns != null) {
|
||||||
|
|
||||||
|
// Initialize columns.
|
||||||
|
@include flexgrid-columns($columns);
|
||||||
|
|
||||||
|
// Gutters specified?
|
||||||
|
@if ($gutters > 0) {
|
||||||
|
|
||||||
|
// Flush gutters?
|
||||||
|
@if ($flush) {
|
||||||
|
|
||||||
|
// Initialize gutters (flush).
|
||||||
|
@include flexgrid-gutters-flush($columns, $gutters);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Otherwise ...
|
||||||
|
@else {
|
||||||
|
|
||||||
|
// Initialize gutters.
|
||||||
|
@include flexgrid-gutters($columns, $gutters);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Resizes a previously-initialized grid.
|
||||||
|
/// @param {integer} $columns Columns.
|
||||||
|
/// @param {number} $gutters Gutters (optional).
|
||||||
|
/// @param {list} $reset A list of previously-initialized grid columns (only if $flush is true).
|
||||||
|
/// @param {bool} $flush If true, clears padding around the very edge of the grid.
|
||||||
|
@mixin flexgrid-resize($settings: ()) {
|
||||||
|
|
||||||
|
// Settings.
|
||||||
|
|
||||||
|
// Columns.
|
||||||
|
$columns: 1;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'columns')) {
|
||||||
|
$columns: map-get($settings, 'columns');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gutters.
|
||||||
|
$gutters: 0;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'gutters')) {
|
||||||
|
$gutters: map-get($settings, 'gutters');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Previous columns.
|
||||||
|
$prev-columns: false;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'prev-columns')) {
|
||||||
|
$prev-columns: map-get($settings, 'prev-columns');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flush.
|
||||||
|
$flush: true;
|
||||||
|
|
||||||
|
@if (map-has-key($settings, 'flush')) {
|
||||||
|
$flush: map-get($settings, 'flush');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resize columns.
|
||||||
|
@include flexgrid-columns($columns);
|
||||||
|
|
||||||
|
// Gutters specified?
|
||||||
|
@if ($gutters > 0) {
|
||||||
|
|
||||||
|
// Flush gutters?
|
||||||
|
@if ($flush) {
|
||||||
|
|
||||||
|
// Previous columns specified?
|
||||||
|
@if ($prev-columns) {
|
||||||
|
|
||||||
|
// Convert to list if it isn't one already.
|
||||||
|
@if (type-of($prev-columns) != list) {
|
||||||
|
$prev-columns: ($prev-columns);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Step through list of previous columns and reset them.
|
||||||
|
@each $x in $prev-columns {
|
||||||
|
@include flexgrid-gutters-flush-reset($columns, $gutters, $x);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resize gutters (flush).
|
||||||
|
@include flexgrid-gutters-flush($columns, $gutters);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Otherwise ...
|
||||||
|
@else {
|
||||||
|
|
||||||
|
// Resize gutters.
|
||||||
|
@include flexgrid-gutters($columns, $gutters);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
// skel-baseline v3.0.1 | (c) n33 | skel.io | MIT licensed
|
||||||
|
|
||||||
|
/// Removes a specific item from a list.
|
||||||
|
/// @author Hugo Giraudel
|
||||||
|
/// @param {list} $list List.
|
||||||
|
/// @param {integer} $index Index.
|
||||||
|
/// @return {list} Updated list.
|
||||||
|
@function remove-nth($list, $index) {
|
||||||
|
|
||||||
|
$result: null;
|
||||||
|
|
||||||
|
@if type-of($index) != number {
|
||||||
|
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
||||||
|
}
|
||||||
|
@else if $index == 0 {
|
||||||
|
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
||||||
|
}
|
||||||
|
@else if abs($index) > length($list) {
|
||||||
|
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
|
||||||
|
$result: ();
|
||||||
|
$index: if($index < 0, length($list) + $index + 1, $index);
|
||||||
|
|
||||||
|
@for $i from 1 through length($list) {
|
||||||
|
|
||||||
|
@if $i != $index {
|
||||||
|
$result: append($result, nth($list, $i));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@return $result;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Gets a value from a map.
|
||||||
|
/// @author Hugo Giraudel
|
||||||
|
/// @param {map} $map Map.
|
||||||
|
/// @param {string} $keys Key(s).
|
||||||
|
/// @return {string} Value.
|
||||||
|
@function val($map, $keys...) {
|
||||||
|
|
||||||
|
@if nth($keys, 1) == null {
|
||||||
|
$keys: remove-nth($keys, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
@each $key in $keys {
|
||||||
|
$map: map-get($map, $key);
|
||||||
|
}
|
||||||
|
|
||||||
|
@return $map;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Gets a duration value.
|
||||||
|
/// @param {string} $keys Key(s).
|
||||||
|
/// @return {string} Value.
|
||||||
|
@function _duration($keys...) {
|
||||||
|
@return val($duration, $keys...);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Gets a font value.
|
||||||
|
/// @param {string} $keys Key(s).
|
||||||
|
/// @return {string} Value.
|
||||||
|
@function _font($keys...) {
|
||||||
|
@return val($font, $keys...);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Gets a misc value.
|
||||||
|
/// @param {string} $keys Key(s).
|
||||||
|
/// @return {string} Value.
|
||||||
|
@function _misc($keys...) {
|
||||||
|
@return val($misc, $keys...);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Gets a palette value.
|
||||||
|
/// @param {string} $keys Key(s).
|
||||||
|
/// @return {string} Value.
|
||||||
|
@function _palette($keys...) {
|
||||||
|
@return val($palette, $keys...);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Gets a size value.
|
||||||
|
/// @param {string} $keys Key(s).
|
||||||
|
/// @return {string} Value.
|
||||||
|
@function _size($keys...) {
|
||||||
|
@return val($size, $keys...);
|
||||||
|
}
|
||||||
@@ -0,0 +1,121 @@
|
|||||||
|
// grid.scss v0.1-dev | @ajlkn | MIT licensed */
|
||||||
|
|
||||||
|
// Mixins.
|
||||||
|
|
||||||
|
/// Initializes grid classes.
|
||||||
|
/// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually).
|
||||||
|
/// @param {string} $suffix Optional column class suffix.
|
||||||
|
/// @param {list} $override Optional list of column classes to override.
|
||||||
|
@mixin grid($gutters: 1.5em, $suffix: '', $override: ()) {
|
||||||
|
|
||||||
|
// Initialize.
|
||||||
|
$cols: 12;
|
||||||
|
$multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00;
|
||||||
|
$unit: 100% / $cols;
|
||||||
|
$suffixes: join($override, ($suffix));
|
||||||
|
|
||||||
|
// Gutters.
|
||||||
|
$guttersCols: null;
|
||||||
|
$guttersRows: null;
|
||||||
|
|
||||||
|
@if (type-of($gutters) == 'list') {
|
||||||
|
|
||||||
|
$guttersCols: nth($gutters, 1);
|
||||||
|
$guttersRows: nth($gutters, 2);
|
||||||
|
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
|
||||||
|
$guttersCols: $gutters;
|
||||||
|
$guttersRows: 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Row.
|
||||||
|
.row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
// Columns.
|
||||||
|
> * {
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Gutters.
|
||||||
|
&.gtr-uniform {
|
||||||
|
> * {
|
||||||
|
> :last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Step through suffixes.
|
||||||
|
@each $suffix in $suffixes {
|
||||||
|
|
||||||
|
// Suffix.
|
||||||
|
@if ($suffix != '') {
|
||||||
|
$suffix: '-' + $suffix;
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
$suffix: '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Row.
|
||||||
|
.row {
|
||||||
|
|
||||||
|
// Important.
|
||||||
|
> .imp#{$suffix} {
|
||||||
|
order: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Columns, offsets.
|
||||||
|
@for $i from 1 through $cols {
|
||||||
|
> .col-#{$i}#{$suffix} {
|
||||||
|
width: $unit * $i;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .off-#{$i}#{$suffix} {
|
||||||
|
margin-left: $unit * $i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Step through multipliers.
|
||||||
|
@each $multiplier in $multipliers {
|
||||||
|
|
||||||
|
// Gutters.
|
||||||
|
$class: null;
|
||||||
|
|
||||||
|
@if ($multiplier != 1) {
|
||||||
|
$class: '.gtr-' + ($multiplier * 100);
|
||||||
|
}
|
||||||
|
|
||||||
|
&#{$class} {
|
||||||
|
margin-top: ($guttersRows * $multiplier * -1);
|
||||||
|
margin-left: ($guttersCols * $multiplier * -1);
|
||||||
|
|
||||||
|
> * {
|
||||||
|
padding: ($guttersRows * $multiplier) 0 0 ($guttersCols * $multiplier);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Uniform.
|
||||||
|
&.gtr-uniform {
|
||||||
|
margin-top: $guttersCols * $multiplier * -1;
|
||||||
|
|
||||||
|
> * {
|
||||||
|
padding-top: $guttersCols * $multiplier;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,63 @@
|
|||||||
|
/// Makes an element's :before pseudoelement a FontAwesome icon.
|
||||||
|
/// @param {string} $content Optional content value to use.
|
||||||
|
/// @param {string} $where Optional pseudoelement to target (before or after).
|
||||||
|
@mixin icon($content: false, $where: before) {
|
||||||
|
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:#{$where} {
|
||||||
|
|
||||||
|
@if $content {
|
||||||
|
content: $content;
|
||||||
|
}
|
||||||
|
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
font-family: FontAwesome;
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
text-transform: none !important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Applies padding to an element, taking the current element-margin value into account.
|
||||||
|
/// @param {mixed} $tb Top/bottom padding.
|
||||||
|
/// @param {mixed} $lr Left/right padding.
|
||||||
|
/// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
|
||||||
|
/// @param {bool} $important If true, adds !important.
|
||||||
|
@mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
|
||||||
|
|
||||||
|
@if $important {
|
||||||
|
$important: '!important';
|
||||||
|
}
|
||||||
|
|
||||||
|
$x: 0.1em;
|
||||||
|
|
||||||
|
@if unit(_size(element-margin)) == 'rem' {
|
||||||
|
$x: 0.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
|
||||||
|
/// @param {string} $svg SVG data URL.
|
||||||
|
/// @return {string} Encoded SVG data URL.
|
||||||
|
@function svg-url($svg) {
|
||||||
|
|
||||||
|
$svg: str-replace($svg, '"', '\'');
|
||||||
|
$svg: str-replace($svg, '%', '%25');
|
||||||
|
$svg: str-replace($svg, '<', '%3C');
|
||||||
|
$svg: str-replace($svg, '>', '%3E');
|
||||||
|
$svg: str-replace($svg, '&', '%26');
|
||||||
|
$svg: str-replace($svg, '#', '%23');
|
||||||
|
$svg: str-replace($svg, '{', '%7B');
|
||||||
|
$svg: str-replace($svg, '}', '%7D');
|
||||||
|
$svg: str-replace($svg, ';', '%3B');
|
||||||
|
|
||||||
|
@return url("data:image/svg+xml;charset=utf8,#{$svg}");
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
// Misc.
|
||||||
|
$misc: (
|
||||||
|
z-index-base: 10000
|
||||||
|
);
|
||||||
|
|
||||||
|
// Duration.
|
||||||
|
$duration: (
|
||||||
|
menu: 0.5s,
|
||||||
|
banner: 1s,
|
||||||
|
transition: 0.2s
|
||||||
|
);
|
||||||
|
|
||||||
|
// Size.
|
||||||
|
$size: (
|
||||||
|
border-radius: 4px,
|
||||||
|
element-height: 3.25rem,
|
||||||
|
element-margin: 2rem,
|
||||||
|
container-width: 80rem,
|
||||||
|
header-height: 3.25rem,
|
||||||
|
inner-width: 75rem,
|
||||||
|
menu-width: 20rem
|
||||||
|
);
|
||||||
|
|
||||||
|
// Font.
|
||||||
|
$font: (
|
||||||
|
family: ('Raleway', Arial, Helvetica, sans-serif),
|
||||||
|
family-fixed: ('Courier New', monospace),
|
||||||
|
weight: 400,
|
||||||
|
weight-light: 300,
|
||||||
|
weight-xlite: 200,
|
||||||
|
weight-bold: 600
|
||||||
|
);
|
||||||
|
|
||||||
|
// Palette.
|
||||||
|
$palette: (
|
||||||
|
bg: #ffffff,
|
||||||
|
fg: #444444,
|
||||||
|
fg-bold: #555555,
|
||||||
|
fg-light: #bbbbbb,
|
||||||
|
border: rgba(0,0,0,0.25),
|
||||||
|
border-bg: rgba(0,0,0,0.075),
|
||||||
|
border-lt: rgba(0,0,0,0.025),
|
||||||
|
highlight: accent1,
|
||||||
|
|
||||||
|
accent1: (
|
||||||
|
bg: #ce1b28,
|
||||||
|
fg: rgba(255,255,255,0.75),
|
||||||
|
fg-bold: #ffffff,
|
||||||
|
fg-light: rgba(255,255,255,0.4),
|
||||||
|
border: rgba(255,255,255,0.25),
|
||||||
|
border-bg: rgba(255,255,255,0.075),
|
||||||
|
border-lt: rgba(255,255,255,0.025),
|
||||||
|
highlight: accent1
|
||||||
|
),
|
||||||
|
|
||||||
|
accent2: (
|
||||||
|
bg: #111111,
|
||||||
|
fg: rgba(255,255,255,0.5),
|
||||||
|
fg-bold: #ffffff,
|
||||||
|
fg-light: rgba(255,255,255,0.4),
|
||||||
|
border: rgba(255,255,255,0.25),
|
||||||
|
border-bg: rgba(255,255,255,0.075),
|
||||||
|
border-lt: rgba(255,255,255,0.025),
|
||||||
|
highlight: accent1
|
||||||
|
)
|
||||||
|
);
|
||||||
@@ -0,0 +1,376 @@
|
|||||||
|
// vendor.scss v0.1-dev | @ajlkn | MIT licensed */
|
||||||
|
|
||||||
|
// Vars.
|
||||||
|
|
||||||
|
/// Vendor prefixes.
|
||||||
|
/// @var {list}
|
||||||
|
$vendor-prefixes: (
|
||||||
|
'-moz-',
|
||||||
|
'-webkit-',
|
||||||
|
'-ms-',
|
||||||
|
''
|
||||||
|
);
|
||||||
|
|
||||||
|
/// Properties that should be vendorized.
|
||||||
|
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||||
|
/// @var {list}
|
||||||
|
$vendor-properties: (
|
||||||
|
|
||||||
|
// Animation.
|
||||||
|
'animation',
|
||||||
|
'animation-delay',
|
||||||
|
'animation-direction',
|
||||||
|
'animation-duration',
|
||||||
|
'animation-fill-mode',
|
||||||
|
'animation-iteration-count',
|
||||||
|
'animation-name',
|
||||||
|
'animation-play-state',
|
||||||
|
'animation-timing-function',
|
||||||
|
|
||||||
|
// Appearance.
|
||||||
|
'appearance',
|
||||||
|
|
||||||
|
// Backdrop filter.
|
||||||
|
'backdrop-filter',
|
||||||
|
|
||||||
|
// Background image options.
|
||||||
|
'background-clip',
|
||||||
|
'background-origin',
|
||||||
|
'background-size',
|
||||||
|
|
||||||
|
// Box sizing.
|
||||||
|
'box-sizing',
|
||||||
|
|
||||||
|
// Clip path.
|
||||||
|
'clip-path',
|
||||||
|
|
||||||
|
// Filter effects.
|
||||||
|
'filter',
|
||||||
|
|
||||||
|
// Flexbox.
|
||||||
|
'align-content',
|
||||||
|
'align-items',
|
||||||
|
'align-self',
|
||||||
|
'flex',
|
||||||
|
'flex-basis',
|
||||||
|
'flex-direction',
|
||||||
|
'flex-flow',
|
||||||
|
'flex-grow',
|
||||||
|
'flex-shrink',
|
||||||
|
'flex-wrap',
|
||||||
|
'justify-content',
|
||||||
|
'order',
|
||||||
|
|
||||||
|
// Font feature.
|
||||||
|
'font-feature-settings',
|
||||||
|
'font-language-override',
|
||||||
|
'font-variant-ligatures',
|
||||||
|
|
||||||
|
// Font kerning.
|
||||||
|
'font-kerning',
|
||||||
|
|
||||||
|
// Fragmented borders and backgrounds.
|
||||||
|
'box-decoration-break',
|
||||||
|
|
||||||
|
// Grid layout.
|
||||||
|
'grid-column',
|
||||||
|
'grid-column-align',
|
||||||
|
'grid-column-end',
|
||||||
|
'grid-column-start',
|
||||||
|
'grid-row',
|
||||||
|
'grid-row-align',
|
||||||
|
'grid-row-end',
|
||||||
|
'grid-row-start',
|
||||||
|
'grid-template-columns',
|
||||||
|
'grid-template-rows',
|
||||||
|
|
||||||
|
// Hyphens.
|
||||||
|
'hyphens',
|
||||||
|
'word-break',
|
||||||
|
|
||||||
|
// Masks.
|
||||||
|
'mask',
|
||||||
|
'mask-border',
|
||||||
|
'mask-border-outset',
|
||||||
|
'mask-border-repeat',
|
||||||
|
'mask-border-slice',
|
||||||
|
'mask-border-source',
|
||||||
|
'mask-border-width',
|
||||||
|
'mask-clip',
|
||||||
|
'mask-composite',
|
||||||
|
'mask-image',
|
||||||
|
'mask-origin',
|
||||||
|
'mask-position',
|
||||||
|
'mask-repeat',
|
||||||
|
'mask-size',
|
||||||
|
|
||||||
|
// Multicolumn.
|
||||||
|
'break-after',
|
||||||
|
'break-before',
|
||||||
|
'break-inside',
|
||||||
|
'column-count',
|
||||||
|
'column-fill',
|
||||||
|
'column-gap',
|
||||||
|
'column-rule',
|
||||||
|
'column-rule-color',
|
||||||
|
'column-rule-style',
|
||||||
|
'column-rule-width',
|
||||||
|
'column-span',
|
||||||
|
'column-width',
|
||||||
|
'columns',
|
||||||
|
|
||||||
|
// Object fit.
|
||||||
|
'object-fit',
|
||||||
|
'object-position',
|
||||||
|
|
||||||
|
// Regions.
|
||||||
|
'flow-from',
|
||||||
|
'flow-into',
|
||||||
|
'region-fragment',
|
||||||
|
|
||||||
|
// Scroll snap points.
|
||||||
|
'scroll-snap-coordinate',
|
||||||
|
'scroll-snap-destination',
|
||||||
|
'scroll-snap-points-x',
|
||||||
|
'scroll-snap-points-y',
|
||||||
|
'scroll-snap-type',
|
||||||
|
|
||||||
|
// Shapes.
|
||||||
|
'shape-image-threshold',
|
||||||
|
'shape-margin',
|
||||||
|
'shape-outside',
|
||||||
|
|
||||||
|
// Tab size.
|
||||||
|
'tab-size',
|
||||||
|
|
||||||
|
// Text align last.
|
||||||
|
'text-align-last',
|
||||||
|
|
||||||
|
// Text decoration.
|
||||||
|
'text-decoration-color',
|
||||||
|
'text-decoration-line',
|
||||||
|
'text-decoration-skip',
|
||||||
|
'text-decoration-style',
|
||||||
|
|
||||||
|
// Text emphasis.
|
||||||
|
'text-emphasis',
|
||||||
|
'text-emphasis-color',
|
||||||
|
'text-emphasis-position',
|
||||||
|
'text-emphasis-style',
|
||||||
|
|
||||||
|
// Text size adjust.
|
||||||
|
'text-size-adjust',
|
||||||
|
|
||||||
|
// Text spacing.
|
||||||
|
'text-spacing',
|
||||||
|
|
||||||
|
// Transform.
|
||||||
|
'transform',
|
||||||
|
'transform-origin',
|
||||||
|
|
||||||
|
// Transform 3D.
|
||||||
|
'backface-visibility',
|
||||||
|
'perspective',
|
||||||
|
'perspective-origin',
|
||||||
|
'transform-style',
|
||||||
|
|
||||||
|
// Transition.
|
||||||
|
'transition',
|
||||||
|
'transition-delay',
|
||||||
|
'transition-duration',
|
||||||
|
'transition-property',
|
||||||
|
'transition-timing-function',
|
||||||
|
|
||||||
|
// Unicode bidi.
|
||||||
|
'unicode-bidi',
|
||||||
|
|
||||||
|
// User select.
|
||||||
|
'user-select',
|
||||||
|
|
||||||
|
// Writing mode.
|
||||||
|
'writing-mode',
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
/// Values that should be vendorized.
|
||||||
|
/// Data via caniuse.com, github.com/postcss/autoprefixer, and developer.mozilla.org
|
||||||
|
/// @var {list}
|
||||||
|
$vendor-values: (
|
||||||
|
|
||||||
|
// Cross fade.
|
||||||
|
'cross-fade',
|
||||||
|
|
||||||
|
// Element function.
|
||||||
|
'element',
|
||||||
|
|
||||||
|
// Filter function.
|
||||||
|
'filter',
|
||||||
|
|
||||||
|
// Flexbox.
|
||||||
|
'flex',
|
||||||
|
'inline-flex',
|
||||||
|
|
||||||
|
// Grab cursors.
|
||||||
|
'grab',
|
||||||
|
'grabbing',
|
||||||
|
|
||||||
|
// Gradients.
|
||||||
|
'linear-gradient',
|
||||||
|
'repeating-linear-gradient',
|
||||||
|
'radial-gradient',
|
||||||
|
'repeating-radial-gradient',
|
||||||
|
|
||||||
|
// Grid layout.
|
||||||
|
'grid',
|
||||||
|
'inline-grid',
|
||||||
|
|
||||||
|
// Image set.
|
||||||
|
'image-set',
|
||||||
|
|
||||||
|
// Intrinsic width.
|
||||||
|
'max-content',
|
||||||
|
'min-content',
|
||||||
|
'fit-content',
|
||||||
|
'fill',
|
||||||
|
'fill-available',
|
||||||
|
'stretch',
|
||||||
|
|
||||||
|
// Sticky position.
|
||||||
|
'sticky',
|
||||||
|
|
||||||
|
// Transform.
|
||||||
|
'transform',
|
||||||
|
|
||||||
|
// Zoom cursors.
|
||||||
|
'zoom-in',
|
||||||
|
'zoom-out',
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
// Functions.
|
||||||
|
|
||||||
|
/// Removes a specific item from a list.
|
||||||
|
/// @author Hugo Giraudel
|
||||||
|
/// @param {list} $list List.
|
||||||
|
/// @param {integer} $index Index.
|
||||||
|
/// @return {list} Updated list.
|
||||||
|
@function remove-nth($list, $index) {
|
||||||
|
|
||||||
|
$result: null;
|
||||||
|
|
||||||
|
@if type-of($index) != number {
|
||||||
|
@warn "$index: #{quote($index)} is not a number for `remove-nth`.";
|
||||||
|
}
|
||||||
|
@else if $index == 0 {
|
||||||
|
@warn "List index 0 must be a non-zero integer for `remove-nth`.";
|
||||||
|
}
|
||||||
|
@else if abs($index) > length($list) {
|
||||||
|
@warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
|
||||||
|
}
|
||||||
|
@else {
|
||||||
|
|
||||||
|
$result: ();
|
||||||
|
$index: if($index < 0, length($list) + $index + 1, $index);
|
||||||
|
|
||||||
|
@for $i from 1 through length($list) {
|
||||||
|
|
||||||
|
@if $i != $index {
|
||||||
|
$result: append($result, nth($list, $i));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@return $result;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Replaces a substring within another string.
|
||||||
|
/// @author Hugo Giraudel
|
||||||
|
/// @param {string} $string String.
|
||||||
|
/// @param {string} $search Substring.
|
||||||
|
/// @param {string} $replace Replacement.
|
||||||
|
/// @return {string} Updated string.
|
||||||
|
@function str-replace($string, $search, $replace: '') {
|
||||||
|
|
||||||
|
$index: str-index($string, $search);
|
||||||
|
|
||||||
|
@if $index {
|
||||||
|
@return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
|
||||||
|
}
|
||||||
|
|
||||||
|
@return $string;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Replaces a substring within each string in a list.
|
||||||
|
/// @param {list} $strings List of strings.
|
||||||
|
/// @param {string} $search Substring.
|
||||||
|
/// @param {string} $replace Replacement.
|
||||||
|
/// @return {list} Updated list of strings.
|
||||||
|
@function str-replace-all($strings, $search, $replace: '') {
|
||||||
|
|
||||||
|
@each $string in $strings {
|
||||||
|
$strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
|
||||||
|
}
|
||||||
|
|
||||||
|
@return $strings;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mixins.
|
||||||
|
|
||||||
|
/// Wraps @content in vendorized keyframe blocks.
|
||||||
|
/// @param {string} $name Name.
|
||||||
|
@mixin keyframes($name) {
|
||||||
|
|
||||||
|
@-moz-keyframes #{$name} { @content; }
|
||||||
|
@-webkit-keyframes #{$name} { @content; }
|
||||||
|
@-ms-keyframes #{$name} { @content; }
|
||||||
|
@keyframes #{$name} { @content; }
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Vendorizes a declaration's property and/or value(s).
|
||||||
|
/// @param {string} $property Property.
|
||||||
|
/// @param {mixed} $value String/list of value(s).
|
||||||
|
@mixin vendor($property, $value) {
|
||||||
|
|
||||||
|
// Determine if property should expand.
|
||||||
|
$expandProperty: index($vendor-properties, $property);
|
||||||
|
|
||||||
|
// Determine if value should expand (and if so, add '-prefix-' placeholder).
|
||||||
|
$expandValue: false;
|
||||||
|
|
||||||
|
@each $x in $value {
|
||||||
|
@each $y in $vendor-values {
|
||||||
|
@if $y == str-slice($x, 1, str-length($y)) {
|
||||||
|
|
||||||
|
$value: set-nth($value, index($value, $x), '-prefix-' + $x);
|
||||||
|
$expandValue: true;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Expand property?
|
||||||
|
@if $expandProperty {
|
||||||
|
@each $vendor in $vendor-prefixes {
|
||||||
|
#{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Expand just the value?
|
||||||
|
@elseif $expandValue {
|
||||||
|
@each $vendor in $vendor-prefixes {
|
||||||
|
#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Neither? Treat them as a normal declaration.
|
||||||
|
@else {
|
||||||
|
#{$property}: #{$value};
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,66 @@
|
|||||||
|
@import 'libs/vars';
|
||||||
|
@import 'libs/functions';
|
||||||
|
@import 'libs/mixins';
|
||||||
|
@import 'libs/vendor';
|
||||||
|
@import 'libs/breakpoints';
|
||||||
|
@import 'libs/grid';
|
||||||
|
@import 'libs/flexgrid';
|
||||||
|
@import 'font-awesome.min.css';
|
||||||
|
@import url('https://fonts.googleapis.com/css?family=Raleway:200,300,400,500,600');
|
||||||
|
|
||||||
|
/*
|
||||||
|
Industrious by TEMPLATED
|
||||||
|
templated.co @templatedco
|
||||||
|
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Breakpoints.
|
||||||
|
@include breakpoints((
|
||||||
|
default: (1681px, null ),
|
||||||
|
xlarge: (1281px, 1680px ),
|
||||||
|
large: (981px, 1280px ),
|
||||||
|
medium: (737px, 980px ),
|
||||||
|
small: (481px, 736px ),
|
||||||
|
xsmall: (361px, 480px ),
|
||||||
|
xxsmall: (null, 360px )
|
||||||
|
));
|
||||||
|
|
||||||
|
// Color.
|
||||||
|
@mixin color($p) {
|
||||||
|
@include color-typography($p);
|
||||||
|
@include color-button($p);
|
||||||
|
@include color-form($p);
|
||||||
|
@include color-list($p);
|
||||||
|
@include color-table($p);
|
||||||
|
@include color-highlights($p);
|
||||||
|
@include color-testimonials($p);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Base.
|
||||||
|
@import 'base/page';
|
||||||
|
@import 'base/reset';
|
||||||
|
@import 'base/typography';
|
||||||
|
|
||||||
|
// Component.
|
||||||
|
@import 'components/inner';
|
||||||
|
@import 'components/button';
|
||||||
|
@import 'components/form';
|
||||||
|
@import 'components/list';
|
||||||
|
@import 'components/table';
|
||||||
|
@import 'components/highlights';
|
||||||
|
@import 'components/testimonials';
|
||||||
|
@import 'components/actions';
|
||||||
|
@import 'components/grid';
|
||||||
|
@import 'components/icon';
|
||||||
|
@import 'components/icons';
|
||||||
|
@import 'components/image';
|
||||||
|
@import 'components/wrapper';
|
||||||
|
|
||||||
|
// Layout.
|
||||||
|
@import 'layout/banner';
|
||||||
|
@import 'layout/cta';
|
||||||
|
@import 'layout/footer';
|
||||||
|
@import 'layout/header';
|
||||||
|
@import 'layout/heading';
|
||||||
|
@import 'layout/main';
|
||||||
|
@import 'layout/menu';
|
||||||
@@ -0,0 +1,515 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<!--
|
||||||
|
Industrious by TEMPLATED
|
||||||
|
templated.co @templatedco
|
||||||
|
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
||||||
|
-->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Elements - Industrious by TEMPLATED</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
|
<meta name="description" content="" />
|
||||||
|
<meta name="keywords" content="" />
|
||||||
|
<link rel="stylesheet" href="assets/css/main.css" />
|
||||||
|
</head>
|
||||||
|
<body class="is-preload">
|
||||||
|
|
||||||
|
<!-- Header -->
|
||||||
|
<header id="header">
|
||||||
|
<a class="logo" href="index.html">Industrious</a>
|
||||||
|
<nav>
|
||||||
|
<a href="#menu">Menu</a>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Nav -->
|
||||||
|
<nav id="menu">
|
||||||
|
<ul class="links">
|
||||||
|
<li><a href="index.html">Home</a></li>
|
||||||
|
<li><a href="elements.html">Elements</a></li>
|
||||||
|
<li><a href="generic.html">Generic</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Heading -->
|
||||||
|
<div id="heading" >
|
||||||
|
<h1>Elements</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Main -->
|
||||||
|
<section id="main" class="wrapper">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="content">
|
||||||
|
|
||||||
|
<!-- Elements -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6 col-12-medium">
|
||||||
|
|
||||||
|
<!-- Text -->
|
||||||
|
<h3>Text</h3>
|
||||||
|
<p>This is <b>bold</b> and this is <strong>strong</strong>. This is <i>italic</i> and this
|
||||||
|
is <em>emphasized</em>.
|
||||||
|
This is <sup>superscript</sup> text and this is <sub>subscript</sub> text.
|
||||||
|
This is <u>underlined</u>, this is <code>code</code>, and this is a <a href="#">link</a>.</p>
|
||||||
|
<h2>Heading Level 2</h2>
|
||||||
|
<h3>Heading Level 3</h3>
|
||||||
|
<h4>Heading Level 4</h4>
|
||||||
|
<h5>Heading Level 5</h5>
|
||||||
|
<h6>Heading Level 6</h6>
|
||||||
|
<p>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem
|
||||||
|
non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed
|
||||||
|
ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing.</p>
|
||||||
|
|
||||||
|
<!-- Lists -->
|
||||||
|
<h3>Lists</h3>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6 col-12-small">
|
||||||
|
<h4>Unordered</h4>
|
||||||
|
<ul>
|
||||||
|
<li>Dolor pulvinar amet etiam.</li>
|
||||||
|
<li>Sagittis adipiscing lorem eleifend.</li>
|
||||||
|
<li>Felis enim feugiat viverra.</li>
|
||||||
|
</ul>
|
||||||
|
<h4>Alternate</h4>
|
||||||
|
<ul class="alt">
|
||||||
|
<li>Dolor pulvinar amet etiam.</li>
|
||||||
|
<li>Sagittis adipiscing lorem eleifend.</li>
|
||||||
|
<li>Felis enim feugiat viverra.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-12-small">
|
||||||
|
<h4>Ordered</h4>
|
||||||
|
<ol>
|
||||||
|
<li>Dolor pulvinar sed etiam.</li>
|
||||||
|
<li>Etiam vel lorem sed amet.</li>
|
||||||
|
<li>Felis enim feugiat viverra.</li>
|
||||||
|
<li>Dolor pulvinar magna etiam.</li>
|
||||||
|
<li>Etiam vel felis at sed viverra.</li>
|
||||||
|
<li>Felis enim feugiat amet dolore.</li>
|
||||||
|
<li>Dolor pulvinar lorem etiam.</li>
|
||||||
|
<li>Etiam vel felis at lorem amet.</li>
|
||||||
|
<li>Felis enim feugiat viverra.</li>
|
||||||
|
<li>Dolor pulvinar magna etiam.</li>
|
||||||
|
<li>Etiam vel felis sed viverra.</li>
|
||||||
|
</ol>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4>Definition</h4>
|
||||||
|
<dl>
|
||||||
|
<dt>Alpha</dt>
|
||||||
|
<dd>
|
||||||
|
<p>Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum.
|
||||||
|
Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus.
|
||||||
|
Integer ac pellentesque praesent.</p>
|
||||||
|
</dd>
|
||||||
|
<dt>Beta</dt>
|
||||||
|
<dd>
|
||||||
|
<p>Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum.
|
||||||
|
Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus.
|
||||||
|
Integer ac pellentesque praesent.</p>
|
||||||
|
</dd>
|
||||||
|
<dt>Gamma</dt>
|
||||||
|
<dd>
|
||||||
|
<p>Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum.
|
||||||
|
Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus.
|
||||||
|
Integer ac pellentesque praesent.</p>
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
|
||||||
|
<!-- Icons -->
|
||||||
|
<h3>Icons</h3>
|
||||||
|
<ul class="icons">
|
||||||
|
<li><a href="#" class="icon fa-twitter"><span class="label">Twitter</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-instagram"><span class="label">Instagram</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-github"><span class="label">Github</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-dribbble"><span class="label">Dribbble</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-tumblr"><span class="label">Tumblr</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-apple"><span class="label">Apple</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-windows"><span class="label">Windows</span></a></li>
|
||||||
|
<li><a href="#" class="icon fa-500px"><span class="label">500px</span></a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- Actions -->
|
||||||
|
<h3>Actions</h3>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><a href="#" class="button primary">Default</a></li>
|
||||||
|
<li><a href="#" class="button">Default</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><a href="#" class="button primary small">Small</a></li>
|
||||||
|
<li><a href="#" class="button small">Small</a></li>
|
||||||
|
</ul>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-3 col-12-small">
|
||||||
|
<ul class="actions stacked">
|
||||||
|
<li><a href="#" class="button primary">Default</a></li>
|
||||||
|
<li><a href="#" class="button">Default</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 col-12-small">
|
||||||
|
<ul class="actions stacked">
|
||||||
|
<li><a href="#" class="button primary small">Small</a></li>
|
||||||
|
<li><a href="#" class="button small">Small</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 col-12-small">
|
||||||
|
<ul class="actions stacked">
|
||||||
|
<li><a href="#" class="button primary fit">Default</a></li>
|
||||||
|
<li><a href="#" class="button fit">Default</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div class="col-3 col-12-small">
|
||||||
|
<ul class="actions stacked">
|
||||||
|
<li><a href="#" class="button primary small fit">Small</a></li>
|
||||||
|
<li><a href="#" class="button small fit">Small</a></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Blockquote -->
|
||||||
|
<h3>Blockquote</h3>
|
||||||
|
<blockquote>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio
|
||||||
|
porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet.
|
||||||
|
Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra. Lorem ipsum
|
||||||
|
dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis
|
||||||
|
iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac sed amet praesent. Nunc
|
||||||
|
lacinia ante nunc ac gravida.</blockquote>
|
||||||
|
|
||||||
|
<!-- Table -->
|
||||||
|
<h3>Table</h3>
|
||||||
|
<h4>Default</h4>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Price</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Alpha</td>
|
||||||
|
<td>Ante turpis integer aliquet porttitor.</td>
|
||||||
|
<td>10.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Beta</td>
|
||||||
|
<td>Vis ac commodo adipiscing arcu aliquet.</td>
|
||||||
|
<td>20.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Gamma</td>
|
||||||
|
<td>Morbi faucibus arcu accumsan lorem.</td>
|
||||||
|
<td>30.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Delta</td>
|
||||||
|
<td>Vitae integer tempus condimentum.</td>
|
||||||
|
<td>40.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Epsilon</td>
|
||||||
|
<td>Ante turpis integer aliquet porttitor.</td>
|
||||||
|
<td>50.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Zeta</td>
|
||||||
|
<td>Vis ac commodo adipiscing arcu aliquet.</td>
|
||||||
|
<td>60.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Eta</td>
|
||||||
|
<td>Morbi faucibus arcu accumsan lorem.</td>
|
||||||
|
<td>70.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Theta</td>
|
||||||
|
<td>Vitae integer tempus condimentum.</td>
|
||||||
|
<td>80.00</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"></td>
|
||||||
|
<td>360.00</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<h4>Alternate</h4>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table class="alt">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Description</th>
|
||||||
|
<th>Price</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>Alpha</td>
|
||||||
|
<td>Ante turpis integer aliquet porttitor.</td>
|
||||||
|
<td>10.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Beta</td>
|
||||||
|
<td>Vis ac commodo adipiscing arcu aliquet.</td>
|
||||||
|
<td>20.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Gamma</td>
|
||||||
|
<td>Morbi faucibus arcu accumsan lorem.</td>
|
||||||
|
<td>30.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Delta</td>
|
||||||
|
<td>Vitae integer tempus condimentum.</td>
|
||||||
|
<td>40.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Epsilon</td>
|
||||||
|
<td>Ante turpis integer aliquet porttitor.</td>
|
||||||
|
<td>50.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Zeta</td>
|
||||||
|
<td>Vis ac commodo adipiscing arcu aliquet.</td>
|
||||||
|
<td>60.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Eta</td>
|
||||||
|
<td>Morbi faucibus arcu accumsan lorem.</td>
|
||||||
|
<td>70.00</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Theta</td>
|
||||||
|
<td>Vitae integer tempus condimentum.</td>
|
||||||
|
<td>80.00</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
<tfoot>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2"></td>
|
||||||
|
<td>360.00</td>
|
||||||
|
</tr>
|
||||||
|
</tfoot>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-12-medium">
|
||||||
|
|
||||||
|
<!-- Buttons -->
|
||||||
|
<h3>Buttons</h3>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><a href="#" class="button primary">Primary</a></li>
|
||||||
|
<li><a href="#" class="button">Default</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><a href="#" class="button primary large">Large</a></li>
|
||||||
|
<li><a href="#" class="button">Default</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><a href="#" class="button small">Small</a></li>
|
||||||
|
<li><a href="#" class="button wide">Wide</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions fit">
|
||||||
|
<li><a href="#" class="button primary fit">Fit</a></li>
|
||||||
|
<li><a href="#" class="button fit">Fit</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions fit">
|
||||||
|
<li><a href="#" class="button primary fit small">Fit + Small</a></li>
|
||||||
|
<li><a href="#" class="button fit small">Fit + Small</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><a href="#" class="button primary icon fa-search">Icon</a></li>
|
||||||
|
<li><a href="#" class="button icon fa-download">Icon</a></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="actions">
|
||||||
|
<li><span class="button primary disabled">Primary</span></li>
|
||||||
|
<li><span class="button disabled">Default</span></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- Form -->
|
||||||
|
<h3>Form</h3>
|
||||||
|
<form method="post" action="#">
|
||||||
|
<div class="row gtr-uniform">
|
||||||
|
<div class="col-6 col-12-xsmall">
|
||||||
|
<input type="text" name="name" id="name" value="" placeholder="Name" />
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-12-xsmall">
|
||||||
|
<input type="email" name="email" id="email" value="" placeholder="Email" />
|
||||||
|
</div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-12">
|
||||||
|
<select name="category" id="category">
|
||||||
|
<option value="">- Select -</option>
|
||||||
|
<option value="alpha">Option alpha</option>
|
||||||
|
<option value="beta">Option beta</option>
|
||||||
|
<option value="gamma">Option gamma</option>
|
||||||
|
<option value="delta">Option delta</option>
|
||||||
|
<option value="epsilon">Option epsilon</option>
|
||||||
|
<option value="zeta">Option zeta</option>
|
||||||
|
<option value="eta">Option eta</option>
|
||||||
|
<option value="theta">Option theta</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-4 col-12-small">
|
||||||
|
<input type="radio" id="radio-alpha" name="radio" checked>
|
||||||
|
<label for="radio-alpha">Radio alpha</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-12-small">
|
||||||
|
<input type="radio" id="radio-beta" name="radio">
|
||||||
|
<label for="radio-beta">Radio beta</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 col-12-small">
|
||||||
|
<input type="radio" id="radio-gamma" name="radio">
|
||||||
|
<label for="radio-gamma">Radio gamma</label>
|
||||||
|
</div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-6 col-12-small">
|
||||||
|
<input type="checkbox" id="checkbox-alpha" name="checkbox">
|
||||||
|
<label for="checkbox-alpha">Checkbox alpha</label>
|
||||||
|
</div>
|
||||||
|
<div class="col-6 col-12-small">
|
||||||
|
<input type="checkbox" id="checkbox-beta" name="checkbox" checked>
|
||||||
|
<label for="checkbox-beta">Checkbox beta</label>
|
||||||
|
</div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-12">
|
||||||
|
<textarea name="textarea" id="textarea" placeholder="Alpha beta gamma delta" rows="6"></textarea>
|
||||||
|
</div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-12">
|
||||||
|
<ul class="actions">
|
||||||
|
<li><input type="submit" value="Submit Form" class="primary" /></li>
|
||||||
|
<li><input type="reset" value="Reset" /></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<!-- Image -->
|
||||||
|
<h3>Image</h3>
|
||||||
|
<h4>Fit</h4>
|
||||||
|
<span class="image fit"><img src="images/pic01.png" alt="" /></span>
|
||||||
|
<div class="box alt">
|
||||||
|
<div class="row gtr-50 gtr-uniform">
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<!-- Break -->
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
<div class="col-4"><span class="image fit"><img src="images/pic01.png" alt="" /></span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<h4>Left & Right</h4>
|
||||||
|
<p>
|
||||||
|
<span class="image left"><img src="images/pic02.png" alt="" /></span>
|
||||||
|
Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget.
|
||||||
|
tempus euismod. Magna et cursus lorem faucibus vestibulum. Blandit adipiscing eu
|
||||||
|
felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque
|
||||||
|
praesent tincidunt felis sagittis eget. tempus euismod tempus. Vestibulum ante ipsum
|
||||||
|
primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac
|
||||||
|
adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis
|
||||||
|
sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum.
|
||||||
|
Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus.
|
||||||
|
Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida lorem ipsum dolor
|
||||||
|
sit amet dolor feugiat consequat.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<span class="image right"><img src="images/pic02.png" alt="" /></span>
|
||||||
|
Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget.
|
||||||
|
tempus euismod. Magna et cursus lorem faucibus vestibulum. Blandit adipiscing eu
|
||||||
|
felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque
|
||||||
|
praesent tincidunt felis sagittis eget. tempus euismod tempus. Vestibulum ante ipsum
|
||||||
|
primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac
|
||||||
|
adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis
|
||||||
|
sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum.
|
||||||
|
Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus.
|
||||||
|
Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida lorem ipsum dolor
|
||||||
|
sit amet dolor feugiat consequat.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- Box -->
|
||||||
|
<h3>Box</h3>
|
||||||
|
<div class="box">
|
||||||
|
<p>Felis sagittis eget tempus primis in faucibus vestibulum. Blandit adipiscing eu
|
||||||
|
felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque
|
||||||
|
praesent tincidunt felis sagittis eget. tempus euismod. Magna sed etiam ante ipsum
|
||||||
|
primis in faucibus vestibulum. Blandit adipiscing eu ipsum primis in faucibus
|
||||||
|
vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu
|
||||||
|
faucibus lorem ipsum dolor sit amet nullam.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Preformatted Code -->
|
||||||
|
<h3>Preformatted</h3>
|
||||||
|
<pre><code>i = 0;
|
||||||
|
|
||||||
|
while (!deck.isInOrder()) {
|
||||||
|
print 'Iteration ' + i;
|
||||||
|
deck.shuffle();
|
||||||
|
i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
print 'It took ' + i + ' iterations to sort the deck.';
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer id="footer">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="content">
|
||||||
|
<section>
|
||||||
|
<h3>Accumsan montes viverra</h3>
|
||||||
|
<p>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing. Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing sed feugiat eu faucibus. Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida.</p>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Sem turpis amet semper</h4>
|
||||||
|
<ul class="alt">
|
||||||
|
<li><a href="#">Dolor pulvinar sed etiam.</a></li>
|
||||||
|
<li><a href="#">Etiam vel lorem sed amet.</a></li>
|
||||||
|
<li><a href="#">Felis enim feugiat viverra.</a></li>
|
||||||
|
<li><a href="#">Dolor pulvinar magna etiam.</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Magna sed ipsum</h4>
|
||||||
|
<ul class="plain">
|
||||||
|
<li><a href="#"><i class="icon fa-twitter"> </i>Twitter</a></li>
|
||||||
|
<li><a href="#"><i class="icon fa-facebook"> </i>Facebook</a></li>
|
||||||
|
<li><a href="#"><i class="icon fa-instagram"> </i>Instagram</a></li>
|
||||||
|
<li><a href="#"><i class="icon fa-github"> </i>Github</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="copyright">
|
||||||
|
© Untitled. Photos <a href="https://unsplash.co">Unsplash</a>, Video <a href="https://coverr.co">Coverr</a>.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<script src="assets/js/jquery.min.js"></script>
|
||||||
|
<script src="assets/js/browser.min.js"></script>
|
||||||
|
<script src="assets/js/breakpoints.min.js"></script>
|
||||||
|
<script src="assets/js/util.js"></script>
|
||||||
|
<script src="assets/js/main.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<!--
|
||||||
|
Industrious by TEMPLATED
|
||||||
|
templated.co @templatedco
|
||||||
|
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
||||||
|
-->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Generic Page - Industrious by TEMPLATED</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
|
<meta name="description" content="" />
|
||||||
|
<meta name="keywords" content="" />
|
||||||
|
<link rel="stylesheet" href="assets/css/main.css" />
|
||||||
|
</head>
|
||||||
|
<body class="is-preload">
|
||||||
|
|
||||||
|
<!-- Header -->
|
||||||
|
<header id="header">
|
||||||
|
<a class="logo" href="index.html">Industrious</a>
|
||||||
|
<nav>
|
||||||
|
<a href="#menu">Menu</a>
|
||||||
|
</nav>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Nav -->
|
||||||
|
<nav id="menu">
|
||||||
|
<ul class="links">
|
||||||
|
<li><a href="index.html">Home</a></li>
|
||||||
|
<li><a href="elements.html">Elements</a></li>
|
||||||
|
<li><a href="generic.html">Generic</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Heading -->
|
||||||
|
<div id="heading" >
|
||||||
|
<h1>Generic Page</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Main -->
|
||||||
|
<section id="main" class="wrapper">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<h2>Feugiat consequat</h2>
|
||||||
|
</header>
|
||||||
|
<p>Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Magna et cursus lorem faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod tempus. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida lorem ipsum dolor sit amet dolor feugiat consequat. </p>
|
||||||
|
<p>Lorem ipsum dolor sit accumsan interdum nisi, quis tincidunt felis sagittis eget. tempus euismod. Magna et cursus lorem faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod tempus. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida lorem ipsum dolor sit amet dolor feugiat consequat. </p>
|
||||||
|
<hr />
|
||||||
|
<h3>Magna odio tempus commodo</h3>
|
||||||
|
<p>In arcu accumsan arcu adipiscing accumsan orci ac. Felis id enim aliquet. Accumsan ac integer lobortis commodo ornare aliquet accumsan erat tempus amet porttitor. Ante commodo blandit adipiscing integer semper orci eget. Faucibus commodo adipiscing mi eu nullam accumsan morbi arcu ornare odio mi adipiscing nascetur lacus ac interdum morbi accumsan vis mi accumsan ac praesent.</p>
|
||||||
|
<p>Felis sagittis eget tempus primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus. Integer ac pellentesque praesent tincidunt felis sagittis eget. tempus euismod. Magna sed etiam ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing accumsan eu faucibus lorem ipsum dolor sit amet nullam.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer id="footer">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="content">
|
||||||
|
<section>
|
||||||
|
<h3>Accumsan montes viverra</h3>
|
||||||
|
<p>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing. Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing sed feugiat eu faucibus. Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida.</p>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Sem turpis amet semper</h4>
|
||||||
|
<ul class="alt">
|
||||||
|
<li><a href="#">Dolor pulvinar sed etiam.</a></li>
|
||||||
|
<li><a href="#">Etiam vel lorem sed amet.</a></li>
|
||||||
|
<li><a href="#">Felis enim feugiat viverra.</a></li>
|
||||||
|
<li><a href="#">Dolor pulvinar magna etiam.</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Magna sed ipsum</h4>
|
||||||
|
<ul class="plain">
|
||||||
|
<li><a href="#"><i class="icon fa-twitter"> </i>Twitter</a></li>
|
||||||
|
<li><a href="#"><i class="icon fa-facebook"> </i>Facebook</a></li>
|
||||||
|
<li><a href="#"><i class="icon fa-instagram"> </i>Instagram</a></li>
|
||||||
|
<li><a href="#"><i class="icon fa-github"> </i>Github</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="copyright">
|
||||||
|
© Untitled. Photos <a href="https://unsplash.co">Unsplash</a>, Video <a href="https://coverr.co">Coverr</a>.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<script src="assets/js/jquery.min.js"></script>
|
||||||
|
<script src="assets/js/browser.min.js"></script>
|
||||||
|
<script src="assets/js/breakpoints.min.js"></script>
|
||||||
|
<script src="assets/js/util.js"></script>
|
||||||
|
<script src="assets/js/main.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
After Width: | Height: | Size: 158 KiB |
|
After Width: | Height: | Size: 507 KiB |
|
After Width: | Height: | Size: 446 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 106 KiB |
@@ -0,0 +1,211 @@
|
|||||||
|
<!DOCTYPE HTML>
|
||||||
|
<!--
|
||||||
|
Industrious by TEMPLATED
|
||||||
|
templated.co @templatedco
|
||||||
|
Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
|
||||||
|
-->
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Arjun</title>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
||||||
|
<meta name="description" content="" />
|
||||||
|
<meta name="keywords" content="" />
|
||||||
|
<link rel="stylesheet" href="assets/css/main.css" />
|
||||||
|
</head>
|
||||||
|
<body class="is-preload">
|
||||||
|
|
||||||
|
<!-- Header -->
|
||||||
|
<header id="header">
|
||||||
|
<img id="signature" src="images/signature.jpg" alt="" />
|
||||||
|
<!-- <nav>
|
||||||
|
<a href="#menu">Menu</a>
|
||||||
|
</nav> -->
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<!-- Nav -->
|
||||||
|
<nav id="menu">
|
||||||
|
<ul class="links">
|
||||||
|
<li><a href="index.html">Home</a></li>
|
||||||
|
<li><a href="elements.html">Elements</a></li>
|
||||||
|
<li><a href="generic.html">Generic</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<!-- Banner -->
|
||||||
|
<section id="banner">
|
||||||
|
<div class="inner">
|
||||||
|
<h1>{ Arjun Patel }</h1>
|
||||||
|
<p>Web Guru, Budding Entrepreneur, and Technology Enthusiast</p>
|
||||||
|
</div>
|
||||||
|
<video autoplay loop muted playsinline src="images/banner.mp4"></video>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Highlights -->
|
||||||
|
<section class="wrapper">
|
||||||
|
<div class="inner">
|
||||||
|
<header class="special">
|
||||||
|
<h2>Genuine Service and Quality Product</h2>
|
||||||
|
<p>At the forefront of skill priorities is the foundational web team, focused on delivering exactly what customers desire.
|
||||||
|
Complexity of product and needs of our customers drives innovative software development.</p>
|
||||||
|
</header>
|
||||||
|
<div class="highlights">
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<a href="#" class="icon fa-vcard-o"><span class="label">Icon</span></a>
|
||||||
|
<h3>Customer Oriented</h3>
|
||||||
|
</header>
|
||||||
|
<p>Prioritizing the unique needs of each customer and designing product above and beyond specifications.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<a href="#" class="icon fa-files-o"><span class="label">Icon</span></a>
|
||||||
|
<h3>Readibility</h3>
|
||||||
|
</header>
|
||||||
|
<p>Maintaining a transparent development process.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<a href="#" class="icon fa-floppy-o"><span class="label">Icon</span></a>
|
||||||
|
<h3>Security</h3>
|
||||||
|
</header>
|
||||||
|
<p>Allowing customers to decide ownership rights.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<a href="#" class="icon fa-line-chart"><span class="label">Icon</span></a>
|
||||||
|
<h3>Business Value</h3>
|
||||||
|
</header>
|
||||||
|
<p>Creating to build immediate and siginificant business value.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<a href="#" class="icon fa-paper-plane-o"><span class="label">Icon</span></a>
|
||||||
|
<h3>Timed Delivery</h3>
|
||||||
|
</header>
|
||||||
|
<p>Delivering to ensure great satisfaction and understanding the importance of timed output.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<header>
|
||||||
|
<a href="#" class="icon fa-qrcode"><span class="label">Icon</span></a>
|
||||||
|
<h3>Modular Development</h3>
|
||||||
|
</header>
|
||||||
|
<p>Organizing a work flow to know exactly what is being built at each step in the process.</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- CTA -->
|
||||||
|
<section id="cta" class="wrapper">
|
||||||
|
<div class="inner">
|
||||||
|
<h2>Work with me</h2>
|
||||||
|
<!-- <p>Nunc lacinia ante nunc ac lobortis. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus ornare mi ut ante amet placerat aliquet. Volutpat eu sed ante lacinia sapien lorem accumsan varius montes viverra nibh in adipiscing. Lorem ipsum dolor vestibulum ante ipsum primis in faucibus vestibulum. Blandit adipiscing eu felis iaculis volutpat ac adipiscing sed feugiat eu faucibus. Integer ac sed amet praesent. Nunc lacinia ante nunc ac gravida.</p> -->
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Testimonials -->
|
||||||
|
<!-- <section class="wrapper">
|
||||||
|
<div class="inner">
|
||||||
|
<header class="special">
|
||||||
|
<h2>Faucibus consequat lorem</h2>
|
||||||
|
<p>In arcu accumsan arcu adipiscing accumsan orci ac. Felis id enim aliquet. Accumsan ac integer lobortis commodo ornare aliquet accumsan erat tempus amet porttitor.</p>
|
||||||
|
</header>
|
||||||
|
<div class="testimonials">
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<blockquote>
|
||||||
|
<p>Nunc lacinia ante nunc ac lobortis ipsum. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus.</p>
|
||||||
|
</blockquote>
|
||||||
|
<div class="author">
|
||||||
|
<div class="image">
|
||||||
|
<img src="images/pic01.jpg" alt="" />
|
||||||
|
</div>
|
||||||
|
<p class="credit">- <strong>Jane Doe</strong> <span>CEO - ABC Inc.</span></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<blockquote>
|
||||||
|
<p>Nunc lacinia ante nunc ac lobortis ipsum. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus.</p>
|
||||||
|
</blockquote>
|
||||||
|
<div class="author">
|
||||||
|
<div class="image">
|
||||||
|
<img src="images/pic03.jpg" alt="" />
|
||||||
|
</div>
|
||||||
|
<p class="credit">- <strong>John Doe</strong> <span>CEO - ABC Inc.</span></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<div class="content">
|
||||||
|
<blockquote>
|
||||||
|
<p>Nunc lacinia ante nunc ac lobortis ipsum. Interdum adipiscing gravida odio porttitor sem non mi integer non faucibus.</p>
|
||||||
|
</blockquote>
|
||||||
|
<div class="author">
|
||||||
|
<div class="image">
|
||||||
|
<img src="images/pic02.jpg" alt="" />
|
||||||
|
</div>
|
||||||
|
<p class="credit">- <strong>Janet Smith</strong> <span>CEO - ABC Inc.</span></p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section> -->
|
||||||
|
|
||||||
|
<!-- Footer -->
|
||||||
|
<footer id="footer">
|
||||||
|
<div class="inner">
|
||||||
|
<div class="content">
|
||||||
|
<section>
|
||||||
|
<h3>Connect with me</h3>
|
||||||
|
<p>Feel free to discuss anything from needed enterprise software to startup ambitions to software engineering. I am open for a formal meeting, call, or even a coffee chat. </p>
|
||||||
|
<p class="emailHandle">Ping me at <b>arjunpatel@berkeley.edu</b> or any other social mediums.</p>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Inspiration for you</h4>
|
||||||
|
<ul class="alt">
|
||||||
|
<li><a href="https://www.investopedia.com/news/elon-musk-earns-californias-minimum-wage-ceos-tsla/">Elon Musk Earns California's Min Wage</a></li>
|
||||||
|
<li><a href="https://www.entrepreneur.com/article/306867">...Successful Ones Didn't Quit</a></li>
|
||||||
|
<li><a href="https://www.entrepreneur.com/article/298025">Why Young Entrepreneurs Are Better Positioned to Succeed</a></li>
|
||||||
|
<li><a href="https://www.forbes.com/forbes/welcome/?toURL=https://www.forbes.com/sites/devinthorpe/2017/02/26/how-social-entrepreneurs-begin-to-measure-impact/&refURL=https://www.google.com/&referrer=https://www.google.com/">Social Entrepreneurs Measuring Success</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
<section>
|
||||||
|
<h4>Handles</h4>
|
||||||
|
<ul class="plain">
|
||||||
|
<li><a href="https://www.linkedin.com/in/patelarjunk/"><i class="icon fa-linkedin"> </i>Arjun Patel</a></li>
|
||||||
|
<li><a href="https://www.instagram.com/a4rjun/?hl=en"><i class="icon fa-instagram"> </i>a4rjun</a></li>
|
||||||
|
<li><a href="https://github.com/talksik"><i class="icon fa-github"> </i>talksik</a></li>
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<div class="copyright">
|
||||||
|
© Industrious Arjun Patel.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
<!-- Scripts -->
|
||||||
|
<script src="assets/js/jquery.min.js"></script>
|
||||||
|
<script src="assets/js/browser.min.js"></script>
|
||||||
|
<script src="assets/js/breakpoints.min.js"></script>
|
||||||
|
<script src="assets/js/util.js"></script>
|
||||||
|
<script src="assets/js/main.js"></script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||