compass-inuit 4.5.5.1 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +2 -4
- data/stylesheets/_compass-inuit.scss +1 -0
- data/stylesheets/compass-inuit/_base.scss +0 -1
- data/stylesheets/compass-inuit/_defaults.scss +225 -0
- data/stylesheets/compass-inuit/_objects.scss +1 -2
- data/stylesheets/compass-inuit/base/_code.scss +4 -4
- data/stylesheets/compass-inuit/base/_forms.scss +19 -19
- data/stylesheets/compass-inuit/base/_headings.scss +4 -4
- data/stylesheets/compass-inuit/base/_images.scss +7 -1
- data/stylesheets/compass-inuit/base/_lists.scss +0 -0
- data/stylesheets/compass-inuit/base/_main.scss +1 -1
- data/stylesheets/compass-inuit/base/_paragraphs.scss +0 -0
- data/stylesheets/compass-inuit/base/_quotes.scss +15 -15
- data/stylesheets/compass-inuit/base/_smallprint.scss +0 -0
- data/stylesheets/compass-inuit/base/_tables.scss +2 -2
- data/stylesheets/compass-inuit/generic/_brand.scss +0 -0
- data/stylesheets/compass-inuit/generic/_clearfix.scss +3 -9
- data/stylesheets/compass-inuit/generic/_debug.scss +3 -3
- data/stylesheets/compass-inuit/generic/_helper.scss +99 -27
- data/stylesheets/compass-inuit/generic/_mixins.scss +106 -77
- data/stylesheets/compass-inuit/generic/_pull.scss +39 -15
- data/stylesheets/compass-inuit/generic/_push.scss +39 -15
- data/stylesheets/compass-inuit/generic/_reset.scss +3 -3
- data/stylesheets/compass-inuit/generic/_shared.scss +1 -1
- data/stylesheets/compass-inuit/generic/_widths.scss +6 -2
- data/stylesheets/compass-inuit/objects/_arrows.scss +14 -10
- data/stylesheets/compass-inuit/objects/_beautons.scss +226 -0
- data/stylesheets/compass-inuit/objects/_block-list.scss +10 -6
- data/stylesheets/compass-inuit/objects/_breadcrumb.scss +14 -10
- data/stylesheets/compass-inuit/objects/_columns.scss +7 -3
- data/stylesheets/compass-inuit/objects/_flexbox.scss +15 -11
- data/stylesheets/compass-inuit/objects/_flyout.scss +12 -8
- data/stylesheets/compass-inuit/objects/_greybox.scss +11 -7
- data/stylesheets/compass-inuit/objects/_grids.scss +31 -61
- data/stylesheets/compass-inuit/objects/_icon-text.scss +8 -4
- data/stylesheets/compass-inuit/objects/_island.scss +8 -4
- data/stylesheets/compass-inuit/objects/_link-complex.scss +8 -4
- data/stylesheets/compass-inuit/objects/_lozenges.scss +11 -7
- data/stylesheets/compass-inuit/objects/_marginalia.scss +5 -1
- data/stylesheets/compass-inuit/objects/_matrix.scss +16 -25
- data/stylesheets/compass-inuit/objects/_media.scss +12 -8
- data/stylesheets/compass-inuit/objects/_nav.scss +26 -22
- data/stylesheets/compass-inuit/objects/_options.scss +8 -4
- data/stylesheets/compass-inuit/objects/_pagination.scss +11 -7
- data/stylesheets/compass-inuit/objects/_rules.scss +11 -7
- data/stylesheets/compass-inuit/objects/_split.scss +16 -12
- data/stylesheets/compass-inuit/objects/_sprite.scss +36 -30
- data/stylesheets/compass-inuit/objects/_stats.scss +7 -3
- data/stylesheets/compass-inuit/objects/_this-or-this.scss +8 -4
- data/templates/project/_vars.scss +47 -100
- data/templates/project/style.scss +3 -4
- metadata +7 -18
- data/stylesheets/compass-inuit/base/_links.scss +0 -37
- data/stylesheets/compass-inuit/objects/_batch.scss +0 -15
- data/stylesheets/compass-inuit/objects/_buttons.scss +0 -44
- data/templates/batch/assets/batch/batch.eot +0 -0
- data/templates/batch/assets/batch/batch.svg +0 -360
- data/templates/batch/assets/batch/batch.ttf +0 -0
- data/templates/batch/assets/batch/batch.woff +0 -0
- data/templates/batch/assets/batch/batch_webfont_reference.pdf +0 -0
- data/templates/batch/manifest.rb +0 -21
@@ -1,3 +1,5 @@
|
|
1
|
+
@if $use-pagination == true{
|
2
|
+
|
1
3
|
/*------------------------------------*\
|
2
4
|
$PAGINATION
|
3
5
|
\*------------------------------------*/
|
@@ -5,7 +7,7 @@
|
|
5
7
|
* Basic pagination object, extends `.nav`.
|
6
8
|
* Requires some funky commenting to collapse any white-space caused by the
|
7
9
|
* `display:inline-block;` rules.
|
8
|
-
*
|
10
|
+
*
|
9
11
|
<ol class="nav pagination">
|
10
12
|
<li class=pagination__first>First</li>
|
11
13
|
<li class=pagination__prev>Previous</li>
|
@@ -17,9 +19,9 @@
|
|
17
19
|
<li class=pagination__next><a href=/page/next>Next</a></li>
|
18
20
|
<li class=pagination__last><a href=/page/last>Last</a></li>
|
19
21
|
</ol>
|
20
|
-
*
|
22
|
+
*
|
21
23
|
* Demo: jsfiddle.net/inuitcss/9Y6PU
|
22
|
-
*
|
24
|
+
*
|
23
25
|
*/
|
24
26
|
.pagination{
|
25
27
|
text-align:center;
|
@@ -37,10 +39,12 @@
|
|
37
39
|
.pagination > li > a{
|
38
40
|
padding:$base-spacing-unit / 2;
|
39
41
|
margin:-$base-spacing-unit / 2;
|
40
|
-
}
|
42
|
+
}
|
41
43
|
.pagination__first a:before{
|
42
|
-
content:"
|
44
|
+
content:"\00AB" "\00A0";
|
43
45
|
}
|
44
46
|
.pagination__last a:after{
|
45
|
-
content:"
|
46
|
-
}
|
47
|
+
content:"\00A0" "\00BB";
|
48
|
+
}
|
49
|
+
|
50
|
+
}//endif
|
@@ -1,18 +1,20 @@
|
|
1
|
+
@if $use-rules == true{
|
2
|
+
|
1
3
|
/*------------------------------------*\
|
2
4
|
$RULES
|
3
5
|
\*------------------------------------*/
|
4
6
|
/**
|
5
7
|
* Horizontal rules, extend `hr`.
|
6
|
-
*
|
8
|
+
*
|
7
9
|
* Demo: jsfiddle.net/inuitcss/L6GuZ
|
8
|
-
*
|
10
|
+
*
|
9
11
|
*/
|
10
12
|
.rule{
|
11
|
-
color
|
13
|
+
color:$base-ui-color;
|
12
14
|
border:none;
|
13
15
|
border-bottom-width:1px;
|
14
16
|
border-bottom-style:solid;
|
15
|
-
margin-bottom:$base-spacing-unit - 1px;
|
17
|
+
margin-bottom:$base-spacing-unit - 1px;
|
16
18
|
margin-bottom:(($base-spacing-unit - 1px) / $base-font-size)*1rem;
|
17
19
|
}
|
18
20
|
|
@@ -40,7 +42,7 @@
|
|
40
42
|
position:relative;
|
41
43
|
|
42
44
|
&:after{
|
43
|
-
content:"
|
45
|
+
content:"\00A7";
|
44
46
|
position:absolute;
|
45
47
|
top: 0;
|
46
48
|
right: 0;
|
@@ -51,11 +53,13 @@
|
|
51
53
|
|
52
54
|
/**
|
53
55
|
* Pass in an arbitrary ornament though a data attribute, e.g.:
|
54
|
-
*
|
56
|
+
*
|
55
57
|
<hr class="rule rule--ornament" data-ornament="!">
|
56
|
-
*
|
58
|
+
*
|
57
59
|
*/
|
58
60
|
&[data-ornament]:after{
|
59
61
|
content:attr(data-ornament);
|
60
62
|
}
|
61
63
|
}
|
64
|
+
|
65
|
+
}//endif
|
@@ -1,27 +1,29 @@
|
|
1
|
+
@if $use-split == true{
|
2
|
+
|
1
3
|
/*------------------------------------*\
|
2
4
|
$SPLIT
|
3
5
|
\*------------------------------------*/
|
4
6
|
/**
|
5
7
|
* Simple split item for creating two elements floated away from one another,
|
6
8
|
* e.g.:
|
7
|
-
*
|
8
|
-
<dl class=split>
|
9
|
+
*
|
10
|
+
<dl class=split>
|
9
11
|
<dt class=split__title>Burger and fries</dt>
|
10
|
-
<dd>£5.99</dd>
|
12
|
+
<dd>£5.99</dd>
|
11
13
|
<dt class=split__title>Fillet steak</dt>
|
12
|
-
<dd>£19.99</dd>
|
14
|
+
<dd>£19.99</dd>
|
13
15
|
<dt class=split__title>Ice cream</dt>
|
14
|
-
<dd>£2.99</dd>
|
16
|
+
<dd>£2.99</dd>
|
15
17
|
</dl>
|
16
|
-
*
|
18
|
+
*
|
17
19
|
<ol class="split results">
|
18
|
-
<li class=first><b class=split__title>1st place</b> Bob</li>
|
19
|
-
<li class=second><b class=split__title>2nd place</b> Lilly</li>
|
20
|
-
<li class=third><b class=split__title>3rd place</b> Ted</li>
|
20
|
+
<li class=first><b class=split__title>1st place</b> Bob</li>
|
21
|
+
<li class=second><b class=split__title>2nd place</b> Lilly</li>
|
22
|
+
<li class=third><b class=split__title>3rd place</b> Ted</li>
|
21
23
|
</ol>
|
22
|
-
*
|
24
|
+
*
|
23
25
|
* Demo: jsfiddle.net/inuitcss/9gZW7
|
24
|
-
*
|
26
|
+
*
|
25
27
|
*/
|
26
28
|
.split{
|
27
29
|
text-align:right;
|
@@ -32,4 +34,6 @@
|
|
32
34
|
text-align:left;
|
33
35
|
float:left;
|
34
36
|
clear:left;
|
35
|
-
}
|
37
|
+
}
|
38
|
+
|
39
|
+
}//endif
|
@@ -1,48 +1,55 @@
|
|
1
|
+
@if $use-sprite == true{
|
2
|
+
|
1
3
|
/*------------------------------------*\
|
2
4
|
$SPRITE
|
3
5
|
\*------------------------------------*/
|
4
6
|
/**
|
5
|
-
* Giving an element a class of `.
|
7
|
+
* Giving an element a class of `.sprite` will throw it into ‘sprite’ mode and apply
|
6
8
|
* a background image e.g.:
|
7
|
-
*
|
8
|
-
<a class="
|
9
|
-
*
|
9
|
+
*
|
10
|
+
<a class="sprite sprite--question-mark">More info…</a>
|
11
|
+
*
|
10
12
|
* or
|
11
|
-
*
|
12
|
-
<a href=#><i class="
|
13
|
-
*
|
14
|
-
* Giving an element a class of `.
|
13
|
+
*
|
14
|
+
<a href=#><i class="sprite sprite--question-mark"></i> Help and FAQ</a>
|
15
|
+
*
|
16
|
+
* Giving an element a class of `.icon` will throw it into ‘icon’ mode and will
|
15
17
|
* not add a background, but should be used for icon fonts and is populated
|
16
18
|
* through a `data-icon` attribute and the `:after` pseudo-element, e.g.:
|
17
|
-
*
|
18
|
-
<a href=#><i class=
|
19
|
-
*
|
20
|
-
* Where ‘’ might map to a star in your particular font.
|
21
|
-
*
|
22
|
-
* These all require extension in your theme stylesheet.
|
23
|
-
*
|
19
|
+
*
|
20
|
+
<a href=#><i class=icon data-icon=""></i> View your favourites</a>
|
21
|
+
*
|
22
|
+
* Where ‘’ might map to a star in your particular icon font.
|
23
|
+
*
|
24
|
+
* These all require extension in your theme stylesheet, e.g. in your own CSS:
|
25
|
+
*
|
26
|
+
.sprite{
|
27
|
+
background-image:url(path/to/your/sprite.png);
|
28
|
+
}
|
29
|
+
.sprite--link{ background-position:0 0 ; }
|
30
|
+
.sprite--star{ background-position:0 -16px; }
|
31
|
+
*
|
24
32
|
* Demo: jsfiddle.net/inuitcss/6TKuS
|
25
|
-
*
|
33
|
+
*
|
26
34
|
*/
|
27
|
-
.
|
28
|
-
.
|
35
|
+
.sprite,
|
36
|
+
.icon{
|
29
37
|
display:inline-block;
|
30
38
|
line-height:1;
|
31
39
|
position:relative;
|
32
40
|
vertical-align:middle;
|
33
41
|
zoom:1;
|
34
42
|
/**
|
35
|
-
* So using `.
|
43
|
+
* So using `.icon` on certain elements doesn’t make a visual difference.
|
36
44
|
*/
|
37
45
|
font-style:normal;
|
38
46
|
font-weight:normal;
|
39
47
|
/**
|
40
|
-
* So icons added using `.
|
48
|
+
* So icons added using `.icon` sit in the centre of the element.
|
41
49
|
*/
|
42
50
|
text-align:center;
|
43
51
|
}
|
44
|
-
.
|
45
|
-
background-image:url(/path/to/your/sprite.png);
|
52
|
+
.sprite{
|
46
53
|
/**
|
47
54
|
* The typical size of most icons. Override in your theme stylesheet.
|
48
55
|
*/
|
@@ -66,12 +73,9 @@
|
|
66
73
|
}
|
67
74
|
|
68
75
|
/**
|
69
|
-
* Set up
|
76
|
+
* Set up icon font
|
70
77
|
*/
|
71
|
-
.
|
72
|
-
@if $batch == true{
|
73
|
-
font-family:Batch;
|
74
|
-
}
|
78
|
+
.icon{
|
75
79
|
font-size:16px;
|
76
80
|
/**
|
77
81
|
* Place the icon in a box the exact same dimensions as the icon itself.
|
@@ -87,6 +91,8 @@
|
|
87
91
|
/**
|
88
92
|
* Icon size modifiers.
|
89
93
|
*/
|
90
|
-
.
|
91
|
-
.
|
92
|
-
.
|
94
|
+
.icon--large { font-size:32px; }
|
95
|
+
.icon--huge { font-size:64px; }
|
96
|
+
.icon--natural { font-size:inherit; }
|
97
|
+
|
98
|
+
}//endif
|
@@ -1,20 +1,22 @@
|
|
1
|
+
@if $use-stats == true{
|
2
|
+
|
1
3
|
/*------------------------------------*\
|
2
4
|
$STATS
|
3
5
|
\*------------------------------------*/
|
4
6
|
/**
|
5
|
-
* Simple object to display key–value statistic-like information, e.g.:
|
7
|
+
* Simple object to display key–value statistic-like information, e.g.:
|
6
8
|
*
|
7
9
|
<div class=stat-group>
|
8
10
|
<dl class=stat>
|
9
11
|
<dt class=stat__title>Tweets</dt>
|
10
12
|
<dd class=stat__value>27,740</dd>
|
11
13
|
</dl>
|
12
|
-
|
14
|
+
|
13
15
|
<dl class=stat>
|
14
16
|
<dt class=stat__title>Following</dt>
|
15
17
|
<dd class=stat__value>11,529</dd>
|
16
18
|
</dl>
|
17
|
-
|
19
|
+
|
18
20
|
<dl class=stat>
|
19
21
|
<dt class=stat__title>Followers</dt>
|
20
22
|
<dd class=stat__value>12,105</dd>
|
@@ -46,3 +48,5 @@
|
|
46
48
|
@include vendor(order, 1);
|
47
49
|
-ms-flex-order:1;
|
48
50
|
}
|
51
|
+
|
52
|
+
}//endif
|
@@ -1,9 +1,11 @@
|
|
1
|
+
@if $use-this-or-this == true{
|
2
|
+
|
1
3
|
/*------------------------------------*\
|
2
4
|
$THIS-OR-THIS
|
3
5
|
\*------------------------------------*/
|
4
6
|
/**
|
5
7
|
* Simple options object to provide multiple choices, e.g.:
|
6
|
-
*
|
8
|
+
*
|
7
9
|
<h1 class=this-or-this>
|
8
10
|
<a href=# class="this-or-this__this two-fifths">
|
9
11
|
Free
|
@@ -15,12 +17,12 @@
|
|
15
17
|
Pro
|
16
18
|
</a>
|
17
19
|
</h1>
|
18
|
-
*
|
20
|
+
*
|
19
21
|
* The `.this-or-this__this` and `.this-or-this__or` objects can be sized using
|
20
22
|
* the grid-system classes.
|
21
|
-
*
|
23
|
+
*
|
22
24
|
* Demo: jsfiddle.net/inuitcss/R3sks
|
23
|
-
*
|
25
|
+
*
|
24
26
|
*/
|
25
27
|
.this-or-this{
|
26
28
|
display:table;
|
@@ -32,3 +34,5 @@
|
|
32
34
|
display:table-cell;
|
33
35
|
vertical-align:middle;
|
34
36
|
}
|
37
|
+
|
38
|
+
}//endif
|
@@ -1,124 +1,71 @@
|
|
1
1
|
/*------------------------------------*\
|
2
|
-
|
2
|
+
VARS.SCSS
|
3
3
|
\*------------------------------------*/
|
4
4
|
/**
|
5
|
-
*
|
6
|
-
*
|
7
|
-
*
|
5
|
+
* Any variables you find set in inuit.css’ `_vars.scss` that you do not wish to
|
6
|
+
* keep, simply redefine here. This means that if inuit.css, for example, sets
|
7
|
+
* your `$base-font-size` at 16px and you wish it to be 14px, simply redeclare
|
8
|
+
* that variable in this file. inuit.css ignores its own variables in favour of
|
9
|
+
* using your own, so you can completely modify how inuit.css works without ever
|
10
|
+
* having to alter the framework itself.
|
8
11
|
*/
|
9
12
|
|
10
13
|
|
11
|
-
/**
|
12
|
-
* Debug mode will visually highlight any potential markup/accessibility quirks
|
13
|
-
* in the browser. Set to `true` or `false`.
|
14
|
-
*/
|
15
|
-
$debug-mode: false!default;
|
16
|
-
|
17
|
-
|
18
|
-
/**
|
19
|
-
* Do you want all elements to adopt `box-sizing:border-box;` as per
|
20
|
-
* paulirish.com/2012/box-sizing-border-box-ftw ?
|
21
|
-
*/
|
22
|
-
$global-border-box: true!default;
|
23
|
-
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Would you like to use Adam Whitcroft’s Batch icon font, as per:
|
27
|
-
* adamwhitcroft.com/batch ?
|
28
|
-
*/
|
29
|
-
$batch: false!default;
|
30
|
-
|
31
14
|
|
32
|
-
/**
|
33
|
-
* Base stuff
|
34
|
-
*/
|
35
|
-
$base-font-size: 16px!default;
|
36
|
-
$base-line-height: 24px!default;
|
37
|
-
|
38
|
-
|
39
|
-
/**
|
40
|
-
* How big would you like round corners to be by default?
|
41
|
-
*/
|
42
|
-
$brand-round: 4px!default;
|
43
15
|
|
44
16
|
|
17
|
+
/*------------------------------------*\
|
18
|
+
$OBJECTS-AND-ABSTRACTIONS
|
19
|
+
\*------------------------------------*/
|
45
20
|
/**
|
46
|
-
*
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
$
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
$
|
61
|
-
$
|
21
|
+
* All of inuit.css’ objects and abstractions are initially turned off by
|
22
|
+
* default. This means that you start any project with as little as possible,
|
23
|
+
* and introducing objects and abstractions is as simple as switching the
|
24
|
+
* following variables to `true`.
|
25
|
+
*/
|
26
|
+
$use-grids: false;
|
27
|
+
$use-flexbox: false;
|
28
|
+
$use-columns: false;
|
29
|
+
$use-nav: false;
|
30
|
+
$use-options: false;
|
31
|
+
$use-pagination: false;
|
32
|
+
$use-breadcrumb: false;
|
33
|
+
$use-media: false;
|
34
|
+
$use-marginalia: false;
|
35
|
+
$use-island: false;
|
36
|
+
$use-block-list: false;
|
37
|
+
$use-matrix: false;
|
38
|
+
$use-split: false;
|
39
|
+
$use-this-or-this: false;
|
40
|
+
$use-link-complex: false;
|
41
|
+
$use-flyout: false;
|
42
|
+
$use-arrows: false;
|
43
|
+
$use-sprite: false;
|
44
|
+
$use-icon-text: false;
|
45
|
+
$use-beautons: false;
|
46
|
+
$use-lozenges: false;
|
47
|
+
$use-rules: false;
|
48
|
+
$use-stats: false;
|
49
|
+
$use-greybox: false;
|
62
50
|
|
63
|
-
/**
|
64
|
-
* Tell inuit.css when breakpoints start.
|
65
|
-
*/
|
66
|
-
$lap-start: 481px!default;
|
67
|
-
$desk-start: 1024px!default;
|
68
|
-
$desk-wide-start: 1200px!default;
|
69
51
|
|
70
52
|
|
71
|
-
/**
|
72
|
-
* Font-sizes (in pixels). Refer to relevant sections for their implementations.
|
73
|
-
*/
|
74
|
-
$giga-size: 96px!default;
|
75
|
-
$mega-size: 72px!default;
|
76
|
-
$kilo-size: 48px!default;
|
77
|
-
|
78
|
-
$h1-size: 36px!default; // .alpha
|
79
|
-
$h2-size: 30px!default; // .beta
|
80
|
-
$h3-size: 24px!default; // .gamma
|
81
|
-
$h4-size: 20px!default; // .delta
|
82
|
-
$h5-size: 16px!default; // .epsilon
|
83
|
-
$h6-size: 14px!default; // .zeta
|
84
53
|
|
85
|
-
$milli-size: 12px!default;
|
86
|
-
$micro-size: 10px!default;
|
87
|
-
|
88
|
-
|
89
|
-
/**
|
90
|
-
* English quote marks?
|
91
|
-
*/
|
92
|
-
$english-quotes: true!default;
|
93
54
|
|
55
|
+
/*------------------------------------*\
|
56
|
+
$OVERRIDES
|
57
|
+
\*------------------------------------*/
|
94
58
|
/**
|
95
|
-
*
|
96
|
-
* because Sass needs them.
|
59
|
+
* Place any variables that should override inuit.css’ defaults here.
|
97
60
|
*/
|
98
|
-
$open-quote: null;
|
99
|
-
$close-quote: null;
|
100
61
|
|
101
|
-
/**
|
102
|
-
* If you need non-English quotes, please alter the following values accordingly:
|
103
|
-
*/
|
104
|
-
@if $english-quotes != true{
|
105
|
-
$open-quote: «;
|
106
|
-
$close-quote: »;
|
107
|
-
}
|
108
62
|
|
109
63
|
|
110
|
-
/**
|
111
|
-
* Brand stuff
|
112
|
-
*/
|
113
|
-
$brand-color: #4a8ec2!default;
|
114
|
-
$brand-face: "Helvetica Neue", sans-serif!default;
|
115
64
|
|
116
65
|
|
66
|
+
/*------------------------------------*\
|
67
|
+
$CUSTOM
|
68
|
+
\*------------------------------------*/
|
117
69
|
/**
|
118
|
-
*
|
119
|
-
*
|
120
|
-
* Assign our `$base-line-height` to a new spacing var for more transparency.
|
70
|
+
* Place any of your own variables that sit on top of inuit.css here.
|
121
71
|
*/
|
122
|
-
$base-spacing-unit: $base-line-height!default;
|
123
|
-
$half-spacing-unit: $base-spacing-unit / 2!default;
|
124
|
-
$line-height-ratio: $base-line-height / $base-font-size;
|