daiblogs 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +3 -0
  3. data/_includes/footer-nav.html +40 -0
  4. data/_includes/footer.html +47 -0
  5. data/_includes/head.html +29 -0
  6. data/_includes/header.html +56 -0
  7. data/_includes/iehacks.html +18 -0
  8. data/_includes/svg-defs.html +194 -0
  9. data/_includes/webfonts.html +9 -0
  10. data/_layouts/blog.html +0 -0
  11. data/_layouts/default.html +14 -0
  12. data/_layouts/home.html +0 -0
  13. data/_layouts/page.html +0 -0
  14. data/_layouts/post.html +0 -0
  15. data/assets/_sass/_blog.scss +1 -0
  16. data/assets/_sass/_grid.scss +48 -0
  17. data/assets/_sass/_layout.scss +2 -0
  18. data/assets/_sass/_legacy.scss +2919 -0
  19. data/assets/_sass/_mixins.scss +75 -0
  20. data/assets/_sass/_typesetting.scss +0 -0
  21. data/assets/_sass/_variables.scss +70 -0
  22. data/assets/_sass/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
  23. data/assets/_sass/bourbon/_bourbon.scss +59 -0
  24. data/assets/_sass/bourbon/addons/_button.scss +273 -0
  25. data/assets/_sass/bourbon/addons/_clearfix.scss +29 -0
  26. data/assets/_sass/bourbon/addons/_font-family.scss +5 -0
  27. data/assets/_sass/bourbon/addons/_hide-text.scss +5 -0
  28. data/assets/_sass/bourbon/addons/_html5-input-types.scss +56 -0
  29. data/assets/_sass/bourbon/addons/_position.scss +42 -0
  30. data/assets/_sass/bourbon/addons/_prefixer.scss +49 -0
  31. data/assets/_sass/bourbon/addons/_retina-image.scss +32 -0
  32. data/assets/_sass/bourbon/addons/_size.scss +44 -0
  33. data/assets/_sass/bourbon/addons/_timing-functions.scss +32 -0
  34. data/assets/_sass/bourbon/addons/_triangle.scss +45 -0
  35. data/assets/_sass/bourbon/css3/_animation.scss +52 -0
  36. data/assets/_sass/bourbon/css3/_appearance.scss +3 -0
  37. data/assets/_sass/bourbon/css3/_backface-visibility.scss +6 -0
  38. data/assets/_sass/bourbon/css3/_background-image.scss +48 -0
  39. data/assets/_sass/bourbon/css3/_background.scss +103 -0
  40. data/assets/_sass/bourbon/css3/_border-image.scss +55 -0
  41. data/assets/_sass/bourbon/css3/_border-radius.scss +22 -0
  42. data/assets/_sass/bourbon/css3/_box-sizing.scss +4 -0
  43. data/assets/_sass/bourbon/css3/_columns.scss +47 -0
  44. data/assets/_sass/bourbon/css3/_flex-box.scss +52 -0
  45. data/assets/_sass/bourbon/css3/_font-face.scss +23 -0
  46. data/assets/_sass/bourbon/css3/_hidpi-media-query.scss +10 -0
  47. data/assets/_sass/bourbon/css3/_image-rendering.scss +13 -0
  48. data/assets/_sass/bourbon/css3/_inline-block.scss +8 -0
  49. data/assets/_sass/bourbon/css3/_keyframes.scss +43 -0
  50. data/assets/_sass/bourbon/css3/_linear-gradient.scss +41 -0
  51. data/assets/_sass/bourbon/css3/_perspective.scss +8 -0
  52. data/assets/_sass/bourbon/css3/_placeholder.scss +29 -0
  53. data/assets/_sass/bourbon/css3/_radial-gradient.scss +44 -0
  54. data/assets/_sass/bourbon/css3/_transform.scss +15 -0
  55. data/assets/_sass/bourbon/css3/_transition.scss +34 -0
  56. data/assets/_sass/bourbon/css3/_user-select.scss +3 -0
  57. data/assets/_sass/bourbon/functions/_compact.scss +11 -0
  58. data/assets/_sass/bourbon/functions/_flex-grid.scss +39 -0
  59. data/assets/_sass/bourbon/functions/_grid-width.scss +13 -0
  60. data/assets/_sass/bourbon/functions/_linear-gradient.scss +13 -0
  61. data/assets/_sass/bourbon/functions/_modular-scale.scss +40 -0
  62. data/assets/_sass/bourbon/functions/_px-to-em.scss +8 -0
  63. data/assets/_sass/bourbon/functions/_radial-gradient.scss +23 -0
  64. data/assets/_sass/bourbon/functions/_tint-shade.scss +9 -0
  65. data/assets/_sass/bourbon/functions/_transition-property-name.scss +22 -0
  66. data/assets/_sass/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
  67. data/assets/_sass/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  68. data/assets/_sass/bourbon/helpers/_linear-positions-parser.scss +61 -0
  69. data/assets/_sass/bourbon/helpers/_radial-arg-parser.scss +69 -0
  70. data/assets/_sass/bourbon/helpers/_radial-positions-parser.scss +18 -0
  71. data/assets/_sass/bourbon/helpers/_render-gradients.scss +26 -0
  72. data/assets/_sass/bourbon/helpers/_shape-size-stripper.scss +10 -0
  73. data/assets/css/site.scss +10 -0
  74. data/assets/js/site.js +3 -0
  75. metadata +158 -0
@@ -0,0 +1,29 @@
1
+ $placeholders: '-webkit-input-placeholder',
2
+ '-moz-placeholder',
3
+ '-ms-input-placeholder';
4
+
5
+ @mixin placeholder {
6
+ @each $placeholder in $placeholders {
7
+ @if $placeholder == "-webkit-input-placeholder" {
8
+ &::#{$placeholder} {
9
+ @content;
10
+ }
11
+ }
12
+ @else if $placeholder == "-moz-placeholder" {
13
+ // FF 18-
14
+ &:#{$placeholder} {
15
+ @content;
16
+ }
17
+
18
+ // FF 19+
19
+ &::#{$placeholder} {
20
+ @content;
21
+ }
22
+ }
23
+ @else {
24
+ &:#{$placeholder} {
25
+ @content;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,44 @@
1
+ // Requires Sass 3.1+
2
+ @mixin radial-gradient($G1, $G2,
3
+ $G3: false, $G4: false,
4
+ $G5: false, $G6: false,
5
+ $G7: false, $G8: false,
6
+ $G9: false, $G10: false,
7
+ $pos: null,
8
+ $shape-size: null,
9
+ $deprecated-pos1: center center,
10
+ $deprecated-pos2: center center,
11
+ $deprecated-radius1: 0,
12
+ $deprecated-radius2: 460,
13
+ $fallback: false) {
14
+
15
+ $data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
16
+ $G1: nth($data, 1);
17
+ $G2: nth($data, 2);
18
+ $pos: nth($data, 3);
19
+ $shape-size: nth($data, 4);
20
+
21
+ $full: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
22
+
23
+ // Strip deprecated cover/contain for spec
24
+ $shape-size-spec: _shape-size-stripper($shape-size);
25
+
26
+ // Set $G1 as the default fallback color
27
+ $first-color: nth($full, 1);
28
+ $fallback-color: nth($first-color, 1);
29
+
30
+ @if (type-of($fallback) == color) or ($fallback == "transparent") {
31
+ $fallback-color: $fallback;
32
+ }
33
+
34
+ // Add Commas and spaces
35
+ $shape-size: if($shape-size, '#{$shape-size}, ', null);
36
+ $pos: if($pos, '#{$pos}, ', null);
37
+ $pos-spec: if($pos, 'at #{$pos}', null);
38
+ $shape-size-spec: if(($shape-size-spec != ' ') and ($pos == null), '#{$shape-size-spec}, ', '#{$shape-size-spec} ');
39
+
40
+ background-color: $fallback-color;
41
+ background-image: _deprecated-webkit-gradient(radial, $deprecated-pos1, $deprecated-pos2, $full, $deprecated-radius1, $deprecated-radius2); // Safari <= 5.0 && IOS 4
42
+ background-image: -webkit-radial-gradient(unquote(#{$pos}#{$shape-size}#{$full}));
43
+ background-image: unquote("radial-gradient(#{$shape-size-spec}#{$pos-spec}#{$full})");
44
+ }
@@ -0,0 +1,15 @@
1
+ @mixin transform($property: none) {
2
+ // none | <transform-function>
3
+ @include prefixer(transform, $property, webkit moz ms o spec);
4
+ }
5
+
6
+ @mixin transform-origin($axes: 50%) {
7
+ // x-axis - left | center | right | length | %
8
+ // y-axis - top | center | bottom | length | %
9
+ // z-axis - length
10
+ @include prefixer(transform-origin, $axes, webkit moz ms o spec);
11
+ }
12
+
13
+ @mixin transform-style ($style: flat) {
14
+ @include prefixer(transform-style, $style, webkit moz ms o spec);
15
+ }
@@ -0,0 +1,34 @@
1
+ // Shorthand mixin. Supports multiple parentheses-deliminated values for each variable.
2
+ // Example: @include transition (all, 2.0s, ease-in-out);
3
+ // @include transition ((opacity, width), (1.0s, 2.0s), ease-in, (0, 2s));
4
+ // @include transition ($property:(opacity, width), $delay: (1.5s, 2.5s));
5
+
6
+ @mixin transition ($properties...) {
7
+ @if length($properties) >= 1 {
8
+ @include prefixer(transition, $properties, webkit moz spec);
9
+ }
10
+
11
+ @else {
12
+ $properties: all 0.15s ease-out 0;
13
+ @include prefixer(transition, $properties, webkit moz spec);
14
+ }
15
+ }
16
+
17
+ @mixin transition-property ($properties...) {
18
+ -webkit-transition-property: transition-property-names($properties, 'webkit');
19
+ -moz-transition-property: transition-property-names($properties, 'moz');
20
+ transition-property: transition-property-names($properties, false);
21
+ }
22
+
23
+ @mixin transition-duration ($times...) {
24
+ @include prefixer(transition-duration, $times, webkit moz spec);
25
+ }
26
+
27
+ @mixin transition-timing-function ($motions...) {
28
+ // ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier()
29
+ @include prefixer(transition-timing-function, $motions, webkit moz spec);
30
+ }
31
+
32
+ @mixin transition-delay ($times...) {
33
+ @include prefixer(transition-delay, $times, webkit moz spec);
34
+ }
@@ -0,0 +1,3 @@
1
+ @mixin user-select($arg: none) {
2
+ @include prefixer(user-select, $arg, webkit moz ms spec);
3
+ }
@@ -0,0 +1,11 @@
1
+ // Remove `false` values from a list
2
+
3
+ @function compact($vars...) {
4
+ $list: ();
5
+ @each $var in $vars {
6
+ @if $var {
7
+ $list: append($list, $var, comma);
8
+ }
9
+ }
10
+ @return $list;
11
+ }
@@ -0,0 +1,39 @@
1
+ // Flexible grid
2
+ @function flex-grid($columns, $container-columns: $fg-max-columns) {
3
+ $width: $columns * $fg-column + ($columns - 1) * $fg-gutter;
4
+ $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
5
+ @return percentage($width / $container-width);
6
+ }
7
+
8
+ // Flexible gutter
9
+ @function flex-gutter($container-columns: $fg-max-columns, $gutter: $fg-gutter) {
10
+ $container-width: $container-columns * $fg-column + ($container-columns - 1) * $fg-gutter;
11
+ @return percentage($gutter / $container-width);
12
+ }
13
+
14
+ // The $fg-column, $fg-gutter and $fg-max-columns variables must be defined in your base stylesheet to properly use the flex-grid function.
15
+ // This function takes the fluid grid equation (target / context = result) and uses columns to help define each.
16
+ //
17
+ // The calculation presumes that your column structure will be missing the last gutter:
18
+ //
19
+ // -- column -- gutter -- column -- gutter -- column
20
+ //
21
+ // $fg-column: 60px; // Column Width
22
+ // $fg-gutter: 25px; // Gutter Width
23
+ // $fg-max-columns: 12; // Total Columns For Main Container
24
+ //
25
+ // div {
26
+ // width: flex-grid(4); // returns (315px / 995px) = 31.65829%;
27
+ // margin-left: flex-gutter(); // returns (25px / 995px) = 2.51256%;
28
+ //
29
+ // p {
30
+ // width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
31
+ // float: left;
32
+ // margin: flex-gutter(4); // returns (25px / 315px) = 7.936508%;
33
+ // }
34
+ //
35
+ // blockquote {
36
+ // float: left;
37
+ // width: flex-grid(2, 4); // returns (145px / 315px) = 46.031746%;
38
+ // }
39
+ // }
@@ -0,0 +1,13 @@
1
+ @function grid-width($n) {
2
+ @return $n * $gw-column + ($n - 1) * $gw-gutter;
3
+ }
4
+
5
+ // The $gw-column and $gw-gutter variables must be defined in your base stylesheet to properly use the grid-width function.
6
+ //
7
+ // $gw-column: 100px; // Column Width
8
+ // $gw-gutter: 40px; // Gutter Width
9
+ //
10
+ // div {
11
+ // width: grid-width(4); // returns 520px;
12
+ // margin-left: $gw-gutter; // returns 40px;
13
+ // }
@@ -0,0 +1,13 @@
1
+ @function linear-gradient($pos, $gradients...) {
2
+ $type: linear;
3
+ $pos-type: type-of(nth($pos, 1));
4
+
5
+ // if $pos doesn't exist, fix $gradient
6
+ @if ($pos-type == color) or (nth($pos, 1) == "transparent") {
7
+ $gradients: zip($pos $gradients);
8
+ $pos: false;
9
+ }
10
+
11
+ $type-gradient: $type, $pos, $gradients;
12
+ @return $type-gradient;
13
+ }
@@ -0,0 +1,40 @@
1
+ @function modular-scale($value, $increment, $ratio) {
2
+ @if $increment > 0 {
3
+ @for $i from 1 through $increment {
4
+ $value: ($value * $ratio);
5
+ }
6
+ }
7
+
8
+ @if $increment < 0 {
9
+ $increment: abs($increment);
10
+ @for $i from 1 through $increment {
11
+ $value: ($value / $ratio);
12
+ }
13
+ }
14
+
15
+ @return $value;
16
+ }
17
+
18
+ // div {
19
+ // Increment Up GR with positive value
20
+ // font-size: modular-scale(14px, 1, 1.618); // returns: 22.652px
21
+ //
22
+ // Increment Down GR with negative value
23
+ // font-size: modular-scale(14px, -1, 1.618); // returns: 8.653px
24
+ //
25
+ // Can be used with ceil(round up) or floor(round down)
26
+ // font-size: floor( modular-scale(14px, 1, 1.618) ); // returns: 22px
27
+ // font-size: ceil( modular-scale(14px, 1, 1.618) ); // returns: 23px
28
+ // }
29
+ //
30
+ // modularscale.com
31
+
32
+ @function golden-ratio($value, $increment) {
33
+ @return modular-scale($value, $increment, 1.618)
34
+ }
35
+
36
+ // div {
37
+ // font-size: golden-ratio(14px, 1); // returns: 22.652px
38
+ // }
39
+ //
40
+ // goldenratiocalculator.com
@@ -0,0 +1,8 @@
1
+ // Convert pixels to ems
2
+ // eg. for a relational value of 12px write em(12) when the parent is 16px
3
+ // if the parent is another value say 24px write em(12, 24)
4
+
5
+ @function em($pxval, $base: 16) {
6
+ @return ($pxval / $base) * 1em;
7
+ }
8
+
@@ -0,0 +1,23 @@
1
+ // This function is required and used by the background-image mixin.
2
+ @function radial-gradient($G1, $G2,
3
+ $G3: false, $G4: false,
4
+ $G5: false, $G6: false,
5
+ $G7: false, $G8: false,
6
+ $G9: false, $G10: false,
7
+ $pos: null,
8
+ $shape-size: null) {
9
+
10
+ $data: _radial-arg-parser($G1, $G2, $pos, $shape-size);
11
+ $G1: nth($data, 1);
12
+ $G2: nth($data, 2);
13
+ $pos: nth($data, 3);
14
+ $shape-size: nth($data, 4);
15
+
16
+ $type: radial;
17
+ $gradient: compact($G1, $G2, $G3, $G4, $G5, $G6, $G7, $G8, $G9, $G10);
18
+
19
+ $type-gradient: $type, $shape-size $pos, $gradient;
20
+ @return $type-gradient;
21
+ }
22
+
23
+
@@ -0,0 +1,9 @@
1
+ // Add percentage of white to a color
2
+ @function tint($color, $percent){
3
+ @return mix(white, $color, $percent);
4
+ }
5
+
6
+ // Add percentage of black to a color
7
+ @function shade($color, $percent){
8
+ @return mix(black, $color, $percent);
9
+ }
@@ -0,0 +1,22 @@
1
+ // Return vendor-prefixed property names if appropriate
2
+ // Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
3
+ //************************************************************************//
4
+ @function transition-property-names($props, $vendor: false) {
5
+ $new-props: ();
6
+
7
+ @each $prop in $props {
8
+ $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
9
+ }
10
+
11
+ @return $new-props;
12
+ }
13
+
14
+ @function transition-property-name($prop, $vendor: false) {
15
+ // put other properties that need to be prefixed here aswell
16
+ @if $vendor and $prop == transform {
17
+ @return unquote('-'+$vendor+'-'+$prop);
18
+ }
19
+ @else {
20
+ @return $prop;
21
+ }
22
+ }
@@ -0,0 +1,39 @@
1
+ // Render Deprecated Webkit Gradient - Linear || Radial
2
+ //************************************************************************//
3
+ @function _deprecated-webkit-gradient($type,
4
+ $deprecated-pos1, $deprecated-pos2,
5
+ $full,
6
+ $deprecated-radius1: false, $deprecated-radius2: false) {
7
+ $gradient-list: ();
8
+ $gradient: false;
9
+ $full-length: length($full);
10
+ $percentage: false;
11
+ $gradient-type: $type;
12
+
13
+ @for $i from 1 through $full-length {
14
+ $gradient: nth($full, $i);
15
+
16
+ @if length($gradient) == 2 {
17
+ $color-stop: color-stop(nth($gradient, 2), nth($gradient, 1));
18
+ $gradient-list: join($gradient-list, $color-stop, comma);
19
+ }
20
+ @else if $gradient != null {
21
+ @if $i == $full-length {
22
+ $percentage: 100%;
23
+ }
24
+ @else {
25
+ $percentage: ($i - 1) * (100 / ($full-length - 1)) + "%";
26
+ }
27
+ $color-stop: color-stop(unquote($percentage), $gradient);
28
+ $gradient-list: join($gradient-list, $color-stop, comma);
29
+ }
30
+ }
31
+
32
+ @if $type == radial {
33
+ $gradient: -webkit-gradient(radial, $deprecated-pos1, $deprecated-radius1, $deprecated-pos2, $deprecated-radius2, $gradient-list);
34
+ }
35
+ @else if $type == linear {
36
+ $gradient: -webkit-gradient(linear, $deprecated-pos1, $deprecated-pos2, $gradient-list);
37
+ }
38
+ @return $gradient;
39
+ }
@@ -0,0 +1,13 @@
1
+ @function _gradient-positions-parser($gradient-type, $gradient-positions) {
2
+ @if $gradient-positions
3
+ and ($gradient-type == linear)
4
+ and (type-of($gradient-positions) != color) {
5
+ $gradient-positions: _linear-positions-parser($gradient-positions);
6
+ }
7
+ @else if $gradient-positions
8
+ and ($gradient-type == radial)
9
+ and (type-of($gradient-positions) != color) {
10
+ $gradient-positions: _radial-positions-parser($gradient-positions);
11
+ }
12
+ @return $gradient-positions;
13
+ }
@@ -0,0 +1,61 @@
1
+ @function _linear-positions-parser($pos) {
2
+ $type: type-of(nth($pos, 1));
3
+ $spec: null;
4
+ $degree: null;
5
+ $side: null;
6
+ $corner: null;
7
+ $length: length($pos);
8
+ // Parse Side and corner positions
9
+ @if ($length > 1) {
10
+ @if nth($pos, 1) == "to" { // Newer syntax
11
+ $side: nth($pos, 2);
12
+
13
+ @if $length == 2 { // eg. to top
14
+ // Swap for backwards compatability
15
+ $degree: _position-flipper(nth($pos, 2));
16
+ }
17
+ @else if $length == 3 { // eg. to top left
18
+ $corner: nth($pos, 3);
19
+ }
20
+ }
21
+ @else if $length == 2 { // Older syntax ("top left")
22
+ $side: _position-flipper(nth($pos, 1));
23
+ $corner: _position-flipper(nth($pos, 2));
24
+ }
25
+
26
+ @if ("#{$side} #{$corner}" == "left top") or ("#{$side} #{$corner}" == "top left") {
27
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
28
+ }
29
+ @else if ("#{$side} #{$corner}" == "right top") or ("#{$side} #{$corner}" == "top right") {
30
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
31
+ }
32
+ @else if ("#{$side} #{$corner}" == "right bottom") or ("#{$side} #{$corner}" == "bottom right") {
33
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
34
+ }
35
+ @else if ("#{$side} #{$corner}" == "left bottom") or ("#{$side} #{$corner}" == "bottom left") {
36
+ $degree: _position-flipper(#{$side}) _position-flipper(#{$corner});
37
+ }
38
+ $spec: to $side $corner;
39
+ }
40
+ @else if $length == 1 {
41
+ // Swap for backwards compatability
42
+ @if $type == string {
43
+ $degree: $pos;
44
+ $spec: to _position-flipper($pos);
45
+ }
46
+ @else {
47
+ $degree: -270 - $pos; //rotate the gradient opposite from spec
48
+ $spec: $pos;
49
+ }
50
+ }
51
+ $degree: unquote($degree + ",");
52
+ $spec: unquote($spec + ",");
53
+ @return $degree $spec;
54
+ }
55
+
56
+ @function _position-flipper($pos) {
57
+ @return if($pos == left, right, null)
58
+ if($pos == right, left, null)
59
+ if($pos == top, bottom, null)
60
+ if($pos == bottom, top, null);
61
+ }