cardinal-rails 3.1.0.00

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/License.txt +21 -0
  3. data/README.md +39 -0
  4. data/lib/cardinal/rails.rb +8 -0
  5. data/lib/cardinal/rails/version.rb +5 -0
  6. data/vendor/assets/stylesheets/cardinal.less +83 -0
  7. data/vendor/assets/stylesheets/core/base/anchors.less +18 -0
  8. data/vendor/assets/stylesheets/core/base/blockquotes.less +45 -0
  9. data/vendor/assets/stylesheets/core/base/code.less +68 -0
  10. data/vendor/assets/stylesheets/core/base/embedded-content.less +89 -0
  11. data/vendor/assets/stylesheets/core/base/form-elements.less +130 -0
  12. data/vendor/assets/stylesheets/core/base/headings.less +50 -0
  13. data/vendor/assets/stylesheets/core/base/horizontal-rules.less +10 -0
  14. data/vendor/assets/stylesheets/core/base/lists.less +57 -0
  15. data/vendor/assets/stylesheets/core/base/print.less +69 -0
  16. data/vendor/assets/stylesheets/core/base/root.less +90 -0
  17. data/vendor/assets/stylesheets/core/base/selections.less +30 -0
  18. data/vendor/assets/stylesheets/core/base/tables.less +18 -0
  19. data/vendor/assets/stylesheets/core/base/text-elements.less +83 -0
  20. data/vendor/assets/stylesheets/core/debug.less +154 -0
  21. data/vendor/assets/stylesheets/core/mixins/antialiasing.less +8 -0
  22. data/vendor/assets/stylesheets/core/mixins/clearing.less +27 -0
  23. data/vendor/assets/stylesheets/core/mixins/font-face.less +33 -0
  24. data/vendor/assets/stylesheets/core/mixins/media-queries.less +154 -0
  25. data/vendor/assets/stylesheets/core/mixins/momentum-scrolling.less +8 -0
  26. data/vendor/assets/stylesheets/core/mixins/text-truncate.less +9 -0
  27. data/vendor/assets/stylesheets/core/mixins/to-rem.less +76 -0
  28. data/vendor/assets/stylesheets/core/mixins/vertically-centered.less +9 -0
  29. data/vendor/assets/stylesheets/core/normalize.less +427 -0
  30. data/vendor/assets/stylesheets/core/reset.less +140 -0
  31. data/vendor/assets/stylesheets/core/variables.less +436 -0
  32. data/vendor/assets/stylesheets/layout/boxes.less +53 -0
  33. data/vendor/assets/stylesheets/layout/grids.less +614 -0
  34. data/vendor/assets/stylesheets/layout/wrappers.less +30 -0
  35. data/vendor/assets/stylesheets/objects/buttons.less +132 -0
  36. data/vendor/assets/stylesheets/objects/forms.less +61 -0
  37. data/vendor/assets/stylesheets/objects/lists.less +45 -0
  38. data/vendor/assets/stylesheets/objects/tables.less +116 -0
  39. data/vendor/assets/stylesheets/utilities/display.less +355 -0
  40. data/vendor/assets/stylesheets/utilities/floats.less +137 -0
  41. data/vendor/assets/stylesheets/utilities/font-sizes.less +269 -0
  42. data/vendor/assets/stylesheets/utilities/margins.less +1322 -0
  43. data/vendor/assets/stylesheets/utilities/paddings.less +1322 -0
  44. data/vendor/assets/stylesheets/utilities/positions.less +125 -0
  45. data/vendor/assets/stylesheets/utilities/text-alignment.less +127 -0
  46. data/vendor/assets/stylesheets/utilities/vertical-alignment.less +98 -0
  47. data/vendor/assets/stylesheets/utilities/visually-hidden.less +43 -0
  48. data/vendor/assets/stylesheets/utilities/widths.less +1455 -0
  49. data/vendor/assets/stylesheets/utilities/z-index.less +292 -0
  50. metadata +141 -0
@@ -0,0 +1,140 @@
1
+ /* ========================================================================== *\
2
+ Core -> Reset ($core-reset)
3
+ \* ========================================================================== */
4
+
5
+ //
6
+ // Styles
7
+ //
8
+
9
+ /**
10
+ * `border-box`... ALL THE THINGS!
11
+ *
12
+ * @link http://cbrac.co/RQrDL5
13
+ */
14
+
15
+ html {
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ /**
20
+ * Inheriting the `box-sizing` property is a better practice.
21
+ *
22
+ * @link http://cbrac.co/1tqPFsy
23
+ */
24
+
25
+ * {
26
+ &,
27
+ &:before,
28
+ &:after {
29
+ box-sizing: inherit;
30
+ }
31
+ }
32
+
33
+ /**
34
+ * Remove margins, paddings, and borders from HTML elements.
35
+ *
36
+ * @link http://cbrac.co/1Ev9etR
37
+ */
38
+
39
+ a,
40
+ abbr,
41
+ acronym,
42
+ address,
43
+ applet,
44
+ article,
45
+ aside,
46
+ b,
47
+ blockquote,
48
+ body,
49
+ caption,
50
+ center,
51
+ cite,
52
+ code,
53
+ dd,
54
+ del,
55
+ details,
56
+ dfn,
57
+ div,
58
+ dl,
59
+ dt,
60
+ em,
61
+ fieldset,
62
+ figcaption,
63
+ figure,
64
+ footer,
65
+ form,
66
+ h1,
67
+ h2,
68
+ h3,
69
+ h4,
70
+ h5,
71
+ h6,
72
+ header,
73
+ hgroup,
74
+ hr,
75
+ html,
76
+ i,
77
+ iframe,
78
+ img,
79
+ ins,
80
+ kbd,
81
+ label,
82
+ legend,
83
+ li,
84
+ main,
85
+ menu,
86
+ nav,
87
+ object,
88
+ ol,
89
+ p,
90
+ pre,
91
+ q,
92
+ s,
93
+ samp,
94
+ section,
95
+ small,
96
+ span,
97
+ strong,
98
+ sub,
99
+ summary,
100
+ sup,
101
+ table,
102
+ tbody,
103
+ td,
104
+ tfoot,
105
+ th,
106
+ thead,
107
+ time,
108
+ tr,
109
+ u,
110
+ ul,
111
+ var {
112
+ margin: 0;
113
+ padding: 0;
114
+ border: 0;
115
+ }
116
+
117
+ /**
118
+ * Remove default border for <iframe> elements.
119
+ *
120
+ * @link http://cbrac.co/1CVyNTj
121
+ */
122
+
123
+ iframe {
124
+ border: 0;
125
+ }
126
+
127
+ /**
128
+ * Suppress the focus outline on links that cannot be accessed via keyboard.
129
+ * This prevents an unwanted focus outline from appearing around elements that
130
+ * might still respond to pointer events.
131
+ *
132
+ * It is okay to use `!important` here because we always want this rule to take
133
+ * precedence.
134
+ *
135
+ * @link http://cbrac.co/1Evazku
136
+ */
137
+
138
+ [tabindex="-1"]:focus {
139
+ outline: none !important;
140
+ }
@@ -0,0 +1,436 @@
1
+ // =============================================================================
2
+ // Core -> Variables
3
+ // =============================================================================
4
+
5
+ //
6
+ // Variables
7
+ //
8
+ // This file contains all of the variables used in this framework. You should
9
+ // not modify these variables directly. Instead, you should create your own LESS
10
+ // file (e.g. `my-project.less`) that imports this framework, then create
11
+ // your own variable overrides file (e.g. `variables-custom.less`), and import
12
+ // your variables file after you've imported this framework so that LESS
13
+ // processes your variables overrides instead of the default variables.
14
+ //
15
+ // @link http://cbrac.co/1LNVWut
16
+ //
17
+
18
+ //
19
+ // Colors -> Grayscale
20
+ //
21
+
22
+ @color-black: #000000;
23
+ @color-gray-darkest: lighten(@color-black, 13.5%); // #222222
24
+ @color-gray-darker: lighten(@color-black, 26.5%); // #444444
25
+ @color-gray-dark: lighten(@color-black, 46.7%); // #777777
26
+ @color-gray: lighten(@color-black, 66.5%); // #aaaaaa
27
+ @color-gray-light: lighten(@color-black, 87%); // #dedede
28
+ @color-gray-lighter: lighten(@color-black, 93.75%); // #efefef
29
+ @color-gray-lightest: lighten(@color-black, 97.25%); // #f8f8f8
30
+ @color-white: #ffffff;
31
+
32
+ //
33
+ // Colors -> Brand
34
+ //
35
+
36
+ @color-primary: #1fa3ec;
37
+
38
+ //
39
+ // Typography -> Font Sizes
40
+ //
41
+
42
+ // Typography -> Font Sizes -> Base
43
+
44
+ @font-size: 16;
45
+
46
+ // Typography -> Font Sizes -> Smaller
47
+
48
+ @font-size-small: (@font-size - 1);
49
+ @font-size-x-small: (@font-size - 2);
50
+ @font-size-xx-small: (@font-size - 3);
51
+ @font-size-xxx-small: (@font-size - 4);
52
+
53
+ // Typography -> Font Sizes -> Larger
54
+
55
+ @font-size-large: (@font-size + 1);
56
+ @font-size-x-large: (@font-size + 2);
57
+ @font-size-xx-large: (@font-size + 3);
58
+ @font-size-xxx-large: (@font-size + 4);
59
+
60
+ // Typography -> Font Sizes -> 100%
61
+
62
+ @font-size-100: 100%;
63
+
64
+ // Typography -> Font Sizes -> 0
65
+
66
+ @font-size-0: 0;
67
+
68
+ //
69
+ // Typography -> Headings
70
+ //
71
+
72
+ @font-size-heading-1: 36;
73
+ @font-size-heading-2: 30;
74
+ @font-size-heading-3: 24;
75
+ @font-size-heading-4: 20;
76
+ @font-size-heading-5: 16;
77
+ @font-size-heading-6: 14;
78
+
79
+ //
80
+ // Typography -> Line height
81
+ //
82
+
83
+ @line-height: 24;
84
+ @line-height-ratio: (@line-height / @font-size);
85
+
86
+ //
87
+ // Typography -> Fonts
88
+ //
89
+
90
+ @font-family-sans-serif: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
91
+ @font-family-serif: Georgia, Cambria, "Times New Roman", Times, serif;
92
+ @font-family-monospace: Monaco, Consolas, "Liberation Mono", Courier, monospace;
93
+
94
+ //
95
+ // Spacing -> Base
96
+ //
97
+ // The base spacing unit is set equal to the `line-height` by default. This helps
98
+ // create a consistent vertical rhythm throughout the framework.
99
+ //
100
+
101
+ @spacing-base: @line-height;
102
+
103
+ //
104
+ // Spacing -> Smaller
105
+ //
106
+
107
+ // Spacing -> Half
108
+ @spacing-half: (@spacing-base / 2);
109
+
110
+ // Spacing -> Thirds
111
+ @spacing-third: (@spacing-base / 3);
112
+ @spacing-two-thirds: (@spacing-third * 2);
113
+
114
+ // Spacing -> Fourths
115
+ @spacing-fourth: (@spacing-base / 4);
116
+ @spacing-three-fourths: (@spacing-fourth * 3);
117
+
118
+ // Spacing -> Fifths
119
+ @spacing-fifth: (@spacing-base / 5);
120
+ @spacing-two-fifths: (@spacing-fifth * 2);
121
+ @spacing-three-fifths: (@spacing-fifth * 3);
122
+ @spacing-four-fifths: (@spacing-fifth * 4);
123
+
124
+ // Spacing -> Sixth
125
+ @spacing-sixth: (@spacing-base / 6);
126
+ @spacing-five-sixths: (@spacing-sixth * 5);
127
+
128
+ // Spacing -> Micro
129
+ @spacing-micro: 2;
130
+
131
+ // Spacing -> 1px
132
+
133
+ @spacing-1px: 1;
134
+
135
+ //
136
+ // Spacing -> Larger
137
+ //
138
+
139
+ // Spacing -> + Half
140
+ @spacing-base-plus-half: (@spacing-base + @spacing-half);
141
+
142
+ // Spacing -> + Thirds
143
+ @spacing-base-plus-third: (@spacing-base + @spacing-third);
144
+ @spacing-base-plus-two-thirds: (@spacing-base + (@spacing-third * 2));
145
+
146
+ // Spacing -> + Fourths
147
+ @spacing-base-plus-fourth: (@spacing-base + @spacing-fourth);
148
+ @spacing-base-plus-three-fourths: (@spacing-base + (@spacing-fourth * 3));
149
+
150
+ // Spacing -> + Fifths
151
+ @spacing-base-plus-fifth: (@spacing-base + @spacing-fifth);
152
+ @spacing-base-plus-two-fifths: (@spacing-base + (@spacing-fifth * 2));
153
+ @spacing-base-plus-three-fifths: (@spacing-base + (@spacing-fifth * 3));
154
+ @spacing-base-plus-four-fifths: (@spacing-base + (@spacing-fifth * 4));
155
+
156
+ // Spacing -> + Sixth
157
+ @spacing-base-plus-sixth: (@spacing-base + @spacing-sixth);
158
+ @spacing-base-plus-five-sixths: (@spacing-base + (@spacing-sixth * 5));
159
+
160
+ // Spacing -> + Micro
161
+ @spacing-base-plus-micro: (@spacing-base + 2);
162
+
163
+ // Spacing -> + 1px
164
+ @spacing-base-plus-1px: (@spacing-base + 1);
165
+
166
+ // Spacing -> Double
167
+ @spacing-double: (@spacing-base * 2);
168
+
169
+ // Spacing -> Triple
170
+ @spacing-triple: (@spacing-base * 3);
171
+
172
+ // Spacing -> Quadruple
173
+ @spacing-quadruple: (@spacing-base * 4);
174
+
175
+ // Spacing -> Macro
176
+ @spacing-macro: (@spacing-base * 8);
177
+
178
+ // Spacing -> None (0)
179
+ @spacing-none: 0;
180
+
181
+ //
182
+ // Breakpoints -> Base
183
+ //
184
+
185
+ @screen-xs: 480px;
186
+ @screen-sm: 600px;
187
+ @screen-md: 768px;
188
+ @screen-lg: 960px;
189
+ @screen-xl: 1140px;
190
+ @screen-xxl: 1380px;
191
+
192
+ //
193
+ // Breakpoints -> Min-width
194
+ //
195
+
196
+ @screen-xs-min: @screen-xs;
197
+ @screen-sm-min: @screen-sm;
198
+ @screen-md-min: @screen-md;
199
+ @screen-lg-min: @screen-lg;
200
+ @screen-xl-min: @screen-xl;
201
+ @screen-xxl-min: @screen-xxl;
202
+
203
+ //
204
+ // Breakpoints -> Max-width
205
+ //
206
+
207
+ @screen-xs-max: (@screen-sm-min - 1);
208
+ @screen-sm-max: (@screen-md-min - 1);
209
+ @screen-md-max: (@screen-lg-min - 1);
210
+ @screen-lg-max: (@screen-xl-min - 1);
211
+ @screen-xl-max: (@screen-xxl-min - 1);
212
+
213
+ //
214
+ // Borders -> Border Radius
215
+ //
216
+
217
+ @border-radius-base: 3;
218
+
219
+ //
220
+ // Z-Index
221
+ //
222
+
223
+ @z-index-1: 100;
224
+ @z-index-2: 200;
225
+ @z-index-3: 300;
226
+ @z-index-4: 400;
227
+ @z-index-5: 500;
228
+ @z-index-6: 600;
229
+ @z-index-7: 700;
230
+ @z-index-8: 800;
231
+ @z-index-9: 900;
232
+ @z-index-10: 1000;
233
+
234
+ //
235
+ // Base -> Root
236
+ //
237
+
238
+ @root-background-color: @color-white;
239
+ @root-text-color: @color-gray-darker;
240
+
241
+ //
242
+ // Base -> Selections
243
+ //
244
+
245
+ @selection-background-color: #b3d4fc;
246
+ @selection-inactive-background-color: @color-gray-light;
247
+
248
+ //
249
+ // Base -> Anchors
250
+ //
251
+
252
+ @anchor-text-color: #069;
253
+
254
+
255
+ //
256
+ // Base -> Text Elements
257
+ //
258
+
259
+ @text-del-font-style: italic;
260
+ @text-del-text-decoration: line-through;
261
+ @text-del-text-color: @color-gray-dark;
262
+ @text-dt-font-weight: 700;
263
+ @text-dt-text-color: @color-gray-darkest;
264
+ @text-highlights-bg-color: #ff9;
265
+ @text-highlights-text-color: @color-gray-darkest;
266
+
267
+ //
268
+ // Base -> Headings
269
+ //
270
+
271
+ @heading-font-family: @font-family-sans-serif;
272
+ @heading-font-weight: 700;
273
+ @heading-text-color: @color-gray-darkest;
274
+
275
+ //
276
+ // Base -> Blockquotes
277
+ //
278
+
279
+ @blockquote-font-family: @font-family-serif;
280
+ @blockquote-font-style: italic;
281
+ @blockquote-font-size: @font-size-heading-3;
282
+ @blockquote-text-color: @color-gray-dark;
283
+ @blockquote-margin-left: @spacing-base;
284
+ @blockquote-padding-left: @spacing-base;
285
+ @blockquote-border-width: @spacing-fourth;
286
+ @blockquote-border-style: solid;
287
+ @blockquote-border-color: @color-gray-light;
288
+ @blockquote-cite-font-family: @font-family-sans-serif;
289
+ @blockquote-cite-font-style: normal;
290
+ @blockquote-cite-font-size: @font-size-x-small;
291
+ @blockquote-cite-text-color: @color-gray-dark;
292
+ @blockquote-cite-anchor-color: @color-gray-dark;
293
+
294
+ //
295
+ // Base -> Lists
296
+ //
297
+
298
+ @definition-lists-font-weight: 700;
299
+ @definition-lists-text-color: @color-gray-darkest;
300
+ @list-item-margin-left: @spacing-base;
301
+
302
+ //
303
+ // Base -> Horizontal Rules
304
+ //
305
+
306
+ @hr-border-width: @spacing-1px;
307
+ @hr-border-style: solid;
308
+ @hr-border-color: @color-gray-light;
309
+
310
+ //
311
+ // Base -> Code
312
+ //
313
+
314
+ @code-font-size: @font-size-x-small;
315
+ @code-font-style: normal;
316
+ @code-text-color: @color-gray-darkest;
317
+ @code-background-color: @color-gray-lightest;
318
+ @code-border-width: @spacing-1px;
319
+ @code-border-style: solid;
320
+ @code-border-color: @color-gray-light;
321
+ @code-border-radius: @border-radius-base;
322
+ @code-padding: (@spacing-micro) (@spacing-fourth);
323
+ @code-pre-padding: @spacing-base;
324
+ @code-pre-text-color: @color-gray-darker;
325
+ @code-pre-background-color: @color-gray-lightest;
326
+
327
+ //
328
+ // Base -> Embedded Content
329
+ //
330
+
331
+ @figcaption-text-color: @color-gray-dark;
332
+ @figcaption-margin-top: @spacing-third;
333
+
334
+ //
335
+ // Base -> Form elements
336
+ //
337
+
338
+ @form-legend-text-color: @color-gray-darkest;
339
+
340
+ //
341
+ // Base -> Print
342
+ //
343
+
344
+ @print-text-color: @color-black;
345
+
346
+ //
347
+ // Layout -> Wrappers
348
+ //
349
+
350
+ @wrapper-width: 94%;
351
+ @wrapper-max-width: 1024;
352
+
353
+ //
354
+ // Layout -> Grids
355
+ //
356
+
357
+ @grid-gutter-base: @spacing-base;
358
+ @grid-gutter-half: @spacing-half;
359
+ @grid-gutter-double: @spacing-double;
360
+ @grid-gutter-1px: @spacing-1px;
361
+
362
+ //
363
+ // Layout -> Boxes
364
+ //
365
+
366
+ @box-padding: @spacing-base;
367
+ @box-bg-color: @color-gray-lighter;
368
+ @box-border-width: 1;
369
+ @box-border-style: solid;
370
+ @box-border-color: @color-gray-light;
371
+ @box-border-radius: @border-radius-base;
372
+ @box-raise-box-shadow-blur: 8;
373
+ @box-sink-box-shadow-blur: 8;
374
+
375
+ //
376
+ // Objects -> Buttons
377
+ //
378
+
379
+ @btn-font-family: inherit;
380
+ @btn-font-weight: 700;
381
+ @btn-line-height: @line-height-ratio;
382
+ @btn-padding: 10 14;
383
+ @btn-text-color: @color-gray-darker;
384
+ @btn-background-color: @color-gray-light;
385
+ @btn-border-radius: @border-radius-base;
386
+ @btn-focus-outline-width: thin;
387
+ @btn-focus-outline-style: dotted;
388
+ @btn-focus-outline-color: @color-gray-darkest;
389
+ @btn-xs-font-size: @font-size-xxx-small;
390
+ @btn-xs-padding: 4 8;
391
+ @btn-sm-font-size: @font-size-xx-small;
392
+ @btn-sm-padding: 6 10;
393
+ @btn-lg-font-size: @font-size-xxx-large;
394
+ @btn-lg-padding: 16 24;
395
+ @btn-primary-text-color: @color-white;
396
+ @btn-primary-bg-color: @color-primary;
397
+ @btn-group-margin: 0 @spacing-micro;
398
+ @btn-lg-group-margin: 0 @spacing-sixth;
399
+
400
+ //
401
+ // Objects -> Forms
402
+ //
403
+
404
+ @form-label-margin: @spacing-sixth;
405
+ @form-input-line-height: @line-height-ratio;
406
+ @form-input-height: 44;
407
+ @form-input-padding: 8;
408
+ @form-input-text-color: @color-gray-darkest;
409
+ @form-input-border-width: 1;
410
+ @form-input-border-style: solid;
411
+ @form-input-border-color: @color-gray-light;
412
+ @form-input-border-radius: @border-radius-base;
413
+ @form-input-focus-border-color: @color-primary;
414
+ @form-select-padding: 10;
415
+ @form-select-background-color: @color-gray-lightest;
416
+
417
+ //
418
+ // Objects -> Lists
419
+ //
420
+
421
+ @list-inline-delimiter-content: ",\00A0"; // Comma
422
+
423
+ //
424
+ // Objects -> Tables
425
+ //
426
+
427
+ @table-caption-font-style: italic;
428
+ @table-caption-font-weight: 700;
429
+ @table-header-footer-text-color: @color-gray-darkest;
430
+ @table-header-footer-bg-color: @color-gray-lighter;
431
+ @table-caption-padding-bottom: @spacing-sixth;
432
+ @table-cell-padding: @spacing-third;
433
+ @table-border-width: @spacing-1px;
434
+ @table-border-style: solid;
435
+ @table-border-color: @color-gray-light;
436
+ @table-stripe-background-color: @color-gray-lightest;