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.
- data/README.md +5 -0
- data/lib/persistentgrid.rb +4 -0
- data/scss/pg/_helpers.scss +7 -0
- data/scss/pg/base/_all.scss +9 -0
- data/scss/pg/base/_behavior.scss +10 -0
- data/scss/pg/base/_helpers.scss +9 -0
- data/scss/pg/base/_settings.scss +10 -0
- data/scss/pg/base/baserules/_all.scss +8 -0
- data/scss/pg/base/baserules/_behavior.scss +125 -0
- data/scss/pg/base/baserules/_settings.scss +39 -0
- data/scss/pg/base/reset/_all.scss +9 -0
- data/scss/pg/base/reset/_behavior.scss +108 -0
- data/scss/pg/base/reset/_helpers.scss +7 -0
- data/scss/pg/base/reset/_settings.scss +27 -0
- data/scss/pg/base/reset/helpers/_all.scss +7 -0
- data/scss/pg/base/reset/helpers/_mixins.scss +395 -0
- data/scss/pg/base/typography/_all.scss +9 -0
- data/scss/pg/base/typography/_behavior.scss +31 -0
- data/scss/pg/base/typography/_helpers.scss +7 -0
- data/scss/pg/base/typography/_settings.scss +52 -0
- data/scss/pg/base/typography/helpers/_all.scss +8 -0
- data/scss/pg/base/typography/helpers/_functions.scss +160 -0
- data/scss/pg/base/typography/helpers/_mixins.scss +121 -0
- data/scss/pg/grid/_all.scss +9 -0
- data/scss/pg/grid/_behavior.scss +51 -0
- data/scss/pg/grid/_helpers.scss +8 -0
- data/scss/pg/grid/_settings.scss +48 -0
- data/scss/pg/grid/helpers/_functions.scss +140 -0
- data/scss/pg/grid/helpers/_mixins.scss +247 -0
- data/scss/pg/helpers/_all.scss +11 -0
- data/scss/pg/helpers/_colors.scss +163 -0
- data/scss/pg/helpers/_fonts.scss +21 -0
- data/scss/pg/helpers/_functions.scss +91 -0
- data/scss/pg/helpers/_mixins.scss +7 -0
- data/scss/pg/helpers/_settings.scss +11 -0
- data/scss/pg/helpers/fonts/_bree-serif.scss +27 -0
- data/scss/pg/helpers/fonts/_example.scss +47 -0
- data/scss/pg/helpers/fonts/_lato.scss +36 -0
- data/scss/pg/helpers/fonts/_monospace.scss +43 -0
- data/scss/pg/helpers/fonts/_raleway.scss +35 -0
- data/scss/pg/helpers/fonts/_righteous.scss +27 -0
- data/scss/pg/helpers/fonts/_roboto.scss +38 -0
- data/scss/pg/helpers/fonts/_sans-serif.scss +43 -0
- data/scss/pg/helpers/fonts/_serif.scss +43 -0
- data/scss/pg/helpers/fonts/_sofia-pro.scss +44 -0
- data/scss/pg/helpers/fonts/_varela-round.scss +28 -0
- data/scss/pg/helpers/fonts/icon-fonts/_fontawesome.scss +34 -0
- data/scss/pg/helpers/fonts/icon-fonts/_foundation-accessability.scss +76 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_bootstrap.scss +84 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_core.scss +129 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_extras.scss +93 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_icons.scss +381 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_mixins.scss +48 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_path.scss +14 -0
- data/scss/pg/helpers/fonts/icon-fonts/fontawesome/_variables.scss +734 -0
- data/scss/pg/helpers/fonts/icon-fonts/foundation-accessability/_settings.scss +28 -0
- data/scss/pg/helpers/library/_lists.scss +462 -0
- data/scss/pg/helpers/mixins/_all.scss +15 -0
- data/scss/pg/helpers/mixins/_anchors.scss +125 -0
- data/scss/pg/helpers/mixins/_baseline.scss +53 -0
- data/scss/pg/helpers/mixins/_breakpoints.scss +35 -0
- data/scss/pg/helpers/mixins/_content.scss +19 -0
- data/scss/pg/helpers/mixins/_css-triangle.scss +70 -0
- data/scss/pg/helpers/mixins/_elements.scss +106 -0
- data/scss/pg/helpers/mixins/_module.scss +327 -0
- data/scss/pg/helpers/mixins/_text.scss +87 -0
- data/scss/pg/helpers/mixins/_units.scss +67 -0
- data/scss/pg/helpers/settings/_all.scss +7 -0
- data/scss/pg/helpers/settings/_breakpoints.scss +21 -0
- data/scss/pg/modules/_all.scss +9 -0
- data/scss/pg/modules/_behavior.scss +13 -0
- data/scss/pg/modules/_helpers.scss +13 -0
- data/scss/pg/modules/_settings.scss +13 -0
- data/scss/pg/modules/accordions/_all.scss +8 -0
- data/scss/pg/modules/accordions/_behavior.scss +5 -0
- data/scss/pg/modules/accordions/_helpers.scss +5 -0
- data/scss/pg/modules/accordions/_settings.scss +4 -0
- data/scss/pg/modules/buttons/_all.scss +8 -0
- data/scss/pg/modules/buttons/_behavior.scss +89 -0
- data/scss/pg/modules/buttons/_helpers.scss +7 -0
- data/scss/pg/modules/buttons/_settings.scss +153 -0
- data/scss/pg/modules/buttons/helpers/_mixins.scss +33 -0
- data/scss/pg/modules/forms/_all.scss +8 -0
- data/scss/pg/modules/forms/_behavior.bak.scss +215 -0
- data/scss/pg/modules/forms/_behavior.scss +215 -0
- data/scss/pg/modules/forms/_helpers.scss +8 -0
- data/scss/pg/modules/forms/_settings.scss +10 -0
- data/scss/pg/modules/forms/helpers/_mixins.scss +94 -0
- data/scss/pg/modules/forms/settings/forms.scss +19 -0
- data/scss/pg/modules/forms/settings/input.scss +256 -0
- data/scss/pg/modules/forms/settings/labels.scss +101 -0
- data/scss/pg/modules/lists/_all.scss +9 -0
- data/scss/pg/modules/lists/_behavior.scss +99 -0
- data/scss/pg/modules/lists/_helpers.scss +11 -0
- data/scss/pg/modules/lists/_settings.scss +49 -0
- data/scss/pg/modules/tables/_all.scss +8 -0
- data/scss/pg/modules/tables/_behavior.scss +79 -0
- data/scss/pg/modules/tables/_helpers.scss +7 -0
- data/scss/pg/modules/tables/_settings.scss +69 -0
- data/scss/pg/modules/tables/helpers/_mixins.scss +9 -0
- data/scss/pg/modules/tabs/_all.scss +8 -0
- data/scss/pg/modules/tabs/_behavior.scss +77 -0
- data/scss/pg/modules/tabs/_helpers.scss +7 -0
- data/scss/pg/modules/tabs/_settings.scss +8 -0
- data/scss/pg/modules/tabs/helpers/_mixins.scss +4 -0
- data/scss/pg/skins/_crossinghippos.scss +8 -0
- data/scss/pg/skins/crossinghippos/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/_behavior.scss +10 -0
- data/scss/pg/skins/crossinghippos/_helpers.scss +8 -0
- data/scss/pg/skins/crossinghippos/_settings.scss +9 -0
- data/scss/pg/skins/crossinghippos/buttons/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/buttons/_behavior.scss +25 -0
- data/scss/pg/skins/crossinghippos/buttons/_helpers.scss +7 -0
- data/scss/pg/skins/crossinghippos/buttons/_settings.scss +50 -0
- data/scss/pg/skins/crossinghippos/forms/_all.scss +9 -0
- data/scss/pg/skins/crossinghippos/forms/_base.scss +7 -0
- data/scss/pg/skins/crossinghippos/forms/_behavior.scss +259 -0
- data/scss/pg/skins/crossinghippos/forms/_settings.scss +29 -0
- data/scss/pg/skins/crossinghippos/linkbar/_all.scss +8 -0
- data/scss/pg/skins/crossinghippos/linkbar/_behavior.scss +73 -0
- data/scss/pg/skins/crossinghippos/linkbar/_helpers.scss +5 -0
- data/scss/pg/skins/crossinghippos/linkbar/_settings.scss +27 -0
- data/templates/base/manifest.rb +15 -0
- data/templates/base/screen.scss +39 -0
- data/templates/grid/manifest.rb +15 -0
- data/templates/grid/screen.scss +36 -0
- data/templates/modules/manifest.rb +15 -0
- data/templates/modules/screen.scss +44 -0
- metadata +210 -0
@@ -0,0 +1,121 @@
|
|
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 font
|
10
|
+
// --------------------------------------------------------------------------
|
11
|
+
// @param (array) $type (a valid type array: $style, $variant, $weight, $family)
|
12
|
+
// @param (string) $base-font-size (a valid value in your unit of output)
|
13
|
+
// @param (string) $base-line-height (a valid value in your unit of output)
|
14
|
+
// ==========================================================================
|
15
|
+
@mixin font($type, $base-font-size:$base-font-size, $base-line-height:$base-line-height)
|
16
|
+
{
|
17
|
+
@if $type {
|
18
|
+
$font-style : nth($type,1);
|
19
|
+
$font-variant : nth($type,2);
|
20
|
+
$font-weight : nth($type,3);
|
21
|
+
$font-family : nth($type,4);
|
22
|
+
|
23
|
+
font: #{$font-style} #{$font-variant} #{$font-weight} #{$base-font-size}/#{$base-line-height} #{$font-family};
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
// ==========================================================================
|
29
|
+
// Mixin font-style
|
30
|
+
// --------------------------------------------------------------------------
|
31
|
+
// Extracts the style from a type array and mixes in font-style
|
32
|
+
// --------------------------------------------------------------------------
|
33
|
+
// @param (array) $type (a valid type array: $style, $variant, $weight, $family)
|
34
|
+
// ==========================================================================
|
35
|
+
@mixin font-style($type)
|
36
|
+
{
|
37
|
+
font-style: nth($type,1);
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// ==========================================================================
|
42
|
+
// Mixin font-variant
|
43
|
+
// --------------------------------------------------------------------------
|
44
|
+
// Extracts the variant from a type array and mixes in font-variant
|
45
|
+
// --------------------------------------------------------------------------
|
46
|
+
// @param (array) $type (a valid type array: $style, $variant, $weight, $family)
|
47
|
+
// ==========================================================================
|
48
|
+
@mixin font-variant($type)
|
49
|
+
{
|
50
|
+
font-variant: nth($type,2);
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
// ==========================================================================
|
55
|
+
// Mixin font-weight
|
56
|
+
// --------------------------------------------------------------------------
|
57
|
+
// Extracts the weight from a type array and mixes in font-weight
|
58
|
+
// --------------------------------------------------------------------------
|
59
|
+
// @param (array) $type (a valid type array: $style, $variant, $weight, $family)
|
60
|
+
// ==========================================================================
|
61
|
+
@mixin font-weight($type)
|
62
|
+
{
|
63
|
+
font-weight: nth($type,3);
|
64
|
+
}
|
65
|
+
|
66
|
+
|
67
|
+
// ==========================================================================
|
68
|
+
// Mixin font-family
|
69
|
+
// --------------------------------------------------------------------------
|
70
|
+
// Extracts the family from a type array and mixes in font-family
|
71
|
+
// --------------------------------------------------------------------------
|
72
|
+
// @param (array) $type (a valid type array: $style, $variant, $weight, $family)
|
73
|
+
// ==========================================================================
|
74
|
+
@mixin font-family($type)
|
75
|
+
{
|
76
|
+
font-family: nth($type,4);
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
// ==========================================================================
|
81
|
+
// Mixin debug-rhythm
|
82
|
+
// --------------------------------------------------------------------------
|
83
|
+
// Renders the baseline rhythm
|
84
|
+
// ==========================================================================
|
85
|
+
@mixin debug-rhythm
|
86
|
+
{
|
87
|
+
$to: transparent;
|
88
|
+
$from: rgba(226, 255, 255, .5);
|
89
|
+
background-image: -webkit-linear-gradient($from 50%, $to 50%);
|
90
|
+
background-image: linear-gradient($from 50%, $to 50%);
|
91
|
+
background-size: rhythm(2) rhythm(2);
|
92
|
+
* { background-color: transcontainer !important; background-image: none !important; outline: rgba(255,0,255,.1) dotted 1px; outline: lighten( rgb(255,0,255), .1 ) dotted 1px \9; }
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
// ==========================================================================
|
97
|
+
// Mixin font-size-rhythm
|
98
|
+
// --------------------------------------------------------------------------
|
99
|
+
// Takes a size in any value and tries to calculate it back to the desired font-unit
|
100
|
+
// ==========================================================================
|
101
|
+
@mixin font-size($value, $context: $base-font-size)
|
102
|
+
{
|
103
|
+
$unit: unit($value);
|
104
|
+
|
105
|
+
@if $unit=="px" {
|
106
|
+
}
|
107
|
+
@if $unit=="rem" {
|
108
|
+
// Convert to pixels
|
109
|
+
}
|
110
|
+
@if $unit=="em" {
|
111
|
+
// Convert to pixels
|
112
|
+
}
|
113
|
+
@if $unit=="%" {
|
114
|
+
// Convert to pixels
|
115
|
+
}
|
116
|
+
@if $unit=="pt" {
|
117
|
+
// Convert to pixels
|
118
|
+
}
|
119
|
+
|
120
|
+
font-size: px-to-relative-size($value);
|
121
|
+
}
|
@@ -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,51 @@
|
|
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
|
+
#{$root-selector} {
|
8
|
+
@include root();
|
9
|
+
}
|
10
|
+
|
11
|
+
#{$column-selector} {
|
12
|
+
@include column-behavior();
|
13
|
+
@include column-spacing();
|
14
|
+
}
|
15
|
+
|
16
|
+
#{$column-selector}-container {
|
17
|
+
@include column-behavior();
|
18
|
+
}
|
19
|
+
|
20
|
+
#{$column-selector}-padding {
|
21
|
+
@include column-spacing();
|
22
|
+
}
|
23
|
+
|
24
|
+
.bleed {
|
25
|
+
@include bleed();
|
26
|
+
}
|
27
|
+
|
28
|
+
.full {
|
29
|
+
@include column-width(1/1);
|
30
|
+
}
|
31
|
+
|
32
|
+
// Roll out the required columns
|
33
|
+
@each $fraction in $column-widths {
|
34
|
+
$name: fraction-to-text($fraction);
|
35
|
+
@if $name {
|
36
|
+
.#{$name} {
|
37
|
+
@include column-width($fraction);
|
38
|
+
}
|
39
|
+
.#{$name}.persistent {
|
40
|
+
@include column-width($fraction, true);
|
41
|
+
}
|
42
|
+
// Source Ordering
|
43
|
+
.push-#{$name} {
|
44
|
+
@include push($fraction);
|
45
|
+
}
|
46
|
+
// Source Ordering
|
47
|
+
.pull-#{$name} {
|
48
|
+
@include pull($fraction);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
@@ -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
|
+
@if $trace-imports { @debug 'imported'; }
|
6
|
+
|
7
|
+
@import "helpers/functions";
|
8
|
+
@import "helpers/mixins";
|
@@ -0,0 +1,48 @@
|
|
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
|
+
// BASE SETTINGS
|
9
|
+
// ================================================================================================================================
|
10
|
+
// Required settings for a stand-alone implementation of the grid
|
11
|
+
// ================================================================================================================================
|
12
|
+
|
13
|
+
$base-line-height: 24px !default;
|
14
|
+
// $base-line-height is used to calculate the column spacing
|
15
|
+
|
16
|
+
$apply-border-box: false !default;
|
17
|
+
// When using the grid stand-alon, $reset-box-model should be set to true,
|
18
|
+
// unless you plan to wrap your columns in a padded container for compatibility
|
19
|
+
// with Microsoft Explorer <8 and Opera <10.
|
20
|
+
|
21
|
+
|
22
|
+
// ROOT SETTINGS
|
23
|
+
// ================================================================================================================================
|
24
|
+
// Set a max width on a root container of your choice, the content will not stretch beyond this width.
|
25
|
+
// The root container can be positioned left or center, for alternate position you can provide your own behavior.
|
26
|
+
// ================================================================================================================================
|
27
|
+
$root-selector: ".root" !default;
|
28
|
+
$root-max-width: 1152px !default;
|
29
|
+
$root-position: center !default;
|
30
|
+
|
31
|
+
|
32
|
+
// COLUMN SETTINGS
|
33
|
+
// ================================================================================================================================
|
34
|
+
// Set a max width on a root container of your choice, the content will not stretch beyond this width.
|
35
|
+
// The root container can be positioned left or center, for alternate position you can provide your own behavior.
|
36
|
+
// ================================================================================================================================
|
37
|
+
$column-selector: ".column" !default;
|
38
|
+
$column-spacing: 2*$base-line-height !default;
|
39
|
+
$column-spacing-unit: 1px; // Revisit this, looks redundant
|
40
|
+
$column-spacing-perstistent: false !default;
|
41
|
+
$column-widths: 1/2, 1/4, 1/3, 2/3, 3/4 !default; // Omit 1/1, it is rendered by default
|
42
|
+
$column-width-default: 1/1 !default;
|
43
|
+
$column-breakpoint: false !default;
|
44
|
+
$column-float: false !default; // If you prefer floated columns instead of inline-blocks, set to true.
|
45
|
+
|
46
|
+
$negative-right-margin: false !default;
|
47
|
+
// If you cannot control your markup, you can assign a negative right margin to close gaps between columns to make tem fit
|
48
|
+
// This is a hack and not nescessary when your html (or column markup) is minimized.
|
@@ -0,0 +1,140 @@
|
|
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
|
+
// Function horizontal-rhythm
|
10
|
+
// --------------------------------------------------------------------------
|
11
|
+
// Calculates a value based on the $column-spacing
|
12
|
+
// --------------------------------------------------------------------------
|
13
|
+
// @param (string) $fraction
|
14
|
+
// ==========================================================================
|
15
|
+
@function horizontal-rhythm($fraction: 1/2)
|
16
|
+
{
|
17
|
+
$value: return-unitless( $fraction * $column-spacing );
|
18
|
+
|
19
|
+
@if $column-spacing-unit == 1rem {
|
20
|
+
@return $value/10*1rem;
|
21
|
+
}
|
22
|
+
@if $column-spacing-unit == 1em {
|
23
|
+
@return $value/$base-font-size*1em;
|
24
|
+
}
|
25
|
+
@if $column-spacing-unit == 1px {
|
26
|
+
@return $value*1px;
|
27
|
+
}
|
28
|
+
@if $column-spacing-unit == 1% {
|
29
|
+
@return $value/$base-font-size*1em;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
// ==========================================================================
|
35
|
+
// Function fraction-to-percentage
|
36
|
+
// --------------------------------------------------------------------------
|
37
|
+
// Convert a fraction to a percentage
|
38
|
+
// --------------------------------------------------------------------------
|
39
|
+
// @param (string) $fraction
|
40
|
+
// ==========================================================================
|
41
|
+
@function fraction-to-percentage($fraction: 1/3)
|
42
|
+
{
|
43
|
+
@return $fraction*100%;
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
// ==========================================================================
|
48
|
+
// Function fraction-to-text
|
49
|
+
// --------------------------------------------------------------------------
|
50
|
+
// Convert a fraction to a word.
|
51
|
+
// Use to build style rules based on column widths.
|
52
|
+
// --------------------------------------------------------------------------
|
53
|
+
// @param (string) $fraction
|
54
|
+
// ==========================================================================
|
55
|
+
@function fraction-to-text($fraction)
|
56
|
+
{
|
57
|
+
@if $fraction == 1/1 { @return "full"; }
|
58
|
+
@if $fraction == 1/2 { @return "half"; }
|
59
|
+
@if $fraction == 1/3 { @return "third"; }
|
60
|
+
@if $fraction == 1/4 { @return "fourth"; }
|
61
|
+
@if $fraction == 1/5 { @return "fifth"; }
|
62
|
+
@if $fraction == 1/6 { @return "sixth"; }
|
63
|
+
@if $fraction == 1/7 { @return "seventh"; }
|
64
|
+
@if $fraction == 1/8 { @return "eighth"; }
|
65
|
+
@if $fraction == 1/9 { @return "ninth"; }
|
66
|
+
@if $fraction == 1/10 { @return "tenth"; }
|
67
|
+
@if $fraction == 1/11 { @return "eleventh"; }
|
68
|
+
@if $fraction == 1/12 { @return "twelfth"; }
|
69
|
+
@if $fraction == 1/13 { @return "thirteenth"; }
|
70
|
+
@if $fraction == 1/14 { @return "fourteenth"; }
|
71
|
+
@if $fraction == 1/15 { @return "fifteenth"; }
|
72
|
+
@if $fraction == 1/16 { @return "sixteenth"; }
|
73
|
+
@if $fraction == 2/3 { @return "two-third"; }
|
74
|
+
@if $fraction == 3/4 { @return "three-fourth"; }
|
75
|
+
@if $fraction == 2/5 { @return "two-fifth"; }
|
76
|
+
@if $fraction == 3/5 { @return "three-fifth"; }
|
77
|
+
@if $fraction == 4/5 { @return "four-fifth"; }
|
78
|
+
@if $fraction == 5/6 { @return "five-sixth"; }
|
79
|
+
@if $fraction == 2/7 { @return "two-seventh"; }
|
80
|
+
@if $fraction == 3/7 { @return "three-seventh"; }
|
81
|
+
@if $fraction == 4/7 { @return "four-seventh"; }
|
82
|
+
@if $fraction == 5/7 { @return "five-seventh"; }
|
83
|
+
@if $fraction == 6/7 { @return "six-seventh"; }
|
84
|
+
@if $fraction == 3/8 { @return "three-eighth"; }
|
85
|
+
@if $fraction == 5/8 { @return "five-eighth"; }
|
86
|
+
@if $fraction == 7/8 { @return "seven-eighth"; }
|
87
|
+
@if $fraction == 2/9 { @return "two-ninth"; }
|
88
|
+
@if $fraction == 4/9 { @return "four-ninth"; }
|
89
|
+
@if $fraction == 5/9 { @return "five-ninth"; }
|
90
|
+
@if $fraction == 7/9 { @return "seven-ninth"; }
|
91
|
+
@if $fraction == 8/9 { @return "eight-ninth"; }
|
92
|
+
@if $fraction == 3/10 { @return "three-tenth"; }
|
93
|
+
@if $fraction == 7/10 { @return "seven-tenth"; }
|
94
|
+
@if $fraction == 9/10 { @return "nine-tenth"; }
|
95
|
+
@if $fraction == 2/11 { @return "two-eleventh"; }
|
96
|
+
@if $fraction == 3/11 { @return "three-eleventh"; }
|
97
|
+
@if $fraction == 4/11 { @return "four-eleventh"; }
|
98
|
+
@if $fraction == 5/11 { @return "five-eleventh"; }
|
99
|
+
@if $fraction == 6/11 { @return "six-eleventh"; }
|
100
|
+
@if $fraction == 7/11 { @return "seven-eleventh"; }
|
101
|
+
@if $fraction == 8/11 { @return "eight-eleventh"; }
|
102
|
+
@if $fraction == 9/11 { @return "nine-eleventh"; }
|
103
|
+
@if $fraction == 10/11 { @return "ten-eleventh"; }
|
104
|
+
@if $fraction == 5/12 { @return "five-twelfth"; }
|
105
|
+
@if $fraction == 7/12 { @return "seven-twelfth"; }
|
106
|
+
@if $fraction == 9/12 { @return "nine-twelfth"; }
|
107
|
+
@if $fraction == 11/12 { @return "eleven-twelfth"; }
|
108
|
+
@if $fraction == 2/13 { @return "two-thirteenth"; }
|
109
|
+
@if $fraction == 3/13 { @return "three-thirteenth"; }
|
110
|
+
@if $fraction == 4/13 { @return "four-thirteenth"; }
|
111
|
+
@if $fraction == 5/13 { @return "five-thirteenth"; }
|
112
|
+
@if $fraction == 6/13 { @return "six-thirteenth"; }
|
113
|
+
@if $fraction == 7/13 { @return "seven-thirteenth"; }
|
114
|
+
@if $fraction == 8/13 { @return "eight-thirteenth"; }
|
115
|
+
@if $fraction == 9/13 { @return "nine-thirteenth"; }
|
116
|
+
@if $fraction == 10/13 { @return "ten-thirteenth"; }
|
117
|
+
@if $fraction == 11/13 { @return "twelve-thirteenth"; }
|
118
|
+
@if $fraction == 12/13 { @return "thirteen-thirteenth"; }
|
119
|
+
@if $fraction == 3/14 { @return "three-fourteenth"; }
|
120
|
+
@if $fraction == 5/14 { @return "five-fourteenth"; }
|
121
|
+
@if $fraction == 9/14 { @return "nine-fourteenth"; }
|
122
|
+
@if $fraction == 11/14 { @return "eleven-fourteenth"; }
|
123
|
+
@if $fraction == 13/14 { @return "thirteen-fourteenth"; }
|
124
|
+
@if $fraction == 2/15 { @return "two-fifteenth"; }
|
125
|
+
@if $fraction == 4/15 { @return "four-fifteenth"; }
|
126
|
+
@if $fraction == 7/15 { @return "seven-fifteenth"; }
|
127
|
+
@if $fraction == 8/15 { @return "eight-fifteenth"; }
|
128
|
+
@if $fraction == 11/15 { @return "eleven-fifteenth"; }
|
129
|
+
@if $fraction == 13/15 { @return "thirteen-fifteenth"; }
|
130
|
+
@if $fraction == 14/15 { @return "fourteen-fifteenth"; }
|
131
|
+
@if $fraction == 3/16 { @return "three-sixteenth"; }
|
132
|
+
@if $fraction == 5/16 { @return "five-sixteenth"; }
|
133
|
+
@if $fraction == 7/16 { @return "seven-sixteenth"; }
|
134
|
+
@if $fraction == 9/16 { @return "nine-sixteenth"; }
|
135
|
+
@if $fraction == 11/16 { @return "eleven-sixteenth"; }
|
136
|
+
@if $fraction == 13/16 { @return "thirteen-sixteenth"; }
|
137
|
+
@if $fraction == 15/16 { @return "sixteen-sixteenth"; }
|
138
|
+
|
139
|
+
@return false;
|
140
|
+
}
|
@@ -0,0 +1,247 @@
|
|
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 column behavior
|
10
|
+
// --------------------------------------------------------------------------
|
11
|
+
// @param (boolean) $apply-border-box
|
12
|
+
// @param (boolean) $column-float
|
13
|
+
// ==========================================================================
|
14
|
+
@mixin column-behavior($apply-border-box: $apply-border-box, $column-float: $column-float)
|
15
|
+
{
|
16
|
+
@if $column-float {
|
17
|
+
display: block;
|
18
|
+
float: left;
|
19
|
+
}
|
20
|
+
@else {
|
21
|
+
@include inline-block(top);
|
22
|
+
@if $negative-right-margin {
|
23
|
+
margin-right: $negative-right-margin !important;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
@if $apply-border-box {
|
28
|
+
@include box-sizing('border-box');
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
// ==========================================================================
|
34
|
+
// Mixin column width
|
35
|
+
// --------------------------------------------------------------------------
|
36
|
+
// @param (string) $fraction
|
37
|
+
// @param (boolean) $persistent
|
38
|
+
// ==========================================================================
|
39
|
+
@mixin column-width($fraction: $column-width-default, $persistent: false)
|
40
|
+
{
|
41
|
+
@if $persistent {
|
42
|
+
width: fraction-to-percentage($fraction) !important;
|
43
|
+
}
|
44
|
+
@else {
|
45
|
+
width: fraction-to-percentage($fraction);
|
46
|
+
}
|
47
|
+
|
48
|
+
@if $persistent==false and $column-breakpoint {
|
49
|
+
@include breakpoint( $column-breakpoint ) {
|
50
|
+
width: 100%;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
// /*
|
55
|
+
// *Remove negative margin on elements that span full width of their container
|
56
|
+
// */
|
57
|
+
@if $fraction == 1/1 and $negative-right-margin {
|
58
|
+
margin-right: 0;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
// ==========================================================================
|
64
|
+
// Mixin column spacing
|
65
|
+
// --------------------------------------------------------------------------
|
66
|
+
// Uses padding by default, can be overridden to use margins instead,
|
67
|
+
// this is especially helpful when assigning backgrounds or borders
|
68
|
+
// --------------------------------------------------------------------------
|
69
|
+
// @param (string) $fraction
|
70
|
+
// @param (boolean) $use-margin
|
71
|
+
// @param (boolean) $persistent
|
72
|
+
// ==========================================================================
|
73
|
+
@mixin column-spacing($fraction: 1/2, $use-margin: false, $persistent: $column-spacing-perstistent)
|
74
|
+
{
|
75
|
+
@if ($use-margin) {
|
76
|
+
margin-left: horizontal-rhythm($fraction);
|
77
|
+
margin-right: horizontal-rhythm($fraction);
|
78
|
+
@if $persistent == false {
|
79
|
+
@if $column-breakpoint {
|
80
|
+
@include breakpoint( $column-breakpoint ) {
|
81
|
+
margin-left: horizontal-rhythm($fraction/2);
|
82
|
+
margin-right: horizontal-rhythm($fraction/2);
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
@else {
|
88
|
+
padding-left: horizontal-rhythm($fraction);
|
89
|
+
padding-right: horizontal-rhythm($fraction);
|
90
|
+
@if $persistent == false {
|
91
|
+
@if $column-breakpoint {
|
92
|
+
@include breakpoint( $column-breakpoint ) {
|
93
|
+
padding-left: horizontal-rhythm($fraction/2);
|
94
|
+
padding-right: horizontal-rhythm($fraction/2);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
// ==========================================================================
|
103
|
+
// Shorthand mixin for column
|
104
|
+
// --------------------------------------------------------------------------
|
105
|
+
// Uses padding by default, can be overridden to use margins instead,
|
106
|
+
// this is especially helpful when assigning backgrounds or borders
|
107
|
+
// --------------------------------------------------------------------------
|
108
|
+
// @param (string) $fraction
|
109
|
+
// @param (boolean) $persistent
|
110
|
+
// @param (boolean) $apply-padding
|
111
|
+
// @param (boolean) $apply-margin
|
112
|
+
// ==========================================================================
|
113
|
+
@mixin column($fraction: 1/1, $persistent: false, $apply-padding: 1/2, $apply-margin: false)
|
114
|
+
{
|
115
|
+
@include column-behavior();
|
116
|
+
|
117
|
+
@include column-width($fraction, $persistent);
|
118
|
+
|
119
|
+
@if $apply-padding {
|
120
|
+
@include column-spacing($apply-padding);
|
121
|
+
}
|
122
|
+
|
123
|
+
@if $apply-margin {
|
124
|
+
@include column-spacing($apply-margin, true);
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
|
129
|
+
// ==========================================================================
|
130
|
+
// Shorthand mixin for column
|
131
|
+
// --------------------------------------------------------------------------
|
132
|
+
// Fixes content width and centers in viewport.
|
133
|
+
// --------------------------------------------------------------------------
|
134
|
+
// @param (boolean) $hide-overflow
|
135
|
+
// @param (string) $root-max-width
|
136
|
+
// @param (boolean) $set-display
|
137
|
+
// ==========================================================================
|
138
|
+
@mixin root($hide-overflow: true, $root-max-width: $root-max-width, $set-display: false)
|
139
|
+
{
|
140
|
+
@if $set-display {
|
141
|
+
display: block;
|
142
|
+
}
|
143
|
+
|
144
|
+
@if $hide-overflow {
|
145
|
+
overflow: hidden;
|
146
|
+
}
|
147
|
+
|
148
|
+
@if $root-position==center {
|
149
|
+
margin: 0 auto;
|
150
|
+
}
|
151
|
+
|
152
|
+
max-width: $root-max-width;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
// ==========================================================================
|
157
|
+
// Mixin for column container
|
158
|
+
// --------------------------------------------------------------------------
|
159
|
+
// Use it to remove column spacing on columns
|
160
|
+
// --------------------------------------------------------------------------
|
161
|
+
// @param (boolean) $use-margin
|
162
|
+
// ==========================================================================
|
163
|
+
@mixin container-behavior($use-margin: false)
|
164
|
+
{
|
165
|
+
@if $use-margin {
|
166
|
+
margin-left: 0;
|
167
|
+
margin-right: 0;
|
168
|
+
}
|
169
|
+
@else {
|
170
|
+
padding-left: 0;
|
171
|
+
padding-right: 0;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
// ==========================================================================
|
177
|
+
// Mixin for soure ordering
|
178
|
+
// --------------------------------------------------------------------------
|
179
|
+
// @param (string) $fraction
|
180
|
+
// ==========================================================================
|
181
|
+
@mixin move($fraction)
|
182
|
+
{
|
183
|
+
position: relative;
|
184
|
+
left: fraction-to-percentage($fraction);
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
// ==========================================================================
|
189
|
+
// Mixin for soure ordering
|
190
|
+
// Will reset positioning if $persistent is false
|
191
|
+
//
|
192
|
+
// @param (string) $fraction
|
193
|
+
// @param (boolean) $persistent
|
194
|
+
// ==========================================================================
|
195
|
+
@mixin push($fraction, $persistent: false)
|
196
|
+
{
|
197
|
+
@include move($fraction);
|
198
|
+
|
199
|
+
@if $persistent!=true and $column-breakpoint {
|
200
|
+
@include breakpoint( $column-breakpoint ) {
|
201
|
+
position: static;
|
202
|
+
position: initial;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
|
207
|
+
|
208
|
+
// ==========================================================================
|
209
|
+
// Mixin for soure ordering
|
210
|
+
// Will reset positioning if $persistent is false
|
211
|
+
//
|
212
|
+
// @param (string) $fraction
|
213
|
+
// @param (boolean) $persistent
|
214
|
+
// ==========================================================================
|
215
|
+
@mixin pull($fraction, $persistent: false)
|
216
|
+
{
|
217
|
+
@include move(-1*$fraction);
|
218
|
+
|
219
|
+
@if $persistent!=true and $column-breakpoint {
|
220
|
+
@include breakpoint( $column-breakpoint ) {
|
221
|
+
position: static;
|
222
|
+
position: initial;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
// ==========================================================================
|
229
|
+
// Mixin to reverse padding on a container
|
230
|
+
// --------------------------------------------------------------------------
|
231
|
+
// Use it to remove padded column spacing on columns
|
232
|
+
// , helpful when nesting columns
|
233
|
+
// --------------------------------------------------------------------------
|
234
|
+
// @param (string) $fraction
|
235
|
+
// @param (boolean) $persistent
|
236
|
+
// ==========================================================================
|
237
|
+
@mixin bleed($fraction: -1/2, $persistent: false)
|
238
|
+
{
|
239
|
+
@include column-spacing($fraction, true);
|
240
|
+
@if $persistent == false {
|
241
|
+
@if $column-breakpoint {
|
242
|
+
@include breakpoint( $column-breakpoint ) {
|
243
|
+
@include column-spacing($fraction/2, true);
|
244
|
+
}
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
@@ -0,0 +1,11 @@
|
|
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 "functions";
|
8
|
+
@import "settings";
|
9
|
+
@import "mixins";
|
10
|
+
@import "colors";
|
11
|
+
@import "fonts";
|