pusher-chameleon 1.1.0 → 1.2.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: 89eb1c555932c7bb562e706156080e1d10b74d03
4
- data.tar.gz: c7d4059c992b55504249277bd7454358ffb4d977
3
+ metadata.gz: 17854956fbb26884b5f003e61acf64530a732791
4
+ data.tar.gz: 1a9f6f900e891506192ac2def8f913bd6ef8b7e8
5
5
  SHA512:
6
- metadata.gz: b8aa62d956fe327c4d69272b638cc349bacffe83e19d72c6a897b4ca32167acc381c381c1141002b60a8964ab419f55d283f4ab4c5b91aa74d362df30f001c54
7
- data.tar.gz: e7f602e88ab4c900d9fee04f553ccbabc052c538dfbb8eed062736814a1d370186ec81a95a90a7127badc29329d896f775e65ebfa5da96a13d3ad581aba46393
6
+ metadata.gz: 99daac5953834ab58e94d5f895bf408d2733c120027ecb8d89fb3b148c09f8d6c90680f1f4ee7fc4552a0e81fa513cb6fb73e50525b321724e64466846410221
7
+ data.tar.gz: 032c1d68c58b09646bbaac84bd65604d5219e36715804e95d8e61ebaae7f4bdb0d9845c376df6d27e1c79a4b180f9ac488d5c4715b4d505b8a17cb867737e3d3
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
1
  ![Pusher Chameleon logo](https://raw.githubusercontent.com/pusher/chameleon/master/logo.png)
2
2
 
3
-
4
3
  # Pusher Chameleon
5
4
 
6
5
  [![npm version](https://badge.fury.io/js/pusher-chameleon.svg)](https://badge.fury.io/js/pusher-chameleon) [![Gem Version](https://badge.fury.io/rb/pusher-chameleon.svg)](https://badge.fury.io/rb/pusher-chameleon)
@@ -11,7 +10,7 @@ Chameleon is a library of front-end assets that can be used across Pusher. The g
11
10
 
12
11
  Chameleon can currently be imported as both a node module, and a ruby gem. Then, import the base chameleon stylesheet in to your project. This includes all of the functions, variables, and mixins that are required:
13
12
 
14
- ```sass
13
+ ```scss
15
14
  // For a node project
16
15
  @import "~pusher-chameleon/stylesheets/chameleon.scss";
17
16
 
@@ -21,13 +20,12 @@ Chameleon can currently be imported as both a node module, and a ruby gem. Then,
21
20
 
22
21
  You can pick and choose which components you require, so these will need to be explicitly included:
23
22
 
24
- ```sass
23
+ ```scss
25
24
  @include CHAMELEON-grid;
26
25
  @include CHAMELEON-typography;
27
26
  ...
28
27
  ```
29
28
 
30
-
31
29
  ## Publishing a new version
32
30
 
33
31
  Follow these steps to publish a new version of Chameleon:
@@ -38,6 +36,9 @@ Follow these steps to publish a new version of Chameleon:
38
36
 
39
37
  This rake task will publish a new version of Chameleon to the npm registry, push to RubyGems, and build a new version of the docs.
40
38
 
39
+ ## Fonts
40
+ Our fonts are hosted on a CDN (see [global.scss](stylesheets/_global.scss)). If you're adding Chameleon in to a new project that sits on a new domain, then this will need to be added to the CORS config in the AWS S3 bucket.
41
+
41
42
  ## Documentation
42
43
 
43
44
  [Read the Docs](https://pusher.github.io/chameleon)
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pusher-chameleon",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "A collection of front-end patterns used across Pusher.",
5
5
  "repository": "https://github.com/pusher/chameleon",
6
6
  "keywords": [
@@ -75,7 +75,7 @@ $global-font-size: 100% !default;
75
75
  $global-font-smoothing: false !default;
76
76
 
77
77
  $font-family-primary: 'pusher-realtime-text', Helmet, Freesans, sans-serif !default;
78
- $font-family-secondary: 'proxima-nova', Helmet, Freesans, sans-serif !default;
78
+ $font-family-secondary: 'pusher-proxima-nova', Helmet, Freesans, sans-serif !default;
79
79
  $font-family-monospace: Menlo, Consolas, Monaco, 'Andale Mono', monospace !default;
80
80
 
81
81
  $syntax-highlighting-style: 'light' !default;
@@ -0,0 +1,57 @@
1
+ @font-face {
2
+ font-family: 'pusher-proxima-nova';
3
+ font-weight: 700;
4
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-bold.woff2') format('woff2'),
5
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-bold.woff') format('woff'),
6
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-bold.ttf') format('truetype');
7
+ }
8
+
9
+ @font-face {
10
+ font-family: 'pusher-proxima-nova';
11
+ font-weight: 600;
12
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-semibold.woff2') format('woff2'),
13
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-semibold.woff') format('woff'),
14
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-semibold.ttf') format('truetype');
15
+ }
16
+
17
+ @font-face {
18
+ font-family: 'pusher-proxima-nova';
19
+ font-weight: 500;
20
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-medium.woff2') format('woff2'),
21
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-medium.woff') format('woff'),
22
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-medium.ttf') format('truetype');
23
+ }
24
+
25
+ @font-face {
26
+ font-family: 'pusher-proxima-nova';
27
+ font-weight: 400;
28
+ font-style: italic;
29
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-regular-italic.woff2') format('woff2'),
30
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-regular-italic.woff') format('woff'),
31
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-regular-italic.ttf') format('truetype');
32
+ }
33
+
34
+ @font-face {
35
+ font-family: 'pusher-proxima-nova';
36
+ font-weight: 400;
37
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-regular.woff2') format('woff2'),
38
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-regular.woff') format('woff'),
39
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-regular.ttf') format('truetype');
40
+ }
41
+
42
+ @font-face {
43
+ font-family: 'pusher-proxima-nova';
44
+ font-weight: 300;
45
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-light.woff2') format('woff2'),
46
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-light.woff') format('woff'),
47
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-light.ttf') format('truetype');
48
+ }
49
+
50
+ @font-face {
51
+ font-family: 'pusher-proxima-nova';
52
+ font-weight: 300;
53
+ font-style: italic;
54
+ src: url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-light-italic.woff2') format('woff2'),
55
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-light-italic.woff') format('woff'),
56
+ url('#{$cdn-font-url}/fonts/proxima-nova/proxima-nova-light-italic.ttf') format('truetype');
57
+ }
@@ -0,0 +1,44 @@
1
+ // Realtime Text Light
2
+ @font-face {
3
+ font-family: 'pusher-realtime-text';
4
+ font-weight: 300;
5
+ src: url('#{$cdn-font-url}/fonts/realtime-text/light.woff2') format('woff2'),
6
+ url('#{$cdn-font-url}/fonts/realtime-text/light.woff') format('woff'),
7
+ url('#{$cdn-font-url}/fonts/realtime-text/light.ttf') format('truetype');
8
+ }
9
+
10
+ // Realtime Text Regular
11
+ @font-face {
12
+ font-family: 'pusher-realtime-text';
13
+ font-weight: 400;
14
+ src: url('#{$cdn-font-url}/fonts/realtime-text/regular.woff2') format('woff2'),
15
+ url('#{$cdn-font-url}/fonts/realtime-text/regular.woff') format('woff'),
16
+ url('#{$cdn-font-url}/fonts/realtime-text/regular.ttf') format('truetype');
17
+ }
18
+
19
+ // Realtime Text Semibold
20
+ @font-face {
21
+ font-family: 'pusher-realtime-text';
22
+ font-weight: 500;
23
+ src: url('#{$cdn-font-url}/fonts/realtime-text/semibold.woff2') format('woff2'),
24
+ url('#{$cdn-font-url}/fonts/realtime-text/semibold.woff') format('woff'),
25
+ url('#{$cdn-font-url}/fonts/realtime-text/semibold.ttf') format('truetype');
26
+ }
27
+
28
+ // Realtime Text Bold
29
+ @font-face {
30
+ font-family: 'pusher-realtime-text';
31
+ font-weight: 600;
32
+ src: url('#{$cdn-font-url}/fonts/realtime-text/bold.woff2') format('woff2'),
33
+ url('#{$cdn-font-url}/fonts/realtime-text/bold.woff') format('woff'),
34
+ url('#{$cdn-font-url}/fonts/realtime-text/bold.ttf') format('truetype');
35
+ }
36
+
37
+ // Realtime Text Black
38
+ @font-face {
39
+ font-family: 'pusher-realtime-text';
40
+ font-weight: 700;
41
+ src: url('#{$cdn-font-url}/fonts/realtime-text/black.woff2') format('woff2'),
42
+ url('#{$cdn-font-url}/fonts/realtime-text/black.woff') format('woff'),
43
+ url('#{$cdn-font-url}/fonts/realtime-text/black.ttf') format('truetype');
44
+ }
@@ -45,7 +45,6 @@
45
45
  }
46
46
 
47
47
  .title--delta {
48
- @extend %font-family-secondary;
49
48
  font-size: rem-calc(18px);
50
49
  font-weight: 400;
51
50
  line-height: 1.4em;
@@ -53,7 +52,6 @@
53
52
  }
54
53
 
55
54
  .title--epsilon {
56
- @extend %font-family-primary;
57
55
  font-size: rem-calc(16px);
58
56
  font-weight: 500;
59
57
  line-height: 1.1em;
@@ -1,4 +1,5 @@
1
- @import 'import';
1
+ @import 'import_realtime';
2
+ @import 'import_proxima';
2
3
  @import 'base';
3
4
  @import 'titles';
4
5
  @import 'helpers';
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pusher-chameleon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Pate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -158,7 +158,8 @@ files:
158
158
  - stylesheets/grid/_size.scss
159
159
  - stylesheets/typography/_base.scss
160
160
  - stylesheets/typography/_helpers.scss
161
- - stylesheets/typography/_import.scss
161
+ - stylesheets/typography/_import_proxima.scss
162
+ - stylesheets/typography/_import_realtime.scss
162
163
  - stylesheets/typography/_syntax_highlighting.scss
163
164
  - stylesheets/typography/_syntax_highlighting_dark.scss
164
165
  - stylesheets/typography/_syntax_highlighting_light.scss
@@ -1,54 +0,0 @@
1
- // Realtime Text Light
2
- @font-face {
3
- font-family: 'pusher-realtime-text';
4
- font-weight: 300;
5
- src: url('#{$cdn-font-url}/fonts/realtime_text_light.eot');
6
- src: url('#{$cdn-font-url}/fonts/realtime_text_light.woff2') format('woff2'),
7
- url('#{$cdn-font-url}/fonts/realtime_text_light.woff') format('woff'),
8
- url('#{$cdn-font-url}/fonts/realtime_text_light.ttf') format('truetype'),
9
- url('#{$cdn-font-url}/fonts/realtime_text_light.eot?#iefix') format('embedded-opentype');
10
- }
11
-
12
- // Realtime Text Regular
13
- @font-face {
14
- font-family: 'pusher-realtime-text';
15
- font-weight: 400;
16
- src: url('#{$cdn-font-url}/fonts/realtime_text_regular.eot');
17
- src: url('#{$cdn-font-url}/fonts/realtime_text_regular.woff2') format('woff2'),
18
- url('#{$cdn-font-url}/fonts/realtime_text_regular.woff') format('woff'),
19
- url('#{$cdn-font-url}/fonts/realtime_text_regular.ttf') format('truetype'),
20
- url('#{$cdn-font-url}/fonts/realtime_text_regular.eot?#iefix') format('embedded-opentype');
21
- }
22
-
23
- // Realtime Text Semibold
24
- @font-face {
25
- font-family: 'pusher-realtime-text';
26
- font-weight: 500;
27
- src: url('#{$cdn-font-url}/fonts/realtime_text_semibold.eot');
28
- src: url('#{$cdn-font-url}/fonts/realtime_text_semibold.woff2') format('woff2'),
29
- url('#{$cdn-font-url}/fonts/realtime_text_semibold.woff') format('woff'),
30
- url('#{$cdn-font-url}/fonts/realtime_text_semibold.ttf') format('truetype'),
31
- url('#{$cdn-font-url}/fonts/realtime_text_semibold.eot?#iefix') format('embedded-opentype');
32
- }
33
-
34
- // Realtime Text Bold
35
- @font-face {
36
- font-family: 'pusher-realtime-text';
37
- font-weight: 600;
38
- src: url('#{$cdn-font-url}/fonts/realtime_text_bold.eot');
39
- src: url('#{$cdn-font-url}/fonts/realtime_text_bold.woff2') format('woff2'),
40
- url('#{$cdn-font-url}/fonts/realtime_text_bold.woff') format('woff'),
41
- url('#{$cdn-font-url}/fonts/realtime_text_bold.ttf') format('truetype'),
42
- url('#{$cdn-font-url}/fonts/realtime_text_bold.eot?#iefix') format('embedded-opentype');
43
- }
44
-
45
- // Realtime Text Black
46
- @font-face {
47
- font-family: 'pusher-realtime-text';
48
- font-weight: 700;
49
- src: url('#{$cdn-font-url}/fonts/realtime_text_black.eot');
50
- src: url('#{$cdn-font-url}/fonts/realtime_text_black.woff2') format('woff2'),
51
- url('#{$cdn-font-url}/fonts/realtime_text_black.woff') format('woff'),
52
- url('#{$cdn-font-url}/fonts/realtime_text_black.ttf') format('truetype'),
53
- url('#{$cdn-font-url}/fonts/realtime_text_black.eot?#iefix') format('embedded-opentype');
54
- }