pusher-chameleon 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/.ruby-version +1 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +23 -0
  5. data/README.md +17 -0
  6. data/docs/.gitignore +4 -0
  7. data/docs/Gemfile +10 -0
  8. data/docs/Gemfile.lock +72 -0
  9. data/docs/README.md +15 -0
  10. data/docs/Rakefile +40 -0
  11. data/docs/_config.production.yml +18 -0
  12. data/docs/_config.yml +39 -0
  13. data/docs/_includes/footer.html +38 -0
  14. data/docs/_includes/head.html +15 -0
  15. data/docs/_includes/header.html +27 -0
  16. data/docs/_includes/icon-github.html +1 -0
  17. data/docs/_includes/icon-github.svg +3 -0
  18. data/docs/_includes/logo-pusher.svg +4 -0
  19. data/docs/_includes/sidebar.html +33 -0
  20. data/docs/_layouts/default.html +53 -0
  21. data/docs/_layouts/page.html +14 -0
  22. data/docs/_layouts/post.html +15 -0
  23. data/docs/_plugins/chameleon_version.rb +11 -0
  24. data/docs/_plugins/copy_images_directory.rb +22 -0
  25. data/docs/_plugins/ext.rb +2 -0
  26. data/docs/_posts/2016-03-16-getting-started.md +28 -0
  27. data/docs/_posts/2016-03-16-introduction.md +24 -0
  28. data/docs/_posts/2016-03-17-buttons.md +61 -0
  29. data/docs/_posts/2016-03-17-colors.md +139 -0
  30. data/docs/_posts/2016-03-17-flex.md +24 -0
  31. data/docs/_posts/2016-03-17-forms.md +66 -0
  32. data/docs/_posts/2016-03-17-visibility.md +28 -0
  33. data/docs/_posts/2016-04-04-typography.md +111 -0
  34. data/docs/_posts/2016-04-05-syntax-highlighting.md +28 -0
  35. data/docs/_posts/2016-05-08-alerts.md +50 -0
  36. data/docs/_posts/2016-05-12-labels.md +22 -0
  37. data/docs/_posts/2016-05-13-tooltips.md +33 -0
  38. data/docs/_sass/_base.scss +36 -0
  39. data/docs/_sass/_chameleon_imports.scss +20 -0
  40. data/docs/_sass/_layout.scss +136 -0
  41. data/docs/_sass/_typography.scss +41 -0
  42. data/docs/_sass/layout/_aside.scss +151 -0
  43. data/docs/about.md +15 -0
  44. data/docs/autoprefixer.yml +4 -0
  45. data/docs/css/main.scss +11 -0
  46. data/docs/feed.xml +30 -0
  47. data/docs/index.html +23 -0
  48. data/images/ui_icons/alert_beta.svg +3 -0
  49. data/images/ui_icons/alert_info.svg +3 -0
  50. data/images/ui_icons/alert_tick.svg +6 -0
  51. data/images/ui_icons/alert_warning.svg +6 -0
  52. data/images/ui_icons/chevron_down.svg +3 -0
  53. data/images/ui_icons/github--active.svg +6 -0
  54. data/images/ui_icons/github.svg +6 -0
  55. data/images/ui_icons/google--active.svg +6 -0
  56. data/images/ui_icons/google.svg +10 -0
  57. data/images/ui_icons/plus.svg +3 -0
  58. data/javascripts/chameleon/code_box.js +14 -0
  59. data/javascripts/chameleon/pusher_featurette.js +52 -0
  60. data/javascripts/chameleon/pusher_text_cycler.js +60 -0
  61. data/lib/pusher-chameleon.rb +71 -0
  62. data/lib/pusher-chameleon/engine.rb +13 -0
  63. data/lib/pusher-chameleon/version.rb +8 -0
  64. data/package.json +24 -0
  65. data/pusher-chameleon.gemspec +21 -0
  66. data/stylesheets/.gitkeep +0 -0
  67. data/stylesheets/_base.scss +400 -0
  68. data/stylesheets/_global.scss +96 -0
  69. data/stylesheets/chameleon.scss +30 -0
  70. data/stylesheets/components/_alert.scss +102 -0
  71. data/stylesheets/components/_code_box.scss +84 -0
  72. data/stylesheets/components/_flex_aligners.scss +38 -0
  73. data/stylesheets/components/_label.scss +41 -0
  74. data/stylesheets/components/_signpost.scss +150 -0
  75. data/stylesheets/components/_spacers.scss +11 -0
  76. data/stylesheets/components/_statistic.scss +62 -0
  77. data/stylesheets/components/_tooltip.scss +65 -0
  78. data/stylesheets/components/_visibility.scss +117 -0
  79. data/stylesheets/forms/_base.scss +47 -0
  80. data/stylesheets/forms/_buttons.scss +242 -0
  81. data/stylesheets/forms/_checkbox.scss +31 -0
  82. data/stylesheets/forms/_field.scss +11 -0
  83. data/stylesheets/forms/_fieldset.scss +18 -0
  84. data/stylesheets/forms/_forms.scss +21 -0
  85. data/stylesheets/forms/_input.scss +14 -0
  86. data/stylesheets/forms/_range.scss +110 -0
  87. data/stylesheets/forms/_select.scss +15 -0
  88. data/stylesheets/forms/_textarea.scss +11 -0
  89. data/stylesheets/grid/_classes.scss +152 -0
  90. data/stylesheets/grid/_column.scss +126 -0
  91. data/stylesheets/grid/_flex-grid.scss +268 -0
  92. data/stylesheets/grid/_grid.scss +60 -0
  93. data/stylesheets/grid/_gutter.scss +34 -0
  94. data/stylesheets/grid/_layout.scss +51 -0
  95. data/stylesheets/grid/_position.scss +73 -0
  96. data/stylesheets/grid/_row.scss +95 -0
  97. data/stylesheets/grid/_size.scss +24 -0
  98. data/stylesheets/typography/_base.scss +60 -0
  99. data/stylesheets/typography/_helpers.scss +66 -0
  100. data/stylesheets/typography/_import.scss +54 -0
  101. data/stylesheets/typography/_syntax_highlighting.scss +168 -0
  102. data/stylesheets/typography/_syntax_highlighting_dark.scss +73 -0
  103. data/stylesheets/typography/_syntax_highlighting_light.scss +73 -0
  104. data/stylesheets/typography/_titles.scss +69 -0
  105. data/stylesheets/typography/_typography.scss +12 -0
  106. data/stylesheets/util/_breakpoint.scss +273 -0
  107. data/stylesheets/util/_color.scss +42 -0
  108. data/stylesheets/util/_flex.scss +68 -0
  109. data/stylesheets/util/_mixins.scss +233 -0
  110. data/stylesheets/util/_selector.scss +40 -0
  111. data/stylesheets/util/_unit.scss +90 -0
  112. data/stylesheets/util/_url_helper.scss +30 -0
  113. data/stylesheets/util/_util.scss +13 -0
  114. data/stylesheets/util/_value.scss +107 -0
  115. metadata +199 -0
@@ -0,0 +1,151 @@
1
+ .docs__aside {
2
+ height: auto;
3
+ position: relative;
4
+ width: 100%;
5
+ background-color: #fff;
6
+ top: 0;
7
+
8
+ @media #{$medium-up} {
9
+ height: 100vh;
10
+ position: fixed;
11
+ left: 0;
12
+ top: 0;
13
+ width: 280px;
14
+ border-right: 1px solid darken($color-snow, 10%);
15
+ }
16
+
17
+ h5 {
18
+ font-size: 17px;
19
+ font-weight: 600;
20
+ color: #232323;
21
+ margin-bottom: 5px;
22
+ }
23
+
24
+
25
+ a {
26
+ text-decoration: none;
27
+ }
28
+
29
+ .icon {
30
+ width: 20px;
31
+ height: 20px;
32
+ display: inline;
33
+
34
+ svg {
35
+ fill: #828282;
36
+ }
37
+
38
+ &:hover {
39
+ fill: #212121;
40
+ }
41
+ }
42
+ }
43
+
44
+ .docs__logo {
45
+ width: 100%;
46
+ height: 120px;
47
+ background-color: $color-primary;
48
+ display: flex;
49
+ align-items: center;
50
+ justify-content: center;
51
+
52
+ &__title {
53
+ @extend %font-family-primary;
54
+ font-weight: 600;
55
+ color: #fff;
56
+ font-size: rem-calc(22px);
57
+ letter-spacing: -1px;
58
+ }
59
+
60
+ &__version {
61
+ font-size: rem-calc(12px);
62
+ color: #fff;
63
+ display: block;
64
+ margin-top: 5px;
65
+ text-transform: uppercase;
66
+ font-weight: 600;
67
+
68
+ svg {
69
+ position: relative;
70
+ top: 1px;
71
+ }
72
+ }
73
+ }
74
+
75
+ .docs__nav {
76
+ width: 100%;
77
+ background-color: $color-snow;
78
+ }
79
+
80
+ .docs__nav__item {
81
+ width: 100%;
82
+ background: #fff;
83
+ height: 60px;
84
+ overflow: hidden;
85
+ border-bottom: 1px solid darken($color-snow, 10%);
86
+
87
+ &.is-active {
88
+ height: auto;
89
+ }
90
+ }
91
+
92
+ .docs__nav__item__title {
93
+ width: 100%;
94
+ height: 60px;
95
+ background-color: #fff;
96
+ position: relative;
97
+ padding: 16px 0 16px 20px;
98
+ border-bottom: 1px solid darken($color-snow, 10%);
99
+ cursor: pointer;
100
+ font-size: rem-calc(18px);
101
+ font-weight: 500;
102
+
103
+ &:after {
104
+ width: 20px;
105
+ height: 20px;
106
+ background: file-url('ui_icons/chevron_down.svg') no-repeat center center;
107
+ position: absolute;
108
+ right: 15px;
109
+ top: 20px;
110
+ content: "";
111
+ display: block;
112
+ opacity: .2;
113
+
114
+ .docs__nav__item.is-active & {
115
+ transform: rotate(180deg);
116
+ }
117
+ }
118
+ }
119
+
120
+ .docs__nav__item__content {
121
+ background-color: $color-snow;
122
+ padding: 20px 0;
123
+
124
+ ul {
125
+ margin: 0;
126
+ padding: 0;
127
+ width: 100%;
128
+ list-style: none;
129
+
130
+ li {
131
+ padding: 5px 0 5px 40px;
132
+ font-size: rem-calc(17px);
133
+ font-weight: 400;
134
+ color: $color-silver;
135
+ line-height: 1.2em;
136
+
137
+ a {
138
+ color: inherit;
139
+ }
140
+
141
+ &.is-active a {
142
+ color: $color-primary;
143
+ font-weight: 600;
144
+ }
145
+
146
+ &:first-of-type {
147
+ display: none;
148
+ }
149
+ }
150
+ }
151
+ }
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: page
3
+ title: About
4
+ permalink: /about/
5
+ ---
6
+
7
+ This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
8
+
9
+ You can find the source code for the Jekyll new theme at:
10
+ {% include icon-github.html username="jglovier" %} /
11
+ [jekyll-new](https://github.com/jglovier/jekyll-new)
12
+
13
+ You can find the source code for Jekyll at
14
+ {% include icon-github.html username="jekyll" %} /
15
+ [jekyll](https://github.com/jekyll/jekyll)
@@ -0,0 +1,4 @@
1
+ browsers:
2
+ - "last 40 versions"
3
+ - "> 5%"
4
+ - "Explorer 7"
@@ -0,0 +1,11 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+ @charset "utf-8";
5
+
6
+ @import
7
+ "chameleon_imports",
8
+ "base",
9
+ "layout",
10
+ "typography"
11
+ ;
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: null
3
+ ---
4
+ <?xml version="1.0" encoding="UTF-8"?>
5
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
6
+ <channel>
7
+ <title>{{ site.title | xml_escape }}</title>
8
+ <description>{{ site.description | xml_escape }}</description>
9
+ <link>{{ site.url }}{{ site.baseurl }}/</link>
10
+ <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
11
+ <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
12
+ <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
13
+ <generator>Jekyll v{{ jekyll.version }}</generator>
14
+ {% for post in site.posts limit:10 %}
15
+ <item>
16
+ <title>{{ post.title | xml_escape }}</title>
17
+ <description>{{ post.content | xml_escape }}</description>
18
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
19
+ <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
20
+ <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
21
+ {% for tag in post.tags %}
22
+ <category>{{ tag | xml_escape }}</category>
23
+ {% endfor %}
24
+ {% for cat in post.categories %}
25
+ <category>{{ cat | xml_escape }}</category>
26
+ {% endfor %}
27
+ </item>
28
+ {% endfor %}
29
+ </channel>
30
+ </rss>
@@ -0,0 +1,23 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+
7
+ <h1 class="page-heading">Posts</h1>
8
+
9
+ <ul class="post-list">
10
+ {% for post in site.posts %}
11
+ <li>
12
+ <span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
13
+
14
+ <h2>
15
+ <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
16
+ </h2>
17
+ </li>
18
+ {% endfor %}
19
+ </ul>
20
+
21
+ <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
22
+
23
+ </div>
@@ -0,0 +1,3 @@
1
+ <svg width="16" height="18" viewBox="5 1 51 58" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <path d="M54.032,48.061 C48.675,39.322 39.952,22.701 38.808,20.515 L38.648,2.496 C38.643,1.881 38.143,1.386 37.528,1.386 L22.348,1.386 C21.73,1.386 21.228,1.887 21.228,2.506 L21.228,20.756 L6.064,48.354 C6.045,48.387 6.028,48.422 6.013,48.458 C5.955,48.597 4.608,51.873 6.099,54.562 C6.992,56.172 8.65,57.182 11.025,57.566 C12.821,57.856 17.593,58.004 25.21,58.004 L25.21,58.004 C36.023,58.004 49.023,57.707 49.222,57.701 C49.399,57.684 53.567,57.304 55.014,54.446 C55.895,52.706 55.563,50.559 54.032,48.061 L54.032,48.061 Z M53.019,53.43 C52.29,54.876 49.894,55.393 49.104,55.464 C48.974,55.468 35.999,55.764 25.211,55.764 C15.874,55.764 12.538,55.543 11.384,55.356 C9.725,55.088 8.608,54.459 8.063,53.486 C7.168,51.884 7.934,49.705 8.061,49.371 L23.33,21.582 C23.421,21.417 23.469,21.231 23.469,21.043 L23.469,18.423 L29.458,18.423 L29.458,16.183 L23.469,16.183 L23.469,14.378 L27.04,14.378 L27.04,12.138 L23.469,12.138 L23.469,10.285 L29.458,10.285 L29.458,8.045 L23.469,8.045 L23.469,3.625 L36.418,3.625 L36.57,20.804 C36.572,20.981 36.615,21.155 36.697,21.312 C36.793,21.496 46.369,39.845 52.123,49.232 C53.219,51.019 53.521,52.432 53.019,53.43 Z M11.691,48.025 C11.691,48.025 9.545,52.318 13.402,52.753 C17.156,53.177 46.253,52.753 46.253,52.753 C46.253,52.753 49.986,52.566 48.556,49.238 C46.56,44.598 38.01,28.947 38.01,28.947 L22.238,28.947 L11.691,48.025 Z" fill="#ffffff" fill-rule="evenodd"></path>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 68 68" version="1.1">
2
+ <path d="M34,0.8 C15.7,0.8 0.8,15.7 0.8,34 C0.8,52.3 15.7,67.2 34,67.2 C52.3,67.2 67.2,52.3 67.2,34 C67.2,15.7 52.3,0.8 34,0.8 Z M34,13.7 C32,13.7 30.7,15.1 30.7,16.9 C30.7,18.7 32,20.2 33.9,20.2 L34,20.2 C36,20.2 37.3,18.7 37.3,16.9 C37.2,15.2 36,13.7 34,13.7 Z M31.5,25.4 L36.6,25.4 L36.6,53.3 L31.5,53.3 L31.5,25.4 Z M34,62.2 C18.4,62.2 5.8,49.5 5.8,34 C5.8,18.5 18.4,5.8 34,5.8 C49.6,5.8 62.2,18.4 62.2,34 C62.2,49.6 49.6,62.2 34,62.2 Z" fill="#fff"></path>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 25 25" version="1.1">
2
+ <g fill="none" stroke-width="2" stroke="#ffffff">
3
+ <polyline points="18 8.5 10.5 15.5 7 11.5"></polyline>
4
+ <circle cx="12" cy="12" r="11"></circle>
5
+ </g>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" version="1.1">
2
+ <g stroke="none" fill="#ffffff">
3
+ <path d="M12.4559031,0.265555471 C12.2786706,-0.0885184903 11.7000583,-0.0885184903 11.5228257,0.265555471 L0.0548345884,23.2438066 C-0.0254413493,23.4056989 -0.0171009921,23.5978806 0.0767280259,23.7514171 C0.173684678,23.9059981 0.341534366,24 0.521894589,24 L23.4787277,24 C23.76647,24 24,23.7660396 24,23.477767 C24,23.3440754 23.9499579,23.2208284 23.8665543,23.1289154 L12.4559031,0.265555471 Z M12,4.17391304 L20.8695652,21.9130435 L3.13043478,21.9130435 L12,4.17391304 Z M10.9565217,16.5325213 L13.0434783,16.5325213 L13.0434783,8.54782569 L10.9565217,8.54782569 L10.9565217,16.5325213 Z"></path>
4
+ <ellipse cx="12" cy="19.5" rx="1.5" ry="1.5"></ellipse>
5
+ </g>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="14px" height="8.5px" viewBox="0 0 76 46" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <path d="M37.922937,31.9152899 L69.0014469,0.83678006 L75.7669758,7.60230898 L38.0444273,45.3248575 L37.922937,45.2033673 L37.8014468,45.3248575 L0.0788982598,7.60230901 L6.84442718,0.836780092 L37.922937,31.9152899 Z" fill="#000" stroke="none"/>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg class="svg-github" width="15" height="15" role="img" version="1.1" viewBox="0 0 33 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g stroke="none" stroke-width="1" fill-rule="evenodd" fill="#ffffff">
4
+ <path d="M16.288,0 C7.294,0 0,7.293 0,16.29 C0,23.487 4.667,29.592 11.14,31.746 C11.955,31.896 12.252,31.393 12.252,30.961 C12.252,30.575 12.238,29.55 12.23,28.191 C7.699,29.175 6.743,26.007 6.743,26.007 C6.002,24.125 4.934,23.624 4.934,23.624 C3.455,22.614 5.046,22.634 5.046,22.634 C6.681,22.749 7.541,24.313 7.541,24.313 C8.994,26.802 11.354,26.083 12.282,25.666 C12.43,24.614 12.851,23.896 13.316,23.489 C9.699,23.078 5.896,21.68 5.896,15.438 C5.896,13.66 6.531,12.205 7.573,11.067 C7.405,10.655 6.846,8.998 7.733,6.756 C7.733,6.756 9.1,6.318 12.212,8.426 C13.511,8.064 14.905,7.884 16.29,7.877 C17.674,7.884 19.067,8.064 20.368,8.426 C23.478,6.318 24.843,6.756 24.843,6.756 C25.732,8.998 25.173,10.655 25.006,11.067 C26.05,12.205 26.68,13.66 26.68,15.438 C26.68,21.696 22.871,23.073 19.243,23.476 C19.827,23.979 20.348,24.973 20.348,26.493 C20.348,28.67 20.328,30.427 20.328,30.961 C20.328,31.397 20.622,31.904 21.448,31.745 C27.916,29.586 32.579,23.485 32.579,16.29 C32.579,7.293 25.285,0 16.288,0"></path>
5
+ </g>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg class="svg-github" width="15" height="15" role="img" version="1.1" viewBox="0 0 33 32" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g stroke="none" stroke-width="1" fill-rule="evenodd" fill="#161614">
4
+ <path d="M16.288,0 C7.294,0 0,7.293 0,16.29 C0,23.487 4.667,29.592 11.14,31.746 C11.955,31.896 12.252,31.393 12.252,30.961 C12.252,30.575 12.238,29.55 12.23,28.191 C7.699,29.175 6.743,26.007 6.743,26.007 C6.002,24.125 4.934,23.624 4.934,23.624 C3.455,22.614 5.046,22.634 5.046,22.634 C6.681,22.749 7.541,24.313 7.541,24.313 C8.994,26.802 11.354,26.083 12.282,25.666 C12.43,24.614 12.851,23.896 13.316,23.489 C9.699,23.078 5.896,21.68 5.896,15.438 C5.896,13.66 6.531,12.205 7.573,11.067 C7.405,10.655 6.846,8.998 7.733,6.756 C7.733,6.756 9.1,6.318 12.212,8.426 C13.511,8.064 14.905,7.884 16.29,7.877 C17.674,7.884 19.067,8.064 20.368,8.426 C23.478,6.318 24.843,6.756 24.843,6.756 C25.732,8.998 25.173,10.655 25.006,11.067 C26.05,12.205 26.68,13.66 26.68,15.438 C26.68,21.696 22.871,23.073 19.243,23.476 C19.827,23.979 20.348,24.973 20.348,26.493 C20.348,28.67 20.328,30.427 20.328,30.961 C20.328,31.397 20.622,31.904 21.448,31.745 C27.916,29.586 32.579,23.485 32.579,16.29 C32.579,7.293 25.285,0 16.288,0"></path>
5
+ </g>
6
+ </svg>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg class="svg-google" width="15" height="15" role="img" version="1.1" viewBox="0 0 33 33" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g stroke="none" stroke-width="1" fill-rule="evenodd" fill="#ffffff">
4
+ <path d="M16.7347561,19.6141115 L16.7347561,15.1058362 L31.9268293,15.1058362 C32.0753484,15.8915505 32.1520035,16.820993 32.1520035,17.8270906 C32.1520035,21.2094948 31.2273519,25.3919861 28.2473868,28.3719512 C25.3488676,31.3902439 21.6454704,33 16.739547,33 C7.64634146,33 0,25.5932056 0,16.5 C0,7.40679443 7.64634146,0 16.739547,0 C21.7700348,0 25.3536585,1.9738676 28.0461672,4.54660279 L24.8649826,7.72778746 C22.9342334,5.91681185 20.3183798,4.50827526 16.7347561,4.50827526 C10.0945122,4.50827526 4.9011324,9.8597561 4.9011324,16.5 C4.9011324,23.1402439 10.0945122,28.4917247 16.7347561,28.4917247 C21.0418118,28.4917247 23.4947735,26.7621951 25.0662021,25.1907666 C26.3405923,23.9163763 27.179007,22.0958188 27.5095819,19.6093206 L16.7347561,19.6141115 L16.7347561,19.6141115 Z"></path>
5
+ </g>
6
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg class="svg-google-login" width="15" height="15" role="img" version="1.1" viewBox="0 0 33 33" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g stroke="none" stroke-width="1" fill-rule="evenodd" fill="none">
4
+ <path d="M32.34,16.875 C32.34,15.705 32.235,14.58 32.0399999,13.5 L16.5,13.5 L16.5,19.8825 L25.3800001,19.8825 C24.9975,21.945 23.835,23.6925 22.0875001,24.8624999 L22.0875001,29.0025001 L27.4199999,29.0025001 C30.54,26.13 32.34,21.8999999 32.34,16.875 L32.34,16.875 L32.34,16.875 Z" fill="#4285F4"></path>
5
+ <path d="M16.5,33 C20.955,33 24.69,31.5225 27.4199999,29.0025001 L22.0875001,24.8624999 C20.61,25.8524999 18.72,26.4374999 16.5,26.4374999 C12.2025,26.4374999 8.565,23.535 7.2675,19.635 L1.755,19.635 L1.755,23.91 C4.47,29.3025 10.05,33 16.5,33 L16.5,33 L16.5,33 Z" fill="#34A853"></path>
6
+ <path d="M7.2675,19.635 C6.9375,18.645 6.75,17.5875 6.75,16.5 C6.75,15.4125 6.9375,14.355 7.2675,13.365 L7.2675,9.09 L1.755,9.09 C0.6375,11.3175 0,13.8375 0,16.5 C0,19.1625 0.6375,21.6825 1.755,23.91 L7.2675,19.635 L7.2675,19.635 L7.2675,19.635 Z" fill="#FBBC05"></path>
7
+ <path d="M16.5,6.56249999 C18.9224999,6.56249999 21.0975001,7.39499999 22.8074999,9.03000001 L27.54,4.2975 C24.6825,1.635 20.9475,0 16.5,0 C10.05,0 4.47,3.6975 1.755,9.09 L7.2675,13.365 C8.565,9.465 12.2025,6.56249999 16.5,6.56249999 L16.5,6.56249999 L16.5,6.56249999 Z" fill="#EA4335"></path>
8
+ <path d="M0,0 L33,0 L33,33 L0,33 L0,0 L0,0 Z"></path>
9
+ </g>
10
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="12px" height="12px" viewBox="0 0 55 54" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <path d="M23,22.2968674 L0.849067196,22.2968674 L0.849067196,31.8647702 L23,31.8647702 L23,53.3477397 L32.5679028,53.3477397 L32.5679028,31.8647702 L54.1968069,31.8647702 L54.1968069,22.2968674 L32.5679028,22.2968674 L32.5679028,3.55271368e-15 L23,4.13857875e-15 L23,22.2968674 Z" fill="#000" stroke="none"/>
3
+ </svg>
@@ -0,0 +1,14 @@
1
+ $(function() {
2
+
3
+ $('.c-code__nav__list li:not(.is-disabled)').click(function() {
4
+ $(this).parent().children('.current').removeClass('current');
5
+ $(this).parents('.c-code__nav').siblings('.c-code__content').children(".c-code__content__container.current").removeClass('current');
6
+
7
+ var showThis = $(this).data('tab');
8
+
9
+ $(this).addClass('current');
10
+
11
+ $(this).parents('.c-code__nav').siblings('.c-code__content').children(".c-code__content__container[data-tab='" + showThis + "']").addClass('current');
12
+ });
13
+
14
+ });
@@ -0,0 +1,52 @@
1
+ (function ($) {
2
+ 'use strict';
3
+ $.fn.pusherFeaturette = function(options) {
4
+
5
+ var self = this;
6
+
7
+ self._ = 'pusherFeaturette';
8
+
9
+ self.defaults = {
10
+ speed: 100
11
+ }
12
+
13
+ self.$context = self;
14
+ self.options = {};
15
+ self.options = $.extend({}, self.defaults, options);
16
+ self.navList = self.$context.find('[data-cycle-nav]');
17
+
18
+ self.init = function() {
19
+ self.handlers();
20
+ }
21
+
22
+ self.handlers = function() {
23
+ self.navList.find('li[data-cycle]').on("click", function() {
24
+ self.removeCurrent();
25
+ self.addCurrent($(this).data("cycle"));
26
+ });
27
+ }
28
+
29
+ self.removeCurrent = function() {
30
+ self.$context
31
+ .find("[data-cycle-container].current")
32
+ .removeClass('current');
33
+
34
+ self.navList
35
+ .find("[data-cycle].current")
36
+ .removeClass('current');
37
+ }
38
+
39
+ self.addCurrent = function(nextItemToShow) {
40
+ self.$context
41
+ .find("[data-cycle-container][data-cycle='" + nextItemToShow + "']")
42
+ .addClass("current");
43
+
44
+ self.navList
45
+ .find("[data-cycle='" + nextItemToShow + "']")
46
+ .addClass("current");
47
+ }
48
+
49
+ return self.init();
50
+ }
51
+
52
+ })(jQuery);
@@ -0,0 +1,60 @@
1
+ (function ($) {
2
+ 'use strict';
3
+ $.fn.pusherTextCycler = function(options) {
4
+
5
+ var self = this;
6
+
7
+ self._ = 'pusherTextCycler';
8
+
9
+ self.defaults = {
10
+ speed: 100,
11
+ typingSpeed: 50,
12
+ delayBeforeErase: 3000,
13
+ class: 'cycle',
14
+ backgroundColor: '#f7f7f7',
15
+ highlightColor: '#b4d5fe'
16
+ }
17
+
18
+ self.$context = self;
19
+ self.options = {};
20
+ self.options = $.extend({}, self.defaults, options);
21
+
22
+ self.init = function() {
23
+ self.caption = self.options.text[0];
24
+ self.captionLength = 0;
25
+ self.options.text.push(self.options.text.shift());
26
+
27
+ self.type();
28
+ }
29
+
30
+ self.type = function() {
31
+ self.$context.html(self.caption.substr(0, self.captionLength++)).css({'background-color':self.options.backgroundColor});
32
+
33
+ if(self.captionLength < self.caption.length+1) {
34
+ setTimeout(function() {
35
+ self.type();
36
+ }, self.options.typingSpeed);
37
+ } else {
38
+ setTimeout(function() {
39
+ self.erase();
40
+ }, self.options.delayBeforeErase);
41
+ }
42
+ }
43
+
44
+ self.erase = function() {
45
+ self.$context.css({'background-color': self.options.highlightColor});
46
+ setTimeout(function() {
47
+ self.$context.html(self.caption.substr(0, 0));
48
+ self.captionLength = 0;
49
+ self.caption = '';
50
+ }, 500);
51
+
52
+ setTimeout(function() {
53
+ self.init();
54
+ }, 600);
55
+ }
56
+
57
+ return self.init();
58
+ }
59
+
60
+ })(jQuery);
@@ -0,0 +1,71 @@
1
+ module PusherChameleon
2
+ class << self
3
+ # Inspired by Kaminari
4
+ def load!
5
+
6
+ if rails?
7
+ register_rails_engine
8
+ elsif sprockets?
9
+ register_sprockets
10
+ end
11
+
12
+ configure_sass
13
+ end
14
+
15
+ # Paths
16
+ def gem_path
17
+ @gem_path ||= File.expand_path '..', File.dirname(__FILE__)
18
+ end
19
+
20
+ def stylesheets_path
21
+ File.join assets_path, 'stylesheets'
22
+ end
23
+
24
+ def javascripts_path
25
+ File.join assets_path, 'javascripts'
26
+ end
27
+
28
+ def images_path
29
+ File.join assets_path, 'images'
30
+ end
31
+
32
+ def assets_path
33
+ @assets_path ||= File.join gem_path, ''
34
+ end
35
+
36
+ # Environment detection helpers
37
+ def sprockets?
38
+ defined?(::Sprockets)
39
+ end
40
+
41
+ def rails?
42
+ defined?(::Rails)
43
+ autoload 'VERSION', 'pusher-chameleon/version'
44
+ end
45
+
46
+ private
47
+
48
+ def configure_sass
49
+ require 'sass'
50
+
51
+ ::Sass.load_paths << stylesheets_path
52
+
53
+ # bootstrap requires minimum precision of 8, see https://github.com/twbs/bootstrap-sass/issues/409
54
+ ::Sass::Script::Number.precision = [8, ::Sass::Script::Number.precision].max
55
+ end
56
+
57
+
58
+ def register_rails_engine
59
+ require 'pusher-chameleon/engine'
60
+ end
61
+
62
+
63
+ def register_sprockets
64
+ Sprockets.append_path(stylesheets_path)
65
+ Sprockets.append_path(javascripts_path)
66
+ Sprockets.append_path(images_path)
67
+ end
68
+ end
69
+ end
70
+
71
+ PusherChameleon.load!