redframework 0.0.1.01

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 (57) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +4 -0
  3. data/lib/redframework.rb +3 -0
  4. data/stylesheets/_normalize.scss +400 -0
  5. data/stylesheets/_redframework.scss +57 -0
  6. data/stylesheets/redframework/_defaults.scss +119 -0
  7. data/stylesheets/redframework/_variables.scss +69 -0
  8. data/stylesheets/redframework/animate/_animate.scss +28 -0
  9. data/stylesheets/redframework/animate/_easings.scss +37 -0
  10. data/stylesheets/redframework/animate/fades/_in.scss +9 -0
  11. data/stylesheets/redframework/animate/fades/_out.scss +9 -0
  12. data/stylesheets/redframework/animate/scales/_in.scss +19 -0
  13. data/stylesheets/redframework/animate/scales/_out.scss +9 -0
  14. data/stylesheets/redframework/animate/slide-fades/_in.scss +15 -0
  15. data/stylesheets/redframework/animate/slide-fades/_out.scss +15 -0
  16. data/stylesheets/redframework/animate/slides/_in.scss +39 -0
  17. data/stylesheets/redframework/animate/slides/_out.scss +39 -0
  18. data/stylesheets/redframework/base/_alignment.scss +11 -0
  19. data/stylesheets/redframework/base/_animate.scss +6 -0
  20. data/stylesheets/redframework/base/_body.scss +29 -0
  21. data/stylesheets/redframework/base/_code.scss +63 -0
  22. data/stylesheets/redframework/base/_emphasis.scss +18 -0
  23. data/stylesheets/redframework/base/_forms.scss +174 -0
  24. data/stylesheets/redframework/base/_headings.scss +59 -0
  25. data/stylesheets/redframework/base/_images.scss +111 -0
  26. data/stylesheets/redframework/base/_lists.scss +16 -0
  27. data/stylesheets/redframework/base/_main.scss +16 -0
  28. data/stylesheets/redframework/base/_paragraphs.scss +4 -0
  29. data/stylesheets/redframework/base/_quotes.scss +78 -0
  30. data/stylesheets/redframework/base/_section.scss +45 -0
  31. data/stylesheets/redframework/base/_smallprint.scss +13 -0
  32. data/stylesheets/redframework/base/_tables.scss +163 -0
  33. data/stylesheets/redframework/general/_brand.scss +12 -0
  34. data/stylesheets/redframework/general/_clearfix.scss +7 -0
  35. data/stylesheets/redframework/general/_debug.scss +168 -0
  36. data/stylesheets/redframework/general/_helpers.scss +3 -0
  37. data/stylesheets/redframework/general/_mixins.scss +281 -0
  38. data/stylesheets/redframework/general/_reset.scss +80 -0
  39. data/stylesheets/redframework/general/_shared.scss +61 -0
  40. data/stylesheets/redframework/general/_widths.scss +162 -0
  41. data/stylesheets/redframework/objects/_breadcrumb.scss +15 -0
  42. data/stylesheets/redframework/objects/_buttons.scss +94 -0
  43. data/stylesheets/redframework/objects/_circle.scss +37 -0
  44. data/stylesheets/redframework/objects/_flag.scss +38 -0
  45. data/stylesheets/redframework/objects/_island.scss +11 -0
  46. data/stylesheets/redframework/objects/_navigation.scss +62 -0
  47. data/stylesheets/redframework/objects/_product-listing.scss +162 -0
  48. data/stylesheets/redframework/objects/_quantity.scss +30 -0
  49. data/stylesheets/redframework/objects/_search.scss +44 -0
  50. data/stylesheets/redframework/objects/_searchresults.scss +5 -0
  51. data/stylesheets/redframework/objects/_well.scss +16 -0
  52. data/stylesheets/redframework/views/_collectionview.scss +0 -0
  53. data/stylesheets/redframework/views/_tableview.scss +15 -0
  54. data/templates/project/manifest.rb +22 -0
  55. data/templates/project/screen.scss +2 -0
  56. data/templates/project/scss/app.scss +4 -0
  57. metadata +111 -0
@@ -0,0 +1,281 @@
1
+ /*------------------------------------*\
2
+ $MIXINS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Create a fully formed type style (sizing and vertical rhythm) by passing in a
6
+ * single value, e.g.:
7
+ *
8
+ `@include font-size(10px);`
9
+ *
10
+ * Thanks to @redclov3r for the `line-height` Sass:
11
+ * twitter.com/redclov3r/status/250301539321798657
12
+ */
13
+ @mixin font-size($font-size, $line-height:true){
14
+ font-size:$font-size;
15
+ font-size:($font-size / $base-font-size)*1rem;
16
+ @if $line-height == true{
17
+ line-height:ceil($font-size / $base-line-height) * ($base-line-height / $font-size);
18
+ }
19
+ }
20
+
21
+
22
+
23
+ @mixin headings($from: 1, $to: 6){
24
+ %base-heading {
25
+ @content;
26
+ small, .small {
27
+ color:#bababa
28
+ }
29
+ }
30
+
31
+ @if $from >= 1 and $to <= 6{
32
+ @for $i from $from through $to{
33
+ h#{$i}{
34
+ @extend %base-heading;
35
+ }
36
+ }
37
+ }
38
+ }
39
+
40
+
41
+ /**
42
+ * Create vendor-prefixed CSS in one go, e.g.
43
+ *
44
+ `@include vendor(border-radius, 4px);`
45
+ *
46
+ */
47
+ @mixin vendor($property, $value...){
48
+ -webkit-#{$property}:$value;
49
+ -moz-#{$property}:$value;
50
+ -ms-#{$property}:$value;
51
+ -o-#{$property}:$value;
52
+ #{$property}:$value;
53
+ }
54
+
55
+
56
+ /**
57
+ * Create CSS keyframe animations for all vendors in one go, e.g.:
58
+ *
59
+ .foo{
60
+ @include vendor(animation, shrink 3s);
61
+ }
62
+
63
+ @include keyframe(shrink){
64
+ from{
65
+ font-size:5em;
66
+ }
67
+ }
68
+ *
69
+ * Courtesy of @integralist: twitter.com/integralist/status/260484115315437569
70
+ */
71
+ @mixin keyframe ($animation-name){
72
+ @-webkit-keyframes $animation-name{
73
+ @content;
74
+ }
75
+
76
+ @-moz-keyframes $animation-name{
77
+ @content;
78
+ }
79
+
80
+ @-ms-keyframes $animation-name{
81
+ @content;
82
+ }
83
+
84
+ @-o-keyframes $animation-name{
85
+ @content;
86
+ }
87
+
88
+ @keyframes $animation-name{
89
+ @content;
90
+ }
91
+ }
92
+
93
+
94
+ /**
95
+ * Force overly long spans of text to truncate, e.g.:
96
+ *
97
+ `@include truncate(100%);`
98
+ *
99
+ * Where `$truncation-boundary` is a united measurement.
100
+ */
101
+ @mixin truncate($truncation-boundary){
102
+ max-width:$truncation-boundary;
103
+ white-space:nowrap;
104
+ overflow:hidden;
105
+ text-overflow:ellipsis;
106
+ }
107
+
108
+
109
+ /**
110
+ * CSS arrows!!! But... before you read on, you might want to grab a coffee...
111
+ *
112
+ * This mixin creates a CSS arrow on a given element. We can have the arrow
113
+ * appear in one of 12 locations, thus:
114
+ *
115
+ * 01 02 03
116
+ * +------------------+
117
+ * 12 | | 04
118
+ * | |
119
+ * 11 | | 05
120
+ * | |
121
+ * 10 | | 06
122
+ * +------------------+
123
+ * 09 08 07
124
+ *
125
+ * You pass this position in along with a desired arrow color and optional
126
+ * border color, for example:
127
+ *
128
+ * `@include arrow(top, left, red)`
129
+ *
130
+ * for just a single, red arrow, or:
131
+ *
132
+ * `@include arrow(bottom, center, red, black)`
133
+ *
134
+ * which will create a red triangle with a black border which sits at the bottom
135
+ * center of the element. Call the mixin thus:
136
+ *
137
+ .foo{
138
+ background-color:#BADA55;
139
+ border:1px solid #ACE;
140
+ @include arrow(top, left, #BADA55, #ACE);
141
+ }
142
+ *
143
+ */
144
+ @mixin arrow($arrow-edge, $arrow-location, $arrow-color, $border-color: $arrow-color){
145
+
146
+ @if $arrow-edge == top{
147
+
148
+ @extend %arrow--top;
149
+
150
+ &:before{
151
+ border-bottom-color:$border-color!important;
152
+ }
153
+
154
+ &:after{
155
+ border-bottom-color:$arrow-color!important;
156
+ }
157
+
158
+ @if $arrow-location == left{
159
+ @extend %arrow--left;
160
+ }
161
+
162
+ @if $arrow-location == center{
163
+ @extend %arrow--center;
164
+ }
165
+
166
+ @if $arrow-location == right{
167
+ @extend %arrow--right;
168
+ }
169
+
170
+ }
171
+
172
+ @if $arrow-edge == right{
173
+
174
+ @extend %arrow--far;
175
+
176
+ &:before{
177
+ border-left-color:$border-color!important;
178
+ }
179
+
180
+ &:after{
181
+ border-left-color:$arrow-color!important;
182
+ }
183
+
184
+ @if $arrow-location == top{
185
+ @extend %arrow--upper;
186
+ }
187
+
188
+ @if $arrow-location == center{
189
+ @extend %arrow--middle;
190
+ }
191
+
192
+ @if $arrow-location == bottom{
193
+ @extend %arrow--lower;
194
+ }
195
+
196
+ }
197
+
198
+ @if $arrow-edge == bottom{
199
+
200
+ @extend %arrow--bottom;
201
+
202
+ &:before{
203
+ border-top-color:$border-color!important;
204
+ }
205
+
206
+ &:after{
207
+ border-top-color:$arrow-color!important;
208
+ }
209
+
210
+ @if $arrow-location == left{
211
+ @extend %arrow--left;
212
+ }
213
+
214
+ @if $arrow-location == center{
215
+ @extend %arrow--center;
216
+ }
217
+
218
+ @if $arrow-location == right{
219
+ @extend %arrow--right;
220
+ }
221
+
222
+ }
223
+
224
+ @if $arrow-edge == left{
225
+
226
+ @extend %arrow--near;
227
+
228
+ &:before{
229
+ border-right-color:$border-color!important;
230
+ }
231
+
232
+ &:after{
233
+ border-right-color:$arrow-color!important;
234
+ }
235
+
236
+ @if $arrow-location == top{
237
+ @extend %arrow--upper;
238
+ }
239
+
240
+ @if $arrow-location == center{
241
+ @extend %arrow--middle;
242
+ }
243
+
244
+ @if $arrow-location == bottom{
245
+ @extend %arrow--lower;
246
+ }
247
+
248
+ }
249
+
250
+ }
251
+
252
+
253
+ $mob-end: $tab-start - 1px;
254
+ $tab-end: $lap-start - 1px;
255
+ $lap-end: $desk-start - 1px;
256
+ $desk-end: $desk-wide-start - 1px;
257
+
258
+ @mixin media-query($media-query){
259
+
260
+ @if $media-query == mobile{
261
+ @media only screen and (max-width:$mob-end) { @content; }
262
+ }
263
+
264
+ @if $media-query == tab{
265
+ @media only screen and (min-width:$tab-start) and (max-width:$tab-end) { @content; }
266
+ }
267
+
268
+ @if $media-query == tab-and-up{
269
+ @media only screen and (min-width:$tab-start) { @content; }
270
+ }
271
+
272
+
273
+ @if $media-query == desk{
274
+ @media only screen and (min-width:$desk-start) { @content; }
275
+ }
276
+
277
+ @if $media-query == desk-wide{
278
+ @media only screen and (min-width: $desk-wide-start) { @content; }
279
+ }
280
+
281
+ }
@@ -0,0 +1,80 @@
1
+ /*------------------------------------*\
2
+ $RESET
3
+ \*------------------------------------*/
4
+ /**
5
+ * A more considered reset; more of a restart...
6
+ * As per: csswizardry.com/2011/10/reset-restarted
7
+ */
8
+
9
+ @if $global-border-box == true{
10
+ /**
11
+ * Let’s make the box model all nice, shall we...?
12
+ */
13
+ *{
14
+ &,
15
+ &:before,
16
+ &:after{
17
+ @include box-sizing(border-box);
18
+ }
19
+ }
20
+ }
21
+
22
+ /**
23
+ * The usual...
24
+ */
25
+ h1,h2,h3,h4,h5,h6,
26
+ p,blockquote,pre,
27
+ dl,dd,ol,ul,
28
+ form,fieldset,legend,
29
+ table,th,td,caption,
30
+ hr{
31
+ margin:0;
32
+ padding:0;
33
+ }
34
+
35
+ /**
36
+ * Give a help cursor to elements that give extra info on `:hover`.
37
+ */
38
+ abbr[title],dfn[title]{
39
+ cursor:help;
40
+ }
41
+
42
+ /**
43
+ * Remove underlines from potentially troublesome elements.
44
+ */
45
+ u,ins{
46
+ text-decoration:none;
47
+ }
48
+
49
+ /**
50
+ * Apply faux underline via `border-bottom`.
51
+ */
52
+ ins{
53
+ border-bottom:1px solid;
54
+ }
55
+
56
+ /**
57
+ * So that `alt` text is visually offset if images don’t load.
58
+ */
59
+ img{
60
+ font-style:italic;
61
+ }
62
+
63
+ /**
64
+ * Give form elements some cursor interactions...
65
+ */
66
+ label,
67
+ input,
68
+ textarea,
69
+ button,
70
+ select,
71
+ option{
72
+ cursor:pointer;
73
+ }
74
+ .text-input:active,
75
+ .text-input:focus,
76
+ textarea:active,
77
+ textarea:focus{
78
+ cursor:text;
79
+ outline:none;
80
+ }
@@ -0,0 +1,61 @@
1
+ /*------------------------------------*\
2
+ $SHARED
3
+ \*------------------------------------*/
4
+ /**
5
+ * Where `margin-bottom` is concerned, this value will be the same as the
6
+ * base line-height. This allows us to keep a consistent vertical rhythm.
7
+ * As per: csswizardry.com/2012/06/single-direction-margin-declarations
8
+ */
9
+ /**
10
+ * Base elements
11
+ */
12
+ h1,h2,h3,h4,h5,h6,hgroup,
13
+ ul,ol,dl,
14
+ blockquote,p,address,
15
+ table,
16
+ fieldset,figure,
17
+ pre,
18
+ /**
19
+ * Objects and abstractions
20
+ */
21
+ %sass-margin-bottom,
22
+ .media,
23
+ .island,
24
+ .islet{
25
+ margin-bottom:$base-spacing-unit;
26
+ margin-bottom:($base-spacing-unit / $base-font-size)*1rem;
27
+
28
+ .islet &{
29
+ margin-bottom:$base-spacing-unit / 2;
30
+ margin-bottom:(($base-spacing-unit / $base-font-size) / 2)*1rem;
31
+ }
32
+ }
33
+
34
+
35
+ /**
36
+ * Doubled up `margin-bottom` helper class.
37
+ */
38
+ .landmark{
39
+ margin-bottom:2 * $base-spacing-unit;
40
+ margin-bottom:(2 * $base-spacing-unit / $base-font-size)*1rem;
41
+ }
42
+
43
+
44
+ /**
45
+ * `hr` elements only take up a few pixels, so we need to give them special
46
+ * treatment regarding vertical rhythm.
47
+ */
48
+ hr{
49
+ margin-bottom:$base-spacing-unit - 2px;
50
+ margin-bottom:(($base-spacing-unit - 2px) / $base-font-size)*1rem;
51
+ }
52
+
53
+
54
+ /**
55
+ * Where `margin-left` is concerned we want to try and indent certain elements
56
+ * by a consistent amount. Define that amount once, here.
57
+ */
58
+ ul,ol,dd{
59
+ margin-left:2 * $base-spacing-unit;
60
+ margin-left:(2 * $base-spacing-unit / $base-font-size)*1rem;
61
+ }
@@ -0,0 +1,162 @@
1
+ /*------------------------------------*\
2
+ $WIDTHS
3
+ \*------------------------------------*/
4
+ /**
5
+ * Sizes in human readable format. These are used in conjunction with other
6
+ * objects and abstractions found in inuit.css, most commonly the grid system
7
+ * and faux flexbox.
8
+ *
9
+ * We have a mixin to generate our widths and their breakpoint-specific
10
+ * variations.
11
+ */
12
+
13
+ @mixin grid-setup($namespace: "") {
14
+ /**
15
+ * Whole
16
+ */
17
+ .#{$namespace}one-whole { width:100%; }
18
+
19
+
20
+ /**
21
+ * Halves
22
+ */
23
+ .#{$namespace}one-half { width:50%; }
24
+
25
+
26
+ /**
27
+ * Thirds
28
+ */
29
+ .#{$namespace}one-third { width:33.333%; }
30
+ .#{$namespace}two-thirds { width:66.666%; }
31
+
32
+
33
+ /**
34
+ * Quarters
35
+ */
36
+ .#{$namespace}one-quarter { width:25%; }
37
+ .#{$namespace}two-quarters { @extend .#{$namespace}one-half; }
38
+ .#{$namespace}three-quarters { width:75%; }
39
+
40
+
41
+ /**
42
+ * Fifths
43
+ */
44
+ .#{$namespace}one-fifth { width:20%; }
45
+ .#{$namespace}two-fifths { width:40%; }
46
+ .#{$namespace}three-fifths { width:60%; }
47
+ .#{$namespace}four-fifths { width:80%; }
48
+
49
+
50
+ /**
51
+ * Sixths
52
+ */
53
+ .#{$namespace}one-sixth { width:16.666%; }
54
+ .#{$namespace}two-sixths { @extend .#{$namespace}one-third; }
55
+ .#{$namespace}three-sixths { @extend .#{$namespace}one-half; }
56
+ .#{$namespace}four-sixths { @extend .#{$namespace}two-thirds; }
57
+ .#{$namespace}five-sixths { width:83.333%; }
58
+
59
+
60
+ /**
61
+ * Eighths
62
+ */
63
+ .#{$namespace}one-eighth { width:12.5%; }
64
+ .#{$namespace}two-eighths { @extend .#{$namespace}one-quarter; }
65
+ .#{$namespace}three-eighths { width:37.5%; }
66
+ .#{$namespace}four-eighths { @extend .#{$namespace}one-half; }
67
+ .#{$namespace}five-eighths { width:62.5%; }
68
+ .#{$namespace}six-eighths { @extend .#{$namespace}three-quarters; }
69
+ .#{$namespace}seven-eighths { width:87.5%; }
70
+
71
+
72
+ /**
73
+ * Tenths
74
+ */
75
+ .#{$namespace}one-tenth { width:10%; }
76
+ .#{$namespace}two-tenths { @extend .#{$namespace}one-fifth; }
77
+ .#{$namespace}three-tenths { width:30%; }
78
+ .#{$namespace}four-tenths { @extend .#{$namespace}two-fifths; }
79
+ .#{$namespace}five-tenths { @extend .#{$namespace}one-half; }
80
+ .#{$namespace}six-tenths { @extend .#{$namespace}three-fifths; }
81
+ .#{$namespace}seven-tenths { width:70%; }
82
+ .#{$namespace}eight-tenths { @extend .#{$namespace}four-fifths; }
83
+ .#{$namespace}nine-tenths { width:90%; }
84
+
85
+
86
+ /**
87
+ * Twelfths
88
+ */
89
+ .#{$namespace}one-twelfth { width:8.333%; }
90
+ .#{$namespace}two-twelfths { @extend .#{$namespace}one-sixth; }
91
+ .#{$namespace}three-twelfths { @extend .#{$namespace}one-quarter; }
92
+ .#{$namespace}four-twelfths { @extend .#{$namespace}one-third; }
93
+ .#{$namespace}five-twelfths { width:41.666% }
94
+ .#{$namespace}six-twelfths { @extend .#{$namespace}one-half; }
95
+ .#{$namespace}seven-twelfths { width:58.333%; }
96
+ .#{$namespace}eight-twelfths { @extend .#{$namespace}two-thirds; }
97
+ .#{$namespace}nine-twelfths { @extend .#{$namespace}three-quarters; }
98
+ .#{$namespace}ten-twelfths { @extend .#{$namespace}five-sixths; }
99
+ .#{$namespace}eleven-twelfths { width:91.666%; }
100
+ }
101
+
102
+ @include grid-setup();
103
+
104
+
105
+
106
+ /**
107
+ * If you have set `$responsive` to ‘true’ in `_vars.scss` then you now have
108
+ * access to these classes. You can define at which breakpoint you’d like an
109
+ * element to be a certain size, e.g.:
110
+ *
111
+ * `<div class="g one-quarter lap-one-half palm-one-whole"> ... </div>`
112
+ *
113
+ * This would create a `div` that, at ‘desktop’ sizes, takes up a quarter of the
114
+ * horizontal space, a half of that space at ‘tablet’ sizes, and goes full width
115
+ * at ‘mobile’ sizes.
116
+ *
117
+ * Demo: jsfiddle.net/inuitcss/WS4Ge
118
+ *
119
+ */
120
+
121
+ @if $responsive == true{
122
+
123
+ @include media-query(mobile){
124
+ @include grid-setup("mobile-");
125
+ }
126
+
127
+ @include media-query(tab){
128
+ @include grid-setup("tab-");
129
+ }
130
+
131
+ @include media-query(tab-and-up){
132
+ @include grid-setup("tab-and-up-");
133
+ }
134
+
135
+ @include media-query(lap){
136
+ @include grid-setup("lap-");
137
+ }
138
+
139
+ @include media-query(lap-and-up){
140
+ @include grid-setup("lap-and-up-");
141
+ }
142
+
143
+ @include media-query(desk){
144
+ @include grid-setup("desk-");
145
+ }
146
+
147
+
148
+ /**
149
+ * If you have set the additional `$responsive-extra` variable to ‘true’ in
150
+ * `_vars.scss` then you now have access to the following class available to
151
+ * accomodate much larger screen resolutions.
152
+ */
153
+
154
+ @if $responsive-extra == true{
155
+
156
+ @include media-query(desk-wide){
157
+ @include grid-setup("desk-wide-");
158
+ }
159
+
160
+ }
161
+
162
+ } /* endif */
@@ -0,0 +1,15 @@
1
+ .breadcrumb > li + li:before{
2
+ content:"\00BB" "\00A0";
3
+ }
4
+
5
+ .breadcrumb--path > li + li:before{
6
+ content:"\002F" "\00A0";
7
+ }
8
+
9
+ .breadcrumb > li + li[data-breadcrumb]:before{
10
+ content:attr(data-breadcrumb) "\00A0";
11
+ }
12
+
13
+ .breadcrumb__root{
14
+ font-weight:bold;
15
+ }
@@ -0,0 +1,94 @@
1
+ @mixin btn-size($font-size, $scale){
2
+ font-size: ($font-size * $scale);
3
+ padding:($font-size * $scale) (($font-size * $scale)*1.4);
4
+ }
5
+
6
+ @mixin btn-colors($color, $background-color, $border-color, $text-shadow-color, $text-shadow){
7
+ color:$color;
8
+ background: $background-color;
9
+ border: $border-color;
10
+ @if $text-shadow != 0 {
11
+ text-shadow: $text-shadow $text-shadow-color;
12
+ }
13
+ }
14
+
15
+ @mixin NewButton(
16
+ $name, $primary-color,
17
+ $default-color: contrast-color($primary-color),
18
+ $default-background-color: $primary-color,
19
+ $default-border-color: transparent,
20
+ $default-text-shadow-color: rgba(darken($default-background-color, 30), 0.8),
21
+ $default-text-shadow: 1px 1px 1px,
22
+
23
+ $hover-color: $default-color,
24
+ $hover-background-color: darken($default-background-color, 10%),
25
+ $hover-border-color: $default-border-color,
26
+ $hover-text-shadow-color: rgba(contrast-color($hover-color), $text-shadow-transparency),
27
+ $hover-text-shadow: 1px 1px 1px) {
28
+ .btn--#{$name} {
29
+ @include btn-colors($default-color, $default-background-color, $default-border-color, $default-text-shadow-color, $default-text-shadow);
30
+ &:hover {
31
+ @include btn-colors($hover-color, $hover-background-color, $hover-border-color, $hover-text-shadow-color, $hover-text-shadow);
32
+ }
33
+ }
34
+ }
35
+
36
+ .btn {
37
+ display:inline-block;
38
+ margin:0 1.5rem 1.5rem 0;
39
+ font-family: $btn_font-family;
40
+ display:inline-block;
41
+ text-decoration:none;
42
+ font-weight: normal;
43
+ @include btn-size($btn-font-size, 1);
44
+ @include btn-colors($btn-default-color, $btn-default-background-color, $btn-default-border-color, $btn-default-text-shadow-color, $text-shadow-size);
45
+ &:hover, &:active, &:focus, &.selected {
46
+ @include btn-colors($btn-default-color--active, $btn-default-background-color--active, $btn-default-border-color--active, $btn-default-text-shadow-color--active, $text-shadow-size);
47
+ }
48
+ }
49
+ .btn--icon {
50
+ width:48px;
51
+ height:48px;
52
+ line-height:48px;
53
+ text-align:center;
54
+ overflow:hidden;
55
+ padding:0;
56
+ text-shadow:none;
57
+ i {
58
+ line-height: 48px;
59
+ font-size: 24px;
60
+ margin: 0;
61
+ }
62
+ }
63
+
64
+ .btn--block {
65
+ display:block;
66
+ text-align:center;
67
+ margin: 0;
68
+ margin-bottom: 1rem;
69
+ }
70
+
71
+ .btn--xsmall {
72
+ @include btn-size($btn-font-size, .8);
73
+ }
74
+
75
+ .btn--small {
76
+ @include btn-size($btn-font-size, .9);
77
+ }
78
+
79
+ .btn--large {
80
+ @include btn-size($btn-font-size, 1.2);
81
+ }
82
+
83
+ .btn--xlarge {
84
+ @include btn-size($btn-font-size, 1.35);
85
+ }
86
+
87
+ .btn--hard {
88
+ border-radius: 0px;
89
+ }
90
+
91
+ .btn--soft {
92
+ border-radius: 20px;
93
+ }
94
+