sassy_ink-rails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,46 @@
1
+ // Ink by ZURB
2
+ // zurb.com/ink/
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-alignment-classes: $include-html-classes !default;
11
+
12
+ @include exports("alignment") {
13
+ @if $include-html-alignment-classes {
14
+ /* Alignment & Visibility Classes */
15
+
16
+ table.center, td.center {
17
+ text-align: center;
18
+ }
19
+
20
+ h1.center,
21
+ h2.center,
22
+ h3.center,
23
+ h4.center,
24
+ h5.center,
25
+ h6.center,
26
+ p.center {
27
+ text-align: center;
28
+ }
29
+
30
+ span.center {
31
+ display: block;
32
+ width: 100%;
33
+ text-align: center;
34
+ }
35
+
36
+ img.center {
37
+ margin: 0 auto;
38
+ float: none;
39
+ }
40
+
41
+ .show-for-small,
42
+ .hide-for-desktop {
43
+ display: none;
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,52 @@
1
+ // Ink by ZURB
2
+ // zurb.com/ink/
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-grid-classes: $include-html-classes !default;
11
+ $include-html-block-grid-classes: $include-html-grid-classes !default;
12
+
13
+ // We use this to control the maximum number of block grid elements per row
14
+ $block-grid-elements: 8 !default;
15
+ $block-grid-default-spacing: $column-gutter !default;
16
+
17
+ $align-block-grid-to-grid: false !default;
18
+ @if $align-block-grid-to-grid {
19
+ $block-grid-default-spacing: $column-gutter;
20
+ }
21
+
22
+ //
23
+ // Block Grid Mixins
24
+ //
25
+
26
+ // Generate markup for block grid.
27
+ //
28
+ @mixin block-grid-html-classes() {
29
+ @for $i from 2 through $block-grid-elements {
30
+ .#{number2word($i)}-up td {
31
+ width: floor(($container-width - $i * $block-grid-default-spacing) / $i);
32
+ }
33
+ }
34
+ }
35
+
36
+ @include exports("block-grid") {
37
+ @if $include-html-block-grid-classes {
38
+ /* Block Grid */
39
+
40
+ .block-grid {
41
+ width: 100%;
42
+ max-width: $container-width;
43
+ }
44
+
45
+ .block-grid td {
46
+ display: inline-block;
47
+ padding: $block-grid-default-spacing / 2;
48
+ }
49
+
50
+ @include block-grid-html-classes();
51
+ }
52
+ }
@@ -0,0 +1,211 @@
1
+ // Ink by ZURB
2
+ // zurb.com/ink/
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-button-classes: $include-html-classes !default;
11
+
12
+ // We use these to build padding for buttons.
13
+ $button-dft: 8px 0 !default;
14
+ $button-tny: 5px 0 4px !default;
15
+ $button-sml: 8px 0 7px !default;
16
+ $button-med: 12px 0 10px !default;
17
+ $button-lrg: 21px 0 18px !default;
18
+
19
+ // We use these to control button text styles.
20
+ $button-font-family: $base-font-family !default;
21
+ $button-font-color: #ffffff !default;
22
+ $button-font-color-alt: #555555 !default;
23
+ $button-font-tny: 12px !default;
24
+ $button-font-sml: 16px !default;
25
+ $button-font-med: 20px !default;
26
+ $button-font-lrg: 24px !default;
27
+
28
+ // We use these to control button border styles.
29
+ $button-border-width: 1px !default;
30
+ $button-border-style: solid !default;
31
+ $button-bg: #2ba6cb !default;
32
+ $button-border-color: #2284a1 !default;
33
+
34
+ // We use these as default colors throughout
35
+ $primary-color: #2795b6 !default;
36
+ $secondary-color: #e9e9e9 !default;
37
+ $alert-color: #c60f13 !default;
38
+ $success-color: #5da423 !default;
39
+ $secondary-border-color: #d0d0d0 !default;
40
+ $alert-border-color: #457a1a !default;
41
+ $success-border-color: #970b0e !default;
42
+
43
+ // We use this to set the default radius used throughout the core.
44
+ $button-radius: $global-radius !default;
45
+ $button-round: $global-rounded !default;
46
+
47
+ @include exports("buttons") {
48
+ @if $include-html-button-classes {
49
+ /* Buttons */
50
+
51
+ table.button,
52
+ table.tiny-button,
53
+ table.small-button,
54
+ table.medium-button,
55
+ table.large-button {
56
+ width: 100%;
57
+ overflow: hidden;
58
+ }
59
+
60
+ table.button td,
61
+ table.tiny-button td,
62
+ table.small-button td,
63
+ table.medium-button td,
64
+ table.large-button td {
65
+ display: block;
66
+ width: auto !important;
67
+ text-align: center;
68
+ background: color2hex($button-bg);
69
+ border: $button-border-width $button-border-style color2hex($button-border-color);
70
+ color: color2hex($button-font-color);
71
+ padding: $button-dft;
72
+ }
73
+
74
+ table.tiny-button td {
75
+ padding: $button-tny;
76
+ }
77
+
78
+ table.small-button td {
79
+ padding: $button-sml;
80
+ }
81
+
82
+ table.medium-button td {
83
+ padding: $button-med;
84
+ }
85
+
86
+ table.large-button td {
87
+ padding: $button-lrg;
88
+ }
89
+
90
+ table.button td a,
91
+ table.tiny-button td a,
92
+ table.small-button td a,
93
+ table.medium-button td a,
94
+ table.large-button td a {
95
+ font-weight: bold;
96
+ text-decoration: none;
97
+ font-family: $button-font-family;
98
+ color: color2hex($button-font-color);
99
+ font-size: $button-font-sml;
100
+ display: block;
101
+ height: 100%;
102
+ width: 100%;
103
+ }
104
+
105
+ table.tiny-button td a {
106
+ font-size: $button-font-tny;
107
+ font-weight: normal;
108
+ }
109
+
110
+ table.small-button td a {
111
+ font-size: $button-font-sml;
112
+ }
113
+
114
+ table.medium-button td a {
115
+ font-size: $button-font-med;
116
+ }
117
+
118
+ table.large-button td a {
119
+ font-size: $button-font-lrg;
120
+ }
121
+
122
+ table.button:hover td,
123
+ table.button:visited td,
124
+ table.button:active td {
125
+ background: color2hex($primary-color) !important;
126
+ }
127
+
128
+ table.button:hover td a,
129
+ table.button:visited td a,
130
+ table.button:active td a {
131
+ color: color2hex($button-font-color) !important;
132
+ }
133
+
134
+ table.button:hover td,
135
+ table.tiny-button:hover td,
136
+ table.small-button:hover td,
137
+ table.medium-button:hover td,
138
+ table.large-button:hover td {
139
+ background: color2hex($primary-color) !important;
140
+ }
141
+
142
+ table.button:hover td a,
143
+ table.button:active td a,
144
+ table.button td a:visited,
145
+ table.tiny-button:hover td a,
146
+ table.tiny-button:active td a,
147
+ table.tiny-button td a:visited,
148
+ table.small-button:hover td a,
149
+ table.small-button:active td a,
150
+ table.small-button td a:visited,
151
+ table.medium-button:hover td a,
152
+ table.medium-button:active td a,
153
+ table.medium-button td a:visited,
154
+ table.large-button:hover td a,
155
+ table.large-button:active td a,
156
+ table.large-button td a:visited {
157
+ color: color2hex($button-font-color) !important;
158
+ }
159
+
160
+ table.secondary td {
161
+ background: color2hex($secondary-color);
162
+ border-color: color2hex($secondary-border-color);
163
+ color: color2hex($button-font-color-alt);
164
+ }
165
+
166
+ table.secondary td a {
167
+ color: color2hex($button-font-color-alt);
168
+ }
169
+
170
+ table.secondary:hover td {
171
+ background: color2hex($secondary-border-color) !important;
172
+ color: color2hex($button-font-color-alt);
173
+ }
174
+
175
+ table.secondary:hover td a,
176
+ table.secondary td a:visited,
177
+ table.secondary:active td a {
178
+ color: color2hex($button-font-color-alt) !important;
179
+ }
180
+
181
+ table.success td {
182
+ background: color2hex($success-color);
183
+ border-color: color2hex($alert-border-color);
184
+ }
185
+
186
+ table.success:hover td {
187
+ background: color2hex($alert-border-color) !important;
188
+ }
189
+
190
+ table.alert td {
191
+ background: color2hex($alert-color);
192
+ border-color: color2hex($success-border-color);
193
+ }
194
+
195
+ table.alert:hover td {
196
+ background: color2hex($success-border-color) !important;
197
+ }
198
+
199
+ table.radius td {
200
+ -webkit-border-radius: $global-radius;
201
+ -moz-border-radius: $global-radius;
202
+ border-radius: $global-radius;
203
+ }
204
+
205
+ table.round td {
206
+ -webkit-border-radius: $global-rounded;
207
+ -moz-border-radius: $global-rounded;
208
+ border-radius: $global-rounded;
209
+ }
210
+ }
211
+ }
@@ -0,0 +1,29 @@
1
+ // Foundation by ZURB
2
+ // foundation.zurb.com
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "../functions";
6
+
7
+ // We use this to control whether or not CSS classes come through in the gem files. // Change
8
+ $include-html-classes: true !default;
9
+ $include-html-global-classes: $include-html-classes !default;
10
+
11
+ $column-gutter: 20px !default;
12
+
13
+ $container-width: 580px !default;
14
+
15
+ $text-padding: 10px !default;
16
+
17
+ $panel-padding: 10px !default;
18
+
19
+ $paragraph-margin-bottom: 10px !default;
20
+
21
+ // We use these to make sure border radius matches unless we want it different.
22
+ $global-radius: 3px !default;
23
+ $global-rounded: 500px !default;
24
+
25
+ @include exports("global") {
26
+ @if $include-html-global-classes {
27
+
28
+ }
29
+ }
@@ -0,0 +1,134 @@
1
+ // Ink by ZURB
2
+ // zurb.com/ink/
3
+ // Licensed under MIT Open Source
4
+
5
+ @import "global";
6
+
7
+ //
8
+ // @variables
9
+ //
10
+ $include-html-grid-classes: $include-html-classes !default;
11
+ $include-html-sub-colums-grid-classes: $include-html-grid-classes !default;
12
+
13
+ $total-columns: 12;
14
+
15
+ $wrapper-padding-top: 10px !default;
16
+ $column-cell-padding-bottom: 10px !default;
17
+
18
+ $sub-column-padding-right: $column-gutter / 2 !default;
19
+
20
+ @include exports("grid") {
21
+ @if $include-html-grid-classes {
22
+ /* Responsive Grid */
23
+
24
+ table.body {
25
+ height: 100%;
26
+ width: 100%;
27
+ }
28
+
29
+ table.container {
30
+ width: $container-width;
31
+ margin: 0 auto;
32
+ text-align: inherit;
33
+ }
34
+
35
+ table.row {
36
+ padding: 0px;
37
+ width: 100%;
38
+ position: relative;
39
+ }
40
+
41
+ table.container table.row {
42
+ display: block;
43
+ }
44
+
45
+ td.wrapper {
46
+ padding: $wrapper-padding-top $column-gutter 0px 0px;
47
+ position: relative;
48
+ }
49
+
50
+ table.columns,
51
+ table.column {
52
+ margin: 0 auto;
53
+ }
54
+
55
+ table.columns td,
56
+ table.column td {
57
+ padding: 0px 0px $column-cell-padding-bottom;
58
+ }
59
+
60
+ @if $include-html-sub-colums-grid-classes {
61
+ table.columns td.sub-columns,
62
+ table.column td.sub-columns,
63
+ table.columns td.sub-column,
64
+ table.column td.sub-column {
65
+ padding-right: $sub-column-padding-right;
66
+ }
67
+
68
+ td.sub-column, td.sub-columns {
69
+ min-width: 0px;
70
+ }
71
+ }
72
+
73
+ table.row td.last,
74
+ table.container td.last {
75
+ padding-right: 0px;
76
+ }
77
+
78
+ @for $i from 1 through $total-columns {
79
+ table.#{number2word($i)} {
80
+ width: grid-calc-px($i, $total-columns, $container-width, $column-gutter);
81
+ }
82
+ }
83
+
84
+ @for $i from 1 through $total-columns {
85
+ table.#{number2word($i)} center {
86
+ min-width: grid-calc-px($i, $total-columns, $container-width, $column-gutter);
87
+ }
88
+ }
89
+
90
+ @for $i from 1 through $total-columns {
91
+ table.#{number2word($i)} .panel center {
92
+ min-width: grid-calc-px($i, $total-columns, $container-width, $column-gutter) - 2 * $panel-padding;
93
+ }
94
+ }
95
+
96
+ @for $i from 1 through $total-columns {
97
+ .body .columns td.#{number2word($i)},
98
+ .body .column td.#{number2word($i)} {
99
+ width: grid-calc-pct($i, $total-columns);
100
+ }
101
+ }
102
+
103
+ @for $i from 1 through ($total-columns - 1) {
104
+ td.offset-by-#{number2word($i)} {
105
+ padding-left: grid-calc-px($i, $total-columns, $container-width, $column-gutter) + $column-gutter;
106
+ }
107
+ }
108
+ td.expander {
109
+ visibility: hidden;
110
+ width: 0px;
111
+ padding: 0 !important;
112
+ }
113
+
114
+ table.columns .text-pad,
115
+ table.column .text-pad {
116
+ padding-left: $text-padding;
117
+ padding-right: $text-padding;
118
+ }
119
+
120
+ table.columns .left-text-pad,
121
+ table.columns .text-pad-left,
122
+ table.column .left-text-pad,
123
+ table.column .text-pad-left {
124
+ padding-left: $text-padding;
125
+ }
126
+
127
+ table.columns .right-text-pad,
128
+ table.columns .text-pad-right,
129
+ table.column .right-text-pad,
130
+ table.column .text-pad-right {
131
+ padding-right: $text-padding;
132
+ }
133
+ }
134
+ }