persistentgrid 0.0.1.beta.1

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 (129) hide show
  1. data/README.md +5 -0
  2. data/lib/persistentgrid.rb +4 -0
  3. data/scss/pg/_helpers.scss +7 -0
  4. data/scss/pg/base/_all.scss +9 -0
  5. data/scss/pg/base/_behavior.scss +10 -0
  6. data/scss/pg/base/_helpers.scss +9 -0
  7. data/scss/pg/base/_settings.scss +10 -0
  8. data/scss/pg/base/baserules/_all.scss +8 -0
  9. data/scss/pg/base/baserules/_behavior.scss +125 -0
  10. data/scss/pg/base/baserules/_settings.scss +39 -0
  11. data/scss/pg/base/reset/_all.scss +9 -0
  12. data/scss/pg/base/reset/_behavior.scss +108 -0
  13. data/scss/pg/base/reset/_helpers.scss +7 -0
  14. data/scss/pg/base/reset/_settings.scss +27 -0
  15. data/scss/pg/base/reset/helpers/_all.scss +7 -0
  16. data/scss/pg/base/reset/helpers/_mixins.scss +395 -0
  17. data/scss/pg/base/typography/_all.scss +9 -0
  18. data/scss/pg/base/typography/_behavior.scss +31 -0
  19. data/scss/pg/base/typography/_helpers.scss +7 -0
  20. data/scss/pg/base/typography/_settings.scss +52 -0
  21. data/scss/pg/base/typography/helpers/_all.scss +8 -0
  22. data/scss/pg/base/typography/helpers/_functions.scss +160 -0
  23. data/scss/pg/base/typography/helpers/_mixins.scss +121 -0
  24. data/scss/pg/grid/_all.scss +9 -0
  25. data/scss/pg/grid/_behavior.scss +51 -0
  26. data/scss/pg/grid/_helpers.scss +8 -0
  27. data/scss/pg/grid/_settings.scss +48 -0
  28. data/scss/pg/grid/helpers/_functions.scss +140 -0
  29. data/scss/pg/grid/helpers/_mixins.scss +247 -0
  30. data/scss/pg/helpers/_all.scss +11 -0
  31. data/scss/pg/helpers/_colors.scss +163 -0
  32. data/scss/pg/helpers/_fonts.scss +21 -0
  33. data/scss/pg/helpers/_functions.scss +91 -0
  34. data/scss/pg/helpers/_mixins.scss +7 -0
  35. data/scss/pg/helpers/_settings.scss +11 -0
  36. data/scss/pg/helpers/fonts/_bree-serif.scss +27 -0
  37. data/scss/pg/helpers/fonts/_example.scss +47 -0
  38. data/scss/pg/helpers/fonts/_lato.scss +36 -0
  39. data/scss/pg/helpers/fonts/_monospace.scss +43 -0
  40. data/scss/pg/helpers/fonts/_raleway.scss +35 -0
  41. data/scss/pg/helpers/fonts/_righteous.scss +27 -0
  42. data/scss/pg/helpers/fonts/_roboto.scss +38 -0
  43. data/scss/pg/helpers/fonts/_sans-serif.scss +43 -0
  44. data/scss/pg/helpers/fonts/_serif.scss +43 -0
  45. data/scss/pg/helpers/fonts/_sofia-pro.scss +44 -0
  46. data/scss/pg/helpers/fonts/_varela-round.scss +28 -0
  47. data/scss/pg/helpers/fonts/icon-fonts/_fontawesome.scss +34 -0
  48. data/scss/pg/helpers/fonts/icon-fonts/_foundation-accessability.scss +76 -0
  49. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
  50. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_core.scss +129 -0
  51. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
  52. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
  53. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
  54. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_path.scss +14 -0
  55. data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
  56. data/scss/pg/helpers/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
  57. data/scss/pg/helpers/library/_lists.scss +462 -0
  58. data/scss/pg/helpers/mixins/_all.scss +15 -0
  59. data/scss/pg/helpers/mixins/_anchors.scss +125 -0
  60. data/scss/pg/helpers/mixins/_baseline.scss +53 -0
  61. data/scss/pg/helpers/mixins/_breakpoints.scss +35 -0
  62. data/scss/pg/helpers/mixins/_content.scss +19 -0
  63. data/scss/pg/helpers/mixins/_css-triangle.scss +70 -0
  64. data/scss/pg/helpers/mixins/_elements.scss +106 -0
  65. data/scss/pg/helpers/mixins/_module.scss +327 -0
  66. data/scss/pg/helpers/mixins/_text.scss +87 -0
  67. data/scss/pg/helpers/mixins/_units.scss +67 -0
  68. data/scss/pg/helpers/settings/_all.scss +7 -0
  69. data/scss/pg/helpers/settings/_breakpoints.scss +21 -0
  70. data/scss/pg/modules/_all.scss +9 -0
  71. data/scss/pg/modules/_behavior.scss +13 -0
  72. data/scss/pg/modules/_helpers.scss +13 -0
  73. data/scss/pg/modules/_settings.scss +13 -0
  74. data/scss/pg/modules/accordions/_all.scss +8 -0
  75. data/scss/pg/modules/accordions/_behavior.scss +5 -0
  76. data/scss/pg/modules/accordions/_helpers.scss +5 -0
  77. data/scss/pg/modules/accordions/_settings.scss +4 -0
  78. data/scss/pg/modules/buttons/_all.scss +8 -0
  79. data/scss/pg/modules/buttons/_behavior.scss +89 -0
  80. data/scss/pg/modules/buttons/_helpers.scss +7 -0
  81. data/scss/pg/modules/buttons/_settings.scss +153 -0
  82. data/scss/pg/modules/buttons/helpers/_mixins.scss +33 -0
  83. data/scss/pg/modules/forms/_all.scss +8 -0
  84. data/scss/pg/modules/forms/_behavior.bak.scss +215 -0
  85. data/scss/pg/modules/forms/_behavior.scss +215 -0
  86. data/scss/pg/modules/forms/_helpers.scss +8 -0
  87. data/scss/pg/modules/forms/_settings.scss +10 -0
  88. data/scss/pg/modules/forms/helpers/_mixins.scss +94 -0
  89. data/scss/pg/modules/forms/settings/forms.scss +19 -0
  90. data/scss/pg/modules/forms/settings/input.scss +256 -0
  91. data/scss/pg/modules/forms/settings/labels.scss +101 -0
  92. data/scss/pg/modules/lists/_all.scss +9 -0
  93. data/scss/pg/modules/lists/_behavior.scss +99 -0
  94. data/scss/pg/modules/lists/_helpers.scss +11 -0
  95. data/scss/pg/modules/lists/_settings.scss +49 -0
  96. data/scss/pg/modules/tables/_all.scss +8 -0
  97. data/scss/pg/modules/tables/_behavior.scss +79 -0
  98. data/scss/pg/modules/tables/_helpers.scss +7 -0
  99. data/scss/pg/modules/tables/_settings.scss +69 -0
  100. data/scss/pg/modules/tables/helpers/_mixins.scss +9 -0
  101. data/scss/pg/modules/tabs/_all.scss +8 -0
  102. data/scss/pg/modules/tabs/_behavior.scss +77 -0
  103. data/scss/pg/modules/tabs/_helpers.scss +7 -0
  104. data/scss/pg/modules/tabs/_settings.scss +8 -0
  105. data/scss/pg/modules/tabs/helpers/_mixins.scss +4 -0
  106. data/scss/pg/skins/_crossinghippos.scss +8 -0
  107. data/scss/pg/skins/crossinghippos/_all.scss +9 -0
  108. data/scss/pg/skins/crossinghippos/_behavior.scss +10 -0
  109. data/scss/pg/skins/crossinghippos/_helpers.scss +8 -0
  110. data/scss/pg/skins/crossinghippos/_settings.scss +9 -0
  111. data/scss/pg/skins/crossinghippos/buttons/_all.scss +9 -0
  112. data/scss/pg/skins/crossinghippos/buttons/_behavior.scss +25 -0
  113. data/scss/pg/skins/crossinghippos/buttons/_helpers.scss +7 -0
  114. data/scss/pg/skins/crossinghippos/buttons/_settings.scss +50 -0
  115. data/scss/pg/skins/crossinghippos/forms/_all.scss +9 -0
  116. data/scss/pg/skins/crossinghippos/forms/_base.scss +7 -0
  117. data/scss/pg/skins/crossinghippos/forms/_behavior.scss +259 -0
  118. data/scss/pg/skins/crossinghippos/forms/_settings.scss +29 -0
  119. data/scss/pg/skins/crossinghippos/linkbar/_all.scss +8 -0
  120. data/scss/pg/skins/crossinghippos/linkbar/_behavior.scss +73 -0
  121. data/scss/pg/skins/crossinghippos/linkbar/_helpers.scss +5 -0
  122. data/scss/pg/skins/crossinghippos/linkbar/_settings.scss +27 -0
  123. data/templates/base/manifest.rb +15 -0
  124. data/templates/base/screen.scss +39 -0
  125. data/templates/grid/manifest.rb +15 -0
  126. data/templates/grid/screen.scss +36 -0
  127. data/templates/modules/manifest.rb +15 -0
  128. data/templates/modules/screen.scss +44 -0
  129. metadata +210 -0
@@ -0,0 +1,67 @@
1
+ // /**
2
+ // * @copyright Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * @license GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+ // Accepts a value and returns it without a value
8
+ @function return-unitless($value)
9
+ {
10
+ @if unitless($value) {
11
+ @return $value;
12
+ }
13
+
14
+ $unit: unit($value);
15
+
16
+ @if $unit=="px" {
17
+ @return $value / 1px;
18
+ }
19
+ @if $unit=="rem" {
20
+ @return $value / 1rem;
21
+ }
22
+ @if $unit=="em" {
23
+ @return $value / 1em;
24
+ }
25
+ @if $unit=="%" {
26
+ @return $value / 1%;
27
+ }
28
+ @if $unit=="pt" {
29
+ @return $value / 1pt;
30
+ }
31
+ }
32
+
33
+
34
+ // Use these methods to convert px based units to other units
35
+ // There is also a px to px function in case you need to recalculate a px unit for a different context
36
+ // Use these methods to convert px based units to other units
37
+ // There is also a px to px function in case you need to recalculate a px unit for a different context
38
+ @function px-to-percentage($target-px, $context: $base-font-size) {
39
+ @return percentage($target-px / $context);
40
+ }
41
+ @function px-to-em($target-px, $context: $base-font-size) {
42
+ @return ($target-px / $context) * 1em;
43
+ }
44
+ @function px-to-rem($target-px, $context: $base-font-size) {
45
+ @return ($target-px / $context) * .1rem;
46
+ }
47
+ @function px-to-px($target-px, $context: $base-font-size) {
48
+ @return ($target-px / $context) * .1px;
49
+ }
50
+
51
+ // Let this function figure out which conversion function to use.
52
+ // Both $target and $context values *must* be in px
53
+ @function px-to-relative-size($target-px, $context: $base-font-size, $unit: $font-unit) {
54
+
55
+ @if unit($unit)=="%" {
56
+ @return px-to-percentage($target-px, $context);
57
+ }
58
+ @if unit($unit)=="em" {
59
+ @return px-to-em($target-px, $context);
60
+ }
61
+ @if unit($unit)=="rem" {
62
+ @return px-to-rem($target-px, $context);
63
+ }
64
+ @if unit($unit)=="px" {
65
+ @return px-to-px($target-px, $context);
66
+ }
67
+ }
@@ -0,0 +1,7 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+ @import "breakpoints";
@@ -0,0 +1,21 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+ $small_handheld: (max-width px-to-em(480px,$base-font-size)) !default;
8
+ $small_handheld_tall: (max-width px-to-em(480px,$base-font-size)),(orientation portrait) !default;
9
+ $small_handheld_wide: (max-width px-to-em(480px,$base-font-size)),(orientation landscape) !default;
10
+
11
+ $medium_handheld: (max-width px-to-em(768px,$base-font-size)) !default;
12
+ $medium_handheld_tall: (min-width px-to-em(481px,$base-font-size)),(max-width px-to-em(768px,$base-font-size)),(orientation portrait) !default;
13
+ $medium_handheld_wide: (min-width px-to-em(1024px,$base-font-size));
14
+
15
+ $large_handheld: ();
16
+ $large_handheld_tall: ();
17
+ $large_handheld_wide: ();
18
+
19
+ $small_desktop: $medium_handheld_wide !default;
20
+ $medium_desktop: (min-width,px-to-em(1280px,$base-font-size)) !default;
21
+ $large_desktop: (min-width,px-to-em(1680px,$base-font-size)) !default;
@@ -0,0 +1,9 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+ @import "helpers";
8
+ @import "settings";
9
+ @import "behavior";
@@ -0,0 +1,13 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+
8
+ @import "forms/behavior";
9
+ @import "buttons/behavior";
10
+ // @import "tables/behavior";
11
+ @import "lists/behavior";
12
+ // @import "tabs/behavior";
13
+ // @import "accordions/behavior";
@@ -0,0 +1,13 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+
8
+ @import "forms/helpers";
9
+ @import "buttons/helpers";
10
+ // @import "tables/helpers";
11
+ @import "lists/helpers";
12
+ // @import "tabs/helpers";
13
+ // @import "accordions/helpers";
@@ -0,0 +1,13 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+
8
+ @import "forms/settings";
9
+ @import "buttons/settings";
10
+ // @import "tables/settings";
11
+ @import "lists/settings";
12
+ // @import "tabs/settings";
13
+ // @import "accordions/settings";
@@ -0,0 +1,8 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
6
+ @import "settings";
7
+ @import "helpers";
8
+ @import "behavior";
@@ -0,0 +1,5 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
@@ -0,0 +1,5 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
@@ -0,0 +1,4 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
@@ -0,0 +1,8 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
6
+ @import "settings";
7
+ @import "helpers";
8
+ @import "behavior";
@@ -0,0 +1,89 @@
1
+ // /**
2
+ // * @copyright Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * @license GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+
8
+ // ==========================================================================
9
+ // Render button styles
10
+ // ==========================================================================
11
+
12
+ @each $button in $buttons {
13
+
14
+ $selector: nth($button,1);
15
+ $properties: nth($button,2);
16
+ $is-state: nth($button,3);
17
+
18
+ @if length($properties) != 0 {
19
+
20
+ .#{$selector} {
21
+ @each $property in $properties {
22
+
23
+ $value: nth($property,2);
24
+ $property: nth($property,1);
25
+
26
+ @if $property=="cursor" {
27
+ @include module-property($value, $property);
28
+ }
29
+ @else if $property=="display" {
30
+ @include module-display($value);
31
+ }
32
+ @else if $property=="padding" {
33
+ @include module-padding($value);
34
+ }
35
+ @else if $property=="background" {
36
+ @include module-background($value);
37
+ }
38
+ @else if $property=="border" {
39
+ @include module-border($value);
40
+ }
41
+ @else if $property=="border-radius" {
42
+ @include module-border-radius($value);
43
+ }
44
+ @else if $property=="box-shadow" {
45
+ @include module-shadow($value);
46
+ }
47
+ @else if $property=="color" {
48
+ @include module-property($value, "color");
49
+ }
50
+ @else if $property=="text" {
51
+ @include module-text($value);
52
+ }
53
+ @else if $property=="type" {
54
+ @include module-type($value);
55
+ }
56
+ @else {
57
+ @include module-property($value, $property);
58
+ }
59
+ }
60
+ @if $is-state == false {
61
+ &:hover {
62
+ @extend .is-#{$selector}-hover !optional;
63
+ }
64
+ &:active {
65
+ @extend .is-#{$selector}-active !optional;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+
72
+
73
+ // ==========================================================================
74
+ // Render layout styles
75
+ // ==========================================================================
76
+
77
+ .#{$button-base-class}-align-top {
78
+ @include inline-block(top);
79
+ }
80
+ .#{$button-base-class}-small {
81
+ padding-top: 0;
82
+ padding-bottom: 0;
83
+ }
84
+ .#{$button-base-class}-big {
85
+ @include adjust-font-size-to($font-size-l, 1.5);
86
+ }
87
+ .#{$button-base-class}-stretch {
88
+ width: 100%;
89
+ }
@@ -0,0 +1,7 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
6
+ // @import "base/functions";
7
+ @import "helpers/mixins";
@@ -0,0 +1,153 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later !default; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+
8
+ // ==========================================================================
9
+ // Button base class
10
+ // ==========================================================================
11
+
12
+ $button-base-class: "btn" !default;
13
+
14
+
15
+ // ==========================================================================
16
+ // Button base properties
17
+ // ==========================================================================
18
+
19
+ $button-cursor: pointer !default;
20
+ $button-vertical-align: baseline;
21
+
22
+
23
+ // -----------------------------------------------------------------------
24
+ // Button display (display, vertical-align)
25
+ // -----------------------------------------------------------------------
26
+
27
+ $button-display: inline-block !default;
28
+ $button-vertical-align: middle !default;
29
+
30
+
31
+ // -----------------------------------------------------------------------
32
+ // Button padding (top, right, left, bottom)
33
+ // -----------------------------------------------------------------------
34
+
35
+ $button-padding-top: vertical-rhythm(.25) !default;
36
+ $button-padding-right: horizontal-rhythm(1/2) !default;
37
+ $button-padding-bottom: vertical-rhythm(.25) !default;
38
+ $button-padding-left: horizontal-rhythm(1/2) !default;
39
+
40
+
41
+ // -----------------------------------------------------------------------
42
+ // Button background (background-color, background-image)
43
+ // -----------------------------------------------------------------------
44
+
45
+ $button-background-color: $color-theme !default; // not base
46
+ $button-background-image: false !default; // not base
47
+
48
+
49
+ // -----------------------------------------------------------------------
50
+ // Button border (top, right, left, bottom)
51
+ // -----------------------------------------------------------------------
52
+
53
+ $button-border-width: 1px !default;
54
+ $button-border-style: solid !default; // not base
55
+ $button-border-color: $button-background-color !default; // not base
56
+ $button-border-radius: $corner-radius !default;
57
+
58
+
59
+ // -----------------------------------------------------------------------
60
+ // Button shadow (box-shadow, inner-shadow)
61
+ // -----------------------------------------------------------------------
62
+
63
+ $button-shadow-box-outer: false !default;
64
+ $button-shadow-box-inner: false !default;
65
+
66
+
67
+ // -----------------------------------------------------------------------
68
+ // Button text (color, shadow, align, decoration)
69
+ // -----------------------------------------------------------------------
70
+
71
+ $button-text-color: $white !default;
72
+ $button-text-shadow: -1px -1px 0 rgba(0,0,0,.3) !default;
73
+ $button-text-align: center !default;
74
+ $button-text-decoration: none !default;
75
+
76
+
77
+ // -----------------------------------------------------------------------
78
+ // Button type (type, size, leading)
79
+ // -----------------------------------------------------------------------
80
+
81
+ $button-type-type: $type-default !default;
82
+ $button-type-size: $base-font-size !default;
83
+ $button-type-rhythm: 1 !default;
84
+
85
+
86
+ // ==========================================================================
87
+ // Button hover state properties
88
+ // ==========================================================================
89
+
90
+ $button-hover-background-color: lighten($button-background-color, 20%) !default;
91
+ $button-hover-background-image: false !default;
92
+ $button-hover-border-color: $button-hover-background-color !default;
93
+
94
+
95
+ // ==========================================================================
96
+ // Button active state properties
97
+ // $button-active-background-image: linear-gradient(lighten($button-active-background-color,5),darken($button-active-background-color,5))
98
+ // ==========================================================================
99
+
100
+ $button-active-background-color: lighten($button-background-color, 20%) !default;
101
+ $button-active-background-image: false !default;
102
+ $button-active-border-color: $button-active-background-color !default;
103
+
104
+
105
+ // ==========================================================================
106
+ // Elements
107
+ // ==========================================================================
108
+
109
+ $button-base:
110
+ $button-base-class,
111
+ (
112
+ (cursor, ($button-cursor))
113
+ (display, ($button-display $button-vertical-align))
114
+ (padding, ($button-padding-top $button-padding-right $button-padding-bottom $button-padding-left))
115
+ (background, ($button-background-color $button-background-image))
116
+ (border, ($button-border-width $button-border-style $button-border-color))
117
+ (border-radius, ($button-border-radius))
118
+ (box-shadow, ($button-shadow-box-outer $button-shadow-box-inner))
119
+ (color, ($button-text-color))
120
+ (text, ($button-text-align $button-text-decoration $button-text-shadow))
121
+ (type, ($button-type-type $button-type-size $button-type-rhythm))
122
+ ),
123
+ false
124
+ !default;
125
+
126
+ $button-state:
127
+ 'state',
128
+ (
129
+ (cursor, false)
130
+ (display, false)
131
+ (padding, false)
132
+ (background, false)
133
+ (border, false)
134
+ (border-radius, false)
135
+ (box-shadow, false)
136
+ (color, false)
137
+ (text, false)
138
+ (type, false)
139
+ ),
140
+ true
141
+ !default;
142
+
143
+ $button: clone($button-base, "#{$button-base-class}", false) !default;
144
+ $button-hover: new($button-state, "is-#{$button-base-class}-hover", true) !default;
145
+ $button-active: new($button-state, "is-#{$button-base-class}-active", true) !default;
146
+
147
+ $button-hover: change($button-hover, (background, ($button-hover-background-color $button-hover-background-image)));
148
+ $button-hover: change($button-hover, (border, (false false $button-hover-border-color)));
149
+
150
+ $button-active: change($button-active, (background, ($button-active-background-color $button-active-background-image)));
151
+ $button-active: change($button-active, (border, (false false $button-active-border-color)));
152
+
153
+ $buttons: $button, $button-hover, $button-active !default;
@@ -0,0 +1,33 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+ @if $trace-imports { @debug 'imported'; }
6
+
7
+
8
+ // ==========================================================================
9
+ // Mixin button
10
+ // ==========================================================================
11
+ // Accepts a string which will be used as a selector
12
+ // Will yield content as its output
13
+ //
14
+ // @param $selector: a string
15
+ // ==========================================================================
16
+ @mixin button-base($selector)
17
+ {
18
+ #{$selector} {
19
+ @content;
20
+ }
21
+ }
22
+
23
+ @mixin button($button-base-class, $button-class)
24
+ {
25
+ $selector: '.' + $button-base-class;
26
+ @if $button-class != '' {
27
+ $selector: $selector + '-' + $button-class;
28
+ }
29
+
30
+ #{$selector} {
31
+ @content;
32
+ }
33
+ }
@@ -0,0 +1,8 @@
1
+ // /**
2
+ // * Copyright (C) 2013 Crossing Hippos - Babs Gösgens. All rights reserved.
3
+ // * Licensed under GNU General Public License version 2 or later; see LICENSE.txt
4
+ // */
5
+
6
+ @import "settings";
7
+ @import "helpers";
8
+ @import "behavior";