Skip to content

Commit

Permalink
Add missed files
Browse files Browse the repository at this point in the history
  • Loading branch information
bevans2000 committed Oct 18, 2023
1 parent 0aeb533 commit b7e618f
Show file tree
Hide file tree
Showing 23 changed files with 10,407 additions and 0 deletions.
101 changes: 101 additions & 0 deletions assets/css/fontawesome-all.min.css

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions assets/js/breakpoints.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/js/browser.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions assets/js/jquery.scrollex.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

223 changes: 223 additions & 0 deletions assets/sass/libs/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,223 @@
// breakpoints.scss v1.0 | @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;
}

}
149 changes: 149 additions & 0 deletions assets/sass/libs/_html-grid.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
// html-grid.scss v1.0 | @ajlkn | MIT licensed */

// Mixins.

/// Initializes the current element as an HTML grid.
/// @param {mixed} $gutters Gutters (either a single number to set both column/row gutters, or a list to set them individually).
/// @param {mixed} $suffix Column class suffix (optional; either a single suffix or a list).
@mixin html-grid($gutters: 1.5em, $suffix: '') {

// Initialize.
$cols: 12;
$multipliers: 0, 0.25, 0.5, 1, 1.50, 2.00;
$unit: 100% / $cols;

// Suffixes.
$suffixes: null;

@if (type-of($suffix) == 'list') {
$suffixes: $suffix;
}
@else {
$suffixes: ($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.
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
align-items: stretch;

// Columns.
> * {
box-sizing: border-box;
}

// Gutters.
&.gtr-uniform {
> * {
> :last-child {
margin-bottom: 0;
}
}
}

// Alignment.
&.aln-left {
justify-content: flex-start;
}

&.aln-center {
justify-content: center;
}

&.aln-right {
justify-content: flex-end;
}

&.aln-top {
align-items: flex-start;
}

&.aln-middle {
align-items: center;
}

&.aln-bottom {
align-items: flex-end;
}

// Step through suffixes.
@each $suffix in $suffixes {

// Suffix.
@if ($suffix != '') {
$suffix: '-' + $suffix;
}
@else {
$suffix: '';
}

// 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;
}
}

}

}

}

}
Loading

0 comments on commit b7e618f

Please sign in to comment.