+++ /dev/null
-// skel.scss v3.0.1 | (c) skel.io | MIT licensed */\r
-\r
-// Vars.\r
-\r
- /// Breakpoints.\r
- /// @var {list}\r
- $breakpoints: () !global;\r
-\r
- /// Vendor prefixes.\r
- /// @var {list}\r
- $vendor-prefixes: (\r
- '-moz-',\r
- '-webkit-',\r
- '-ms-',\r
- ''\r
- );\r
-\r
- /// Properties that should be vendorized.\r
- /// @var {list}\r
- $vendor-properties: (\r
- 'align-content',\r
- 'align-items',\r
- 'align-self',\r
- 'animation',\r
- 'animation-delay',\r
- 'animation-direction',\r
- 'animation-duration',\r
- 'animation-fill-mode',\r
- 'animation-iteration-count',\r
- 'animation-name',\r
- 'animation-play-state',\r
- 'animation-timing-function',\r
- 'appearance',\r
- 'backface-visibility',\r
- 'box-sizing',\r
- 'filter',\r
- 'flex',\r
- 'flex-basis',\r
- 'flex-direction',\r
- 'flex-flow',\r
- 'flex-grow',\r
- 'flex-shrink',\r
- 'flex-wrap',\r
- 'justify-content',\r
- 'order',\r
- 'perspective',\r
- 'pointer-events',\r
- 'transform',\r
- 'transform-origin',\r
- 'transform-style',\r
- 'transition',\r
- 'transition-delay',\r
- 'transition-duration',\r
- 'transition-property',\r
- 'transition-timing-function',\r
- 'user-select'\r
- );\r
-\r
- /// Values that should be vendorized.\r
- /// @var {list}\r
- $vendor-values: (\r
- 'filter',\r
- 'flex',\r
- 'linear-gradient',\r
- 'radial-gradient',\r
- 'transform'\r
- );\r
-\r
-// Functions.\r
-\r
- /// Removes a specific item from a list.\r
- /// @author Hugo Giraudel\r
- /// @param {list} $list List.\r
- /// @param {integer} $index Index.\r
- /// @return {list} Updated list.\r
- @function remove-nth($list, $index) {\r
-\r
- $result: null;\r
-\r
- @if type-of($index) != number {\r
- @warn "$index: #{quote($index)} is not a number for `remove-nth`.";\r
- }\r
- @else if $index == 0 {\r
- @warn "List index 0 must be a non-zero integer for `remove-nth`.";\r
- }\r
- @else if abs($index) > length($list) {\r
- @warn "List index is #{$index} but list is only #{length($list)} item long for `remove-nth`.";\r
- }\r
- @else {\r
-\r
- $result: ();\r
- $index: if($index < 0, length($list) + $index + 1, $index);\r
-\r
- @for $i from 1 through length($list) {\r
-\r
- @if $i != $index {\r
- $result: append($result, nth($list, $i));\r
- }\r
-\r
- }\r
-\r
- }\r
-\r
- @return $result;\r
-\r
- }\r
-\r
- /// Replaces a substring within another string.\r
- /// @author Hugo Giraudel\r
- /// @param {string} $string String.\r
- /// @param {string} $search Substring.\r
- /// @param {string} $replace Replacement.\r
- /// @return {string} Updated string.\r
- @function str-replace($string, $search, $replace: '') {\r
-\r
- $index: str-index($string, $search);\r
-\r
- @if $index {\r
- @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);\r
- }\r
-\r
- @return $string;\r
-\r
- }\r
-\r
- /// Replaces a substring within each string in a list.\r
- /// @param {list} $strings List of strings.\r
- /// @param {string} $search Substring.\r
- /// @param {string} $replace Replacement.\r
- /// @return {list} Updated list of strings.\r
- @function str-replace-all($strings, $search, $replace: '') {\r
-\r
- @each $string in $strings {\r
- $strings: set-nth($strings, index($strings, $string), str-replace($string, $search, $replace));\r
- }\r
-\r
- @return $strings;\r
-\r
- }\r
-\r
- /// Gets a value from a map.\r
- /// @author Hugo Giraudel\r
- /// @param {map} $map Map.\r
- /// @param {string} $keys Key(s).\r
- /// @return {string} Value.\r
- @function val($map, $keys...) {\r
-\r
- @if nth($keys, 1) == null {\r
- $keys: remove-nth($keys, 1);\r
- }\r
-\r
- @each $key in $keys {\r
- $map: map-get($map, $key);\r
- }\r
-\r
- @return $map;\r
-\r
- }\r
-\r
-// Mixins.\r
-\r
- /// Sets the global box model.\r
- /// @param {string} $model Model (default is content).\r
- @mixin boxModel($model: 'content') {\r
-\r
- $x: $model + '-box';\r
-\r
- *, *:before, *:after {\r
- -moz-box-sizing: #{$x};\r
- -webkit-box-sizing: #{$x};\r
- box-sizing: #{$x};\r
- }\r
-\r
- }\r
-\r
- /// Wraps @content in a @media block using a given breakpoint.\r
- /// @param {string} $breakpoint Breakpoint.\r
- /// @param {map} $queries Additional queries.\r
- @mixin breakpoint($breakpoint: null, $queries: null) {\r
-\r
- $query: 'screen';\r
-\r
- // Breakpoint.\r
- @if $breakpoint and map-has-key($breakpoints, $breakpoint) {\r
- $query: $query + ' and ' + map-get($breakpoints, $breakpoint);\r
- }\r
-\r
- // Queries.\r
- @if $queries {\r
- @each $k, $v in $queries {\r
- $query: $query + ' and (' + $k + ':' + $v + ')';\r
- }\r
- }\r
-\r
- @media #{$query} {\r
- @content;\r
- }\r
-\r
- }\r
-\r
- /// Wraps @content in a @media block targeting a specific orientation.\r
- /// @param {string} $orientation Orientation.\r
- @mixin orientation($orientation) {\r
- @media screen and (orientation: #{$orientation}) {\r
- @content;\r
- }\r
- }\r
-\r
- /// Utility mixin for containers.\r
- /// @param {mixed} $width Width.\r
- @mixin containers($width) {\r
-\r
- // Locked?\r
- $lock: false;\r
-\r
- @if length($width) == 2 {\r
- $width: nth($width, 1);\r
- $lock: true;\r
- }\r
-\r
- // Modifiers.\r
- .container.\31 25\25 { width: 100%; max-width: $width * 1.25; min-width: $width; }\r
- .container.\37 5\25 { width: $width * 0.75; }\r
- .container.\35 0\25 { width: $width * 0.5; }\r
- .container.\32 5\25 { width: $width * 0.25; }\r
-\r
- // Main class.\r
- .container {\r
- @if $lock {\r
- width: $width !important;\r
- }\r
- @else {\r
- width: $width;\r
- }\r
- }\r
-\r
- }\r
-\r
- /// Utility mixin for grid.\r
- /// @param {list} $gutters Column and row gutters (default is 40px).\r
- /// @param {string} $breakpointName Optional breakpoint name.\r
- @mixin grid($gutters: 40px, $breakpointName: null) {\r
-\r
- // Gutters.\r
- @include grid-gutters($gutters);\r
- @include grid-gutters($gutters, \32 00\25, 2);\r
- @include grid-gutters($gutters, \31 50\25, 1.5);\r
- @include grid-gutters($gutters, \35 0\25, 0.5);\r
- @include grid-gutters($gutters, \32 5\25, 0.25);\r
-\r
- // Cells.\r
- $x: '';\r
-\r
- @if $breakpointName {\r
- $x: '\\28' + $breakpointName + '\\29';\r
- }\r
-\r
- .\31 2u#{$x}, .\31 2u\24#{$x} { width: 100%; clear: none; margin-left: 0; }\r
- .\31 1u#{$x}, .\31 1u\24#{$x} { width: 91.6666666667%; clear: none; margin-left: 0; }\r
- .\31 0u#{$x}, .\31 0u\24#{$x} { width: 83.3333333333%; clear: none; margin-left: 0; }\r
- .\39 u#{$x}, .\39 u\24#{$x} { width: 75%; clear: none; margin-left: 0; }\r
- .\38 u#{$x}, .\38 u\24#{$x} { width: 66.6666666667%; clear: none; margin-left: 0; }\r
- .\37 u#{$x}, .\37 u\24#{$x} { width: 58.3333333333%; clear: none; margin-left: 0; }\r
- .\36 u#{$x}, .\36 u\24#{$x} { width: 50%; clear: none; margin-left: 0; }\r
- .\35 u#{$x}, .\35 u\24#{$x} { width: 41.6666666667%; clear: none; margin-left: 0; }\r
- .\34 u#{$x}, .\34 u\24#{$x} { width: 33.3333333333%; clear: none; margin-left: 0; }\r
- .\33 u#{$x}, .\33 u\24#{$x} { width: 25%; clear: none; margin-left: 0; }\r
- .\32 u#{$x}, .\32 u\24#{$x} { width: 16.6666666667%; clear: none; margin-left: 0; }\r
- .\31 u#{$x}, .\31 u\24#{$x} { width: 8.3333333333%; clear: none; margin-left: 0; }\r
-\r
- .\31 2u\24#{$x} + *,\r
- .\31 1u\24#{$x} + *,\r
- .\31 0u\24#{$x} + *,\r
- .\39 u\24#{$x} + *,\r
- .\38 u\24#{$x} + *,\r
- .\37 u\24#{$x} + *,\r
- .\36 u\24#{$x} + *,\r
- .\35 u\24#{$x} + *,\r
- .\34 u\24#{$x} + *,\r
- .\33 u\24#{$x} + *,\r
- .\32 u\24#{$x} + *,\r
- .\31 u\24#{$x} + * {\r
- clear: left;\r
- }\r
-\r
- .\-11u#{$x} { margin-left: 91.6666666667% }\r
- .\-10u#{$x} { margin-left: 83.3333333333% }\r
- .\-9u#{$x} { margin-left: 75% }\r
- .\-8u#{$x} { margin-left: 66.6666666667% }\r
- .\-7u#{$x} { margin-left: 58.3333333333% }\r
- .\-6u#{$x} { margin-left: 50% }\r
- .\-5u#{$x} { margin-left: 41.6666666667% }\r
- .\-4u#{$x} { margin-left: 33.3333333333% }\r
- .\-3u#{$x} { margin-left: 25% }\r
- .\-2u#{$x} { margin-left: 16.6666666667% }\r
- .\-1u#{$x} { margin-left: 8.3333333333% }\r
-\r
- }\r
-\r
- /// Utility mixin for grid.\r
- /// @param {list} $gutters Gutters.\r
- /// @param {string} $class Optional class name.\r
- /// @param {integer} $multiplier Multiplier (default is 1).\r
- @mixin grid-gutters($gutters, $class: null, $multiplier: 1) {\r
-\r
- // Expand gutters if it's not a list.\r
- @if length($gutters) == 1 {\r
- $gutters: ($gutters, 0);\r
- }\r
-\r
- // Get column and row gutter values.\r
- $c: nth($gutters, 1);\r
- $r: nth($gutters, 2);\r
-\r
- // Get class (if provided).\r
- $x: '';\r
-\r
- @if $class {\r
- $x: '.' + $class;\r
- }\r
-\r
- // Default.\r
- .row#{$x} > * { padding: ($r * $multiplier) 0 0 ($c * $multiplier); }\r
- .row#{$x} { margin: ($r * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }\r
-\r
- // Uniform.\r
- .row.uniform#{$x} > * { padding: ($c * $multiplier) 0 0 ($c * $multiplier); }\r
- .row.uniform#{$x} { margin: ($c * $multiplier * -1) 0 -1px ($c * $multiplier * -1); }\r
-\r
- }\r
-\r
- /// Wraps @content in vendorized keyframe blocks.\r
- /// @param {string} $name Name.\r
- @mixin keyframes($name) {\r
-\r
- @-moz-keyframes #{$name} { @content; }\r
- @-webkit-keyframes #{$name} { @content; }\r
- @-ms-keyframes #{$name} { @content; }\r
- @keyframes #{$name} { @content; }\r
-\r
- }\r
-\r
- ///\r
- /// Sets breakpoints.\r
- /// @param {map} $x Breakpoints.\r
- ///\r
- @mixin skel-breakpoints($x: ()) {\r
- $breakpoints: $x !global;\r
- }\r
-\r
- ///\r
- /// Initializes layout module.\r
- /// @param {map} config Config.\r
- ///\r
- @mixin skel-layout($config: ()) {\r
-\r
- // Config.\r
- $configPerBreakpoint: ();\r
-\r
- $z: map-get($config, 'breakpoints');\r
-\r
- @if $z {\r
- $configPerBreakpoint: $z;\r
- }\r
-\r
- // Reset.\r
- $x: map-get($config, 'reset');\r
-\r
- @if $x {\r
-\r
- /* Reset */\r
-\r
- @include reset($x);\r
-\r
- }\r
-\r
- // Box model.\r
- $x: map-get($config, 'boxModel');\r
-\r
- @if $x {\r
-\r
- /* Box Model */\r
-\r
- @include boxModel($x);\r
-\r
- }\r
-\r
- // Containers.\r
- $containers: map-get($config, 'containers');\r
-\r
- @if $containers {\r
-\r
- /* Containers */\r
-\r
- .container {\r
- margin-left: auto;\r
- margin-right: auto;\r
- }\r
-\r
- // Use default is $containers is just "true".\r
- @if $containers == true {\r
- $containers: 960px;\r
- }\r
-\r
- // Apply base.\r
- @include containers($containers);\r
-\r
- // Apply per-breakpoint.\r
- @each $name in map-keys($breakpoints) {\r
-\r
- // Get/use breakpoint setting if it exists.\r
- $x: map-get($configPerBreakpoint, $name);\r
-\r
- // Per-breakpoint config exists?\r
- @if $x {\r
- $y: map-get($x, 'containers');\r
-\r
- // Setting exists? Use it.\r
- @if $y {\r
- $containers: $y;\r
- }\r
-\r
- }\r
-\r
- // Create @media block.\r
- @media screen and #{map-get($breakpoints, $name)} {\r
- @include containers($containers);\r
- }\r
-\r
- }\r
-\r
- }\r
-\r
- // Grid.\r
- $grid: map-get($config, 'grid');\r
-\r
- @if $grid {\r
-\r
- /* Grid */\r
-\r
- // Use defaults if $grid is just "true".\r
- @if $grid == true {\r
- $grid: ();\r
- }\r
-\r
- // Sub-setting: Gutters.\r
- $grid-gutters: 40px;\r
- $x: map-get($grid, 'gutters');\r
-\r
- @if $x {\r
- $grid-gutters: $x;\r
- }\r
-\r
- // Rows.\r
- .row {\r
- border-bottom: solid 1px transparent;\r
- -moz-box-sizing: border-box;\r
- -webkit-box-sizing: border-box;\r
- box-sizing: border-box;\r
- }\r
-\r
- .row > * {\r
- float: left;\r
- -moz-box-sizing: border-box;\r
- -webkit-box-sizing: border-box;\r
- box-sizing: border-box;\r
- }\r
-\r
- .row:after, .row:before {\r
- content: '';\r
- display: block;\r
- clear: both;\r
- height: 0;\r
- }\r
-\r
- .row.uniform > * > :first-child {\r
- margin-top: 0;\r
- }\r
-\r
- .row.uniform > * > :last-child {\r
- margin-bottom: 0;\r
- }\r
-\r
- // Gutters (0%).\r
- @include grid-gutters($grid-gutters, \30 \25, 0);\r
-\r
- // Apply base.\r
- @include grid($grid-gutters);\r
-\r
- // Apply per-breakpoint.\r
- @each $name in map-keys($breakpoints) {\r
-\r
- // Get/use breakpoint setting if it exists.\r
- $x: map-get($configPerBreakpoint, $name);\r
-\r
- // Per-breakpoint config exists?\r
- @if $x {\r
- $y: map-get($x, 'grid');\r
-\r
- // Setting exists?\r
- @if $y {\r
-\r
- // Sub-setting: Gutters.\r
- $x: map-get($y, 'gutters');\r
-\r
- @if $x {\r
- $grid-gutters: $x;\r
- }\r
-\r
- }\r
-\r
- }\r
-\r
- // Create @media block.\r
- @media screen and #{map-get($breakpoints, $name)} {\r
- @include grid($grid-gutters, $name);\r
- }\r
-\r
- }\r
-\r
- }\r
-\r
- }\r
-\r
- /// Resets browser styles.\r
- /// @param {string} $mode Mode (default is 'normalize').\r
- @mixin reset($mode: 'normalize') {\r
-\r
- @if $mode == 'normalize' {\r
-\r
- // normalize.css v3.0.2 | MIT License | git.io/normalize\r
- 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}\r
-\r
- }\r
- @else if $mode == 'full' {\r
-\r
- // meyerweb.com/eric/tools/css/reset v2.0 | 20110126 | License: none (public domain)\r
- 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}\r
-\r
- }\r
-\r
- }\r
-\r
- /// Vendorizes a declaration's property and/or value(s).\r
- /// @param {string} $property Property.\r
- /// @param {mixed} $value String/list of value(s).\r
- @mixin vendor($property, $value) {\r
-\r
- // Determine if property should expand.\r
- $expandProperty: index($vendor-properties, $property);\r
-\r
- // Determine if value should expand (and if so, add '-prefix-' placeholder).\r
- $expandValue: false;\r
-\r
- @each $x in $value {\r
- @each $y in $vendor-values {\r
- @if $y == str-slice($x, 1, str-length($y)) {\r
-\r
- $value: set-nth($value, index($value, $x), '-prefix-' + $x);\r
- $expandValue: true;\r
-\r
- }\r
- }\r
- }\r
-\r
- // Expand property?\r
- @if $expandProperty {\r
- @each $vendor in $vendor-prefixes {\r
- #{$vendor}#{$property}: #{str-replace-all($value, '-prefix-', $vendor)};\r
- }\r
- }\r
-\r
- // Expand just the value?\r
- @elseif $expandValue {\r
- @each $vendor in $vendor-prefixes {\r
- #{$property}: #{str-replace-all($value, '-prefix-', $vendor)};\r
- }\r
- }\r
-\r
- // Neither? Treat them as a normal declaration.\r
- @else {\r
- #{$property}: #{$value};\r
- }\r
-\r
- }
\ No newline at end of file