compass-inuit 4.3.2 → 4.3.3

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.
@@ -2,50 +2,50 @@
2
2
  INUIT.CSS
3
3
  \*------------------------------------*/
4
4
  /*!*
5
- *
5
+ *
6
6
  * inuitcss.com -- @inuitcss -- @csswizardry
7
- *
7
+ *
8
8
  */
9
9
  /**
10
10
  * inuit.css acts as a base stylesheet which you should extend with your own
11
11
  * theme stylesheet.
12
- *
12
+ *
13
13
  * inuit.css aims to do the heavy lifting; sorting objects and abstractions,
14
14
  * design patterns and fiddly bits of CSS, whilst leaving as much design as
15
15
  * possible to you. inuit.css is the scaffolding to your decorator.
16
- *
16
+ *
17
17
  * This stylesheet is heavily documented and contains lots of comments, please
18
18
  * take care to read and refer to them as you build. For further support please
19
19
  * tweet at @inuitcss.
20
- *
20
+ *
21
21
  * Owing to the amount of comments please only ever use minified CSS in
22
22
  * production. This file is purely a dev document.
23
- *
23
+ *
24
24
  * The table of contents below maps to section titles of the same name, to jump
25
25
  * to any section simply run a find for $[SECTION-TITLE].
26
- *
26
+ *
27
27
  * Most objects and abstractions come with a chunk of markup that you should be
28
28
  * able to paste into any view to quickly see how the CSS works in conjunction
29
29
  * with the correct HTML.
30
- *
30
+ *
31
31
  * inuit.css is written to this standard: github.com/csswizardry/CSS-Guidelines
32
- *
32
+ *
33
33
  * LICENSE
34
- *
34
+ *
35
35
  * Copyright 2012 Harry Roberts
36
- *
36
+ *
37
37
  * Licensed under the Apache License, Version 2.0 (the "License");
38
38
  * you may not use this file except in compliance with the License.
39
39
  * You may obtain a copy of the License at
40
- *
40
+ *
41
41
  * http://apache.org/licenses/LICENSE-2.0
42
- *
42
+ *
43
43
  * Unless required by applicable law or agreed to in writing, software
44
44
  * distributed under the License is distributed on an "AS IS" BASIS,
45
45
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
46
46
  * See the License for the specific language governing permissions and
47
47
  * limitations under the License.
48
- *
48
+ *
49
49
  * Thank you for choosing inuit.css. May your floats remain cleared.
50
50
  */
51
51
 
@@ -60,13 +60,13 @@
60
60
  * CONTENTS............You’re reading it!
61
61
  * WARNING.............Here be dragons!
62
62
  * IMPORTS.............Begin importing the sections below
63
- *
63
+ *
64
64
  * MIXINS..............Super-simple Sass stuff
65
65
  * NORMALIZE...........normalize.css
66
66
  * RESET...............Set some defaults
67
67
  * CLEARFIX............
68
68
  * SHARED..............Shared declarations
69
- *
69
+ *
70
70
  * MAIN................High-level elements like `html`, `body`, etc.
71
71
  * HEADINGS............Double-stranded heading hierarchy
72
72
  * PARAGRAPHS..........
@@ -78,7 +78,7 @@
78
78
  * IMAGES..............
79
79
  * TABLES..............
80
80
  * FORMS...............
81
- *
81
+ *
82
82
  * GRIDS...............Fluid, proportional and nestable grids
83
83
  * FLEXBOX.............Crudely emulate flexbox
84
84
  * COLUMNS.............CSS3 columns
@@ -87,6 +87,7 @@
87
87
  * PAGINATION..........Very stripped back, basic paginator
88
88
  * BREADCRUMB..........Simple breadcrumb trail object
89
89
  * MEDIA...............Media object
90
+ * MARGINALIA..........Simple marginalia content
90
91
  * ISLAND..............Boxed off content
91
92
  * BLOCK-LIST..........Blocky lists of content
92
93
  * MATRIX..............Gridded lists
@@ -102,7 +103,7 @@
102
103
  * RULES...............Horizontal rules
103
104
  * STATS...............Simple stats object
104
105
  * GREYBOX.............Wireframing styles
105
- *
106
+ *
106
107
  * WIDTHS..............Width classes for use alongside the grid system etc.
107
108
  * PUSH................Push classes for manipulating grids
108
109
  * PULL................Pull classes for manipulating grids
@@ -124,9 +125,9 @@
124
125
  * inuit.css to style everything we need for a base. Any custom styles SHOULD
125
126
  * NOT be added or modified in inuit.css directly, but added via your theme
126
127
  * stylesheet as per the open/closed principle:
127
- *
128
+ *
128
129
  * csswizardry.com/2012/06/the-open-closed-principle-applied-to-css
129
- *
130
+ *
130
131
  * Try not to edit any CSS beyond this point; if you find you need to do so
131
132
  * it is a failing of the framework so please tweet at @inuitcss.
132
133
  */
@@ -14,6 +14,7 @@
14
14
  @import "partials/objects/island";
15
15
  @import "partials/objects/link-complex";
16
16
  @import "partials/objects/lozenges";
17
+ @import "partials/objects/marginalia";
17
18
  @import "partials/objects/matrix";
18
19
  @import "partials/objects/media";
19
20
  @import "partials/objects/nav";
@@ -1,10 +1,53 @@
1
1
  /*------------------------------------*\
2
2
  $IMAGES
3
3
  \*------------------------------------*/
4
+ /**
5
+ * Demo: jsfiddle.net/inuitcss/yMtur
6
+ */
4
7
  img{
5
8
  max-width:100%;
6
9
  height:auto;
7
10
  }
11
+
12
+
13
+ /**
14
+ * Image placement variations.
15
+ */
16
+ .img--right{
17
+ float:right;
18
+ margin-bottom:$base-spacing-unit;
19
+ margin-left:$base-spacing-unit;
20
+ }
21
+ .img--left{
22
+ float:left;
23
+ margin-right:$base-spacing-unit;
24
+ margin-bottom:$base-spacing-unit;
25
+ }
26
+ .img--center{
27
+ display:block;
28
+ margin-right:auto;
29
+ margin-bottom:$base-spacing-unit;
30
+ margin-left:auto;
31
+ }
32
+
33
+
34
+ /**
35
+ * Keep your images on your baseline.
36
+ */
37
+ .img--short{
38
+ height:5 * $base-spacing-unit;
39
+ }
40
+ .img--medium{
41
+ height:10 * $base-spacing-unit;
42
+ }
43
+ .img--tall{
44
+ height:15 * $base-spacing-unit;
45
+ }
46
+
47
+
48
+ /**
49
+ * Images in `figure` elements.
50
+ */
8
51
  figure > img{
9
52
  display:block;
10
- }
53
+ }
@@ -0,0 +1,48 @@
1
+ /*------------------------------------*\
2
+ $MARGINALIA
3
+ \*------------------------------------*/
4
+ /**
5
+ * Marginalia are, per definition, notes in the margin of a document. The
6
+ * `marginalia__body` class can be applied to all kinds of content, like text or
7
+ * images, and is joined by a width class:
8
+ *
9
+ <div class="marginalia">
10
+ <div class="marginalia__body desk-one-fifth"></div>
11
+ </div>
12
+ *
13
+ * Demo: jsfiddle.net/inuitcss/AemkH
14
+ *
15
+ */
16
+ .marginalia{
17
+ @include font-size($milli-size);
18
+ }
19
+
20
+ /**
21
+ * Wait for a certain breakpoint to trigger ‘proper' marginalia. Up to this point,
22
+ * marginalia are inline with the other text.
23
+ */
24
+ @media (min-width: $desk-start){
25
+ .marginalia{
26
+ position:relative;
27
+ }
28
+
29
+ .marginalia__body,
30
+ .marginalia__body--right{
31
+ position:absolute;
32
+ }
33
+
34
+ .marginalia__body{
35
+ right:100%;
36
+ padding-right:$base-spacing-unit;
37
+ text-align:right;
38
+ }
39
+
40
+ /**
41
+ * Align marginalia to the right of the text.
42
+ */
43
+ .marginalia__body--right{
44
+ left:100%;
45
+ padding-left:$base-spacing-unit;
46
+ text-align:left;
47
+ }
48
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-inuit
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.2
4
+ version: 4.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -91,6 +91,7 @@ files:
91
91
  - stylesheets/partials/objects/_island.scss
92
92
  - stylesheets/partials/objects/_link-complex.scss
93
93
  - stylesheets/partials/objects/_lozenges.scss
94
+ - stylesheets/partials/objects/_marginalia.scss
94
95
  - stylesheets/partials/objects/_matrix.scss
95
96
  - stylesheets/partials/objects/_media.scss
96
97
  - stylesheets/partials/objects/_nav.scss