hanuman 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +175 -173
- data/_data/authors.yml +16 -0
- data/_data/navigation.yml +4 -4
- data/_includes/analytics.html +15 -15
- data/_includes/footer.html +65 -65
- data/_includes/head.html +68 -68
- data/_includes/header.html +58 -58
- data/_includes/metadata.json +30 -30
- data/_includes/styles.scss +727 -727
- data/_layouts/default.html +13 -13
- data/_layouts/page.html +16 -16
- data/_layouts/post.html +157 -153
- data/_sass/_syntax-highlighting.scss +65 -65
- data/_sass/bourbon/_bourbon-deprecated-upcoming.scss +8 -8
- data/_sass/bourbon/_bourbon.scss +79 -79
- data/_sass/bourbon/addons/_button.scss +374 -374
- data/_sass/bourbon/addons/_clearfix.scss +23 -23
- data/_sass/bourbon/addons/_directional-values.scss +111 -111
- data/_sass/bourbon/addons/_ellipsis.scss +7 -7
- data/_sass/bourbon/addons/_font-family.scss +5 -5
- data/_sass/bourbon/addons/_hide-text.scss +10 -10
- data/_sass/bourbon/addons/_html5-input-types.scss +86 -86
- data/_sass/bourbon/addons/_position.scss +32 -32
- data/_sass/bourbon/addons/_prefixer.scss +45 -45
- data/_sass/bourbon/addons/_retina-image.scss +31 -31
- data/_sass/bourbon/addons/_size.scss +16 -16
- data/_sass/bourbon/addons/_timing-functions.scss +32 -32
- data/_sass/bourbon/addons/_triangle.scss +83 -83
- data/_sass/bourbon/addons/_word-wrap.scss +8 -8
- data/_sass/bourbon/css3/_animation.scss +52 -52
- data/_sass/bourbon/css3/_appearance.scss +3 -3
- data/_sass/bourbon/css3/_backface-visibility.scss +6 -6
- data/_sass/bourbon/css3/_background-image.scss +42 -42
- data/_sass/bourbon/css3/_background.scss +55 -55
- data/_sass/bourbon/css3/_border-image.scss +59 -59
- data/_sass/bourbon/css3/_border-radius.scss +22 -22
- data/_sass/bourbon/css3/_box-sizing.scss +4 -4
- data/_sass/bourbon/css3/_calc.scss +4 -4
- data/_sass/bourbon/css3/_columns.scss +47 -47
- data/_sass/bourbon/css3/_filter.scss +5 -5
- data/_sass/bourbon/css3/_flex-box.scss +321 -321
- data/_sass/bourbon/css3/_font-face.scss +23 -23
- data/_sass/bourbon/css3/_font-feature-settings.scss +9 -9
- data/_sass/bourbon/css3/_hidpi-media-query.scss +10 -10
- data/_sass/bourbon/css3/_hyphens.scss +3 -3
- data/_sass/bourbon/css3/_image-rendering.scss +14 -14
- data/_sass/bourbon/css3/_keyframes.scss +35 -35
- data/_sass/bourbon/css3/_linear-gradient.scss +38 -38
- data/_sass/bourbon/css3/_perspective.scss +8 -8
- data/_sass/bourbon/css3/_placeholder.scss +8 -8
- data/_sass/bourbon/css3/_radial-gradient.scss +39 -39
- data/_sass/bourbon/css3/_transform.scss +15 -15
- data/_sass/bourbon/css3/_transition.scss +77 -77
- data/_sass/bourbon/css3/_user-select.scss +3 -3
- data/_sass/bourbon/functions/_assign.scss +10 -10
- data/_sass/bourbon/functions/_color-lightness.scss +13 -13
- data/_sass/bourbon/functions/_flex-grid.scss +38 -38
- data/_sass/bourbon/functions/_golden-ratio.scss +3 -3
- data/_sass/bourbon/functions/_grid-width.scss +13 -13
- data/_sass/bourbon/functions/_modular-scale.scss +66 -66
- data/_sass/bourbon/functions/_px-to-em.scss +13 -13
- data/_sass/bourbon/functions/_px-to-rem.scss +15 -15
- data/_sass/bourbon/functions/_strip-units.scss +5 -5
- data/_sass/bourbon/functions/_tint-shade.scss +9 -9
- data/_sass/bourbon/functions/_transition-property-name.scss +21 -21
- data/_sass/bourbon/functions/_unpack.scss +17 -17
- data/_sass/bourbon/helpers/_convert-units.scss +15 -15
- data/_sass/bourbon/helpers/_gradient-positions-parser.scss +13 -13
- data/_sass/bourbon/helpers/_is-num.scss +8 -8
- data/_sass/bourbon/helpers/_linear-angle-parser.scss +25 -25
- data/_sass/bourbon/helpers/_linear-gradient-parser.scss +41 -41
- data/_sass/bourbon/helpers/_linear-positions-parser.scss +61 -61
- data/_sass/bourbon/helpers/_linear-side-corner-parser.scss +31 -31
- data/_sass/bourbon/helpers/_radial-arg-parser.scss +69 -69
- data/_sass/bourbon/helpers/_radial-gradient-parser.scss +50 -50
- data/_sass/bourbon/helpers/_radial-positions-parser.scss +18 -18
- data/_sass/bourbon/helpers/_render-gradients.scss +26 -26
- data/_sass/bourbon/helpers/_shape-size-stripper.scss +10 -10
- data/_sass/bourbon/helpers/_str-to-num.scss +50 -50
- data/_sass/bourbon/settings/_asset-pipeline.scss +1 -1
- data/_sass/bourbon/settings/_prefixer.scss +6 -6
- data/_sass/bourbon/settings/_px-to-em.scss +1 -1
- metadata +4 -4
- data/_data/author.yml +0 -8
@@ -1,32 +1,32 @@
|
|
1
|
-
@mixin position ($position: relative, $coordinates: null null null null) {
|
2
|
-
|
3
|
-
@if type-of($position) == list {
|
4
|
-
$coordinates: $position;
|
5
|
-
$position: relative;
|
6
|
-
}
|
7
|
-
|
8
|
-
$coordinates: unpack($coordinates);
|
9
|
-
|
10
|
-
$top: nth($coordinates, 1);
|
11
|
-
$right: nth($coordinates, 2);
|
12
|
-
$bottom: nth($coordinates, 3);
|
13
|
-
$left: nth($coordinates, 4);
|
14
|
-
|
15
|
-
position: $position;
|
16
|
-
|
17
|
-
@if ($top and $top == auto) or (type-of($top) == number) {
|
18
|
-
top: $top;
|
19
|
-
}
|
20
|
-
|
21
|
-
@if ($right and $right == auto) or (type-of($right) == number) {
|
22
|
-
right: $right;
|
23
|
-
}
|
24
|
-
|
25
|
-
@if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
|
26
|
-
bottom: $bottom;
|
27
|
-
}
|
28
|
-
|
29
|
-
@if ($left and $left == auto) or (type-of($left) == number) {
|
30
|
-
left: $left;
|
31
|
-
}
|
32
|
-
}
|
1
|
+
@mixin position ($position: relative, $coordinates: null null null null) {
|
2
|
+
|
3
|
+
@if type-of($position) == list {
|
4
|
+
$coordinates: $position;
|
5
|
+
$position: relative;
|
6
|
+
}
|
7
|
+
|
8
|
+
$coordinates: unpack($coordinates);
|
9
|
+
|
10
|
+
$top: nth($coordinates, 1);
|
11
|
+
$right: nth($coordinates, 2);
|
12
|
+
$bottom: nth($coordinates, 3);
|
13
|
+
$left: nth($coordinates, 4);
|
14
|
+
|
15
|
+
position: $position;
|
16
|
+
|
17
|
+
@if ($top and $top == auto) or (type-of($top) == number) {
|
18
|
+
top: $top;
|
19
|
+
}
|
20
|
+
|
21
|
+
@if ($right and $right == auto) or (type-of($right) == number) {
|
22
|
+
right: $right;
|
23
|
+
}
|
24
|
+
|
25
|
+
@if ($bottom and $bottom == auto) or (type-of($bottom) == number) {
|
26
|
+
bottom: $bottom;
|
27
|
+
}
|
28
|
+
|
29
|
+
@if ($left and $left == auto) or (type-of($left) == number) {
|
30
|
+
left: $left;
|
31
|
+
}
|
32
|
+
}
|
@@ -1,45 +1,45 @@
|
|
1
|
-
//************************************************************************//
|
2
|
-
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
|
3
|
-
//************************************************************************//
|
4
|
-
// Variables located in /settings/_prefixer.scss
|
5
|
-
|
6
|
-
@mixin prefixer ($property, $value, $prefixes) {
|
7
|
-
@each $prefix in $prefixes {
|
8
|
-
@if $prefix == webkit {
|
9
|
-
@if $prefix-for-webkit {
|
10
|
-
-webkit-#{$property}: $value;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
@else if $prefix == moz {
|
14
|
-
@if $prefix-for-mozilla {
|
15
|
-
-moz-#{$property}: $value;
|
16
|
-
}
|
17
|
-
}
|
18
|
-
@else if $prefix == ms {
|
19
|
-
@if $prefix-for-microsoft {
|
20
|
-
-ms-#{$property}: $value;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
@else if $prefix == o {
|
24
|
-
@if $prefix-for-opera {
|
25
|
-
-o-#{$property}: $value;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
@else if $prefix == spec {
|
29
|
-
@if $prefix-for-spec {
|
30
|
-
#{$property}: $value;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
@else {
|
34
|
-
@warn "Unrecognized prefix: #{$prefix}";
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
@mixin disable-prefix-for-all() {
|
40
|
-
$prefix-for-webkit: false !global;
|
41
|
-
$prefix-for-mozilla: false !global;
|
42
|
-
$prefix-for-microsoft: false !global;
|
43
|
-
$prefix-for-opera: false !global;
|
44
|
-
$prefix-for-spec: false !global;
|
45
|
-
}
|
1
|
+
//************************************************************************//
|
2
|
+
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
|
3
|
+
//************************************************************************//
|
4
|
+
// Variables located in /settings/_prefixer.scss
|
5
|
+
|
6
|
+
@mixin prefixer ($property, $value, $prefixes) {
|
7
|
+
@each $prefix in $prefixes {
|
8
|
+
@if $prefix == webkit {
|
9
|
+
@if $prefix-for-webkit {
|
10
|
+
-webkit-#{$property}: $value;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@else if $prefix == moz {
|
14
|
+
@if $prefix-for-mozilla {
|
15
|
+
-moz-#{$property}: $value;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
@else if $prefix == ms {
|
19
|
+
@if $prefix-for-microsoft {
|
20
|
+
-ms-#{$property}: $value;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
@else if $prefix == o {
|
24
|
+
@if $prefix-for-opera {
|
25
|
+
-o-#{$property}: $value;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
@else if $prefix == spec {
|
29
|
+
@if $prefix-for-spec {
|
30
|
+
#{$property}: $value;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
@else {
|
34
|
+
@warn "Unrecognized prefix: #{$prefix}";
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
@mixin disable-prefix-for-all() {
|
40
|
+
$prefix-for-webkit: false !global;
|
41
|
+
$prefix-for-mozilla: false !global;
|
42
|
+
$prefix-for-microsoft: false !global;
|
43
|
+
$prefix-for-opera: false !global;
|
44
|
+
$prefix-for-spec: false !global;
|
45
|
+
}
|
@@ -1,31 +1,31 @@
|
|
1
|
-
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
|
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
|
-
@if $asset-pipeline {
|
11
|
-
@if $retina-filename {
|
12
|
-
background-image: image-url("#{$retina-filename}.#{$extension}");
|
13
|
-
}
|
14
|
-
@else {
|
15
|
-
background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}");
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
@else {
|
20
|
-
@if $retina-filename {
|
21
|
-
background-image: url("#{$retina-filename}.#{$extension}");
|
22
|
-
}
|
23
|
-
@else {
|
24
|
-
background-image: url("#{$filename}#{$retina-suffix}.#{$extension}");
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
background-size: $background-size;
|
29
|
-
|
30
|
-
}
|
31
|
-
}
|
1
|
+
@mixin retina-image($filename, $background-size, $extension: png, $retina-filename: null, $retina-suffix: _2x, $asset-pipeline: $asset-pipeline) {
|
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
|
+
@if $asset-pipeline {
|
11
|
+
@if $retina-filename {
|
12
|
+
background-image: image-url("#{$retina-filename}.#{$extension}");
|
13
|
+
}
|
14
|
+
@else {
|
15
|
+
background-image: image-url("#{$filename}#{$retina-suffix}.#{$extension}");
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@else {
|
20
|
+
@if $retina-filename {
|
21
|
+
background-image: url("#{$retina-filename}.#{$extension}");
|
22
|
+
}
|
23
|
+
@else {
|
24
|
+
background-image: url("#{$filename}#{$retina-suffix}.#{$extension}");
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
background-size: $background-size;
|
29
|
+
|
30
|
+
}
|
31
|
+
}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
@mixin size($size) {
|
2
|
-
$height: nth($size, 1);
|
3
|
-
$width: $height;
|
4
|
-
|
5
|
-
@if length($size) > 1 {
|
6
|
-
$height: nth($size, 2);
|
7
|
-
}
|
8
|
-
|
9
|
-
@if $height == auto or (type-of($height) == number and not unitless($height)) {
|
10
|
-
height: $height;
|
11
|
-
}
|
12
|
-
|
13
|
-
@if $width == auto or (type-of($width) == number and not unitless($width)) {
|
14
|
-
width: $width;
|
15
|
-
}
|
16
|
-
}
|
1
|
+
@mixin size($size) {
|
2
|
+
$height: nth($size, 1);
|
3
|
+
$width: $height;
|
4
|
+
|
5
|
+
@if length($size) > 1 {
|
6
|
+
$height: nth($size, 2);
|
7
|
+
}
|
8
|
+
|
9
|
+
@if $height == auto or (type-of($height) == number and not unitless($height)) {
|
10
|
+
height: $height;
|
11
|
+
}
|
12
|
+
|
13
|
+
@if $width == auto or (type-of($width) == number and not unitless($width)) {
|
14
|
+
width: $width;
|
15
|
+
}
|
16
|
+
}
|
@@ -1,32 +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/resources/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);
|
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/resources/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);
|
@@ -1,83 +1,83 @@
|
|
1
|
-
@mixin triangle ($size, $color, $direction) {
|
2
|
-
height: 0;
|
3
|
-
width: 0;
|
4
|
-
|
5
|
-
$width: nth($size, 1);
|
6
|
-
$height: nth($size, length($size));
|
7
|
-
|
8
|
-
$foreground-color: nth($color, 1);
|
9
|
-
$background-color: if(length($color) == 2, nth($color, 2), transparent);
|
10
|
-
|
11
|
-
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
|
12
|
-
|
13
|
-
$width: $width / 2;
|
14
|
-
$height: if(length($size) > 1, $height, $height/2);
|
15
|
-
|
16
|
-
@if $direction == up {
|
17
|
-
border-left: $width solid $background-color;
|
18
|
-
border-right: $width solid $background-color;
|
19
|
-
border-bottom: $height solid $foreground-color;
|
20
|
-
|
21
|
-
} @else if $direction == right {
|
22
|
-
border-top: $width solid $background-color;
|
23
|
-
border-bottom: $width solid $background-color;
|
24
|
-
border-left: $height solid $foreground-color;
|
25
|
-
|
26
|
-
} @else if $direction == down {
|
27
|
-
border-left: $width solid $background-color;
|
28
|
-
border-right: $width solid $background-color;
|
29
|
-
border-top: $height solid $foreground-color;
|
30
|
-
|
31
|
-
} @else if $direction == left {
|
32
|
-
border-top: $width solid $background-color;
|
33
|
-
border-bottom: $width solid $background-color;
|
34
|
-
border-right: $height solid $foreground-color;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
@else if ($direction == up-right) or ($direction == up-left) {
|
39
|
-
border-top: $height solid $foreground-color;
|
40
|
-
|
41
|
-
@if $direction == up-right {
|
42
|
-
border-left: $width solid $background-color;
|
43
|
-
|
44
|
-
} @else if $direction == up-left {
|
45
|
-
border-right: $width solid $background-color;
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
@else if ($direction == down-right) or ($direction == down-left) {
|
50
|
-
border-bottom: $height solid $foreground-color;
|
51
|
-
|
52
|
-
@if $direction == down-right {
|
53
|
-
border-left: $width solid $background-color;
|
54
|
-
|
55
|
-
} @else if $direction == down-left {
|
56
|
-
border-right: $width solid $background-color;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
@else if ($direction == inset-up) {
|
61
|
-
border-width: $height $width;
|
62
|
-
border-style: solid;
|
63
|
-
border-color: $background-color $background-color $foreground-color;
|
64
|
-
}
|
65
|
-
|
66
|
-
@else if ($direction == inset-down) {
|
67
|
-
border-width: $height $width;
|
68
|
-
border-style: solid;
|
69
|
-
border-color: $foreground-color $background-color $background-color;
|
70
|
-
}
|
71
|
-
|
72
|
-
@else if ($direction == inset-right) {
|
73
|
-
border-width: $width $height;
|
74
|
-
border-style: solid;
|
75
|
-
border-color: $background-color $background-color $background-color $foreground-color;
|
76
|
-
}
|
77
|
-
|
78
|
-
@else if ($direction == inset-left) {
|
79
|
-
border-width: $width $height;
|
80
|
-
border-style: solid;
|
81
|
-
border-color: $background-color $foreground-color $background-color $background-color;
|
82
|
-
}
|
83
|
-
}
|
1
|
+
@mixin triangle ($size, $color, $direction) {
|
2
|
+
height: 0;
|
3
|
+
width: 0;
|
4
|
+
|
5
|
+
$width: nth($size, 1);
|
6
|
+
$height: nth($size, length($size));
|
7
|
+
|
8
|
+
$foreground-color: nth($color, 1);
|
9
|
+
$background-color: if(length($color) == 2, nth($color, 2), transparent);
|
10
|
+
|
11
|
+
@if ($direction == up) or ($direction == down) or ($direction == right) or ($direction == left) {
|
12
|
+
|
13
|
+
$width: $width / 2;
|
14
|
+
$height: if(length($size) > 1, $height, $height/2);
|
15
|
+
|
16
|
+
@if $direction == up {
|
17
|
+
border-left: $width solid $background-color;
|
18
|
+
border-right: $width solid $background-color;
|
19
|
+
border-bottom: $height solid $foreground-color;
|
20
|
+
|
21
|
+
} @else if $direction == right {
|
22
|
+
border-top: $width solid $background-color;
|
23
|
+
border-bottom: $width solid $background-color;
|
24
|
+
border-left: $height solid $foreground-color;
|
25
|
+
|
26
|
+
} @else if $direction == down {
|
27
|
+
border-left: $width solid $background-color;
|
28
|
+
border-right: $width solid $background-color;
|
29
|
+
border-top: $height solid $foreground-color;
|
30
|
+
|
31
|
+
} @else if $direction == left {
|
32
|
+
border-top: $width solid $background-color;
|
33
|
+
border-bottom: $width solid $background-color;
|
34
|
+
border-right: $height solid $foreground-color;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
@else if ($direction == up-right) or ($direction == up-left) {
|
39
|
+
border-top: $height solid $foreground-color;
|
40
|
+
|
41
|
+
@if $direction == up-right {
|
42
|
+
border-left: $width solid $background-color;
|
43
|
+
|
44
|
+
} @else if $direction == up-left {
|
45
|
+
border-right: $width solid $background-color;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
@else if ($direction == down-right) or ($direction == down-left) {
|
50
|
+
border-bottom: $height solid $foreground-color;
|
51
|
+
|
52
|
+
@if $direction == down-right {
|
53
|
+
border-left: $width solid $background-color;
|
54
|
+
|
55
|
+
} @else if $direction == down-left {
|
56
|
+
border-right: $width solid $background-color;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
@else if ($direction == inset-up) {
|
61
|
+
border-width: $height $width;
|
62
|
+
border-style: solid;
|
63
|
+
border-color: $background-color $background-color $foreground-color;
|
64
|
+
}
|
65
|
+
|
66
|
+
@else if ($direction == inset-down) {
|
67
|
+
border-width: $height $width;
|
68
|
+
border-style: solid;
|
69
|
+
border-color: $foreground-color $background-color $background-color;
|
70
|
+
}
|
71
|
+
|
72
|
+
@else if ($direction == inset-right) {
|
73
|
+
border-width: $width $height;
|
74
|
+
border-style: solid;
|
75
|
+
border-color: $background-color $background-color $background-color $foreground-color;
|
76
|
+
}
|
77
|
+
|
78
|
+
@else if ($direction == inset-left) {
|
79
|
+
border-width: $width $height;
|
80
|
+
border-style: solid;
|
81
|
+
border-color: $background-color $foreground-color $background-color $background-color;
|
82
|
+
}
|
83
|
+
}
|