')
373 | .append(i.clone())
374 | .remove()
375 | .html()
376 | .replace(/type="password"/i, 'type="text"')
377 | .replace(/type=password/i, 'type=text')
378 | );
379 |
380 | if (i.attr('id') != '')
381 | x.attr('id', i.attr('id') + '-polyfill-field');
382 |
383 | if (i.attr('name') != '')
384 | x.attr('name', i.attr('name') + '-polyfill-field');
385 |
386 | x.addClass('polyfill-placeholder')
387 | .val(x.attr('placeholder')).insertAfter(i);
388 |
389 | if (i.val() == '')
390 | i.hide();
391 | else
392 | x.hide();
393 |
394 | i
395 | .on('blur', function(event) {
396 |
397 | event.preventDefault();
398 |
399 | var x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
400 |
401 | if (i.val() == '') {
402 |
403 | i.hide();
404 | x.show();
405 |
406 | }
407 |
408 | });
409 |
410 | x
411 | .on('focus', function(event) {
412 |
413 | event.preventDefault();
414 |
415 | var i = x.parent().find('input[name=' + x.attr('name').replace('-polyfill-field', '') + ']');
416 |
417 | x.hide();
418 |
419 | i
420 | .show()
421 | .focus();
422 |
423 | })
424 | .on('keypress', function(event) {
425 |
426 | event.preventDefault();
427 | x.val('');
428 |
429 | });
430 |
431 | });
432 |
433 | // Events.
434 | $this
435 | .on('submit', function() {
436 |
437 | $this.find('input[type=text],input[type=password],textarea')
438 | .each(function(event) {
439 |
440 | var i = $(this);
441 |
442 | if (i.attr('name').match(/-polyfill-field$/))
443 | i.attr('name', '');
444 |
445 | if (i.val() == i.attr('placeholder')) {
446 |
447 | i.removeClass('polyfill-placeholder');
448 | i.val('');
449 |
450 | }
451 |
452 | });
453 |
454 | })
455 | .on('reset', function(event) {
456 |
457 | event.preventDefault();
458 |
459 | $this.find('select')
460 | .val($('option:first').val());
461 |
462 | $this.find('input,textarea')
463 | .each(function() {
464 |
465 | var i = $(this),
466 | x;
467 |
468 | i.removeClass('polyfill-placeholder');
469 |
470 | switch (this.type) {
471 |
472 | case 'submit':
473 | case 'reset':
474 | break;
475 |
476 | case 'password':
477 | i.val(i.attr('defaultValue'));
478 |
479 | x = i.parent().find('input[name=' + i.attr('name') + '-polyfill-field]');
480 |
481 | if (i.val() == '') {
482 | i.hide();
483 | x.show();
484 | }
485 | else {
486 | i.show();
487 | x.hide();
488 | }
489 |
490 | break;
491 |
492 | case 'checkbox':
493 | case 'radio':
494 | i.attr('checked', i.attr('defaultValue'));
495 | break;
496 |
497 | case 'text':
498 | case 'textarea':
499 | i.val(i.attr('defaultValue'));
500 |
501 | if (i.val() == '') {
502 | i.addClass('polyfill-placeholder');
503 | i.val(i.attr('placeholder'));
504 | }
505 |
506 | break;
507 |
508 | default:
509 | i.val(i.attr('defaultValue'));
510 | break;
511 |
512 | }
513 | });
514 |
515 | });
516 |
517 | return $this;
518 |
519 | };
520 |
521 | /**
522 | * Moves elements to/from the first positions of their respective parents.
523 | * @param {jQuery} $elements Elements (or selector) to move.
524 | * @param {bool} condition If true, moves elements to the top. Otherwise, moves elements back to their original locations.
525 | */
526 | $.prioritize = function($elements, condition) {
527 |
528 | var key = '__prioritize';
529 |
530 | // Expand $elements if it's not already a jQuery object.
531 | if (typeof $elements != 'jQuery')
532 | $elements = $($elements);
533 |
534 | // Step through elements.
535 | $elements.each(function() {
536 |
537 | var $e = $(this), $p,
538 | $parent = $e.parent();
539 |
540 | // No parent? Bail.
541 | if ($parent.length == 0)
542 | return;
543 |
544 | // Not moved? Move it.
545 | if (!$e.data(key)) {
546 |
547 | // Condition is false? Bail.
548 | if (!condition)
549 | return;
550 |
551 | // Get placeholder (which will serve as our point of reference for when this element needs to move back).
552 | $p = $e.prev();
553 |
554 | // Couldn't find anything? Means this element's already at the top, so bail.
555 | if ($p.length == 0)
556 | return;
557 |
558 | // Move element to top of parent.
559 | $e.prependTo($parent);
560 |
561 | // Mark element as moved.
562 | $e.data(key, $p);
563 |
564 | }
565 |
566 | // Moved already?
567 | else {
568 |
569 | // Condition is true? Bail.
570 | if (condition)
571 | return;
572 |
573 | $p = $e.data(key);
574 |
575 | // Move element back to its original location (using our placeholder).
576 | $e.insertAfter($p);
577 |
578 | // Unmark element as moved.
579 | $e.removeData(key);
580 |
581 | }
582 |
583 | });
584 |
585 | };
586 |
587 | })(jQuery);
--------------------------------------------------------------------------------
/assets/sass/base/_page.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Basic */
12 |
13 | // MSIE: Required for IEMobile.
14 | @-ms-viewport {
15 | width: device-width;
16 | }
17 |
18 | // MSIE: Prevents scrollbar from overlapping content.
19 | body {
20 | -ms-overflow-style: scrollbar;
21 | }
22 |
23 | // Ensures page width is always >=320px.
24 | @include breakpoint(xxsmall) {
25 | html, body {
26 | min-width: 320px;
27 | }
28 | }
29 |
30 | body {
31 | background: _palette(bg);
32 |
33 | // Prevents animation/transition "flicker" on page load.
34 | // Automatically added/removed by js/main.js.
35 | &.is-loading {
36 | *, *:before, *:after {
37 | @include vendor('animation', 'none !important');
38 | @include vendor('transition', 'none !important');
39 | }
40 | }
41 |
42 | }
--------------------------------------------------------------------------------
/assets/sass/base/_typography.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Type */
12 |
13 | html, body {
14 | background: _palette(bg-alt);
15 | }
16 |
17 | body {
18 | color: _palette(fg);
19 | }
20 |
21 | html, input, select, textarea {
22 | font-size: 16pt;
23 |
24 | // XLarge.
25 | @include breakpoint(xlarge) {
26 | font-size: 13pt;
27 | }
28 |
29 | // Large.
30 | @include breakpoint(large) {
31 | font-size: 12pt;
32 | }
33 |
34 | // XXSmall.
35 | @include breakpoint(xxsmall) {
36 | font-size: 11pt;
37 | }
38 |
39 | }
40 |
41 | body, input, select, textarea {
42 | font-family: _font(family);
43 | font-weight: _font(weight);
44 | line-height: 1.5em;
45 | letter-spacing: -0.015em;
46 | }
47 |
48 | a {
49 | @include vendor('transition', ('color #{_duration(transition)} ease-in-out', 'border-bottom-color #{_duration(transition)} ease-in-out'));
50 | text-decoration: none;
51 | border-bottom: dotted 1px;
52 |
53 | &:hover {
54 | border-bottom-color: transparent !important;
55 | }
56 | }
57 |
58 | strong, b {
59 | font-weight: _font(weight-bold);
60 | }
61 |
62 | em, i {
63 | font-style: italic;
64 | }
65 |
66 | p {
67 | margin: 0 0 _size(element-margin) 0;
68 | }
69 |
70 | h1, h2, h3, h4, h5, h6 {
71 | font-weight: _font(weight);
72 | line-height: 1em;
73 | margin: 0 0 (_size(element-margin) * 0.5) 0;
74 | letter-spacing: -0.0125em;
75 |
76 | a {
77 | color: inherit;
78 | text-decoration: none;
79 | border-bottom: none;
80 | }
81 |
82 | // Medium.
83 | @include breakpoint(medium) {
84 | br {
85 | display: none;
86 | }
87 | }
88 |
89 | }
90 |
91 | h2 {
92 | font-size: 1.75em;
93 | line-height: 1.5em;
94 | }
95 |
96 | h3 {
97 | font-size: 1.5em;
98 | line-height: 1.5em;
99 | }
100 |
101 | h4 {
102 | font-size: 1.1em;
103 | line-height: 1.5em;
104 | }
105 |
106 | h5 {
107 | font-size: 0.9em;
108 | line-height: 1.5em;
109 | }
110 |
111 | h6 {
112 | font-size: 0.7em;
113 | line-height: 1.5em;
114 | }
115 |
116 | // Small.
117 | @include breakpoint(small) {
118 | h2 {
119 | font-size: 1.25em;
120 | }
121 |
122 | h3 {
123 | font-size: 1.2em;
124 | }
125 |
126 | h4 {
127 | font-size: 1em;
128 | }
129 | }
130 |
131 | sub {
132 | font-size: 0.8em;
133 | position: relative;
134 | top: 0.5em;
135 | }
136 |
137 | sup {
138 | font-size: 0.8em;
139 | position: relative;
140 | top: -0.5em;
141 | }
142 |
143 | blockquote {
144 | border-left-style: solid;
145 | border-left-width: (_size(border-width) * 4);
146 | font-style: italic;
147 | margin: 0 0 _size(element-margin) 0;
148 | padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
149 | }
150 |
151 | code {
152 | border-radius: _size(border-radius);
153 | border-style: solid;
154 | border-width: _size(border-width);
155 | font-family: _font(family-fixed);
156 | font-size: 0.9em;
157 | margin: 0 0.25em;
158 | padding: 0.25em 0.65em;
159 | }
160 |
161 | pre {
162 | -webkit-overflow-scrolling: touch;
163 | font-family: _font(family-fixed);
164 | font-size: 0.9em;
165 | margin: 0 0 _size(element-margin) 0;
166 |
167 | code {
168 | display: block;
169 | line-height: 1.75em;
170 | padding: 1em 1.5em;
171 | overflow-x: auto;
172 | }
173 | }
174 |
175 | hr {
176 | border: 0;
177 | border-bottom-style: solid;
178 | border-bottom-width: _size(border-width);
179 | margin: _size(element-margin) 0;
180 |
181 | &.major {
182 | margin: (_size(element-margin) * 1.5) 0;
183 | }
184 | }
185 |
186 | .align-left {
187 | text-align: left;
188 | }
189 |
190 | .align-center {
191 | text-align: center;
192 | }
193 |
194 | .align-right {
195 | text-align: right;
196 | }
197 |
198 | @mixin color-typography($p: null) {
199 | @if $p != null {
200 | background-color: _palette($p, bg);
201 | color: _palette($p, fg);
202 | }
203 |
204 | input, select, textarea {
205 | color: _palette($p, fg);
206 | }
207 |
208 | a {
209 | color: inherit;
210 | border-bottom-color: _palette($p, border2);
211 |
212 | @if _palette($p, invert) == true {
213 | color: _palette($p, fg-bold);
214 | }
215 | @else {
216 | &:hover {
217 | color: _palette(accent1, bg);
218 | }
219 | }
220 | }
221 |
222 | strong, b {
223 | color: _palette($p, fg-bold);
224 | }
225 |
226 | h1, h2, h3, h4, h5, h6 {
227 | color: _palette($p, fg-bold);
228 | }
229 |
230 | blockquote {
231 | border-left-color: _palette($p, border);
232 | }
233 |
234 | code {
235 | background: _palette($p, border-bg);
236 | border-color: _palette($p, border);
237 | }
238 |
239 | hr {
240 | border-bottom-color: _palette($p, border);
241 | }
242 | }
243 |
244 | @include color-typography;
--------------------------------------------------------------------------------
/assets/sass/components/_box.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Box */
12 |
13 | .box {
14 | border-radius: _size(border-radius);
15 | border: solid _size(border-width) _palette(border);
16 | margin-bottom: _size(element-margin);
17 | padding: 1.5em;
18 |
19 | > :last-child,
20 | > :last-child > :last-child,
21 | > :last-child > :last-child > :last-child {
22 | margin-bottom: 0;
23 | }
24 |
25 | &.alt {
26 | border: 0;
27 | border-radius: 0;
28 | padding: 0;
29 | }
30 | }
--------------------------------------------------------------------------------
/assets/sass/components/_button.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Button */
12 |
13 | input[type="submit"],
14 | input[type="reset"],
15 | input[type="button"],
16 | button,
17 | .button {
18 | @include vendor('appearance', 'none');
19 | @include vendor('transition', 'background-color #{_duration(transition)} ease-in-out, color #{_duration(transition)} ease-in-out');
20 | border-radius: _size(border-radius);
21 | border: 0;
22 | cursor: pointer;
23 | display: inline-block;
24 | font-weight: _font(weight-bold);
25 | height: 2.85em;
26 | line-height: 2.95em;
27 | padding: 0 1.75em;
28 | text-align: center;
29 | text-decoration: none;
30 | white-space: nowrap;
31 |
32 | &.icon {
33 | padding-left: 1.35em;
34 |
35 | &:before {
36 | margin-right: 0.5em;
37 | }
38 | }
39 |
40 | &.fit {
41 | display: block;
42 | margin: 0 0 (_size(element-margin) * 0.5) 0;
43 | width: 100%;
44 | }
45 |
46 | &.small {
47 | font-size: 0.8em;
48 | }
49 |
50 | &.big {
51 | font-size: 1.35em;
52 | }
53 |
54 | &.disabled,
55 | &:disabled {
56 | @include vendor('pointer-events', 'none');
57 | cursor: default;
58 | opacity: 0.25;
59 | }
60 |
61 | // XSmall.
62 | @include breakpoint(xsmall) {
63 |
64 | // Portrait.
65 | @include orientation(portrait) {
66 | padding: 0;
67 | }
68 |
69 | }
70 |
71 | }
72 |
73 | @mixin color-button($p: null) {
74 | input[type="submit"],
75 | input[type="reset"],
76 | input[type="button"],
77 | button,
78 | .button {
79 | background-color: transparent;
80 | color: _palette($p, fg-bold) !important;
81 | box-shadow: inset 0 0 0 (_size(border-width) * 2) _palette($p, border);
82 |
83 | &:hover {
84 | background-color: _palette($p, border-bg);
85 | }
86 |
87 | &:active {
88 | background-color: _palette($p, border2-bg);
89 | }
90 |
91 | &.special {
92 | box-shadow: none;
93 |
94 | @if _palette($p, invert) == true {
95 | background-color: _palette($p, fg-bold);
96 | color: _palette($p, bg) !important;
97 |
98 | &:hover {
99 | }
100 |
101 | &:active {
102 | }
103 | }
104 | @else {
105 | background-color: _palette(accent1, bg);
106 | color: _palette(accent1, fg-bold) !important;
107 |
108 | &:hover {
109 | background-color: lighten(_palette(accent1, bg), 5);
110 | }
111 |
112 | &:active {
113 | background-color: darken(_palette(accent1, bg), 5);
114 | }
115 | }
116 | }
117 | }
118 | }
119 |
120 | @include color-button;
--------------------------------------------------------------------------------
/assets/sass/components/_form.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Form */
12 |
13 | form {
14 | margin: 0 0 _size(element-margin) 0;
15 | }
16 |
17 | label {
18 | display: block;
19 | font-size: 0.9em;
20 | font-weight: _font(weight-bold);
21 | margin: 0 0 (_size(element-margin) * 0.5) 0;
22 | }
23 |
24 | input[type="text"],
25 | input[type="password"],
26 | input[type="email"],
27 | select,
28 | textarea {
29 | @include vendor('appearance', 'none');
30 | border-radius: _size(border-radius);
31 | border: none;
32 | border-style: solid;
33 | border-width: _size(border-width);
34 | color: inherit;
35 | display: block;
36 | outline: 0;
37 | padding: 0 1em;
38 | text-decoration: none;
39 | width: 100%;
40 |
41 | &:invalid {
42 | box-shadow: none;
43 | }
44 | }
45 |
46 | .select-wrapper {
47 | @include icon;
48 | display: block;
49 | position: relative;
50 |
51 | &:before {
52 | content: '\f078';
53 | display: block;
54 | height: _size(element-height);
55 | line-height: _size(element-height);
56 | pointer-events: none;
57 | position: absolute;
58 | right: 0;
59 | text-align: center;
60 | top: 0;
61 | width: _size(element-height);
62 | }
63 |
64 | select::-ms-expand {
65 | display: none;
66 | }
67 | }
68 |
69 | input[type="text"],
70 | input[type="password"],
71 | input[type="email"],
72 | select {
73 | height: _size(element-height);
74 | }
75 |
76 | textarea {
77 | padding: 0.75em 1em;
78 | }
79 |
80 | input[type="checkbox"],
81 | input[type="radio"], {
82 | @include vendor('appearance', 'none');
83 | display: block;
84 | float: left;
85 | margin-right: -2em;
86 | opacity: 0;
87 | width: 1em;
88 | z-index: -1;
89 |
90 | & + label {
91 | @include icon;
92 | cursor: pointer;
93 | display: inline-block;
94 | font-size: 1em;
95 | font-weight: _font(weight);
96 | padding-left: (_size(element-height) * 0.6) + 0.75em;
97 | padding-right: 0.75em;
98 | position: relative;
99 |
100 | &:before {
101 | border-radius: _size(border-radius);
102 | border-style: solid;
103 | border-width: _size(border-width);
104 | content: '';
105 | display: inline-block;
106 | height: (_size(element-height) * 0.6);
107 | left: 0;
108 | line-height: (_size(element-height) * 0.575);
109 | position: absolute;
110 | text-align: center;
111 | top: 0;
112 | width: (_size(element-height) * 0.6);
113 | }
114 | }
115 |
116 | &:checked + label {
117 | &:before {
118 | content: '\f00c';
119 | }
120 | }
121 | }
122 |
123 | input[type="checkbox"] {
124 | & + label {
125 | &:before {
126 | border-radius: _size(border-radius);
127 | }
128 | }
129 | }
130 |
131 | input[type="radio"] {
132 | & + label {
133 | &:before {
134 | border-radius: 100%;
135 | }
136 | }
137 | }
138 |
139 | ::-webkit-input-placeholder {
140 | opacity: 1.0;
141 | }
142 |
143 | :-moz-placeholder {
144 | opacity: 1.0;
145 | }
146 |
147 | ::-moz-placeholder {
148 | opacity: 1.0;
149 | }
150 |
151 | :-ms-input-placeholder {
152 | opacity: 1.0;
153 | }
154 |
155 | .formerize-placeholder {
156 | opacity: 1.0;
157 | }
158 |
159 | @mixin color-form($p: null) {
160 |
161 | label {
162 | color: _palette($p, fg-bold);
163 | }
164 |
165 | input[type="text"],
166 | input[type="password"],
167 | input[type="email"],
168 | select,
169 | textarea {
170 | color: inherit;
171 | background-color: _palette($p, border-bg);
172 | border-color: _palette($p, border);
173 |
174 | &:focus {
175 | @if _palette($p, invert) == true {
176 | border-color: _palette($p, fg-bold);
177 | box-shadow: 0 0 0 _size(border-width) _palette($p, fg-bold);
178 | }
179 | @else {
180 | border-color: _palette(accent1, bg);
181 | box-shadow: 0 0 0 _size(border-width) _palette(accent1, bg);
182 | }
183 | }
184 | }
185 |
186 | .select-wrapper:before {
187 | color: _palette($p, border);
188 | }
189 |
190 | input[type="checkbox"],
191 | input[type="radio"], {
192 |
193 | & + label {
194 | color: _palette($p, fg);
195 |
196 | &:before {
197 | background-color: _palette($p, border-bg);
198 | border-color: _palette($p, border);
199 | }
200 | }
201 |
202 | &:checked + label {
203 | &:before {
204 | @if _palette($p, invert) == true {
205 | background-color: _palette($p, fg-bold);
206 | border-color: _palette($p, fg-bold);
207 | color: _palette($p, bg);
208 | }
209 | @else {
210 | background-color: _palette(accent1, bg);
211 | border-color: _palette(accent1, bg);
212 | color: _palette(accent1, fg-bold);
213 | }
214 | }
215 | }
216 |
217 | &:focus + label {
218 | &:before {
219 | @if _palette($p, invert) == true {
220 | border-color: _palette($p, fg-bold);
221 | box-shadow: 0 0 0 _size(border-width) _palette($p, fg-bold);
222 | }
223 | @else {
224 | border-color: _palette(accent1, bg);
225 | box-shadow: 0 0 0 _size(border-width) _palette(accent1, bg);
226 | }
227 | }
228 | }
229 | }
230 |
231 | ::-webkit-input-placeholder {
232 | color: _palette($p, fg-light) !important;
233 | }
234 |
235 | :-moz-placeholder {
236 | color: _palette($p, fg-light) !important;
237 | }
238 |
239 | ::-moz-placeholder {
240 | color: _palette($p, fg-light) !important;
241 | }
242 |
243 | :-ms-input-placeholder {
244 | color: _palette($p, fg-light) !important;
245 | }
246 |
247 | .formerize-placeholder {
248 | color: _palette($p, fg-light) !important;
249 | }
250 | }
251 |
252 | @include color-form;
--------------------------------------------------------------------------------
/assets/sass/components/_icon.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Icon */
12 |
13 | .icon {
14 | @include icon;
15 | border-bottom: none;
16 | position: relative;
17 |
18 | > .label {
19 | display: none;
20 | }
21 | }
22 |
23 | @mixin color-icon($p: null) {
24 | .icon {
25 | color: _palette($p, fg-light);
26 | }
27 | }
28 |
29 | @include color-icon;
--------------------------------------------------------------------------------
/assets/sass/components/_image.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Image */
12 |
13 | .image {
14 | border-radius: _size(border-radius);
15 | border: 0;
16 | display: inline-block;
17 | position: relative;
18 | overflow: hidden;
19 |
20 | img {
21 | border-radius: _size(border-radius);
22 | display: block;
23 | }
24 |
25 | &.left,
26 | &.right {
27 | max-width: 40%;
28 |
29 | img {
30 | width: 100%;
31 | }
32 | }
33 |
34 | &.left {
35 | float: left;
36 | margin: 0 1.5em 1em 0;
37 | top: 0.25em;
38 | }
39 |
40 | &.right {
41 | float: right;
42 | margin: 0 0 1em 1.5em;
43 | top: 0.25em;
44 | }
45 |
46 | &.fit {
47 | display: block;
48 | margin: 0 0 _size(element-margin) 0;
49 | width: 100%;
50 |
51 | img {
52 | width: 100%;
53 | }
54 | }
55 |
56 | &.main {
57 | display: block;
58 | margin: 0 0 (_size(element-margin) * 1.5) 0;
59 | width: 100%;
60 |
61 | img {
62 | width: 100%;
63 | }
64 | }
65 |
66 | &.phone {
67 | box-shadow: none;
68 | border-radius: 0;
69 | margin: 0 0 (_size(element-margin) * 1.5) 0;
70 | width: 13em;
71 |
72 | img {
73 | border-radius: 0;
74 | display: block;
75 | position: relative;
76 | width: 100%;
77 | }
78 |
79 | .inner, &:before, &:after {
80 | display: block;
81 | border: solid (_size(border-width) * 2) _palette(accent1, border);
82 | }
83 |
84 | .inner {
85 | position: relative;
86 |
87 | &:before, &:after {
88 | content: '';
89 | position: absolute;
90 | left: 50%;
91 | }
92 |
93 | &:before {
94 | top: -1.375em;
95 | margin-left: -1em;
96 | width: 2em;
97 | height: 0.25em;
98 | border-radius: 0.5em;
99 | background: _palette(accent1, border);
100 | }
101 |
102 | &:after {
103 | bottom: -2.75em;
104 | margin-left: -1em;
105 | width: 2em;
106 | height: 2em;
107 | border-radius: 100%;
108 | border: solid (_size(border-width) * 2) _palette(accent1, border);
109 | }
110 | }
111 |
112 | &:before, &:after {
113 | content: '';
114 | }
115 |
116 | &:before {
117 | height: 2.5em;
118 | border-radius: 1em 1em 0 0;
119 | border-bottom: 0;
120 | }
121 |
122 | &:after {
123 | height: 3.5em;
124 | border-radius: 0 0 1em 1em;
125 | border-top: 0;
126 | }
127 | }
128 | }
129 |
130 | @mixin color-image($p: null) {
131 | .image {
132 | box-shadow: 0 0 0 4px _palette($p, bg), 0 0 0 5px _palette($p, border);
133 |
134 | &.phone {
135 | box-shadow: none;
136 |
137 | .inner, &:before, &:after {
138 | border-color: _palette($p, border);
139 | }
140 |
141 | .inner {
142 | &:before {
143 | background: _palette($p, border);
144 | }
145 |
146 | &:after {
147 | border-color: _palette($p, border);
148 | }
149 | }
150 | }
151 | }
152 | }
153 |
154 | @include color-image;
--------------------------------------------------------------------------------
/assets/sass/components/_list.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* List */
12 |
13 | ol {
14 | list-style: decimal;
15 | margin: 0 0 _size(element-margin) 0;
16 | padding-left: 1.25em;
17 |
18 | li {
19 | padding-left: 0.25em;
20 | }
21 | }
22 |
23 | ul {
24 | list-style: disc;
25 | margin: 0 0 _size(element-margin) 0;
26 | padding-left: 1em;
27 |
28 | li {
29 | padding-left: 0.5em;
30 | }
31 |
32 | &.alt {
33 | list-style: none;
34 | padding-left: 0;
35 |
36 | li {
37 | border-top-style: solid;
38 | border-top-width: _size(border-width);
39 | padding: 0.5em 0;
40 |
41 | &:first-child {
42 | border-top: 0;
43 | padding-top: 0;
44 | }
45 | }
46 | }
47 |
48 | &.icons {
49 | cursor: default;
50 | list-style: none;
51 | padding-left: 0;
52 |
53 | li {
54 | display: inline-block;
55 | padding: 0 1.5em 0 0;
56 |
57 | &:last-child {
58 | padding-right: 0 !important;
59 | }
60 |
61 | .icon {
62 | &:before {
63 | font-size: 1.75rem;
64 | }
65 | }
66 | }
67 |
68 | &.major {
69 | li {
70 | padding: 0 2.5em 0 0;
71 |
72 | .icon {
73 | &:before {
74 | font-size: 2.75rem;
75 | }
76 | }
77 | }
78 |
79 | // Small.
80 | @include breakpoint(small) {
81 | li {
82 | padding: 0 1.25em 0 0;
83 |
84 | .icon {
85 | &:before {
86 | font-size: 1.75rem;
87 | }
88 | }
89 | }
90 | }
91 |
92 | }
93 |
94 | &.labeled {
95 | li {
96 | margin: 1em 0;
97 | padding: 0 2em 0 0;
98 |
99 | .icon {
100 | &:before {
101 | vertical-align: middle;
102 | font-size: 2.25rem;
103 | margin-right: 0.5em;
104 | }
105 |
106 | .label {
107 | display: inline-block;
108 | vertical-align: middle;
109 | color: _palette(fg);
110 | }
111 | }
112 | }
113 |
114 | // Small.
115 | @include breakpoint(small) {
116 |
117 | // Portrait.
118 | @include orientation(portrait) {
119 | text-align: left;
120 | margin-right: auto;
121 | margin-left: auto;
122 | display: inline-block;
123 | white-space: nowrap;
124 |
125 | li {
126 | display: block;
127 | padding: 0;
128 | margin: 1.5em 0 0 0;
129 |
130 | .icon {
131 | &:before {
132 | width: 1.5em;
133 | display: block;
134 | float: left;
135 | margin-right: 0;
136 | }
137 |
138 | &:after {
139 | content: '';
140 | display: block;
141 | clear: both;
142 | }
143 | }
144 |
145 | &:first-child {
146 | margin-top: 0;
147 | }
148 | }
149 | }
150 |
151 | }
152 |
153 | }
154 | }
155 |
156 | &.actions {
157 | cursor: default;
158 | list-style: none;
159 | padding-left: 0;
160 |
161 | li {
162 | display: inline-block;
163 | padding: 0 (_size(element-margin) * 0.5) 0 0;
164 | vertical-align: middle;
165 |
166 | &:last-child {
167 | padding-right: 0;
168 | }
169 | }
170 |
171 | &.small {
172 | li {
173 | padding: 0 (_size(element-margin) * 0.25) 0 0;
174 | }
175 | }
176 |
177 | &.vertical {
178 | li {
179 | display: block;
180 | padding: (_size(element-margin) * 0.5) 0 0 0;
181 |
182 | &:first-child {
183 | padding-top: 0;
184 | }
185 |
186 | > * {
187 | margin-bottom: 0;
188 | }
189 | }
190 |
191 | &.small {
192 | li {
193 | padding: (_size(element-margin) * 0.25) 0 0 0;
194 |
195 | &:first-child {
196 | padding-top: 0;
197 | }
198 | }
199 | }
200 | }
201 |
202 | &.fit {
203 | display: table;
204 | margin-left: (_size(element-margin) * -0.5);
205 | padding: 0;
206 | table-layout: fixed;
207 | width: calc(100% + #{(_size(element-margin) * 0.5)});
208 |
209 | li {
210 | display: table-cell;
211 | padding: 0 0 0 (_size(element-margin) * 0.5);
212 |
213 | > * {
214 | margin-bottom: 0;
215 | }
216 | }
217 |
218 | &.small {
219 | margin-left: (_size(element-margin) * -0.25);
220 | width: calc(100% + #{(_size(element-margin) * 0.25)});
221 |
222 | li {
223 | padding: 0 0 0 (_size(element-margin) * 0.25);
224 | }
225 | }
226 | }
227 |
228 | // XSmall.
229 | @include breakpoint(xsmall) {
230 |
231 | // Portrait.
232 | @include orientation(portrait) {
233 | margin: 0 0 _size(element-margin) 0;
234 |
235 | li {
236 | padding: (_size(element-margin) * 0.5) 0 0 0;
237 | display: block;
238 | text-align: center;
239 | width: 100%;
240 |
241 | &:first-child {
242 | padding-top: 0;
243 | }
244 |
245 | > * {
246 | width: 100%;
247 | margin: 0 !important;
248 |
249 | &.icon {
250 | &:before {
251 | margin-left: -2em;
252 | }
253 | }
254 | }
255 | }
256 |
257 | &.small {
258 | li {
259 | padding: (_size(element-margin) * 0.25) 0 0 0;
260 |
261 | &:first-child {
262 | padding-top: 0;
263 | }
264 | }
265 | }
266 | }
267 |
268 | }
269 |
270 | }
271 | }
272 |
273 | dl {
274 | margin: 0 0 _size(element-margin) 0;
275 |
276 | dt {
277 | display: block;
278 | font-weight: _font(weight-bold);
279 | margin: 0 0 (_size(element-margin) * 0.5) 0;
280 | }
281 |
282 | dd {
283 | margin-left: _size(element-margin);
284 | }
285 | }
286 |
287 | @mixin color-list($p: null) {
288 | ul {
289 | &.alt {
290 | > li {
291 | border-top-color: _palette($p, border);
292 | }
293 | }
294 | }
295 | }
296 |
297 | @include color-list;
--------------------------------------------------------------------------------
/assets/sass/components/_section.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Section/Article */
12 |
13 | section, article {
14 | &.special {
15 | text-align: center;
16 | }
17 | }
18 |
19 | header {
20 | p {
21 | position: relative;
22 | margin: 0 0 (_size(element-margin) * 0.75) 0;
23 |
24 | // Small.
25 | @include breakpoint(small) {
26 | br {
27 | display: none;
28 | }
29 | }
30 |
31 | }
32 |
33 | h2 + p {
34 | font-size: 1.25em;
35 | margin-top: (_size(element-margin) * -0.25);
36 | line-height: 1.5em;
37 | }
38 |
39 | h3 + p {
40 | font-size: 1.1em;
41 | margin-top: (_size(element-margin) * -0.125);
42 | line-height: 1.5em;
43 | }
44 |
45 | h4 + p,
46 | h5 + p,
47 | h6 + p {
48 | font-size: 0.9em;
49 | margin-top: (_size(element-margin) * -0.3);
50 | line-height: 1.5em;
51 | }
52 |
53 | &.major {
54 | margin: 0 0 (_size(element-margin) * 1.25) 0;
55 | text-align: center;
56 |
57 | &:after {
58 | content: '';
59 | border-bottom: solid (_size(border-width) * 2) _palette(border);
60 | display: block;
61 | width: 4em;
62 | margin: _size(element-margin) auto 0 auto;
63 | }
64 |
65 | // Small.
66 | @include breakpoint(small) {
67 | margin: 0 0 _size(element-margin) 0;
68 |
69 | p {
70 | font-size: 1em;
71 | }
72 | }
73 |
74 | }
75 | }
--------------------------------------------------------------------------------
/assets/sass/components/_spotlight.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Spotlight */
12 |
13 | .spotlight {
14 | @include vendor('display', 'flex');
15 | @include vendor('align-items', 'center');
16 | margin: 0 0 _size(element-margin) 0;
17 |
18 | .image {
19 | width: 30%;
20 | border-radius: 100%;
21 | margin: 0 (_size(element-margin) * 1.5) 0 0;
22 | display: block;
23 |
24 | img {
25 | display: block;
26 | border-radius: 100%;
27 | width: 100%;
28 | }
29 | }
30 |
31 | .content {
32 | width: 70%;
33 |
34 | > :last-child {
35 | margin-bottom: 0;
36 | }
37 | }
38 |
39 | &:nth-child(2n) {
40 | @include vendor('flex-direction', 'row-reverse');
41 |
42 | .image {
43 | margin: 0 0 0 (_size(element-margin) * 1.5);
44 | }
45 |
46 | .content {
47 | text-align: right;
48 | }
49 | }
50 |
51 | // Small.
52 | @include breakpoint(small) {
53 |
54 | // Landscape.
55 | @include orientation(landscape) {
56 | .image {
57 | margin: 0 _size(element-margin) 0 0;
58 | }
59 |
60 | &:nth-child(2n) {
61 | .image {
62 | margin: 0 0 0 _size(element-margin);
63 | }
64 | }
65 | }
66 |
67 | // Portrait.
68 | @include orientation(portrait) {
69 | @include vendor('flex-direction', 'column !important');
70 |
71 | .image {
72 | width: 100%;
73 | max-width: 60%;
74 | margin: 0 0 _size(element-margin) 0 !important;
75 | }
76 |
77 | .content {
78 | width: 100%;
79 | text-align: center !important;
80 | }
81 | }
82 |
83 | }
84 |
85 | }
--------------------------------------------------------------------------------
/assets/sass/components/_table.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Table */
12 |
13 | .table-wrapper {
14 | -webkit-overflow-scrolling: touch;
15 | overflow-x: auto;
16 | }
17 |
18 | table {
19 | margin: 0 0 _size(element-margin) 0;
20 | width: 100%;
21 |
22 | tbody {
23 | tr {
24 | border-style: solid;
25 | border-width: _size(border-width);
26 | border-left: 0;
27 | border-right: 0;
28 | }
29 | }
30 |
31 | td {
32 | padding: 0.75em 0.75em;
33 | }
34 |
35 | th {
36 | font-size: 0.9em;
37 | font-weight: _font(weight-bold);
38 | padding: 0 0.75em 0.75em 0.75em;
39 | text-align: left;
40 | }
41 |
42 | thead {
43 | border-bottom-style: solid;
44 | border-bottom-width: (_size(border-width) * 2);
45 | }
46 |
47 | tfoot {
48 | border-top-style: solid;
49 | border-top-width: (_size(border-width) * 2);
50 | }
51 |
52 | &.alt {
53 | border-collapse: separate;
54 |
55 | tbody {
56 | tr {
57 | td {
58 | border-style: solid;
59 | border-width: _size(border-width);
60 | border-left-width: 0;
61 | border-top-width: 0;
62 |
63 | &:first-child {
64 | border-left-width: _size(border-width);
65 | }
66 | }
67 |
68 | &:first-child {
69 | td {
70 | border-top-width: _size(border-width);
71 | }
72 | }
73 | }
74 | }
75 |
76 | thead {
77 | border-bottom: 0;
78 | }
79 |
80 | tfoot {
81 | border-top: 0;
82 | }
83 | }
84 | }
85 |
86 | @mixin color-table($p: null) {
87 | table {
88 |
89 | tbody {
90 | tr {
91 | border-color: _palette($p, border);
92 |
93 | &:nth-child(2n + 1) {
94 | background-color: _palette($p, border-bg);
95 | }
96 | }
97 | }
98 |
99 | th {
100 | color: _palette($p, fg-bold);
101 | }
102 |
103 | thead {
104 | border-bottom-color: _palette($p, border);
105 | }
106 |
107 | tfoot {
108 | border-top-color: _palette($p, border);
109 | }
110 |
111 | &.alt {
112 |
113 | tbody {
114 | tr {
115 | td {
116 | border-color: _palette($p, border);
117 | }
118 | }
119 | }
120 | }
121 | }
122 | }
123 |
124 | @include color-table;
--------------------------------------------------------------------------------
/assets/sass/components/_wrapper.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Wrapper */
12 |
13 | .wrapper {
14 | @include padding(4.5em, 0);
15 | background-color: _palette(bg);
16 | border-bottom: solid (_size(border-width) * 2) lighten(_palette(border), 3);
17 |
18 | > .inner {
19 | margin-left: auto;
20 | margin-right: auto;
21 | width: 50em;
22 |
23 | &.alt {
24 | > * {
25 | border-top: solid (_size(border-width) * 2) lighten(_palette(border), 3);
26 | margin-bottom: 0;
27 | margin-top: 3em;
28 | padding-top: 3em;
29 |
30 | &:first-child {
31 | border-top: 0;
32 | margin-top: 0;
33 | padding-top: 0;
34 | }
35 | }
36 | }
37 | }
38 |
39 | &.style1 {
40 | @include color(accent1);
41 | }
42 |
43 | &.style2 {
44 | @include color(accent2);
45 | }
46 |
47 | &.style3 {
48 | @include color(accent3);
49 | }
50 |
51 | // Medium.
52 | @include breakpoint(medium) {
53 | @include padding(4em, 4em);
54 |
55 | > .inner {
56 | width: 100%;
57 | }
58 | }
59 |
60 | // Small.
61 | @include breakpoint(small) {
62 |
63 | // Landscape.
64 | @include orientation(landscape) {
65 | @include padding(3em, 3em);
66 | }
67 |
68 | // Portrait.
69 | @include orientation(portrait) {
70 | @include padding(3em, 1.5em);
71 | }
72 |
73 | }
74 |
75 | // XSmall.
76 | @include breakpoint(xsmall) {
77 |
78 | // Landscape.
79 | @include orientation(landscape) {
80 | @include padding(2em, 1.5em);
81 | }
82 |
83 | // Portrait.
84 | @include orientation(portrait) {
85 | @include padding(2em, 1em);
86 | }
87 |
88 | }
89 |
90 | }
--------------------------------------------------------------------------------
/assets/sass/ie8.scss:
--------------------------------------------------------------------------------
1 | @import 'libs/vars';
2 | @import 'libs/functions';
3 | @import 'libs/mixins';
4 | @import 'libs/skel';
5 |
6 | /*
7 | Fractal by HTML5 UP
8 | html5up.net | @ajlkn
9 | Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
10 | */
11 |
12 | /* Button */
13 |
14 | input[type="submit"],
15 | input[type="reset"],
16 | input[type="button"],
17 | button,
18 | .button {
19 | position: relative;
20 | -ms-behavior: url('assets/js/ie/PIE.htc');
21 | border: solid (_size(border-width) * 2) _palette(border) !important;
22 |
23 | &:hover {
24 | border: solid (_size(border-width) * 2) _palette(border) !important;
25 | }
26 |
27 | &.special {
28 | border: none !important;
29 |
30 | &:hover {
31 | border: none !important;
32 | }
33 | }
34 | }
35 |
36 | /* Image */
37 |
38 | .image {
39 | -ms-behavior: url('assets/js/ie/PIE.htc');
40 |
41 | img {
42 | position: relative;
43 | -ms-behavior: url('assets/js/ie/PIE.htc');
44 | }
45 |
46 | &.phone {
47 | &:before, &:after {
48 | display: none;
49 | }
50 |
51 | .inner {
52 | &:before, &:after {
53 | display: none;
54 | }
55 | }
56 | }
57 | }
58 |
59 | /* List */
60 |
61 | ul {
62 | &.icons {
63 | li {
64 | padding: 0 0 0 1.5em;
65 |
66 | &:first-child {
67 | padding-left: 0 !important;
68 | }
69 |
70 | .icon {
71 | &:before {
72 | font-size: 24px;
73 | }
74 | }
75 | }
76 |
77 | &.major {
78 | li {
79 | padding: 0 0 0 2.5em;
80 |
81 | .icon {
82 | &:before {
83 | font-size: 48px;
84 | }
85 | }
86 | }
87 | }
88 | }
89 | }
90 |
91 | /* Header */
92 |
93 | #header {
94 | min-height: 0;
95 |
96 | .image {
97 | margin: 0 0 (_size(element-margin)) 0;
98 | }
99 | }
--------------------------------------------------------------------------------
/assets/sass/ie9.scss:
--------------------------------------------------------------------------------
1 | @import 'libs/vars';
2 | @import 'libs/functions';
3 | @import 'libs/mixins';
4 | @import 'libs/skel';
5 |
6 | /*
7 | Fractal by HTML5 UP
8 | html5up.net | @ajlkn
9 | Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
10 | */
11 |
12 | /* Spotlight */
13 |
14 | .spotlight {
15 | .image {
16 | width: 25%;
17 | display: inline-block;
18 | vertical-align: middle;
19 | }
20 |
21 | .content {
22 | width: 65%;
23 | display: inline-block;
24 | vertical-align: middle;
25 | }
26 |
27 | &:after {
28 | content: '';
29 | display: block;
30 | clear: both;
31 | }
32 |
33 | &:nth-child(2n) {
34 | .image {
35 | margin: 0 (_size(element-margin) * 1.5) 0 0;
36 | }
37 |
38 | .content {
39 | text-align: left;
40 | }
41 | }
42 | }
43 |
44 | /* Header */
45 |
46 | #header {
47 | height: auto;
48 | text-align: center;
49 |
50 | .content {
51 | display: inline-block;
52 | vertical-align: middle;
53 | }
54 |
55 | .image {
56 | display: inline-block;
57 | vertical-align: middle;
58 | }
59 | }
--------------------------------------------------------------------------------
/assets/sass/layout/_footer.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Footer */
12 |
13 | #footer {
14 | @include color-typography(accent3);
15 | @include padding(4.5em, 0);
16 | color: _palette(accent3, fg-light);
17 | text-align: center;
18 |
19 | a {
20 | color: inherit;
21 | }
22 |
23 | .copyright {
24 | font-size: 0.8em;
25 | }
26 |
27 | // Medium.
28 | @include breakpoint(medium) {
29 | @include padding(4em, 4em);
30 | }
31 |
32 | // Small.
33 | @include breakpoint(small) {
34 |
35 | // Landscape.
36 | @include orientation(landscape) {
37 | @include padding(3em, 3em);
38 | }
39 |
40 | // Portrait.
41 | @include orientation(portrait) {
42 | @include padding(3em, 1.5em);
43 | }
44 |
45 | }
46 |
47 | }
--------------------------------------------------------------------------------
/assets/sass/layout/_header.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Header */
12 |
13 | #header {
14 | @include color(accent1);
15 | @include padding(4.5em, 0);
16 | @include vendor('align-items', 'center');
17 | @include vendor('display', 'flex');
18 | @include vendor('justify-content', 'center');
19 | background-image: url('images/overlay.png'), url('images/pattern-size1.svg');
20 | background-position: top left, center center;
21 | background-attachment: fixed, fixed;
22 | background-size: auto, cover;
23 | height: 100vh;
24 | min-height: 35em;
25 |
26 | h1 {
27 | font-size: 3.25em;
28 | font-weight: _font(weight-bold);
29 | margin-bottom: _size(element-margin) * 0.25;
30 | }
31 |
32 | p {
33 | font-size: 1.5em;
34 | line-height: 1.35em;
35 |
36 | br {
37 | display: inline;
38 | }
39 | }
40 |
41 | .content {
42 | @include vendor('transition', ('opacity 0.5s ease', 'transform 1s ease'));
43 | @include vendor('transform', 'translateX(0)');
44 | opacity: 1;
45 | text-align: right;
46 | margin: (_size(element-margin) * -1.75) (_size(element-margin) * 2) 0 0;
47 |
48 | > :last-child {
49 | margin-bottom: 0;
50 | }
51 | }
52 |
53 | .image {
54 | @include vendor('transition', ('opacity 1s ease', 'transform 1s ease'));
55 | @include vendor('transform', 'translateY(0)');
56 | opacity: 1;
57 |
58 | img {
59 | @include vendor('transition', 'opacity 0.75s ease');
60 | @include vendor('transition-delay', '0.75s');
61 | opacity: 1;
62 | }
63 | }
64 |
65 | // Large.
66 | @include breakpoint(large) {
67 | background-image: url('images/overlay.png'), url('images/pattern-size2.svg');
68 | }
69 |
70 | // Medium.
71 | @include breakpoint(medium) {
72 | height: auto;
73 | min-height: 0;
74 |
75 | .content {
76 | margin: (_size(element-margin) * -1) (_size(element-margin) * 2) 0 0;
77 | }
78 |
79 | // Portrait.
80 | @include orientation(portrait) {
81 | @include padding(6em, 3em);
82 | @include vendor('flex-direction', 'column-reverse');
83 |
84 | .content {
85 | display: block;
86 | width: 100%;
87 | text-align: center;
88 | margin: 0 0 _size(element-margin) 0;
89 | }
90 |
91 | .image {
92 | overflow: hidden;
93 | }
94 | }
95 |
96 | }
97 |
98 | // Small.
99 | @include breakpoint(small) {
100 | background-image: url('images/overlay.png'), url('images/pattern-size3.svg');
101 |
102 | h1 {
103 | font-size: 2em;
104 | }
105 |
106 | p {
107 | font-size: 1em;
108 | line-height: inherit;
109 | }
110 |
111 | // Landscape.
112 | @include orientation(landscape) {
113 | @include padding(2em, 2em);
114 |
115 | .content {
116 | margin: 0 _size(element-margin) _size(element-margin) 0;
117 | }
118 |
119 | .image {
120 | font-size: 0.8em;
121 | width: 15em;
122 | max-width: 20vw;
123 |
124 | .inner, &:before, &:after {
125 | font-size: 0.8em;
126 | }
127 | }
128 | }
129 |
130 | // Portrait.
131 | @include orientation(portrait) {
132 | @include padding(3em, 1.5em);
133 |
134 | .image {
135 | font-size: 0.6em;
136 | max-width: 60vw;
137 | }
138 | }
139 |
140 | }
141 |
142 | // XSmall.
143 | @include breakpoint(xsmall) {
144 |
145 | // Landscape.
146 | @include orientation(landscape) {
147 | @include padding(2em, 1.5em);
148 |
149 | .image {
150 | font-size: 0.7em;
151 | }
152 |
153 | .actions {
154 | font-size: 0.8em;
155 | }
156 | }
157 |
158 | // Portrait.
159 | @include orientation(portrait) {
160 | @include padding(2em, 1em);
161 | }
162 |
163 | }
164 |
165 | // Mobile.
166 | body.is-mobile & {
167 | background-attachment: scroll, scroll;
168 | }
169 |
170 | // Loading.
171 | body.is-loading & {
172 | .content {
173 | @include vendor('transform', 'translateX(2em)');
174 | opacity: 0;
175 | }
176 |
177 | .image {
178 | @include vendor('transform', 'translateY(4em)');
179 | opacity: 0;
180 |
181 | img {
182 | opacity: 0;
183 | }
184 | }
185 |
186 | // Medium.
187 | @include breakpoint(medium) {
188 |
189 | // Portrait.
190 | @include orientation(portrait) {
191 | .content {
192 | @include vendor('transform', 'none');
193 | opacity: 1;
194 | }
195 |
196 | .image {
197 | @include vendor('transform', 'translateY(2em)');
198 | }
199 | }
200 |
201 | }
202 |
203 | }
204 |
205 | }
--------------------------------------------------------------------------------
/assets/sass/layout/_main.scss:
--------------------------------------------------------------------------------
1 | @import '../libs/vars';
2 | @import '../libs/functions';
3 | @import '../libs/mixins';
4 |
5 | ///
6 | /// Fractal by HTML5 UP
7 | /// html5up.net | @ajlkn
8 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
9 | ///
10 |
11 | /* Main */
12 |
13 | #main {
14 | @include padding(4em, 0);
15 |
16 | // Small.
17 | @include breakpoint(small) {
18 | @include padding(3em, 0);
19 | }
20 |
21 | }
--------------------------------------------------------------------------------
/assets/sass/libs/_functions.scss:
--------------------------------------------------------------------------------
1 | /// Gets a duration value.
2 | /// @param {string} $keys Key(s).
3 | /// @return {string} Value.
4 | @function _duration($keys...) {
5 | @return val($duration, $keys...);
6 | }
7 |
8 | /// Gets a font value.
9 | /// @param {string} $keys Key(s).
10 | /// @return {string} Value.
11 | @function _font($keys...) {
12 | @return val($font, $keys...);
13 | }
14 |
15 | /// Gets a misc value.
16 | /// @param {string} $keys Key(s).
17 | /// @return {string} Value.
18 | @function _misc($keys...) {
19 | @return val($misc, $keys...);
20 | }
21 |
22 | /// Gets a palette value.
23 | /// @param {string} $keys Key(s).
24 | /// @return {string} Value.
25 | @function _palette($keys...) {
26 | @return val($palette, $keys...);
27 | }
28 |
29 | /// Gets a size value.
30 | /// @param {string} $keys Key(s).
31 | /// @return {string} Value.
32 | @function _size($keys...) {
33 | @return val($size, $keys...);
34 | }
--------------------------------------------------------------------------------
/assets/sass/libs/_mixins.scss:
--------------------------------------------------------------------------------
1 | /// Makes an element's :before pseudoelement a FontAwesome icon.
2 | /// @param {string} $content Optional content value to use.
3 | /// @param {string} $where Optional pseudoelement to target (before or after).
4 | @mixin icon($content: false, $where: before) {
5 |
6 | text-decoration: none;
7 |
8 | &:#{$where} {
9 |
10 | @if $content {
11 | content: $content;
12 | }
13 |
14 | -moz-osx-font-smoothing: grayscale;
15 | -webkit-font-smoothing: antialiased;
16 | font-family: FontAwesome;
17 | font-style: normal;
18 | font-weight: normal;
19 | text-transform: none !important;
20 |
21 | }
22 |
23 | }
24 |
25 | /// Applies padding to an element, taking the current element-margin value into account.
26 | /// @param {mixed} $tb Top/bottom padding.
27 | /// @param {mixed} $lr Left/right padding.
28 | /// @param {list} $pad Optional extra padding (in the following order top, right, bottom, left)
29 | /// @param {bool} $important If true, adds !important.
30 | @mixin padding($tb, $lr, $pad: (0,0,0,0), $important: null) {
31 |
32 | @if $important {
33 | $important: '!important';
34 | }
35 |
36 | $x: 0.1em;
37 |
38 | @if unit(_size(element-margin)) == 'rem' {
39 | $x: 0.1rem;
40 | }
41 |
42 | padding: ($tb + nth($pad,1)) ($lr + nth($pad,2)) max($x, $tb - _size(element-margin) + nth($pad,3)) ($lr + nth($pad,4)) #{$important};
43 |
44 | }
45 |
46 | /// Encodes a SVG data URL so IE doesn't choke (via codepen.io/jakob-e/pen/YXXBrp).
47 | /// @param {string} $svg SVG data URL.
48 | /// @return {string} Encoded SVG data URL.
49 | @function svg-url($svg) {
50 |
51 | $svg: str-replace($svg, '"', '\'');
52 | $svg: str-replace($svg, '%', '%25');
53 | $svg: str-replace($svg, '<', '%3C');
54 | $svg: str-replace($svg, '>', '%3E');
55 | $svg: str-replace($svg, '&', '%26');
56 | $svg: str-replace($svg, '#', '%23');
57 | $svg: str-replace($svg, '{', '%7B');
58 | $svg: str-replace($svg, '}', '%7D');
59 | $svg: str-replace($svg, ';', '%3B');
60 |
61 | @return url("data:image/svg+xml;charset=utf8,#{$svg}");
62 |
63 | }
64 |
65 | /// Initializes base flexgrid classes.
66 | /// @param {string} $vertical-align Vertical alignment of cells.
67 | /// @param {string} $horizontal-align Horizontal alignment of cells.
68 | @mixin flexgrid-base($vertical-align: null, $horizontal-align: null) {
69 |
70 | // Grid.
71 | @include vendor('display', 'flex');
72 | @include vendor('flex-wrap', 'wrap');
73 |
74 | // Vertical alignment.
75 | @if ($vertical-align == top) {
76 | @include vendor('align-items', 'flex-start');
77 | }
78 | @else if ($vertical-align == bottom) {
79 | @include vendor('align-items', 'flex-end');
80 | }
81 | @else if ($vertical-align == center) {
82 | @include vendor('align-items', 'center');
83 | }
84 | @else {
85 | @include vendor('align-items', 'stretch');
86 | }
87 |
88 | // Horizontal alignment.
89 | @if ($horizontal-align != null) {
90 | text-align: $horizontal-align;
91 | }
92 |
93 | // Cells.
94 | > * {
95 | @include vendor('flex-shrink', '1');
96 | @include vendor('flex-grow', '0');
97 | }
98 |
99 | }
100 |
101 | /// Sets up flexgrid columns.
102 | /// @param {integer} $columns Columns.
103 | @mixin flexgrid-columns($columns) {
104 |
105 | > * {
106 | $cell-width: 100% / $columns;
107 | width: #{$cell-width};
108 | }
109 |
110 | }
111 |
112 | /// Sets up flexgrid gutters.
113 | /// @param {integer} $columns Columns.
114 | /// @param {number} $gutters Gutters.
115 | @mixin flexgrid-gutters($columns, $gutters) {
116 |
117 | // Apply padding.
118 | > * {
119 | $cell-width: 100% / $columns;
120 |
121 | padding: ($gutters * 0.5);
122 | width: $cell-width;
123 | }
124 |
125 | }
126 |
127 | /// Sets up flexgrid gutters (flush).
128 | /// @param {integer} $columns Columns.
129 | /// @param {number} $gutters Gutters.
130 | @mixin flexgrid-gutters-flush($columns, $gutters) {
131 |
132 | // Apply padding.
133 | > * {
134 | $cell-width: 100% / $columns;
135 | $cell-width-pad: $gutters / $columns;
136 |
137 | padding: ($gutters * 0.5);
138 | width: calc(#{$cell-width} + #{$cell-width-pad});
139 | }
140 |
141 | // Clear top/bottom gutters.
142 | > :nth-child(-n + #{$columns}) {
143 | padding-top: 0;
144 | }
145 |
146 | > :nth-last-child(-n + #{$columns}) {
147 | padding-bottom: 0;
148 | }
149 |
150 | // Clear left/right gutters.
151 | > :nth-child(#{$columns}n + 1) {
152 | padding-left: 0;
153 | }
154 |
155 | > :nth-child(#{$columns}n) {
156 | padding-right: 0;
157 | }
158 |
159 | // Adjust widths of leftmost and rightmost cells.
160 | > :nth-child(#{$columns}n + 1),
161 | > :nth-child(#{$columns}n) {
162 | $cell-width: 100% / $columns;
163 | $cell-width-pad: ($gutters / $columns) - ($gutters / 2);
164 |
165 | width: calc(#{$cell-width} + #{$cell-width-pad});
166 | }
167 |
168 | }
169 |
170 | /// Reset flexgrid gutters (flush only).
171 | /// Used to override a previous set of flexgrid gutter classes.
172 | /// @param {integer} $columns Columns.
173 | /// @param {number} $gutters Gutters.
174 | /// @param {integer} $prev-columns Previous columns.
175 | @mixin flexgrid-gutters-flush-reset($columns, $gutters, $prev-columns) {
176 |
177 | // Apply padding.
178 | > * {
179 | $cell-width: 100% / $prev-columns;
180 | $cell-width-pad: $gutters / $prev-columns;
181 |
182 | padding: ($gutters * 0.5);
183 | width: calc(#{$cell-width} + #{$cell-width-pad});
184 | }
185 |
186 | // Clear top/bottom gutters.
187 | > :nth-child(-n + #{$prev-columns}) {
188 | padding-top: ($gutters * 0.5);
189 | }
190 |
191 | > :nth-last-child(-n + #{$prev-columns}) {
192 | padding-bottom: ($gutters * 0.5);
193 | }
194 |
195 | // Clear left/right gutters.
196 | > :nth-child(#{$prev-columns}n + 1) {
197 | padding-left: ($gutters * 0.5);
198 | }
199 |
200 | > :nth-child(#{$prev-columns}n) {
201 | padding-right: ($gutters * 0.5);
202 | }
203 |
204 | // Adjust widths of leftmost and rightmost cells.
205 | > :nth-child(#{$prev-columns}n + 1),
206 | > :nth-child(#{$prev-columns}n) {
207 | $cell-width: 100% / $columns;
208 | $cell-width-pad: $gutters / $columns;
209 |
210 | padding: ($gutters * 0.5);
211 | width: calc(#{$cell-width} + #{$cell-width-pad});
212 | }
213 |
214 | }
215 |
216 | /// Adds debug styles to current flexgrid element.
217 | @mixin flexgrid-debug() {
218 |
219 | box-shadow: 0 0 0 1px red;
220 |
221 | > * {
222 | box-shadow: inset 0 0 0 1px blue;
223 | position: relative;
224 |
225 | > * {
226 | position: relative;
227 | box-shadow: inset 0 0 0 1px green;
228 | }
229 | }
230 |
231 | }
232 |
233 | /// Initializes the current element as a flexgrid.
234 | /// @param {integer} $columns Columns (optional).
235 | /// @param {number} $gutters Gutters (optional).
236 | /// @param {bool} $flush If true, clears padding around the very edge of the grid.
237 | @mixin flexgrid($settings: ()) {
238 |
239 | // Settings.
240 |
241 | // Debug.
242 | $debug: false;
243 |
244 | @if (map-has-key($settings, 'debug')) {
245 | $debug: map-get($settings, 'debug');
246 | }
247 |
248 | // Vertical align.
249 | $vertical-align: null;
250 |
251 | @if (map-has-key($settings, 'vertical-align')) {
252 | $vertical-align: map-get($settings, 'vertical-align');
253 | }
254 |
255 | // Horizontal align.
256 | $horizontal-align: null;
257 |
258 | @if (map-has-key($settings, 'horizontal-align')) {
259 | $horizontal-align: map-get($settings, 'horizontal-align');
260 | }
261 |
262 | // Columns.
263 | $columns: null;
264 |
265 | @if (map-has-key($settings, 'columns')) {
266 | $columns: map-get($settings, 'columns');
267 | }
268 |
269 | // Gutters.
270 | $gutters: 0;
271 |
272 | @if (map-has-key($settings, 'gutters')) {
273 | $gutters: map-get($settings, 'gutters');
274 | }
275 |
276 | // Flush.
277 | $flush: true;
278 |
279 | @if (map-has-key($settings, 'flush')) {
280 | $flush: map-get($settings, 'flush');
281 | }
282 |
283 | // Initialize base grid.
284 | @include flexgrid-base($vertical-align, $horizontal-align);
285 |
286 | // Debug?
287 | @if ($debug) {
288 | @include flexgrid-debug;
289 | }
290 |
291 | // Columns specified?
292 | @if ($columns != null) {
293 |
294 | // Initialize columns.
295 | @include flexgrid-columns($columns);
296 |
297 | // Gutters specified?
298 | @if ($gutters > 0) {
299 |
300 | // Flush gutters?
301 | @if ($flush) {
302 |
303 | // Initialize gutters (flush).
304 | @include flexgrid-gutters-flush($columns, $gutters);
305 |
306 | }
307 |
308 | // Otherwise ...
309 | @else {
310 |
311 | // Initialize gutters.
312 | @include flexgrid-gutters($columns, $gutters);
313 |
314 | }
315 |
316 | }
317 |
318 | }
319 |
320 | }
321 |
322 | /// Resizes a previously-initialized grid.
323 | /// @param {integer} $columns Columns.
324 | /// @param {number} $gutters Gutters (optional).
325 | /// @param {list} $reset A list of previously-initialized grid columns (only if $flush is true).
326 | /// @param {bool} $flush If true, clears padding around the very edge of the grid.
327 | @mixin flexgrid-resize($settings: ()) {
328 |
329 | // Settings.
330 |
331 | // Columns.
332 | $columns: 1;
333 |
334 | @if (map-has-key($settings, 'columns')) {
335 | $columns: map-get($settings, 'columns');
336 | }
337 |
338 | // Gutters.
339 | $gutters: 0;
340 |
341 | @if (map-has-key($settings, 'gutters')) {
342 | $gutters: map-get($settings, 'gutters');
343 | }
344 |
345 | // Previous columns.
346 | $prev-columns: false;
347 |
348 | @if (map-has-key($settings, 'prev-columns')) {
349 | $prev-columns: map-get($settings, 'prev-columns');
350 | }
351 |
352 | // Flush.
353 | $flush: true;
354 |
355 | @if (map-has-key($settings, 'flush')) {
356 | $flush: map-get($settings, 'flush');
357 | }
358 |
359 | // Resize columns.
360 | @include flexgrid-columns($columns);
361 |
362 | // Gutters specified?
363 | @if ($gutters > 0) {
364 |
365 | // Flush gutters?
366 | @if ($flush) {
367 |
368 | // Previous columns specified?
369 | @if ($prev-columns) {
370 |
371 | // Convert to list if it isn't one already.
372 | @if (type-of($prev-columns) != list) {
373 | $prev-columns: ($prev-columns);
374 | }
375 |
376 | // Step through list of previous columns and reset them.
377 | @each $x in $prev-columns {
378 | @include flexgrid-gutters-flush-reset($columns, $gutters, $x);
379 | }
380 |
381 | }
382 |
383 | // Resize gutters (flush).
384 | @include flexgrid-gutters-flush($columns, $gutters);
385 |
386 | }
387 |
388 | // Otherwise ...
389 | @else {
390 |
391 | // Resize gutters.
392 | @include flexgrid-gutters($columns, $gutters);
393 |
394 | }
395 |
396 | }
397 |
398 | }
--------------------------------------------------------------------------------
/assets/sass/libs/_skel.scss:
--------------------------------------------------------------------------------
1 | // skel.scss v3.0.2-dev | (c) skel.io | MIT licensed */
2 |
3 | // Vars.
4 |
5 | /// Breakpoints.
6 | /// @var {list}
7 | $breakpoints: () !global;
8 |
9 | /// Vendor prefixes.
10 | /// @var {list}
11 | $vendor-prefixes: (
12 | '-moz-',
13 | '-webkit-',
14 | '-ms-',
15 | ''
16 | );
17 |
18 | /// Properties that should be vendorized.
19 | /// @var {list}
20 | $vendor-properties: (
21 | 'align-content',
22 | 'align-items',
23 | 'align-self',
24 | 'animation',
25 | 'animation-delay',
26 | 'animation-direction',
27 | 'animation-duration',
28 | 'animation-fill-mode',
29 | 'animation-iteration-count',
30 | 'animation-name',
31 | 'animation-play-state',
32 | 'animation-timing-function',
33 | 'appearance',
34 | 'backface-visibility',
35 | 'box-sizing',
36 | 'filter',
37 | 'flex',
38 | 'flex-basis',
39 | 'flex-direction',
40 | 'flex-flow',
41 | 'flex-grow',
42 | 'flex-shrink',
43 | 'flex-wrap',
44 | 'justify-content',
45 | 'object-fit',
46 | 'object-position',
47 | 'order',
48 | 'perspective',
49 | 'pointer-events',
50 | 'transform',
51 | 'transform-origin',
52 | 'transform-style',
53 | 'transition',
54 | 'transition-delay',
55 | 'transition-duration',
56 | 'transition-property',
57 | 'transition-timing-function',
58 | 'user-select'
59 | );
60 |
61 | /// Values that should be vendorized.
62 | /// @var {list}
63 | $vendor-values: (
64 | 'filter',
65 | 'flex',
66 | 'linear-gradient',
67 | 'radial-gradient',
68 | 'transform'
69 | );
70 |
71 | // Functions.
72 |
73 | /// Removes a specific item from a list.
74 | /// @author Hugo Giraudel
75 | /// @param {list} $list List.
76 | /// @param {integer} $index Index.
77 | /// @return {list} Updated list.
78 | @function remove-nth($list, $index) {
79 |
80 | $result: null;
81 |
82 | @if type-of($index) != number {
83 | @warn "$index: #{quote($index)} is not a number for `remove-nth`.";
84 | }
85 | @else if $index == 0 {
86 | @warn "List index 0 must be a non-zero integer for `remove-nth`.";
87 | }
88 | @else if abs($index) > length($list) {
89 | @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";
90 | }
91 | @else {
92 |
93 | $result: ();
94 | $index: if($index < 0, length($list) + $index + 1, $index);
95 |
96 | @for $i from 1 through length($list) {
97 |
98 | @if $i != $index {
99 | $result: append($result, nth($list, $i));
100 | }
101 |
102 | }
103 |
104 | }
105 |
106 | @return $result;
107 |
108 | }
109 |
110 | /// Replaces a substring within another string.
111 | /// @author Hugo Giraudel
112 | /// @param {string} $string String.
113 | /// @param {string} $search Substring.
114 | /// @param {string} $replace Replacement.
115 | /// @return {string} Updated string.
116 | @function str-replace($string, $search, $replace: '') {
117 |
118 | $index: str-index($string, $search);
119 |
120 | @if $index {
121 | @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
122 | }
123 |
124 | @return $string;
125 |
126 | }
127 |
128 | /// Replaces a substring within each string in a list.
129 | /// @param {list} $strings List of strings.
130 | /// @param {string} $search Substring.
131 | /// @param {string} $replace Replacement.
132 | /// @return {list} Updated list of strings.
133 | @function str-replace-all($strings, $search, $replace: '') {
134 |
135 | @each $string in $strings {
136 | $strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));
137 | }
138 |
139 | @return $strings;
140 |
141 | }
142 |
143 | /// Gets a value from a map.
144 | /// @author Hugo Giraudel
145 | /// @param {map} $map Map.
146 | /// @param {string} $keys Key(s).
147 | /// @return {string} Value.
148 | @function val($map, $keys...) {
149 |
150 | @if nth($keys, 1) == null {
151 | $keys: remove-nth($keys, 1);
152 | }
153 |
154 | @each $key in $keys {
155 | $map: map-get($map, $key);
156 | }
157 |
158 | @return $map;
159 |
160 | }
161 |
162 | // Mixins.
163 |
164 | /// Sets the global box model.
165 | /// @param {string} $model Model (default is content).
166 | @mixin boxModel($model: 'content') {
167 |
168 | $x: $model + '-box';
169 |
170 | *, *:before, *:after {
171 | -moz-box-sizing: #{$x};
172 | -webkit-box-sizing: #{$x};
173 | box-sizing: #{$x};
174 | }
175 |
176 | }
177 |
178 | /// Wraps @content in a @media block using a given breakpoint.
179 | /// @param {string} $breakpoint Breakpoint.
180 | /// @param {map} $queries Additional queries.
181 | @mixin breakpoint($breakpoint: null, $queries: null) {
182 |
183 | $query: 'screen';
184 |
185 | // Breakpoint.
186 | @if $breakpoint and map-has-key($breakpoints, $breakpoint) {
187 | $query: $query + ' and ' + map-get($breakpoints, $breakpoint);
188 | }
189 |
190 | // Queries.
191 | @if $queries {
192 | @each $k, $v in $queries {
193 | $query: $query + ' and (' + $k + ':' + $v + ')';
194 | }
195 | }
196 |
197 | @media #{$query} {
198 | @content;
199 | }
200 |
201 | }
202 |
203 | /// Wraps @content in a @media block targeting a specific orientation.
204 | /// @param {string} $orientation Orientation.
205 | @mixin orientation($orientation) {
206 | @media screen and (orientation: #{$orientation}) {
207 | @content;
208 | }
209 | }
210 |
211 | /// Utility mixin for containers.
212 | /// @param {mixed} $width Width.
213 | @mixin containers($width) {
214 |
215 | // Locked?
216 | $lock: false;
217 |
218 | @if length($width) == 2 {
219 | $width: nth($width, 1);
220 | $lock: true;
221 | }
222 |
223 | // Modifiers.
224 | .container.\31 25\25 { width: 100%; max-width: $width * 1.25; min-width: $width; }
225 | .container.\37 5\25 { width: $width * 0.75; }
226 | .container.\35 0\25 { width: $width * 0.5; }
227 | .container.\32 5\25 { width: $width * 0.25; }
228 |
229 | // Main class.
230 | .container {
231 | @if $lock {
232 | width: $width !important;
233 | }
234 | @else {
235 | width: $width;
236 | }
237 | }
238 |
239 | }
240 |
241 | /// Utility mixin for grid.
242 | /// @param {list} $gutters Column and row gutters (default is 40px).
243 | /// @param {string} $breakpointName Optional breakpoint name.
244 | @mixin grid($gutters: 40px, $breakpointName: null) {
245 |
246 | // Gutters.
247 | @include grid-gutters($gutters);
248 | @include grid-gutters($gutters, \32 00\25, 2);
249 | @include grid-gutters($gutters, \31 50\25, 1.5);
250 | @include grid-gutters($gutters, \35 0\25, 0.5);
251 | @include grid-gutters($gutters, \32 5\25, 0.25);
252 |
253 | // Cells.
254 | $x: '';
255 |
256 | @if $breakpointName {
257 | $x: '\\28' + $breakpointName + '\\29';
258 | }
259 |
260 | .\31 2u#{$x}, .\31 2u\24#{$x} { width: 100%; clear: none; margin-left: 0; }
261 | .\31 1u#{$x}, .\31 1u\24#{$x} { width: 91.6666666667%; clear: none; margin-left: 0; }
262 | .\31 0u#{$x}, .\31 0u\24#{$x} { width: 83.3333333333%; clear: none; margin-left: 0; }
263 | .\39 u#{$x}, .\39 u\24#{$x} { width: 75%; clear: none; margin-left: 0; }
264 | .\38 u#{$x}, .\38 u\24#{$x} { width: 66.6666666667%; clear: none; margin-left: 0; }
265 | .\37 u#{$x}, .\37 u\24#{$x} { width: 58.3333333333%; clear: none; margin-left: 0; }
266 | .\36 u#{$x}, .\36 u\24#{$x} { width: 50%; clear: none; margin-left: 0; }
267 | .\35 u#{$x}, .\35 u\24#{$x} { width: 41.6666666667%; clear: none; margin-left: 0; }
268 | .\34 u#{$x}, .\34 u\24#{$x} { width: 33.3333333333%; clear: none; margin-left: 0; }
269 | .\33 u#{$x}, .\33 u\24#{$x} { width: 25%; clear: none; margin-left: 0; }
270 | .\32 u#{$x}, .\32 u\24#{$x} { width: 16.6666666667%; clear: none; margin-left: 0; }
271 | .\31 u#{$x}, .\31 u\24#{$x} { width: 8.3333333333%; clear: none; margin-left: 0; }
272 |
273 | .\31 2u\24#{$x} + *,
274 | .\31 1u\24#{$x} + *,
275 | .\31 0u\24#{$x} + *,
276 | .\39 u\24#{$x} + *,
277 | .\38 u\24#{$x} + *,
278 | .\37 u\24#{$x} + *,
279 | .\36 u\24#{$x} + *,
280 | .\35 u\24#{$x} + *,
281 | .\34 u\24#{$x} + *,
282 | .\33 u\24#{$x} + *,
283 | .\32 u\24#{$x} + *,
284 | .\31 u\24#{$x} + * {
285 | clear: left;
286 | }
287 |
288 | .\-11u#{$x} { margin-left: 91.6666666667% }
289 | .\-10u#{$x} { margin-left: 83.3333333333% }
290 | .\-9u#{$x} { margin-left: 75% }
291 | .\-8u#{$x} { margin-left: 66.6666666667% }
292 | .\-7u#{$x} { margin-left: 58.3333333333% }
293 | .\-6u#{$x} { margin-left: 50% }
294 | .\-5u#{$x} { margin-left: 41.6666666667% }
295 | .\-4u#{$x} { margin-left: 33.3333333333% }
296 | .\-3u#{$x} { margin-left: 25% }
297 | .\-2u#{$x} { margin-left: 16.6666666667% }
298 | .\-1u#{$x} { margin-left: 8.3333333333% }
299 |
300 | }
301 |
302 | /// Utility mixin for grid.
303 | /// @param {list} $gutters Gutters.
304 | /// @param {string} $class Optional class name.
305 | /// @param {integer} $multiplier Multiplier (default is 1).
306 | @mixin grid-gutters($gutters, $class: null, $multiplier: 1) {
307 |
308 | // Expand gutters if it's not a list.
309 | @if length($gutters) == 1 {
310 | $gutters: ($gutters, 0);
311 | }
312 |
313 | // Get column and row gutter values.
314 | $c: nth($gutters, 1);
315 | $r: nth($gutters, 2);
316 |
317 | // Get class (if provided).
318 | $x: '';
319 |
320 | @if $class {
321 | $x: '.' + $class;
322 | }
323 |
324 | // Default.
325 | .row#{$x} > * { padding: ($r * $multiplier) 0 0 ($c * $multiplier); }
326 | .row#{$x} { margin: ($r * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }
327 |
328 | // Uniform.
329 | .row.uniform#{$x} > * { padding: ($c * $multiplier) 0 0 ($c * $multiplier); }
330 | .row.uniform#{$x} { margin: ($c * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }
331 |
332 | }
333 |
334 | /// Wraps @content in vendorized keyframe blocks.
335 | /// @param {string} $name Name.
336 | @mixin keyframes($name) {
337 |
338 | @-moz-keyframes #{$name} { @content; }
339 | @-webkit-keyframes #{$name} { @content; }
340 | @-ms-keyframes #{$name} { @content; }
341 | @keyframes #{$name} { @content; }
342 |
343 | }
344 |
345 | ///
346 | /// Sets breakpoints.
347 | /// @param {map} $x Breakpoints.
348 | ///
349 | @mixin skel-breakpoints($x: ()) {
350 | $breakpoints: $x !global;
351 | }
352 |
353 | ///
354 | /// Initializes layout module.
355 | /// @param {map} config Config.
356 | ///
357 | @mixin skel-layout($config: ()) {
358 |
359 | // Config.
360 | $configPerBreakpoint: ();
361 |
362 | $z: map-get($config, 'breakpoints');
363 |
364 | @if $z {
365 | $configPerBreakpoint: $z;
366 | }
367 |
368 | // Reset.
369 | $x: map-get($config, 'reset');
370 |
371 | @if $x {
372 |
373 | /* Reset */
374 |
375 | @include reset($x);
376 |
377 | }
378 |
379 | // Box model.
380 | $x: map-get($config, 'boxModel');
381 |
382 | @if $x {
383 |
384 | /* Box Model */
385 |
386 | @include boxModel($x);
387 |
388 | }
389 |
390 | // Containers.
391 | $containers: map-get($config, 'containers');
392 |
393 | @if $containers {
394 |
395 | /* Containers */
396 |
397 | .container {
398 | margin-left: auto;
399 | margin-right: auto;
400 | }
401 |
402 | // Use default is $containers is just "true".
403 | @if $containers == true {
404 | $containers: 960px;
405 | }
406 |
407 | // Apply base.
408 | @include containers($containers);
409 |
410 | // Apply per-breakpoint.
411 | @each $name in map-keys($breakpoints) {
412 |
413 | // Get/use breakpoint setting if it exists.
414 | $x: map-get($configPerBreakpoint, $name);
415 |
416 | // Per-breakpoint config exists?
417 | @if $x {
418 | $y: map-get($x, 'containers');
419 |
420 | // Setting exists? Use it.
421 | @if $y {
422 | $containers: $y;
423 | }
424 |
425 | }
426 |
427 | // Create @media block.
428 | @media screen and #{map-get($breakpoints, $name)} {
429 | @include containers($containers);
430 | }
431 |
432 | }
433 |
434 | }
435 |
436 | // Grid.
437 | $grid: map-get($config, 'grid');
438 |
439 | @if $grid {
440 |
441 | /* Grid */
442 |
443 | // Use defaults if $grid is just "true".
444 | @if $grid == true {
445 | $grid: ();
446 | }
447 |
448 | // Sub-setting: Gutters.
449 | $grid-gutters: 40px;
450 | $x: map-get($grid, 'gutters');
451 |
452 | @if $x {
453 | $grid-gutters: $x;
454 | }
455 |
456 | // Rows.
457 | .row {
458 | border-bottom: solid 1px transparent;
459 | -moz-box-sizing: border-box;
460 | -webkit-box-sizing: border-box;
461 | box-sizing: border-box;
462 | }
463 |
464 | .row > * {
465 | float: left;
466 | -moz-box-sizing: border-box;
467 | -webkit-box-sizing: border-box;
468 | box-sizing: border-box;
469 | }
470 |
471 | .row:after, .row:before {
472 | content: '';
473 | display: block;
474 | clear: both;
475 | height: 0;
476 | }
477 |
478 | .row.uniform > * > :first-child {
479 | margin-top: 0;
480 | }
481 |
482 | .row.uniform > * > :last-child {
483 | margin-bottom: 0;
484 | }
485 |
486 | // Gutters (0%).
487 | @include grid-gutters($grid-gutters, \30 \25, 0);
488 |
489 | // Apply base.
490 | @include grid($grid-gutters);
491 |
492 | // Apply per-breakpoint.
493 | @each $name in map-keys($breakpoints) {
494 |
495 | // Get/use breakpoint setting if it exists.
496 | $x: map-get($configPerBreakpoint, $name);
497 |
498 | // Per-breakpoint config exists?
499 | @if $x {
500 | $y: map-get($x, 'grid');
501 |
502 | // Setting exists?
503 | @if $y {
504 |
505 | // Sub-setting: Gutters.
506 | $x: map-get($y, 'gutters');
507 |
508 | @if $x {
509 | $grid-gutters: $x;
510 | }
511 |
512 | }
513 |
514 | }
515 |
516 | // Create @media block.
517 | @media screen and #{map-get($breakpoints, $name)} {
518 | @include grid($grid-gutters, $name);
519 | }
520 |
521 | }
522 |
523 | }
524 |
525 | }
526 |
527 | /// Resets browser styles.
528 | /// @param {string} $mode Mode (default is 'normalize').
529 | @mixin reset($mode: 'normalize') {
530 |
531 | @if $mode == 'normalize' {
532 |
533 | // normalize.css v3.0.2 | MIT License | git.io/normalize
534 | html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}
535 |
536 | }
537 | @else if $mode == 'full' {
538 |
539 | // meyerweb.com/eric/tools/css/reset v2.0 | 20110126 | License: none (public domain)
540 | 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;}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}table{border-collapse:collapse;border-spacing:0;}body{-webkit-text-size-adjust:none}
541 |
542 | }
543 |
544 | }
545 |
546 | /// Vendorizes a declaration's property and/or value(s).
547 | /// @param {string} $property Property.
548 | /// @param {mixed} $value String/list of value(s).
549 | @mixin vendor($property, $value) {
550 |
551 | // Determine if property should expand.
552 | $expandProperty: index($vendor-properties, $property);
553 |
554 | // Determine if value should expand (and if so, add '-prefix-' placeholder).
555 | $expandValue: false;
556 |
557 | @each $x in $value {
558 | @each $y in $vendor-values {
559 | @if $y == str-slice($x, 1, str-length($y)) {
560 |
561 | $value: set-nth($value, index($value, $x), '-prefix-' + $x);
562 | $expandValue: true;
563 |
564 | }
565 | }
566 | }
567 |
568 | // Expand property?
569 | @if $expandProperty {
570 | @each $vendor in $vendor-prefixes {
571 | #{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
572 | }
573 | }
574 |
575 | // Expand just the value?
576 | @elseif $expandValue {
577 | @each $vendor in $vendor-prefixes {
578 | #{$property}: #{str-replace-all($value, '-prefix-', $vendor)};
579 | }
580 | }
581 |
582 | // Neither? Treat them as a normal declaration.
583 | @else {
584 | #{$property}: #{$value};
585 | }
586 |
587 | }
--------------------------------------------------------------------------------
/assets/sass/libs/_vars.scss:
--------------------------------------------------------------------------------
1 | // Misc.
2 | $misc: (
3 | );
4 |
5 | // Duration.
6 | $duration: (
7 | transition: 0.2s
8 | );
9 |
10 | // Size.
11 | $size: (
12 | border-radius: 6px,
13 | border-width: 1px,
14 | element-height: 2.75em,
15 | element-margin: 2em
16 | );
17 |
18 | // Font.
19 | $font: (
20 | family: (Arial, Helvetica, sans-serif),
21 | family-fixed: ('Courier New', monospace),
22 | weight: normal,
23 | weight-bold: bold
24 | );
25 |
26 | // Palette.
27 | $palette: (
28 | bg: #ffffff,
29 | fg: #999999,
30 | fg-bold: #828282,
31 | fg-light: #e0e0e0,
32 | border: #e6e6e6,
33 | border-bg: rgba(144,144,144,0.075),
34 | border2: #d6d6d6,
35 | border2-bg: rgba(144,144,144,0.15),
36 |
37 | accent1: (
38 | bg: #4696e5,
39 | fg: mix(#4696e5, #ffffff, 25%),
40 | fg-bold: #ffffff,
41 | fg-light: mix(#4696e5, #ffffff, 40%),
42 | border: rgba(255,255,255,0.25),
43 | border-bg: rgba(255,255,255,0.075),
44 | border2: rgba(255,255,255,0.5),
45 | border2-bg: rgba(255,255,255,0.2),
46 | invert: true
47 | ),
48 |
49 | accent2: (
50 | bg: #fbfbfb,
51 | fg: #999999,
52 | fg-bold: #828282,
53 | fg-light: #e0e0e0,
54 | border: #e6e6e6,
55 | border-bg: rgba(144,144,144,0.075),
56 | border2: #d6d6d6,
57 | border2-bg: rgba(144,144,144,0.15),
58 | invert: false
59 | ),
60 |
61 | accent3: (
62 | bg: #f7f7f7,
63 | fg: #999999,
64 | fg-bold: #828282,
65 | fg-light: #b0b0b0,
66 | border: #d6d6d6,
67 | border-bg: rgba(144,144,144,0.075),
68 | border2: #c6c6c6,
69 | border2-bg: rgba(144,144,144,0.15),
70 | invert: false
71 | )
72 | );
--------------------------------------------------------------------------------
/assets/sass/main.scss:
--------------------------------------------------------------------------------
1 | @import 'libs/vars';
2 | @import 'libs/functions';
3 | @import 'libs/mixins';
4 | @import 'libs/skel';
5 | @import 'font-awesome.min.css';
6 |
7 | /*
8 | Fractal by HTML5 UP
9 | html5up.net | @ajlkn
10 | Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
11 | */
12 |
13 | @include skel-breakpoints((
14 | xlarge: '(max-width: 1680px)',
15 | large: '(max-width: 1280px)',
16 | medium: '(max-width: 980px)',
17 | small: '(max-width: 736px)',
18 | xsmall: '(max-width: 480px)',
19 | xxsmall: '(max-width: 360px)'
20 | ));
21 |
22 | @include skel-layout((
23 | reset: 'full',
24 | boxModel: 'border',
25 | grid: (gutters: 1.5em)
26 | ));
27 |
28 | @mixin color($p: null) {
29 | @include color-button($p);
30 | @include color-form($p);
31 | @include color-icon($p);
32 | @include color-image($p);
33 | @include color-list($p);
34 | @include color-table($p);
35 | @include color-typography($p);
36 | }
37 |
38 | // Base.
39 |
40 | @import 'base/page';
41 | @import 'base/typography';
42 |
43 | // Component.
44 |
45 | @import 'components/box';
46 | @import 'components/button';
47 | @import 'components/form';
48 | @import 'components/icon';
49 | @import 'components/image';
50 | @import 'components/list';
51 | @import 'components/section';
52 | @import 'components/spotlight';
53 | @import 'components/table';
54 | @import 'components/wrapper';
55 |
56 | // Layout.
57 |
58 | @import 'layout/header';
59 | @import 'layout/main';
60 | @import 'layout/footer';
--------------------------------------------------------------------------------
/index.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | title: Home
4 | ---
5 |
6 |
7 |
8 |
9 | Sed ipsum magna lorem tempus amet
10 | vehicula et gravida elementum
11 |
12 |
13 | - Shoot
14 | - Process
15 | - Upload
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
Magna sed ultrices
26 |
Morbi mattis ornare ornare. Duis quam turpis, gravida at leo elementum elit fusce accumsan dui libero, quis vehicula lectus ultricies eu. In convallis amet leo non sapien iaculis efficitur consequat lorem ipsum.
27 |
28 |
29 |
30 |
31 |
32 |
Ultrices nullam aliquam
33 |
Morbi mattis ornare ornare. Duis quam turpis, gravida at leo elementum elit fusce accumsan dui libero, quis vehicula lectus ultricies eu. In convallis amet leo non sapien iaculis efficitur consequat lorem ipsum.
34 |
35 |
36 |
37 |
38 |
39 |
Aliquam sed magna
40 |
Morbi mattis ornare ornare. Duis quam turpis, gravida at leo elementum elit fusce accumsan dui libero, quis vehicula lectus ultricies eu. In convallis amet leo non sapien iaculis efficitur consequat lorem ipsum.
41 |
42 |
43 |
44 |
45 | - Ipsum lorem accumsan
46 | - Sed vehicula elementum
47 | - Elit fusce consequat
48 | - Lorem nullam tempus
49 | - Adipiscing amet sapien
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------