illusion 2.0.0 → 2.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cca82603eaa91891f551258fac1dc87371750e78
4
- data.tar.gz: f8451921806f3364d7599440aca4bf4064077651
3
+ metadata.gz: 56c1253b2bd38fff4237e79487644c7debf0493e
4
+ data.tar.gz: 0001b835d74e40d0d1eac0201f36f9e8a731902a
5
5
  SHA512:
6
- metadata.gz: f2c1edd093916c3feaf59a9bbab38167183fff866b5c7dfa5ee9bb9ea6b5ab23f5efb9cfe06f4347b19f77bf7817d9623cf968bfbbb931b13559785b586f52d2
7
- data.tar.gz: fbb8222884a0599d0ee38f78b06bff473465e473afcee28be25371115e0408c20082ab0d8e0abdcc0989b592a369b8e6a308761c37615a0cbfffdb7bf2771a3f
6
+ metadata.gz: be1c2973844c96c16248d30a60c52be2cb7a0d7c805d83290d5bcfd57fe0281dc6c3c4a434772c133ce4969478f373b2343489ec965d0d632c4ce80d1ff6c15e
7
+ data.tar.gz: c3bebb3bc449e5b00b39741ad53ebf3e73feb0c03b397e1f25127ca6e6b821b6b72bbd23405ad5794236452045beca5d81e126af55d50167c9641fd6af46899c
@@ -4,6 +4,7 @@
4
4
  @import "illusion/placeholders/placeholders";
5
5
 
6
6
  @import "illusion/setup/boxsizing";
7
+ @import "illusion/setup/image";
7
8
 
8
9
  @import "illusion/variables/variables";
9
10
 
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Media object
3
+ *
4
+ * @group molecules
5
+ */
6
+ .media,
7
+ .media_responsive {
8
+ @extend %clearfix;
9
+ }
10
+
11
+ // Media behaviour
12
+ @mixin media__visual {
13
+ float: left;
14
+ margin-right: 1em;
15
+
16
+ &--right {
17
+ float: right;
18
+ margin-right: 0;
19
+ margin-left: 1em;
20
+ }
21
+
22
+ img {
23
+ display: block;
24
+ }
25
+ }
26
+
27
+ .media {
28
+ .media__visual {
29
+ @include media__visual;
30
+ }
31
+
32
+ &_responsive {
33
+ .media__visual,
34
+ .media__visual--right {
35
+ margin-left: auto;
36
+ margin-right: auto;
37
+ margin-bottom: 1em;
38
+ text-align: center;
39
+
40
+ img {
41
+ display: inline-block;
42
+ }
43
+ }
44
+
45
+ @media screen and (min-width: $alpha) {
46
+ .media__visual {
47
+ @include media__visual;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ .media__body {
54
+ overflow: hidden;
55
+ _overflow: visible;
56
+ zoom: 1;
57
+ }
@@ -14,4 +14,17 @@
14
14
  &:after {
15
15
  clear: both;
16
16
  }
17
+ }
18
+
19
+ /**
20
+ * Placeholder you can extend on for resetting elements
21
+ *
22
+ * @group placeholders
23
+ */
24
+ %reset {
25
+ margin: 0;
26
+ padding: 0;
27
+ list-style: none;
28
+ border: none;
29
+ background: transparent;
17
30
  }
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @group setup
5
5
  */
6
- * {
6
+ *, *:before, *:after {
7
7
  -webkit-box-sizing: border-box;
8
8
  -moz-box-sizing: border-box;
9
9
  box-sizing: border-box;
@@ -0,0 +1,4 @@
1
+ img {
2
+ max-width: 100%;
3
+ height: auto;
4
+ }
@@ -1,51 +1,100 @@
1
+ /**
2
+ * represents 399px based on a 16px body font size
3
+ *
4
+ * @group Breakpoint
5
+ */
6
+ $alpha--min: 24.9375em;
7
+
1
8
  /**
2
9
  * represents 400px based on a 16px body font size
3
10
  *
4
11
  * @group Breakpoint
5
12
  */
6
- $breakpoint-alpha: 25em;
13
+ $alpha: 25em;
14
+
15
+ /**
16
+ * represents 599px based on a 16px body font size
17
+ *
18
+ * @group Breakpoint
19
+ */
20
+ $beta--min: 37.4375em;
7
21
 
8
22
  /**
9
23
  * represents 600px based on a 16px body font size
10
24
  *
11
25
  * @group Breakpoint
12
26
  */
13
- $breakpoint-beta: 37.5em;
27
+ $beta: 37.5em;
28
+
29
+ /**
30
+ * represents 767px based on a 16px body font size
31
+ *
32
+ * @group Breakpoint
33
+ */
34
+ $charlie--min: 47.9375em;
14
35
 
15
36
  /**
16
37
  * represents 768px based on a 16px body font size
17
38
  *
18
39
  * @group Breakpoint
19
40
  */
20
- $breakpoint-charlie: 48em;
41
+ $charlie: 48em;
42
+
43
+ /**
44
+ * represents 1023px based on a 16px body font size
45
+ *
46
+ * @group Breakpoint
47
+ */
48
+ $delta--min: 63.9375em;
21
49
 
22
50
  /**
23
51
  * represents 1024px based on a 16px body font size
24
52
  *
25
53
  * @group Breakpoint
26
54
  */
27
- $breakpoint-delta: 64em;
55
+ $delta: 64em;
56
+
57
+ /**
58
+ * represents 1199px based on a 16px body font size
59
+ *
60
+ * @group Breakpoint
61
+ */
62
+ $echo--min: 74.9375em;
28
63
 
29
64
  /**
30
65
  * represents 1200px based on a 16px body font size
31
66
  *
32
67
  * @group Breakpoint
33
68
  */
34
- $breakpoint-echo: 75em;
69
+ $echo: 75em;
70
+
71
+ /**
72
+ * represents 1439px based on a 16px body font size
73
+ *
74
+ * @group Breakpoint
75
+ */
76
+ $foxtrot--min: 89.9375em;
35
77
 
36
78
  /**
37
79
  * represents 1440px based on a 16px body font size
38
80
  *
39
81
  * @group Breakpoint
40
82
  */
41
- $breakpoint-foxtrot: 90em;
83
+ $foxtrot: 90em;
84
+
85
+ /**
86
+ * represents 1599px based on a 16px body font size
87
+ *
88
+ * @group Breakpoint
89
+ */
90
+ $golf--min: 99.9375em;
42
91
 
43
92
  /**
44
93
  * represents 1600px based on a 16px body font size
45
94
  *
46
95
  * @group Breakpoint
47
96
  */
48
- $breakpoint-golf: 100em;
97
+ $golf: 100em;
49
98
 
50
99
  /**
51
100
  * The base font size for your project
@@ -59,4 +108,12 @@ $base-font-size: 16px;
59
108
  *
60
109
  * @group setup
61
110
  */
62
- $base-line-height: 1.5em;
111
+ $base-line-height: 1.5em;
112
+
113
+
114
+ /**
115
+ * A standard 1.5em spacing
116
+ *
117
+ * @group setup
118
+ */
119
+ $base-spacing: 1.5em;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: illusion
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Janssens
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-18 00:00:00.000000000 Z
11
+ date: 2014-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,8 +136,10 @@ files:
136
136
  - sass/_illusion.scss
137
137
  - sass/illusion/mixins/_basics.scss
138
138
  - sass/illusion/mixins/_breakpoint.scss
139
+ - sass/illusion/molecules/_media-object.scss
139
140
  - sass/illusion/placeholders/_placeholders.scss
140
141
  - sass/illusion/setup/_boxsizing.scss
142
+ - sass/illusion/setup/_image.scss
141
143
  - sass/illusion/variables/_variables.scss
142
144
  - sass/illusion/vendor/_normalize.scss
143
145
  - sass/illusion/vendor/_responsivemenu.scss