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
+ // Micro clearfix provides an easy way to contain floats without adding additional markup
2
+ //
3
+ // Example usage:
4
+ //
5
+ // // Contain all floats within .wrapper
6
+ // .wrapper {
7
+ // @include clearfix;
8
+ // .content,
9
+ // .sidebar {
10
+ // float : left;
11
+ // }
12
+ // }
13
+
14
+ @mixin clearfix {
15
+ *zoom: 1;
16
+
17
+ &:before,
18
+ &:after {
19
+ content: " ";
20
+ display: table;
21
+ }
22
+
23
+ &:after {
24
+ clear: both;
25
+ }
26
+ }
27
+
28
+ // Acknowledgements
29
+ // Micro clearfix: [Nicolas Gallagher](http://nicolasgallagher.com/micro-clearfix-hack/)
@@ -0,0 +1,5 @@
1
+ $georgia: Georgia, Cambria, "Times New Roman", Times, serif;
2
+ $helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
3
+ $lucida-grande: "Lucida Grande", Tahoma, Verdana, Arial, sans-serif;
4
+ $monospace: "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
5
+ $verdana: Verdana, Geneva, sans-serif;
@@ -0,0 +1,5 @@
1
+ @mixin hide-text {
2
+ color: transparent;
3
+ font: 0/0 a;
4
+ text-shadow: none;
5
+ }
@@ -0,0 +1,56 @@
1
+ //************************************************************************//
2
+ // Generate a variable ($all-text-inputs) with a list of all html5
3
+ // input types that have a text-based input, excluding textarea.
4
+ // http://diveintohtml5.org/forms.html
5
+ //************************************************************************//
6
+ $inputs-list: 'input[type="email"]',
7
+ 'input[type="number"]',
8
+ 'input[type="password"]',
9
+ 'input[type="search"]',
10
+ 'input[type="tel"]',
11
+ 'input[type="text"]',
12
+ 'input[type="url"]',
13
+
14
+ // Webkit & Gecko may change the display of these in the future
15
+ 'input[type="color"]',
16
+ 'input[type="date"]',
17
+ 'input[type="datetime"]',
18
+ 'input[type="datetime-local"]',
19
+ 'input[type="month"]',
20
+ 'input[type="time"]',
21
+ 'input[type="week"]';
22
+
23
+ $unquoted-inputs-list: ();
24
+ @each $input-type in $inputs-list {
25
+ $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma);
26
+ }
27
+
28
+ $all-text-inputs: $unquoted-inputs-list;
29
+
30
+
31
+ // Hover Pseudo-class
32
+ //************************************************************************//
33
+ $all-text-inputs-hover: ();
34
+ @each $input-type in $unquoted-inputs-list {
35
+ $input-type-hover: $input-type + ":hover";
36
+ $all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma);
37
+ }
38
+
39
+ // Focus Pseudo-class
40
+ //************************************************************************//
41
+ $all-text-inputs-focus: ();
42
+ @each $input-type in $unquoted-inputs-list {
43
+ $input-type-focus: $input-type + ":focus";
44
+ $all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma);
45
+ }
46
+
47
+ // You must use interpolation on the variable:
48
+ // #{$all-text-inputs}
49
+ // #{$all-text-inputs-hover}
50
+ // #{$all-text-inputs-focus}
51
+
52
+ // Example
53
+ //************************************************************************//
54
+ // #{$all-text-inputs}, textarea {
55
+ // border: 1px solid red;
56
+ // }
@@ -0,0 +1,42 @@
1
+ @mixin position ($position: relative, $coordinates: 0 0 0 0) {
2
+
3
+ @if type-of($position) == list {
4
+ $coordinates: $position;
5
+ $position: relative;
6
+ }
7
+
8
+ $top: nth($coordinates, 1);
9
+ $right: nth($coordinates, 2);
10
+ $bottom: nth($coordinates, 3);
11
+ $left: nth($coordinates, 4);
12
+
13
+ position: $position;
14
+
15
+ @if $top == auto {
16
+ top: $top;
17
+ }
18
+ @else if not(unitless($top)) {
19
+ top: $top;
20
+ }
21
+
22
+ @if $right == auto {
23
+ right: $right;
24
+ }
25
+ @else if not(unitless($right)) {
26
+ right: $right;
27
+ }
28
+
29
+ @if $bottom == auto {
30
+ bottom: $bottom;
31
+ }
32
+ @else if not(unitless($bottom)) {
33
+ bottom: $bottom;
34
+ }
35
+
36
+ @if $left == auto {
37
+ left: $left;
38
+ }
39
+ @else if not(unitless($left)) {
40
+ left: $left;
41
+ }
42
+ }
@@ -0,0 +1,49 @@
1
+ //************************************************************************//
2
+ // Example: @include prefixer(border-radius, $radii, webkit ms spec);
3
+ //************************************************************************//
4
+ $prefix-for-webkit: true !default;
5
+ $prefix-for-mozilla: true !default;
6
+ $prefix-for-microsoft: true !default;
7
+ $prefix-for-opera: true !default;
8
+ $prefix-for-spec: true !default; // required for keyframe mixin
9
+
10
+ @mixin prefixer ($property, $value, $prefixes) {
11
+ @each $prefix in $prefixes {
12
+ @if $prefix == webkit {
13
+ @if $prefix-for-webkit {
14
+ -webkit-#{$property}: $value;
15
+ }
16
+ }
17
+ @else if $prefix == moz {
18
+ @if $prefix-for-mozilla {
19
+ -moz-#{$property}: $value;
20
+ }
21
+ }
22
+ @else if $prefix == ms {
23
+ @if $prefix-for-microsoft {
24
+ -ms-#{$property}: $value;
25
+ }
26
+ }
27
+ @else if $prefix == o {
28
+ @if $prefix-for-opera {
29
+ -o-#{$property}: $value;
30
+ }
31
+ }
32
+ @else if $prefix == spec {
33
+ @if $prefix-for-spec {
34
+ #{$property}: $value;
35
+ }
36
+ }
37
+ @else {
38
+ @warn "Unrecognized prefix: #{$prefix}";
39
+ }
40
+ }
41
+ }
42
+
43
+ @mixin disable-prefix-for-all() {
44
+ $prefix-for-webkit: false;
45
+ $prefix-for-mozilla: false;
46
+ $prefix-for-microsoft: false;
47
+ $prefix-for-opera: false;
48
+ $prefix-for-spec: false;
49
+ }
@@ -0,0 +1,32 @@
1
+ @mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $asset-pipeline: false) {
2
+ @if $asset-pipeline {
3
+ background-image: image-url("#{$filename}.#{$extension}");
4
+ }
5
+ @else {
6
+ background-image: url("#{$filename}.#{$extension}");
7
+ }
8
+
9
+ @include hidpi {
10
+
11
+ @if $asset-pipeline {
12
+ @if $retina-filename {
13
+ background-image: image-url("#{$retina-filename}.#{$extension}");
14
+ }
15
+ @else {
16
+ background-image: image-url("#{$filename}@2x.#{$extension}");
17
+ }
18
+ }
19
+
20
+ @else {
21
+ @if $retina-filename {
22
+ background-image: url("#{$retina-filename}.#{$extension}");
23
+ }
24
+ @else {
25
+ background-image: url("#{$filename}@2x.#{$extension}");
26
+ }
27
+ }
28
+
29
+ background-size: $background-size;
30
+
31
+ }
32
+ }
@@ -0,0 +1,44 @@
1
+ @mixin size($size) {
2
+ @if length($size) == 1 {
3
+ @if $size == auto {
4
+ width: $size;
5
+ height: $size;
6
+ }
7
+
8
+ @else if unitless($size) {
9
+ width: $size + px;
10
+ height: $size + px;
11
+ }
12
+
13
+ @else if not(unitless($size)) {
14
+ width: $size;
15
+ height: $size;
16
+ }
17
+ }
18
+
19
+ // Width x Height
20
+ @if length($size) == 2 {
21
+ $width: nth($size, 1);
22
+ $height: nth($size, 2);
23
+
24
+ @if $width == auto {
25
+ width: $width;
26
+ }
27
+ @else if not(unitless($width)) {
28
+ width: $width;
29
+ }
30
+ @else if unitless($width) {
31
+ width: $width + px;
32
+ }
33
+
34
+ @if $height == auto {
35
+ height: $height;
36
+ }
37
+ @else if not(unitless($height)) {
38
+ height: $height;
39
+ }
40
+ @else if unitless($height) {
41
+ height: $height + px;
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,32 @@
1
+ // CSS cubic-bezier timing functions. Timing functions courtesy of jquery.easie (github.com/jaukia/easie)
2
+ // Timing functions are the same as demo'ed here: http://jqueryui.com/demos/effect/easing.html
3
+
4
+ // EASE IN
5
+ $ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
6
+ $ease-in-cubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
7
+ $ease-in-quart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
8
+ $ease-in-quint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
9
+ $ease-in-sine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
10
+ $ease-in-expo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
11
+ $ease-in-circ: cubic-bezier(0.600, 0.040, 0.980, 0.335);
12
+ $ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045);
13
+
14
+ // EASE OUT
15
+ $ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
16
+ $ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
17
+ $ease-out-quart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
18
+ $ease-out-quint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
19
+ $ease-out-sine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
20
+ $ease-out-expo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
21
+ $ease-out-circ: cubic-bezier(0.075, 0.820, 0.165, 1.000);
22
+ $ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
23
+
24
+ // EASE IN OUT
25
+ $ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
26
+ $ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
27
+ $ease-in-out-quart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
28
+ $ease-in-out-quint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
29
+ $ease-in-out-sine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
30
+ $ease-in-out-expo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
31
+ $ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.150, 0.860);
32
+ $ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550);
@@ -0,0 +1,45 @@
1
+ @mixin triangle ($size, $color, $direction) {
2
+ height: 0;
3
+ width: 0;
4
+
5
+ @if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
6
+ border-color: transparent;
7
+ border-style: solid;
8
+ border-width: $size / 2;
9
+
10
+ @if $direction == up {
11
+ border-bottom-color: $color;
12
+
13
+ } @else if $direction == right {
14
+ border-left-color: $color;
15
+
16
+ } @else if $direction == down {
17
+ border-top-color: $color;
18
+
19
+ } @else if $direction == left {
20
+ border-right-color: $color;
21
+ }
22
+ }
23
+
24
+ @else if ($direction == up-right) or ($direction == up-left) {
25
+ border-top: $size solid $color;
26
+
27
+ @if $direction == up-right {
28
+ border-left: $size solid transparent;
29
+
30
+ } @else if $direction == up-left {
31
+ border-right: $size solid transparent;
32
+ }
33
+ }
34
+
35
+ @else if ($direction == down-right) or ($direction == down-left) {
36
+ border-bottom: $size solid $color;
37
+
38
+ @if $direction == down-right {
39
+ border-left: $size solid transparent;
40
+
41
+ } @else if $direction == down-left {
42
+ border-right: $size solid transparent;
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,52 @@
1
+ // http://www.w3.org/TR/css3-animations/#the-animation-name-property-
2
+ // Each of these mixins support comma separated lists of values, which allows different transitions for individual properties to be described in a single style rule. Each value in the list corresponds to the value at that same position in the other properties.
3
+
4
+ // Official animation shorthand property.
5
+ @mixin animation ($animations...) {
6
+ @include prefixer(animation, $animations, webkit moz spec);
7
+ }
8
+
9
+ // Individual Animation Properties
10
+ @mixin animation-name ($names...) {
11
+ @include prefixer(animation-name, $names, webkit moz spec);
12
+ }
13
+
14
+
15
+ @mixin animation-duration ($times...) {
16
+ @include prefixer(animation-duration, $times, webkit moz spec);
17
+ }
18
+
19
+
20
+ @mixin animation-timing-function ($motions...) {
21
+ // ease | linear | ease-in | ease-out | ease-in-out
22
+ @include prefixer(animation-timing-function, $motions, webkit moz spec);
23
+ }
24
+
25
+
26
+ @mixin animation-iteration-count ($values...) {
27
+ // infinite | <number>
28
+ @include prefixer(animation-iteration-count, $values, webkit moz spec);
29
+ }
30
+
31
+
32
+ @mixin animation-direction ($directions...) {
33
+ // normal | alternate
34
+ @include prefixer(animation-direction, $directions, webkit moz spec);
35
+ }
36
+
37
+
38
+ @mixin animation-play-state ($states...) {
39
+ // running | paused
40
+ @include prefixer(animation-play-state, $states, webkit moz spec);
41
+ }
42
+
43
+
44
+ @mixin animation-delay ($times...) {
45
+ @include prefixer(animation-delay, $times, webkit moz spec);
46
+ }
47
+
48
+
49
+ @mixin animation-fill-mode ($modes...) {
50
+ // none | forwards | backwards | both
51
+ @include prefixer(animation-fill-mode, $modes, webkit moz spec);
52
+ }
@@ -0,0 +1,3 @@
1
+ @mixin appearance ($value) {
2
+ @include prefixer(appearance, $value, webkit moz ms o spec);
3
+ }
@@ -0,0 +1,6 @@
1
+ //************************************************************************//
2
+ // Backface-visibility mixin
3
+ //************************************************************************//
4
+ @mixin backface-visibility($visibility) {
5
+ @include prefixer(backface-visibility, $visibility, webkit spec);
6
+ }
@@ -0,0 +1,48 @@
1
+ //************************************************************************//
2
+ // Background-image property for adding multiple background images with
3
+ // gradients, or for stringing multiple gradients together.
4
+ //************************************************************************//
5
+
6
+ @mixin background-image($images...) {
7
+ background-image: _add-prefix($images, webkit);
8
+ background-image: _add-prefix($images);
9
+ }
10
+
11
+ @function _add-prefix($images, $vendor: false) {
12
+ $images-prefixed: ();
13
+ $gradient-positions: false;
14
+ @for $i from 1 through length($images) {
15
+ $type: type-of(nth($images, $i)); // Get type of variable - List or String
16
+
17
+ // If variable is a list - Gradient
18
+ @if $type == list {
19
+ $gradient-type: nth(nth($images, $i), 1); // linear or radial
20
+ $gradient-pos: null;
21
+ $gradient-args: null;
22
+
23
+ @if ($gradient-type == linear) or ($gradient-type == radial) {
24
+ $gradient-pos: nth(nth($images, $i), 2); // Get gradient position
25
+ $gradient-args: nth(nth($images, $i), 3); // Get actual gradient (red, blue)
26
+ }
27
+ @else {
28
+ $gradient-args: nth(nth($images, $i), 2); // Get actual gradient (red, blue)
29
+ }
30
+
31
+ $gradient-positions: _gradient-positions-parser($gradient-type, $gradient-pos);
32
+ $gradient: _render-gradients($gradient-positions, $gradient-args, $gradient-type, $vendor);
33
+ $images-prefixed: append($images-prefixed, $gradient, comma);
34
+ }
35
+ // If variable is a string - Image
36
+ @else if $type == string {
37
+ $images-prefixed: join($images-prefixed, nth($images, $i), comma);
38
+ }
39
+ }
40
+ @return $images-prefixed;
41
+ }
42
+
43
+ //Examples:
44
+ //@include background-image(linear-gradient(top, orange, red));
45
+ //@include background-image(radial-gradient(50% 50%, cover circle, orange, red));
46
+ //@include background-image(url("/images/a.png"), linear-gradient(orange, red));
47
+ //@include background-image(url("image.png"), linear-gradient(orange, red), url("image.png"));
48
+ //@include background-image(linear-gradient(hsla(0, 100%, 100%, 0.25) 0%, hsla(0, 100%, 100%, 0.08) 50%, transparent 50%), linear-gradient(orange, red));