compass-pattern-primer 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/lib/compass-pattern-primer.rb +31 -0
  3. data/stylesheets/compass-pattern-primer.scss +12 -0
  4. data/stylesheets/compass-pattern-primer/_base.scss +10 -0
  5. data/stylesheets/compass-pattern-primer/_modules.scss +8 -0
  6. data/stylesheets/compass-pattern-primer/_reset.scss +10 -0
  7. data/stylesheets/compass-pattern-primer/base/_buttons.scss +24 -0
  8. data/stylesheets/compass-pattern-primer/base/_forms.scss +26 -0
  9. data/stylesheets/compass-pattern-primer/base/_links.scss +24 -0
  10. data/stylesheets/compass-pattern-primer/base/_page.scss +16 -0
  11. data/stylesheets/compass-pattern-primer/base/_search.scss +19 -0
  12. data/stylesheets/compass-pattern-primer/base/_typography.scss +142 -0
  13. data/stylesheets/compass-pattern-primer/modules/_control.scss +3 -0
  14. data/stylesheets/compass-pattern-primer/modules/_feedback.scss +9 -0
  15. data/stylesheets/compass-pattern-primer/modules/_options.scss +3 -0
  16. data/stylesheets/compass-pattern-primer/modules/_pagination.scss +3 -0
  17. data/stylesheets/compass-pattern-primer/partials/_colors.scss +29 -0
  18. data/stylesheets/compass-pattern-primer/partials/_extendables.scss +188 -0
  19. data/stylesheets/compass-pattern-primer/partials/_functions.scss +8 -0
  20. data/stylesheets/compass-pattern-primer/partials/_mixins.scss +145 -0
  21. data/stylesheets/compass-pattern-primer/partials/variables/_variables.scss +18 -0
  22. data/stylesheets/compass-pattern-primer/partials/variables/base/_buttons.scss +68 -0
  23. data/stylesheets/compass-pattern-primer/partials/variables/base/_colors.scss +1 -0
  24. data/stylesheets/compass-pattern-primer/partials/variables/base/_forms.scss +10 -0
  25. data/stylesheets/compass-pattern-primer/partials/variables/base/_links.scss +31 -0
  26. data/stylesheets/compass-pattern-primer/partials/variables/base/_page.scss +30 -0
  27. data/stylesheets/compass-pattern-primer/partials/variables/base/_search.scss +20 -0
  28. data/stylesheets/compass-pattern-primer/partials/variables/base/_typography.scss +202 -0
  29. data/stylesheets/compass-pattern-primer/partials/variables/modules/_control.scss +24 -0
  30. data/stylesheets/compass-pattern-primer/partials/variables/modules/_feedback.scss +22 -0
  31. data/stylesheets/compass-pattern-primer/partials/variables/modules/_options.scss +23 -0
  32. data/stylesheets/compass-pattern-primer/partials/variables/modules/_pagination.scss +26 -0
  33. data/stylesheets/compass-pattern-primer/reset/_reset.scss +19 -0
  34. data/stylesheets/compass-pattern-primer/reset/libraries/_eric_meyer_reset.scss +51 -0
  35. data/stylesheets/compass-pattern-primer/reset/libraries/_formalize.scss +378 -0
  36. data/stylesheets/compass-pattern-primer/reset/libraries/_normalize.scss +935 -0
  37. data/templates/project/ie.scss +4 -0
  38. data/templates/project/manifest.rb +26 -0
  39. data/templates/project/pattern-primer.html +401 -0
  40. data/templates/project/print.scss +1 -0
  41. data/templates/project/screen.scss +3 -0
  42. metadata +112 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA512:
3
+ data.tar.gz: 036f5555bce3a2ff453d6de1d58788a263944092b8747912382a0a8fd66cd3dadcea89113f91cbe68d12a4c882be95bc22409928be160c56b947d614f7c8d589
4
+ metadata.gz: 39faa0a6b376a2fa8a57f9930fbf2f53ae5eaf050c311538015bbf654fbe46cde02dcc40f68603a9a4b876cf0848656c89a566bea0e8db11e10a1505dd3b02eb
5
+ SHA1:
6
+ data.tar.gz: 452aaed747cb27ceb25366348fded1b504fc3be1
7
+ metadata.gz: cb3440946c04b955116ce6dbd9be1678c5268eab
@@ -0,0 +1,31 @@
1
+ # All gems that are required for this extension to work should go here.
2
+ # These are the requires you would normally put in your config.rb file
3
+ # By default, you should always included Compass. Do not include your
4
+ # extension.
5
+ require 'compass'
6
+ require 'toolkit'
7
+
8
+ # This tells Compass what your Compass extension is called, and where to find
9
+ # its files
10
+ # Replace 'extension' with the name of your extension. Spaces allowed.
11
+ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
12
+ Compass::Frameworks.register('compass-pattern-primer', :path => extension_path)
13
+
14
+ # Version and date of version for your Compass extension.
15
+ # Replace Extension with the name of your extension
16
+ # Letters, numbers, and underscores only
17
+ # Version is a number. If a version contains alphas, it will be created as
18
+ # a prerelease version
19
+ # Date is in the form of YYYY-MM-DD
20
+ module Compass_Pattern_Primer
21
+ VERSION = "0.1"
22
+ DATE = "2013-05-17"
23
+ end
24
+
25
+ # This is where any custom SassScript should be placed. The functions will be
26
+ # available on require of your extension without the need for users to import
27
+ # any partials. Uncomment below.
28
+
29
+ # module Sass::Script::Functions
30
+ #
31
+ # end
@@ -0,0 +1,12 @@
1
+ @import "compass-pattern-primer/reset";
2
+
3
+ @import "compass-pattern-primer/partials/_mixins";
4
+ @import "compass-pattern-primer/partials/_functions";
5
+ @import "compass-pattern-primer/partials/variables/_variables";
6
+ @import "compass-pattern-primer/partials/_extendables";
7
+ @import "compass-pattern-primer/partials/_colors";
8
+
9
+ @import "compass-pattern-primer/base";
10
+
11
+ @import "compass-pattern-primer/modules";
12
+
@@ -0,0 +1,10 @@
1
+ @import "compass-pattern-primer/partials/_mixins";
2
+ @import "compass-pattern-primer/partials/_functions";
3
+ @import "compass-pattern-primer/partials/variables/_variables";
4
+
5
+ @import "compass-pattern-primer/base/_page";
6
+ @import "compass-pattern-primer/base/_typography";
7
+ @import "compass-pattern-primer/base/_links";
8
+ @import "compass-pattern-primer/base/_forms";
9
+ @import "compass-pattern-primer/base/_search";
10
+ @import "compass-pattern-primer/base/_buttons";
@@ -0,0 +1,8 @@
1
+ @import "compass-pattern-primer/partials/_mixins";
2
+ @import "compass-pattern-primer/partials/_functions";
3
+ @import "compass-pattern-primer/partials/variables/_variables";
4
+
5
+ @import "compass-pattern-primer/modules/_control";
6
+ @import "compass-pattern-primer/modules/_feedback";
7
+ @import "compass-pattern-primer/modules/_options";
8
+ @import "compass-pattern-primer/modules/_pagination";
@@ -0,0 +1,10 @@
1
+ // change legacy support to true if you want legacy versions of formalize and normalize
2
+ $legacy-support-for-ie6: false;
3
+ $legacy-support-for-ie7: false;
4
+
5
+ // choose your reset
6
+ $use_eric_meyer_reset: false;
7
+ $use_formalize_reset: true;
8
+ $use_normalize_reset: true;
9
+
10
+ @import "reset/_reset";
@@ -0,0 +1,24 @@
1
+ button,
2
+ input[type="button"],
3
+ input[type="submit"] {
4
+ @extend %button;
5
+ }
6
+
7
+ button.active,
8
+ input[type="button"].active,
9
+ input[type="submit"].active {
10
+ @extend %button-active;
11
+ }
12
+
13
+ input.cancel,
14
+ button.cancel,
15
+ input[type="button"][value="Cancel"],
16
+ input[type="submit"][value="Cancel"] {
17
+ @extend %button-cancel;
18
+ }
19
+
20
+ button[disabled="disabled"],
21
+ input[type="button"][disabled="disabled"],
22
+ input[type="submit"][disabled="disabled"] {
23
+ @extend %button-disabled;
24
+ }
@@ -0,0 +1,26 @@
1
+ label {
2
+ cursor: pointer;
3
+ }
4
+ input[type],
5
+ textarea,
6
+ select {
7
+ background-color: $forms-background-color;
8
+ width: 100%;
9
+ font-family: inherit;
10
+ font-size: inherit;
11
+ @include bounding-box(padding, $forms-padding);
12
+ @include bounding-box(border, false, $forms-border-pos, $forms-border-width, $forms-border-style, $forms-border-color);
13
+ @include border-radius($forms-border-radius);
14
+ &:focus {
15
+ border-color: $forms-focus-border-color;
16
+ }
17
+ }
18
+ input[type="checkbox"],
19
+ input[type="radio"],
20
+ input[type="image"] {
21
+ width: auto;
22
+ }
23
+ input[required],
24
+ textarea[required] {
25
+ border-color: $forms-required-border-color;
26
+ }
@@ -0,0 +1,24 @@
1
+ a {
2
+ color: $link-color;
3
+ text-decoration: $link-text-decoration;
4
+ @include bounding-box(border, false, $link-border-pos, $link-border-width, $link-border-style, $link-border-color);
5
+ &:link,
6
+ &:visited {
7
+ color: $link-visited-link-color;
8
+ @include bounding-box(border, false, $link-visited-border-pos, $link-visited-border-width, $link-visited-border-style, $link-visited-border-color);
9
+ }
10
+ &[href]:hover,
11
+ &[href]:focus {
12
+ color: $link-hover-link-color;
13
+ text-decoration: $link-hover-text-decoration;
14
+ @include bounding-box(border, false, $link-hover-border-pos, $link-hover-border-width, $link-hover-border-style, $link-hover-border-color);
15
+ }
16
+ &:active {
17
+ color: $link-active-link-color;
18
+ @include bounding-box(border, false, $link-active-border-pos, $link-active-border-width, $link-active-border-style, $link-active-border-color);
19
+ }
20
+ .logo &, h1 &, h2 &, h3 & {
21
+ color: $headers-link-color;
22
+ @include bounding-box(border, false, $logo-headers-border-pos, $logo-headers-border-width, $logo-headers-border-style, $logo-headers-border-color);
23
+ }
24
+ }
@@ -0,0 +1,16 @@
1
+ html {
2
+ @include bounding-box(border, false, $html-border-pos, $html-border-width, $html-border-style, $html-border-color);
3
+ background-color: $html-background-color;
4
+ }
5
+ body {
6
+ background-color: $body-background-color;
7
+ background: $body-background-rgba;
8
+ @include bounding-box(margin, $body-margin);
9
+ @include bounding-box(padding, $body-padding);
10
+ @include type-size($body-font-size, $body-line-height);
11
+ font-family: $body-font-family;
12
+ color: $body-color;
13
+ @include bounding-box(border, false, $body-border-pos, $body-border-width, $body-border-style, $body-border-color);
14
+ @include bounding-box(border, false, $body-border-pos2, $body-border-width2, $body-border-style2, $body-border-color2);
15
+ border-color: $body-border-color-rgba;
16
+ }
@@ -0,0 +1,19 @@
1
+ [role="search"] {
2
+ position: relative;
3
+ background-color: $search-background-color;
4
+ @include bounding-box(border, false, $search-border-pos, $search-border-width, $search-border-style, $search-border-color);
5
+ @include bounding-box(padding, $search-padding);
6
+ @include border-radius($search-border-radius);
7
+ input[type="search"], input {
8
+ @include bounding-box(border, false, $search-input-border-pos, $search-input-border-width, $search-input-border-style, $search-input-border-color);
9
+ @include border-radius($search-input-border-radius);
10
+ }
11
+ input[type="image"] {
12
+ background-color: $search-image-background-color;
13
+ position: absolute;
14
+ width: $search-image-width;
15
+ top: $search-image-top;
16
+ right: $search-image-right;
17
+ @include bounding-box(padding, $search-image-padding);
18
+ }
19
+ }
@@ -0,0 +1,142 @@
1
+ h1 {
2
+ font-family: $header-font-family;
3
+ @include bold-italic-uppercase-variant($h1-font-bold, $h1-font-italic, $h1-font-uppercase, $h1-font-variant);
4
+ @include type-size($h1-font-size, $h1-line-height);
5
+ @include bounding-box(padding, $h1-padding, $h1-padding-pos);
6
+ @include bounding-box(margin, $h1-margin, $h1-margin-pos);
7
+ color: $h1-color;
8
+ @include bounding-box(border, false, $h1-border-pos, $h1-border-width, $h1-border-style, $h1-border-color);
9
+ }
10
+ h2 {
11
+ font-family: $header-font-family;
12
+ @include bold-italic-uppercase-variant($h2-font-bold, $h2-font-italic, $h2-font-uppercase, $h2-font-variant);
13
+ @include type-size($h2-font-size, $h2-line-height);
14
+ @include bounding-box(padding, $h2-padding, $h2-padding-pos);
15
+ @include bounding-box(margin, $h2-margin, $h2-margin-pos);
16
+ color: $h2-color;
17
+ @include bounding-box(border, false, $h2-border-pos, $h2-border-width, $h2-border-style, $h2-border-color);
18
+ }
19
+ h3 {
20
+ font-family: $header-font-family;
21
+ @include bold-italic-uppercase-variant($h3-font-bold, $h3-font-italic, $h3-font-uppercase, $h3-font-variant);
22
+ @include type-size($h3-font-size, $h3-line-height);
23
+ @include bounding-box(padding, $h3-padding, $h3-padding-pos);
24
+ @include bounding-box(margin, $h3-margin, $h3-margin-pos);
25
+ color: $h3-color;
26
+ @include bounding-box(border, false, $h3-border-pos, $h3-border-width, $h3-border-style, $h3-border-color);
27
+ }
28
+ h4 {
29
+ font-family: $header-font-family;
30
+ @include bold-italic-uppercase-variant($h4-font-bold, $h4-font-italic, $h4-font-uppercase, $h4-font-variant);
31
+ @include type-size($h4-font-size, $h4-line-height);
32
+ @include bounding-box(padding, $h4-padding, $h4-padding-pos);
33
+ @include bounding-box(margin, $h4-margin, $h4-margin-pos);
34
+ color: $h4-color;
35
+ @include bounding-box(border, false, $h4-border-pos, $h4-border-width, $h4-border-style, $h4-border-color);
36
+ }
37
+ h5 {
38
+ font-family: $header-font-family;
39
+ @include bold-italic-uppercase-variant($h5-font-bold, $h5-font-italic, $h5-font-uppercase, $h5-font-variant);
40
+ @include type-size($h5-font-size, $h5-line-height);
41
+ @include bounding-box(padding, $h5-padding, $h5-padding-pos);
42
+ @include bounding-box(margin, $h5-margin, $h5-margin-pos);
43
+ color: $h5-color;
44
+ @include bounding-box(border, false, $h5-border-pos, $h5-border-width, $h5-border-style, $h5-border-color);
45
+ }
46
+ h6 {
47
+ @include bold-italic-uppercase-variant($h6-font-bold, $h6-font-italic, $h6-font-uppercase, $h6-font-variant);
48
+ @include type-size($h6-font-size, $h6-line-height);
49
+ @include bounding-box(padding, $h6-padding, $h6-padding-pos);
50
+ @include bounding-box(margin, $h6-margin, $h6-margin-pos);
51
+ color: $h6-color;
52
+ @include bounding-box(border, false, $h6-border-pos, $h6-border-width, $h6-border-style, $h6-border-color);
53
+ }
54
+ b, strong {
55
+ font-weight: bold;
56
+ }
57
+ i, em {
58
+ font-style: italic;
59
+ }
60
+ hr {
61
+ @include bounding-box(border, false, $hr-border-pos, $hr-border-width, $hr-border-style, $hr-border-color);
62
+ height: $hr-height;
63
+ background: $hr-background;
64
+ background-color: $hr-background-rgba;
65
+ }
66
+ p, ul, ol, hr, table, form, fieldset {
67
+ @include bounding-box(margin, $element-margin);
68
+ }
69
+ li {
70
+ list-style-position: $li-list-style-position;
71
+ @include bounding-box(margin, $li-margin, $li-margin-pos);
72
+ text-indent: $li-text-indent;
73
+ }
74
+ blockquote {
75
+ @include bounding-box(margin, $blockquote-margin);
76
+ @include bounding-box(border, false, $blockquote-border-pos, $blockquote-border-width, $blockquote-border-style, $blockquote-border-color);
77
+ @include bounding-box(border, false, $blockquote-border-pos2, $blockquote-border-width2, $blockquote-border-style2, $blockquote-border-color2);
78
+ @include bounding-box(padding, $blockquote-padding);
79
+ font-family: $blockquote-font-family;
80
+ @include bold-italic-uppercase-variant($blockquote-font-bold, $blockquote-font-italic, $blockquote-font-uppercase, $blockquote-font-variant);
81
+ @include type-size($blockquote-font-size, $blockquote-line-height);
82
+ letter-spacing: $blockquote-letter-spacing;
83
+ color: $blockquote-color;
84
+ border-color: $blockquote-border-rgba;
85
+ @include border-radius($blockquote-border-radius);
86
+ em {
87
+ @include bold-italic-uppercase-variant($blockquote-em-font-bold, $blockquote-em-font-italic, $blockquote-em-font-uppercase, $blockquote-em-font-variant);
88
+ }
89
+ }
90
+ figcaption {
91
+ font-family: $figcaption-font-family;
92
+ @include bold-italic-uppercase-variant($figcaption-font-bold, $figcaption-font-italic, $figcaption-font-uppercase, $figcaption-font-variant);
93
+ @include type-size($figcaption-font-size, $figcaption-line-height);
94
+ color: $figcaption-color;
95
+ }
96
+ article > p,
97
+ article section > p {
98
+ @include type-size($article-font-size, $article-line-height);
99
+ word-spacing: $article-word-spacing;
100
+ @include bounding-box(margin, $article-margin);
101
+ /* Does this improve the reading experience?
102
+ -webkit-hyphens: auto;
103
+ -moz-hyphens: auto;
104
+ hyphens: auto;
105
+ text-align: justify;
106
+ */
107
+ }
108
+ article footer+p:first-letter,
109
+ article section>h2+p:first-letter,
110
+ article section>p:first-child:first-letter,
111
+ h1+p:first-letter {
112
+ display: $article-fl-display;
113
+ float: $article-fl-float;
114
+ font-family: $article-fl-font-family;
115
+ @include bold-italic-uppercase-variant($article-fl-font-bold, $article-fl-font-italic, $article-fl-font-uppercase, $article-fl-font-variant);
116
+ @include type-size($article-fl-font-size, $article-fl-line-height);
117
+ letter-spacing: $article-fl-letter-spacing;
118
+ @include bounding-box(margin, $article-fl-margin, $article-fl-margin-pos);
119
+ color: $article-fl-color;
120
+ @include bounding-box(border, false, $article-fl-border-pos, $article-fl-border-width, $article-fl-border-style, $article-fl-border-color);
121
+ }
122
+ time {
123
+ display: $time-display;
124
+ text-align: $time-text-align;
125
+ font-family: $time-font-family;
126
+ @include bold-italic-uppercase-variant($time-font-bold, $time-font-italic, $time-font-uppercase, $time-font-variant);
127
+ @include type-size($time-font-size, $time-line-height);
128
+ $time-letter-spacing: 0.2em;
129
+ $time-color: #888;
130
+ @include content-before-after($time-content);
131
+ }
132
+
133
+ pre {
134
+ @extend %force-wrap;
135
+ @include bounding-box(margin, $pre-margin, $pre-margin-pos);
136
+ @include bounding-box(padding, $pre-padding);
137
+ @include bounding-box(border, false, $pre-border-pos, $pre-border-width, $pre-border-style, $pre-border-color);
138
+ @include border-radius($pre-border-radius);
139
+ font-family: $pre-font-family;
140
+ @include type-size($pre-font-size, $pre-line-height);
141
+ @include simple-background-gradient($pre-color, $pre-gradient-pos, $pre-gradient-stop-1, $pre-gradient-stop-2);
142
+ }
@@ -0,0 +1,3 @@
1
+ a.control {
2
+ @extend %controls;
3
+ }
@@ -0,0 +1,9 @@
1
+ .feedback {
2
+ @extend %feedback;
3
+ &.error {
4
+ @extend %error;
5
+ }
6
+ &.warning {
7
+ @extend %warning;
8
+ }
9
+ }
@@ -0,0 +1,3 @@
1
+ .options {
2
+ @extend %options;
3
+ }
@@ -0,0 +1,3 @@
1
+ .pagination {
2
+ @extend %pagination;
3
+ }
@@ -0,0 +1,29 @@
1
+ @import 'toolkit';
2
+ @import "singularitygs";
3
+
4
+ //////////////////////////////
5
+ // Color Stacks
6
+ //
7
+ // We can utilize [Color Schemer](https://github.com/Team-Sass/color-schemer)
8
+ // to build us awesome color guides.
9
+ // From [Style Prototypes](https://github.com/Team-Sass/Style-Prototypes)
10
+ //////////////////////////////
11
+ $cs-primary: $primary-color;
12
+ // Primary color, can be any color you can use in CSS, plus CMYK from Color Schemer
13
+ $cs-scheme: mono;
14
+ // Options: mono, complement, triad, tetrad, analogic, accented-analogic
15
+ $cs-hue-offset: 10;
16
+ // Options: 0-100;
17
+ $cs-brightness-offset: 10;
18
+ // Options: 0-100;
19
+ $cs-color-model: ryb;
20
+ // Options: rgb, ryb
21
+
22
+ $black: tint-stack(#333);
23
+ $primary: tint-stack(cs-primary());
24
+ $secondary: tint-stack(cs-secondary());
25
+ $tertiary: tint-stack(cs-tertiary());
26
+ $quadrary: tint-stack(cs-quadrary());
27
+ $darker: shade-stack(cs-primary());
28
+
29
+ @include generate-colour-guide($black, $primary, $secondary, $tertiary, $quadrary, $darker);
@@ -0,0 +1,188 @@
1
+ %force-wrap {
2
+ //@include force-wrap; // this is the output
3
+ white-space: pre;
4
+ white-space: pre-wrap;
5
+ //white-space: pre-line; // removes indentation -- was breaking content
6
+ white-space: -pre-wrap;
7
+ white-space: -o-pre-wrap;
8
+ white-space: -moz-pre-wrap;
9
+ white-space: -hp-pre-wrap;
10
+ word-wrap: break-word;
11
+ }
12
+
13
+ %btn-all {
14
+ width: auto;
15
+ text-align: center;
16
+ font-family: $button-font-family;
17
+ font-size: inherit;
18
+ font-weight: normal;
19
+ font-style: normal;
20
+ @include bounding-box(border, false, $button-border-pos, $button-border-width, $button-border-style, $button-border-color);
21
+ cursor: pointer;
22
+ @include bounding-box(padding, $button-padding);
23
+ line-height: 1;
24
+ @include border-radius($button-border-radius);
25
+ }
26
+
27
+ %button {
28
+ @extend %btn-all;
29
+ @include simple-background-gradient($button-color, $button-gradient-pos, $button-gradient-stop-1, $button-gradient-stop-2);
30
+ @include text-shadow($button-text-shadow);
31
+ &:hover,
32
+ &:focus {
33
+ @include text-shadow($button-hover-text-shadow);
34
+ @include simple-background-gradient($button-hover-color, $button-hover-gradient-pos, $button-hover-gradient-stop-1, $button-hover-gradient-stop-2);
35
+ }
36
+ &:active {
37
+ @include text-shadow($button-active-text-shadow);
38
+ @include simple-background-gradient($button-active-color, $button-active-gradient-pos, $button-active-gradient-stop-1, $button-active-gradient-stop-2);
39
+ }
40
+ }
41
+
42
+ %button-active {
43
+ @extend %btn-all;
44
+ @include text-shadow($button-action-text-shadow);
45
+ @include simple-background-gradient($button-action-color, $button-action-gradient-pos, $button-action-gradient-stop-1, $button-action-gradient-stop-2);
46
+ &:hover,
47
+ &:focus {
48
+ @include text-shadow($button-action-hover-text-shadow);
49
+ @include simple-background-gradient($button-action-hover-color, $button-action-hover-gradient-pos, $button-action-hover-gradient-stop-1, $button-action-hover-gradient-stop-2);
50
+ }
51
+ &:active {
52
+ @include text-shadow($button-action-active-text-shadow);
53
+ @include simple-background-gradient($button-action-active-color, $button-action-active-gradient-pos, $button-action-active-gradient-stop-1, $button-action-active-gradient-stop-2);
54
+ }
55
+ }
56
+
57
+ %button-cancel {
58
+ @extend %btn-all;
59
+ @include text-shadow($button-cancel-text-shadow);
60
+ @include simple-background-gradient($button-cancel-color, $button-cancel-gradient-pos, $button-cancel-gradient-stop-1, $button-cancel-gradient-stop-2);
61
+ &:hover,
62
+ &:focus {
63
+ @include text-shadow($button-cancel-hover-text-shadow);
64
+ @include simple-background-gradient($button-cancel-hover-color, $button-cancel-hover-gradient-pos, $button-cancel-hover-gradient-stop-1, $button-cancel-hover-gradient-stop-2);
65
+ }
66
+ &:active {
67
+ @include text-shadow($button-cancel-active-text-shadow);
68
+ @include simple-background-gradient($button-cancel-active-color, $button-cancel-active-gradient-pos, $button-cancel-active-gradient-stop-1, $button-cancel-active-gradient-stop-2);
69
+ }
70
+ }
71
+
72
+ %button-disabled {
73
+ @extend %btn-all;
74
+ @include text-shadow($button-disabled-text-shadow);
75
+ opacity: $button-disabled-opacity;
76
+ @include simple-background-gradient($button-disabled-color, $button-disabled-gradient-pos, $button-disabled-gradient-stop-1, $button-disabled-gradient-stop-2);
77
+ &:hover,
78
+ &:focus,
79
+ &:active {
80
+ @extend %button-disabled;
81
+ }
82
+ }
83
+
84
+ %controls {
85
+ font-family: $controls-font-family;
86
+ display: inline-block;
87
+ font-size: $controls-font-size;
88
+ @include bounding-box(padding, $controls-padding);
89
+ line-height: 1;
90
+ @include bounding-box(border, false, $controls-border-pos, $controls-border-width, $controls-border-style, $controls-border-color);
91
+ @include border-radius($controls-border-radius);
92
+ background-clip: padding-box;
93
+ &:link,
94
+ &:visited {
95
+ @include simple-background-gradient($controls-visited-color, $controls-visited-gradient-pos, $controls-visited-gradient-stop-1, $controls-visited-gradient-stop-2);
96
+ }
97
+ &:hover,
98
+ &:focus {
99
+ outline: none;
100
+ @include simple-background-gradient($controls-hover-color, $controls-hover-gradient-pos, $controls-hover-gradient-stop-1, $controls-hover-gradient-stop-2);
101
+ }
102
+ &:active {
103
+ @include simple-background-gradient($controls-active-color, $controls-active-gradient-pos, $controls-active-gradient-stop-1, $controls-active-gradient-stop-2);
104
+ }
105
+ }
106
+
107
+ %feedback {
108
+ @include bounding-box(padding, $feedback-padding);
109
+ @include bounding-box(margin, $feedback-margin);
110
+ color: $feedback-color;
111
+ background-color: $feedback-background;
112
+ @include bounding-box(border, false, $feedback-border-pos, $feedback-border-width, $feedback-border-style, $feedback-border-color);
113
+ @include border-radius($feedback-border-radius);
114
+ background-clip: padding-box;
115
+ a {
116
+ color: $feedback-color;
117
+ @include bold-italic-uppercase-variant($feedback-a-font-bold, $feedback-a-font-italic, $feedback-a-font-uppercase, $feedback-a-font-variant);
118
+ }
119
+ }
120
+
121
+ %error {
122
+ background-color: $feedback-error-background;
123
+ color: $feedback-error-color;
124
+ border-color: $feedback-error-border-color;
125
+ a {
126
+ color: $feedback-error-color;
127
+ }
128
+ }
129
+
130
+ %warning {
131
+ background-color: $feedback-warning-background;
132
+ color: $feedback-warning-color;
133
+ border-color: $feedback-warning-border-color;
134
+ a {
135
+ color: $feedback-warning-color;
136
+ }
137
+ }
138
+
139
+ %options {
140
+ list-style: $options-list-style;
141
+ @include bounding-box(border, false, $options-border-pos, $options-border-width, $options-border-style, $options-border-color);
142
+ li {
143
+ text-indent: $options-li-text-indent;
144
+ font-family: $options-li-font-family;
145
+ text-transform: $options-li-text-transform;
146
+ letter-spacing: $options-li-letter-spacing;
147
+ font-weight: $options-li-font-weight;
148
+ @include bounding-box(margin, $options-li-margin);
149
+ @include bounding-box(padding, $options-li-padding);
150
+ @include bounding-box(border, false, $options-li-border-pos, $options-li-border-width, $options-li-border-style, $options-li-border-color);
151
+ }
152
+ a {
153
+ display: block;
154
+ @include bounding-box(border, false, $options-a-border-pos, $options-a-border-width, $options-a-border-style, $options-a-border-color);
155
+ }
156
+ }
157
+
158
+ %pagination {
159
+ font-family: $pagination-font-family;
160
+ li {
161
+ display: $pagination-li-display;
162
+ @include bounding-box(margin, $pagination-li-margin, $pagination-li-margin-pos);
163
+ text-indent: $pagination-text-indent;
164
+ }
165
+ a {
166
+ display: $pagination-a-display;
167
+ @include bounding-box(padding, $pagination-a-padding);
168
+ line-height: $pagination-a-line-height;
169
+ @include bounding-box(margin, $pagination-a-margin);
170
+ @include bounding-box(border, false, $pagination-a-border-pos, $pagination-a-border-width, $pagination-a-border-style, $pagination-a-border-color);
171
+ @include border-radius($pagination-a-border-radius);
172
+ background-clip: padding-box;
173
+ &:link,
174
+ &:visited {
175
+ color: $pagination-link-color;
176
+ background-color: $pagination-link-background-color;
177
+ }
178
+ &[href]:hover,
179
+ &[href]:focus {
180
+ color: $pagination-link-hover-color;
181
+ background-color: $pagination-link-hover-background-color;
182
+ }
183
+ &:active {
184
+ color: $pagination-link-active-color;
185
+ background-color: $pagination-link-active-background-color;
186
+ }
187
+ }
188
+ }