Rename folder scss with an "_" for Jekyll to ignore it
This commit is contained in:
9
assets/_scss/vendor/susy/susy/output/_float.scss
vendored
Normal file
9
assets/_scss/vendor/susy/susy/output/_float.scss
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Float API
|
||||
// =========
|
||||
|
||||
@import "shared";
|
||||
|
||||
@import "float/container";
|
||||
@import "float/span";
|
||||
@import "float/end";
|
||||
@import "float/isolate";
|
||||
15
assets/_scss/vendor/susy/susy/output/_shared.scss
vendored
Normal file
15
assets/_scss/vendor/susy/susy/output/_shared.scss
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Shared API
|
||||
// ==========
|
||||
|
||||
@import "support";
|
||||
|
||||
@import "shared/inspect";
|
||||
@import "shared/output";
|
||||
@import "shared/direction";
|
||||
@import "shared/background";
|
||||
@import "shared/container";
|
||||
@import "shared/margins";
|
||||
@import "shared/padding";
|
||||
|
||||
|
||||
|
||||
9
assets/_scss/vendor/susy/susy/output/_support.scss
vendored
Normal file
9
assets/_scss/vendor/susy/susy/output/_support.scss
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
// Susy Browser Support
|
||||
// ====================
|
||||
|
||||
@import "support/support";
|
||||
@import "support/prefix";
|
||||
@import "support/background";
|
||||
@import "support/box-sizing";
|
||||
@import "support/rem";
|
||||
@import "support/clearfix";
|
||||
16
assets/_scss/vendor/susy/susy/output/float/_container.scss
vendored
Normal file
16
assets/_scss/vendor/susy/susy/output/float/_container.scss
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
// Float Container API
|
||||
// ===================
|
||||
|
||||
// Float Container
|
||||
// ---------------
|
||||
// - [$width] : <length>
|
||||
// - [$justify] : left | center | right
|
||||
// - [$math] : fluid | static
|
||||
@mixin float-container(
|
||||
$width,
|
||||
$justify: auto auto,
|
||||
$property: max-width
|
||||
) {
|
||||
@include susy-clearfix;
|
||||
@include container-output($width, $justify, $property);
|
||||
}
|
||||
40
assets/_scss/vendor/susy/susy/output/float/_end.scss
vendored
Normal file
40
assets/_scss/vendor/susy/susy/output/float/_end.scss
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
// Float Ends API
|
||||
// ==============
|
||||
|
||||
// Susy End Defaults
|
||||
// -----------------
|
||||
// - PRIVATE
|
||||
@include susy-defaults((
|
||||
last-flow: to,
|
||||
));
|
||||
|
||||
// Float Last
|
||||
// ----------
|
||||
// - [$flow] : ltr | rtl
|
||||
@mixin float-last(
|
||||
$flow: map-get($susy-defaults, flow),
|
||||
$last-flow: map-get($susy-defaults, last-flow),
|
||||
$margin: 0
|
||||
) {
|
||||
$to: to($flow);
|
||||
|
||||
$output: (
|
||||
float: if($last-flow == to, $to, null),
|
||||
margin-#{$to}: $margin,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
|
||||
// Float First
|
||||
// -----------
|
||||
// - [$flow] : ltr | rtl
|
||||
@mixin float-first(
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
$output: (
|
||||
margin-#{from($flow)}: 0,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
22
assets/_scss/vendor/susy/susy/output/float/_isolate.scss
vendored
Normal file
22
assets/_scss/vendor/susy/susy/output/float/_isolate.scss
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Float Isolation API
|
||||
// ===================
|
||||
|
||||
// Isolate Output
|
||||
// --------------
|
||||
// - $push : <length>
|
||||
// - [$flow] : ltr | rtl
|
||||
@mixin isolate-output(
|
||||
$push,
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
$to: to($flow);
|
||||
$from: from($flow);
|
||||
|
||||
$output: (
|
||||
float: $from,
|
||||
margin-#{$from}: $push,
|
||||
margin-#{$to}: -100%,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
35
assets/_scss/vendor/susy/susy/output/float/_span.scss
vendored
Normal file
35
assets/_scss/vendor/susy/susy/output/float/_span.scss
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
// Float Span API
|
||||
// ==============
|
||||
|
||||
// Float Span Output
|
||||
// -----------------
|
||||
// - $width : <length>
|
||||
// - [$float] : from | to
|
||||
// - [$margin-before] : <length>
|
||||
// - [$margin-after] : <length>
|
||||
// - [$padding-before] : <length>
|
||||
// - [$padding-after] : <length>
|
||||
// - [$flow] : ltr | rtl
|
||||
@mixin float-span-output(
|
||||
$width,
|
||||
$float : from,
|
||||
$margin-before : null,
|
||||
$margin-after : null,
|
||||
$padding-before : null,
|
||||
$padding-after : null,
|
||||
$flow : map-get($susy-defaults, flow)
|
||||
) {
|
||||
$to : to($flow);
|
||||
$from : from($flow);
|
||||
|
||||
$output: (
|
||||
width: $width,
|
||||
float: if($float == to, $to, null) or if($float == from, $from, null),
|
||||
margin-#{$from}: $margin-before,
|
||||
margin-#{$to}: $margin-after,
|
||||
padding-#{$from}: $padding-before,
|
||||
padding-#{$to}: $padding-after,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
26
assets/_scss/vendor/susy/susy/output/shared/_background.scss
vendored
Normal file
26
assets/_scss/vendor/susy/susy/output/shared/_background.scss
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// Grid Background API
|
||||
// ===================
|
||||
// - Sub-pixel rounding can lead to several pixels variation between browsers.
|
||||
|
||||
// Grid Background Output
|
||||
// ----------------------
|
||||
// - $image: background-image
|
||||
// - $size: background-size
|
||||
// - $clip: background-clip
|
||||
// - [$flow]: ltr | rtl
|
||||
@mixin background-grid-output (
|
||||
$image,
|
||||
$size: null,
|
||||
$clip: null,
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
$output: (
|
||||
background-image: $image,
|
||||
background-size: $size,
|
||||
background-origin: $clip,
|
||||
background-clip: $clip,
|
||||
background-position: from($flow) top,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
21
assets/_scss/vendor/susy/susy/output/shared/_container.scss
vendored
Normal file
21
assets/_scss/vendor/susy/susy/output/shared/_container.scss
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// Shared Container API
|
||||
// ====================
|
||||
|
||||
// Container Output
|
||||
// ----------------
|
||||
// - [$width] : <length>
|
||||
// - [$justify] : left | center | right
|
||||
// - [$math] : fluid | static
|
||||
@mixin container-output(
|
||||
$width,
|
||||
$justify: auto auto,
|
||||
$property: max-width
|
||||
) {
|
||||
$output: (
|
||||
#{$property}: $width or 100%,
|
||||
margin-left: nth($justify, 1),
|
||||
margin-right: nth($justify, 2),
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
42
assets/_scss/vendor/susy/susy/output/shared/_direction.scss
vendored
Normal file
42
assets/_scss/vendor/susy/susy/output/shared/_direction.scss
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
// Direction Helpers
|
||||
// =================
|
||||
|
||||
// Susy Flow Defaults
|
||||
// ------------------
|
||||
// - PRIVATE
|
||||
@include susy-defaults((
|
||||
flow: ltr,
|
||||
));
|
||||
|
||||
// Get Direction
|
||||
// -------------
|
||||
// Return the 'from' or 'to' direction of a ltr or rtl flow.
|
||||
// - [$flow] : ltr | rtl
|
||||
// - [$key] : from | to
|
||||
@function get-direction(
|
||||
$flow: map-get($susy-defaults, flow),
|
||||
$key: from
|
||||
) {
|
||||
$return: if($flow == rtl, (from: right, to: left), (from: left, to: right));
|
||||
@return map-get($return, $key);
|
||||
}
|
||||
|
||||
// To
|
||||
// --
|
||||
// Return the 'to' direction of a flow
|
||||
// - [$flow] : ltr | rtl
|
||||
@function to(
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
@return get-direction($flow, to);
|
||||
}
|
||||
|
||||
// From
|
||||
// ----
|
||||
// Return the 'from' direction of a flow
|
||||
// - [$flow] : ltr | rtl
|
||||
@function from(
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
@return get-direction($flow, from);
|
||||
}
|
||||
25
assets/_scss/vendor/susy/susy/output/shared/_inspect.scss
vendored
Normal file
25
assets/_scss/vendor/susy/susy/output/shared/_inspect.scss
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// Debugging
|
||||
// =========
|
||||
|
||||
// Susy Inspect
|
||||
// ------------
|
||||
// Output arguments passed to a inspect.
|
||||
// - $mixin : <susy mixin>
|
||||
// - $inspec : <mixin arguments>
|
||||
|
||||
@mixin susy-inspect(
|
||||
$mixin,
|
||||
$inspect
|
||||
) {
|
||||
$show: false;
|
||||
|
||||
@each $item in $inspect {
|
||||
@if index($item, inspect) {
|
||||
$show: true;
|
||||
}
|
||||
}
|
||||
|
||||
@if $show or susy-get(debug inspect) {
|
||||
-susy-#{$mixin}: inspect($inspect);
|
||||
}
|
||||
}
|
||||
23
assets/_scss/vendor/susy/susy/output/shared/_margins.scss
vendored
Normal file
23
assets/_scss/vendor/susy/susy/output/shared/_margins.scss
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Margins API
|
||||
// ===========
|
||||
|
||||
// Margin Output
|
||||
// -------------
|
||||
// - $before : <length>
|
||||
// - $after : <length>
|
||||
// - [$flow] : ltr | rtl
|
||||
@mixin margin-output(
|
||||
$before,
|
||||
$after,
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
$to: to($flow);
|
||||
$from: from($flow);
|
||||
|
||||
$output: (
|
||||
margin-#{$from}: $before,
|
||||
margin-#{$to}: $after,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
14
assets/_scss/vendor/susy/susy/output/shared/_output.scss
vendored
Normal file
14
assets/_scss/vendor/susy/susy/output/shared/_output.scss
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// Output
|
||||
// ======
|
||||
|
||||
// Output
|
||||
// ------
|
||||
// Output CSS with proper browser support.
|
||||
// - $styles : <map of css property-value pairs>
|
||||
@mixin output(
|
||||
$styles
|
||||
) {
|
||||
@each $prop, $val in $styles {
|
||||
@include susy-support($prop, $val);
|
||||
}
|
||||
}
|
||||
23
assets/_scss/vendor/susy/susy/output/shared/_padding.scss
vendored
Normal file
23
assets/_scss/vendor/susy/susy/output/shared/_padding.scss
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Padding API
|
||||
// ===========
|
||||
|
||||
// Padding Output
|
||||
// --------------
|
||||
// - $before : <length>
|
||||
// - $after : <length>
|
||||
// - [$flow] : ltr | rtl
|
||||
@mixin padding-output(
|
||||
$before,
|
||||
$after,
|
||||
$flow: map-get($susy-defaults, flow)
|
||||
) {
|
||||
$to: to($flow);
|
||||
$from: from($flow);
|
||||
|
||||
$output: (
|
||||
padding-#{$from}: $before,
|
||||
padding-#{$to}: $after,
|
||||
);
|
||||
|
||||
@include output($output);
|
||||
}
|
||||
58
assets/_scss/vendor/susy/susy/output/support/_background.scss
vendored
Normal file
58
assets/_scss/vendor/susy/susy/output/support/_background.scss
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
// Background Properties
|
||||
// =====================
|
||||
|
||||
// Susy Background Image
|
||||
// ---------------------
|
||||
// Check for an existing support mixin, or provide a simple fallback.
|
||||
// - $image: <background-image>
|
||||
@mixin susy-background-image(
|
||||
$image
|
||||
) {
|
||||
@if susy-support(background-image, (mixin: background-image), $warn: false) {
|
||||
@include background-image($image...);
|
||||
} @else {
|
||||
background-image: $image;
|
||||
}
|
||||
}
|
||||
|
||||
// Susy Background Size
|
||||
// ---------------------
|
||||
// Check for an existing support mixin, or provide a simple fallback.
|
||||
// - $image: <background-size>
|
||||
@mixin susy-background-size(
|
||||
$size
|
||||
) {
|
||||
@if susy-support(background-options, (mixin: background-size)) {
|
||||
@include background-size($size);
|
||||
} @else {
|
||||
background-size: $size;
|
||||
}
|
||||
}
|
||||
|
||||
// Susy Background Origin
|
||||
// ----------------------
|
||||
// Check for an existing support mixin, or provide a simple fallback.
|
||||
// - $image: <background-origin>
|
||||
@mixin susy-background-origin(
|
||||
$origin
|
||||
) {
|
||||
@if susy-support(background-options, (mixin: background-origin)) {
|
||||
@include background-origin($origin);
|
||||
} @else {
|
||||
background-origin: $origin;
|
||||
}
|
||||
}
|
||||
|
||||
// Susy Background Clip
|
||||
// --------------------
|
||||
// Check for an existing support mixin, or provide a simple fallback.
|
||||
// - $image: <background-clip>
|
||||
@mixin susy-background-clip(
|
||||
$clip
|
||||
) {
|
||||
@if susy-support(background-options, (mixin: background-clip)) {
|
||||
@include background-clip($clip);
|
||||
} @else {
|
||||
background-clip: $clip;
|
||||
}
|
||||
}
|
||||
19
assets/_scss/vendor/susy/susy/output/support/_box-sizing.scss
vendored
Normal file
19
assets/_scss/vendor/susy/susy/output/support/_box-sizing.scss
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Box Sizing
|
||||
// ==========
|
||||
|
||||
// Box Sizing
|
||||
// ----------
|
||||
// Check for an existing support mixin, or provide a simple fallback.
|
||||
// - $model: <box-sizing>
|
||||
@mixin susy-box-sizing(
|
||||
$model: content-box
|
||||
) {
|
||||
@if $model {
|
||||
@if susy-support(box-sizing, (mixin: box-sizing), $warn: false) {
|
||||
@include box-sizing($model);
|
||||
} @else {
|
||||
$prefix: (moz, webkit, official);
|
||||
@include susy-prefix(box-sizing, $model, $prefix);
|
||||
}
|
||||
}
|
||||
}
|
||||
18
assets/_scss/vendor/susy/susy/output/support/_clearfix.scss
vendored
Normal file
18
assets/_scss/vendor/susy/susy/output/support/_clearfix.scss
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Susy Fallback Clearfix
|
||||
// ======================
|
||||
|
||||
|
||||
// Clearfix
|
||||
// --------
|
||||
// Check for an existing support mixin, or provide a simple fallback.
|
||||
@mixin susy-clearfix {
|
||||
@if susy-support(clearfix, (mixin: clearfix)) {
|
||||
@include clearfix;
|
||||
} @else {
|
||||
&:after {
|
||||
content: " ";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
}
|
||||
19
assets/_scss/vendor/susy/susy/output/support/_prefix.scss
vendored
Normal file
19
assets/_scss/vendor/susy/susy/output/support/_prefix.scss
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Susy Prefix
|
||||
// ===========
|
||||
|
||||
// Prefix
|
||||
// ------
|
||||
// Output simple prefixed properties.
|
||||
// - $prop : <css property>
|
||||
// - $val : <css value>
|
||||
// - [$prefix] : <browser prefix list>
|
||||
@mixin susy-prefix(
|
||||
$prop,
|
||||
$val,
|
||||
$prefix: official
|
||||
) {
|
||||
@each $fix in $prefix {
|
||||
$fix: if($fix == official or not($fix), $prop, '-#{$fix}-#{$prop}');
|
||||
@include susy-rem($fix, $val);
|
||||
}
|
||||
}
|
||||
22
assets/_scss/vendor/susy/susy/output/support/_rem.scss
vendored
Normal file
22
assets/_scss/vendor/susy/susy/output/support/_rem.scss
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// rem Support
|
||||
// ===========
|
||||
|
||||
// rem
|
||||
// ---
|
||||
// Check for an existing support mixin, or output directly.
|
||||
// - $prop : <css property>
|
||||
// - $val : <css value>
|
||||
@mixin susy-rem(
|
||||
$prop,
|
||||
$val
|
||||
) {
|
||||
$_reqs: (
|
||||
variable: rhythm-unit rem-with-px-fallback,
|
||||
mixin: rem,
|
||||
);
|
||||
@if susy-support(rem, $_reqs, $warn: false) and $rhythm-unit == rem {
|
||||
@include rem($prop, $val);
|
||||
} @else {
|
||||
#{$prop}: $val;
|
||||
}
|
||||
}
|
||||
85
assets/_scss/vendor/susy/susy/output/support/_support.scss
vendored
Normal file
85
assets/_scss/vendor/susy/susy/output/support/_support.scss
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
// Browser Support
|
||||
// ===============
|
||||
|
||||
// Susy Support Defaults
|
||||
// ---------------------
|
||||
@include susy-defaults((
|
||||
use-custom: (
|
||||
clearfix: false,
|
||||
background-image: true,
|
||||
background-options: false,
|
||||
breakpoint: true,
|
||||
box-sizing: true,
|
||||
rem: true,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
// Susy Support [mixin]
|
||||
// --------------------
|
||||
// Send property-value pairs to the proper support modules.
|
||||
// - $prop : <css property>
|
||||
// - $val : <css value>
|
||||
@mixin susy-support(
|
||||
$prop,
|
||||
$val
|
||||
) {
|
||||
// Background Support
|
||||
@if $prop == background-image {
|
||||
@include susy-background-image($val);
|
||||
} @else if $prop == background-size {
|
||||
@include susy-background-size($val);
|
||||
} @else if $prop == background-origin {
|
||||
@include susy-background-origin($val);
|
||||
} @else if $prop == background-clip {
|
||||
@include susy-background-clip($val);
|
||||
}
|
||||
|
||||
// Box-Sizing Support
|
||||
@else if $prop == box-sizing {
|
||||
@include susy-box-sizing($val);
|
||||
}
|
||||
|
||||
// Rem Support
|
||||
@else {
|
||||
@include susy-rem($prop, $val);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Susy Support [function]
|
||||
// -----------------------
|
||||
// Check for support of a feature.
|
||||
// - $feature : <string>
|
||||
// - e.g "rem" or "box-sizing"
|
||||
// - $requirements : <map>
|
||||
// - e.g (variable: rem-with-px-fallback, mixin: rem)
|
||||
// - $warn : <bool>
|
||||
@function susy-support(
|
||||
$feature,
|
||||
$requirements: (),
|
||||
$warn: true
|
||||
) {
|
||||
$_support: susy-get(use-custom $feature);
|
||||
|
||||
@if $_support {
|
||||
$_fail: false;
|
||||
|
||||
@each $_type, $_req in $requirements {
|
||||
@each $_i in $_req {
|
||||
$_pass: call(unquote("#{$_type}-exists"), $_i);
|
||||
|
||||
@if not($_pass) {
|
||||
$_fail: true;
|
||||
@if $warn {
|
||||
@warn "You requested custom support of #{$feature}, but the #{$_i} #{$_type} is not available.";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$_support: if($_fail, false, $_support);
|
||||
}
|
||||
|
||||
@return $_support;
|
||||
}
|
||||
Reference in New Issue
Block a user