pusher_chameleon 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.ruby-version +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +23 -0
- data/README.md +8 -0
- data/docs/.gitignore +4 -0
- data/docs/Gemfile +10 -0
- data/docs/Gemfile.lock +72 -0
- data/docs/README.md +15 -0
- data/docs/Rakefile +40 -0
- data/docs/_config.production.yml +18 -0
- data/docs/_config.yml +40 -0
- data/docs/_includes/footer.html +38 -0
- data/docs/_includes/head.html +15 -0
- data/docs/_includes/header.html +27 -0
- data/docs/_includes/icon-github.html +1 -0
- data/docs/_includes/icon-github.svg +3 -0
- data/docs/_includes/logo-pusher.svg +4 -0
- data/docs/_includes/sidebar.html +33 -0
- data/docs/_layouts/default.html +53 -0
- data/docs/_layouts/page.html +14 -0
- data/docs/_layouts/post.html +15 -0
- data/docs/_plugins/chameleon_version.rb +11 -0
- data/docs/_plugins/copy_images_directory.rb +22 -0
- data/docs/_plugins/ext.rb +2 -0
- data/docs/_posts/2016-03-16-getting-started.md +28 -0
- data/docs/_posts/2016-03-16-introduction.md +24 -0
- data/docs/_posts/2016-03-17-buttons.md +61 -0
- data/docs/_posts/2016-03-17-colors.md +139 -0
- data/docs/_posts/2016-03-17-flex.md +24 -0
- data/docs/_posts/2016-03-17-forms.md +66 -0
- data/docs/_posts/2016-03-17-visibility.md +28 -0
- data/docs/_posts/2016-04-04-typography.md +111 -0
- data/docs/_posts/2016-04-05-syntax-highlighting.md +28 -0
- data/docs/_posts/2016-05-08-alerts.md +50 -0
- data/docs/_posts/2016-05-12-labels.md +22 -0
- data/docs/_posts/2016-05-13-tooltips.md +33 -0
- data/docs/_sass/_base.scss +36 -0
- data/docs/_sass/_chameleon_imports.scss +20 -0
- data/docs/_sass/_layout.scss +136 -0
- data/docs/_sass/_typography.scss +41 -0
- data/docs/_sass/layout/_aside.scss +151 -0
- data/docs/about.md +15 -0
- data/docs/autoprefixer.yml +4 -0
- data/docs/css/main.scss +11 -0
- data/docs/feed.xml +30 -0
- data/docs/fonts/Realtime-Text/realtime_text_black.eot +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_black.svg +249 -0
- data/docs/fonts/Realtime-Text/realtime_text_black.ttf +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_black.woff +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_black.woff2 +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_bold.eot +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_bold.svg +249 -0
- data/docs/fonts/Realtime-Text/realtime_text_bold.ttf +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_bold.woff +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_bold.woff2 +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_light.eot +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_light.svg +249 -0
- data/docs/fonts/Realtime-Text/realtime_text_light.ttf +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_light.woff +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_light.woff2 +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_regular.eot +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_regular.svg +249 -0
- data/docs/fonts/Realtime-Text/realtime_text_regular.ttf +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_regular.woff +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_regular.woff2 +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_semibold.eot +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_semibold.svg +249 -0
- data/docs/fonts/Realtime-Text/realtime_text_semibold.ttf +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_semibold.woff +0 -0
- data/docs/fonts/Realtime-Text/realtime_text_semibold.woff2 +0 -0
- data/docs/index.html +23 -0
- data/images/ui_icons/alert_beta.svg +3 -0
- data/images/ui_icons/alert_info.svg +3 -0
- data/images/ui_icons/alert_tick.svg +6 -0
- data/images/ui_icons/alert_warning.svg +6 -0
- data/images/ui_icons/chevron_down.svg +3 -0
- data/images/ui_icons/github--active.svg +6 -0
- data/images/ui_icons/github.svg +6 -0
- data/images/ui_icons/google--active.svg +6 -0
- data/images/ui_icons/google.svg +10 -0
- data/images/ui_icons/plus.svg +3 -0
- data/javascripts/chameleon/code_box.js +14 -0
- data/javascripts/chameleon/pusher_featurette.js +52 -0
- data/javascripts/chameleon/pusher_text_cycler.js +60 -0
- data/lib/pusher_chameleon/engine.rb +13 -0
- data/lib/pusher_chameleon/version.rb +8 -0
- data/lib/pusher_chameleon.rb +71 -0
- data/package.json +24 -0
- data/pusher_chameleon.gemspec +21 -0
- data/stylesheets/.gitkeep +0 -0
- data/stylesheets/_base.scss +400 -0
- data/stylesheets/_global.scss +96 -0
- data/stylesheets/chameleon.scss +30 -0
- data/stylesheets/components/_alert.scss +102 -0
- data/stylesheets/components/_code_box.scss +84 -0
- data/stylesheets/components/_flex_aligners.scss +38 -0
- data/stylesheets/components/_label.scss +41 -0
- data/stylesheets/components/_signpost.scss +150 -0
- data/stylesheets/components/_spacers.scss +11 -0
- data/stylesheets/components/_statistic.scss +62 -0
- data/stylesheets/components/_tooltip.scss +65 -0
- data/stylesheets/components/_visibility.scss +117 -0
- data/stylesheets/forms/_base.scss +47 -0
- data/stylesheets/forms/_buttons.scss +242 -0
- data/stylesheets/forms/_checkbox.scss +31 -0
- data/stylesheets/forms/_field.scss +11 -0
- data/stylesheets/forms/_fieldset.scss +18 -0
- data/stylesheets/forms/_forms.scss +21 -0
- data/stylesheets/forms/_input.scss +14 -0
- data/stylesheets/forms/_range.scss +110 -0
- data/stylesheets/forms/_select.scss +15 -0
- data/stylesheets/forms/_textarea.scss +11 -0
- data/stylesheets/grid/_classes.scss +152 -0
- data/stylesheets/grid/_column.scss +126 -0
- data/stylesheets/grid/_flex-grid.scss +268 -0
- data/stylesheets/grid/_grid.scss +60 -0
- data/stylesheets/grid/_gutter.scss +34 -0
- data/stylesheets/grid/_layout.scss +51 -0
- data/stylesheets/grid/_position.scss +73 -0
- data/stylesheets/grid/_row.scss +95 -0
- data/stylesheets/grid/_size.scss +24 -0
- data/stylesheets/typography/_base.scss +60 -0
- data/stylesheets/typography/_helpers.scss +66 -0
- data/stylesheets/typography/_import.scss +54 -0
- data/stylesheets/typography/_syntax_highlighting.scss +168 -0
- data/stylesheets/typography/_syntax_highlighting_dark.scss +73 -0
- data/stylesheets/typography/_syntax_highlighting_light.scss +73 -0
- data/stylesheets/typography/_titles.scss +69 -0
- data/stylesheets/typography/_typography.scss +12 -0
- data/stylesheets/util/_breakpoint.scss +273 -0
- data/stylesheets/util/_color.scss +42 -0
- data/stylesheets/util/_flex.scss +68 -0
- data/stylesheets/util/_mixins.scss +233 -0
- data/stylesheets/util/_selector.scss +40 -0
- data/stylesheets/util/_unit.scss +90 -0
- data/stylesheets/util/_url_helper.scss +30 -0
- data/stylesheets/util/_util.scss +13 -0
- data/stylesheets/util/_value.scss +107 -0
- metadata +224 -0
@@ -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!
|
data/package.json
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
{
|
2
|
+
"name": "pusher_chameleon",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "A collection of front-end patterns used across Pusher.",
|
5
|
+
"repository": "https://github.com/pusher/chameleon",
|
6
|
+
"keywords": [
|
7
|
+
"pattern",
|
8
|
+
"library",
|
9
|
+
"living",
|
10
|
+
"styleguide"
|
11
|
+
],
|
12
|
+
"author": "Alex Pate",
|
13
|
+
"license": "MIT",
|
14
|
+
"files": [
|
15
|
+
"README.md",
|
16
|
+
"images",
|
17
|
+
"javascripts",
|
18
|
+
"stylesheets"
|
19
|
+
],
|
20
|
+
"bugs": {
|
21
|
+
"url": "https://github.com/pusher/chameleon/issues"
|
22
|
+
},
|
23
|
+
"homepage": "https://github.com/pusher/chameleon#readme"
|
24
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
$:.push File.expand_path("../lib", __FILE__)
|
2
|
+
|
3
|
+
require "pusher_chameleon/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "pusher_chameleon"
|
7
|
+
s.version = PusherChameleon::VERSION
|
8
|
+
s.summary = 'Pusher Chameleon front-end asset library'
|
9
|
+
s.description = 'Chameleon holds various front-end assets that are shared across our products'
|
10
|
+
s.authors = ['Alex Pate']
|
11
|
+
s.email = 'ap@pusher.com'
|
12
|
+
s.homepage = 'https://github.com/pusher/chameleon'
|
13
|
+
s.license = 'MIT'
|
14
|
+
|
15
|
+
s.add_dependency "sass", ">= 3.2.0"
|
16
|
+
s.add_development_dependency "gem_publisher", "1.3.1"
|
17
|
+
s.add_development_dependency "rake", "0.9.2.2"
|
18
|
+
|
19
|
+
s.require_paths = ["lib", "app"]
|
20
|
+
s.files = `git ls-files`.split($\) - %w(.gitignore docs gulpfile.js Rakefile)
|
21
|
+
end
|
File without changes
|
@@ -0,0 +1,400 @@
|
|
1
|
+
@mixin CHAMELEON-base {
|
2
|
+
|
3
|
+
/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* 1. Set default font family to sans-serif.
|
7
|
+
* 2. Prevent iOS and IE text size adjust after device orientation change,
|
8
|
+
* without disabling user zoom.
|
9
|
+
*/
|
10
|
+
|
11
|
+
html {
|
12
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
14
|
+
}
|
15
|
+
|
16
|
+
/* HTML5 display definitions
|
17
|
+
========================================================================== */
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Correct `block` display not defined for any HTML5 element in IE 8/9.
|
21
|
+
* Correct `block` display not defined for `details` or `summary` in IE 10/11
|
22
|
+
* and Firefox.
|
23
|
+
* Correct `block` display not defined for `main` in IE 11.
|
24
|
+
*/
|
25
|
+
|
26
|
+
article,
|
27
|
+
aside,
|
28
|
+
details,
|
29
|
+
figcaption,
|
30
|
+
figure,
|
31
|
+
footer,
|
32
|
+
header,
|
33
|
+
hgroup,
|
34
|
+
main,
|
35
|
+
menu,
|
36
|
+
nav,
|
37
|
+
section,
|
38
|
+
summary {
|
39
|
+
display: block;
|
40
|
+
}
|
41
|
+
|
42
|
+
/**
|
43
|
+
* 1. Correct `inline-block` display not defined in IE 8/9.
|
44
|
+
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
|
45
|
+
*/
|
46
|
+
|
47
|
+
audio,
|
48
|
+
canvas,
|
49
|
+
progress,
|
50
|
+
video {
|
51
|
+
display: inline-block; /* 1 */
|
52
|
+
vertical-align: baseline; /* 2 */
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Prevent modern browsers from displaying `audio` without controls.
|
57
|
+
* Remove excess height in iOS 5 devices.
|
58
|
+
*/
|
59
|
+
|
60
|
+
audio:not([controls]) {
|
61
|
+
display: none;
|
62
|
+
height: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
/**
|
66
|
+
* Address `[hidden]` styling not present in IE 8/9/10.
|
67
|
+
* Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
|
68
|
+
*/
|
69
|
+
|
70
|
+
[hidden],
|
71
|
+
template {
|
72
|
+
display: none;
|
73
|
+
}
|
74
|
+
|
75
|
+
/* Links
|
76
|
+
========================================================================== */
|
77
|
+
|
78
|
+
/**
|
79
|
+
* Remove the gray background color from active links in IE 10.
|
80
|
+
*/
|
81
|
+
|
82
|
+
a {
|
83
|
+
background-color: transparent;
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Improve readability of focused elements when they are also in an
|
88
|
+
* active/hover state.
|
89
|
+
*/
|
90
|
+
|
91
|
+
a:active,
|
92
|
+
a:hover {
|
93
|
+
outline: 0;
|
94
|
+
}
|
95
|
+
|
96
|
+
/* Text-level semantics
|
97
|
+
========================================================================== */
|
98
|
+
|
99
|
+
/**
|
100
|
+
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
|
101
|
+
*/
|
102
|
+
|
103
|
+
abbr[title] {
|
104
|
+
border-bottom: 1px dotted;
|
105
|
+
}
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
|
109
|
+
*/
|
110
|
+
|
111
|
+
b,
|
112
|
+
strong {
|
113
|
+
font-weight: bold;
|
114
|
+
}
|
115
|
+
|
116
|
+
/**
|
117
|
+
* Address styling not present in Safari and Chrome.
|
118
|
+
*/
|
119
|
+
|
120
|
+
dfn {
|
121
|
+
font-style: italic;
|
122
|
+
}
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Address styling not present in IE 8/9.
|
126
|
+
*/
|
127
|
+
|
128
|
+
mark {
|
129
|
+
background: #ff0;
|
130
|
+
color: #000;
|
131
|
+
}
|
132
|
+
|
133
|
+
/**
|
134
|
+
* Address inconsistent and variable font size in all browsers.
|
135
|
+
*/
|
136
|
+
|
137
|
+
/**
|
138
|
+
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
|
139
|
+
*/
|
140
|
+
|
141
|
+
sub,
|
142
|
+
sup {
|
143
|
+
font-size: 75%;
|
144
|
+
line-height: 0;
|
145
|
+
position: relative;
|
146
|
+
vertical-align: baseline;
|
147
|
+
}
|
148
|
+
|
149
|
+
sup {
|
150
|
+
top: -0.5em;
|
151
|
+
}
|
152
|
+
|
153
|
+
sub {
|
154
|
+
bottom: -0.25em;
|
155
|
+
}
|
156
|
+
|
157
|
+
/* Embedded content
|
158
|
+
========================================================================== */
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Remove border when inside `a` element in IE 8/9/10.
|
162
|
+
*/
|
163
|
+
|
164
|
+
img {
|
165
|
+
border: 0;
|
166
|
+
}
|
167
|
+
|
168
|
+
/**
|
169
|
+
* Correct overflow not hidden in IE 9/10/11.
|
170
|
+
*/
|
171
|
+
|
172
|
+
svg:not(:root) {
|
173
|
+
overflow: hidden;
|
174
|
+
}
|
175
|
+
|
176
|
+
/* Grouping content
|
177
|
+
========================================================================== */
|
178
|
+
|
179
|
+
/**
|
180
|
+
* Address margin not present in IE 8/9 and Safari.
|
181
|
+
*/
|
182
|
+
|
183
|
+
figure {
|
184
|
+
margin: 1em 40px;
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Address differences between Firefox and other browsers.
|
189
|
+
*/
|
190
|
+
|
191
|
+
hr {
|
192
|
+
box-sizing: content-box;
|
193
|
+
height: 0;
|
194
|
+
}
|
195
|
+
|
196
|
+
/**
|
197
|
+
* Contain overflow in all browsers.
|
198
|
+
*/
|
199
|
+
|
200
|
+
pre {
|
201
|
+
overflow: auto;
|
202
|
+
}
|
203
|
+
|
204
|
+
/**
|
205
|
+
* Address odd `em`-unit font size rendering in all browsers.
|
206
|
+
*/
|
207
|
+
|
208
|
+
code,
|
209
|
+
kbd,
|
210
|
+
pre,
|
211
|
+
samp {
|
212
|
+
font-family: monospace, monospace;
|
213
|
+
font-size: 1em;
|
214
|
+
}
|
215
|
+
|
216
|
+
/* Forms
|
217
|
+
========================================================================== */
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Address `overflow` set to `hidden` in IE 8/9/10/11.
|
221
|
+
*/
|
222
|
+
|
223
|
+
button {
|
224
|
+
overflow: visible;
|
225
|
+
}
|
226
|
+
|
227
|
+
/**
|
228
|
+
* Address inconsistent `text-transform` inheritance for `button` and `select`.
|
229
|
+
* All other form control elements do not inherit `text-transform` values.
|
230
|
+
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
|
231
|
+
* Correct `select` style inheritance in Firefox.
|
232
|
+
*/
|
233
|
+
|
234
|
+
button,
|
235
|
+
select {
|
236
|
+
text-transform: none;
|
237
|
+
}
|
238
|
+
|
239
|
+
/**
|
240
|
+
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
|
241
|
+
* and `video` controls.
|
242
|
+
* 2. Correct inability to style clickable `input` types in iOS.
|
243
|
+
* 3. Improve usability and consistency of cursor style between image-type
|
244
|
+
* `input` and others.
|
245
|
+
*/
|
246
|
+
|
247
|
+
button,
|
248
|
+
html input[type="button"], /* 1 */
|
249
|
+
input[type="reset"],
|
250
|
+
input[type="submit"] {
|
251
|
+
-webkit-appearance: button; /* 2 */
|
252
|
+
cursor: pointer; /* 3 */
|
253
|
+
}
|
254
|
+
|
255
|
+
/**
|
256
|
+
* Re-set default cursor for disabled elements.
|
257
|
+
*/
|
258
|
+
|
259
|
+
button[disabled],
|
260
|
+
html input[disabled] {
|
261
|
+
cursor: default;
|
262
|
+
}
|
263
|
+
|
264
|
+
/**
|
265
|
+
* Remove inner padding and border in Firefox 4+.
|
266
|
+
*/
|
267
|
+
|
268
|
+
button::-moz-focus-inner,
|
269
|
+
input::-moz-focus-inner {
|
270
|
+
border: 0;
|
271
|
+
padding: 0;
|
272
|
+
}
|
273
|
+
|
274
|
+
/**
|
275
|
+
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
|
276
|
+
* the UA stylesheet.
|
277
|
+
*/
|
278
|
+
|
279
|
+
input {
|
280
|
+
line-height: normal;
|
281
|
+
}
|
282
|
+
|
283
|
+
/**
|
284
|
+
* It's recommended that you don't attempt to style these elements.
|
285
|
+
* Firefox's implementation doesn't respect box-sizing, padding, or width.
|
286
|
+
*
|
287
|
+
* 1. Address box sizing set to `content-box` in IE 8/9/10.
|
288
|
+
* 2. Remove excess padding in IE 8/9/10.
|
289
|
+
*/
|
290
|
+
|
291
|
+
input[type="checkbox"],
|
292
|
+
input[type="radio"] {
|
293
|
+
box-sizing: border-box; /* 1 */
|
294
|
+
padding: 0; /* 2 */
|
295
|
+
}
|
296
|
+
|
297
|
+
/**
|
298
|
+
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
|
299
|
+
* `font-size` values of the `input`, it causes the cursor style of the
|
300
|
+
* decrement button to change from `default` to `text`.
|
301
|
+
*/
|
302
|
+
|
303
|
+
input[type="number"]::-webkit-inner-spin-button,
|
304
|
+
input[type="number"]::-webkit-outer-spin-button {
|
305
|
+
height: auto;
|
306
|
+
}
|
307
|
+
|
308
|
+
/**
|
309
|
+
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
|
310
|
+
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
|
311
|
+
*/
|
312
|
+
|
313
|
+
input[type="search"] {
|
314
|
+
-webkit-appearance: textfield; /* 1 */
|
315
|
+
box-sizing: content-box; /* 2 */
|
316
|
+
}
|
317
|
+
|
318
|
+
/**
|
319
|
+
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
|
320
|
+
* Safari (but not Chrome) clips the cancel button when the search input has
|
321
|
+
* padding (and `textfield` appearance).
|
322
|
+
*/
|
323
|
+
|
324
|
+
input[type="search"]::-webkit-search-cancel-button,
|
325
|
+
input[type="search"]::-webkit-search-decoration {
|
326
|
+
-webkit-appearance: none;
|
327
|
+
}
|
328
|
+
|
329
|
+
|
330
|
+
/**
|
331
|
+
* 1. Correct `color` not being inherited in IE 8/9/10/11.
|
332
|
+
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
|
333
|
+
*/
|
334
|
+
|
335
|
+
legend {
|
336
|
+
border: 0; /* 1 */
|
337
|
+
padding: 0; /* 2 */
|
338
|
+
}
|
339
|
+
|
340
|
+
/**
|
341
|
+
* Remove default vertical scrollbar in IE 8/9/10/11.
|
342
|
+
*/
|
343
|
+
|
344
|
+
textarea {
|
345
|
+
overflow: auto;
|
346
|
+
}
|
347
|
+
|
348
|
+
/**
|
349
|
+
* Don't inherit the `font-weight` (applied by a rule above).
|
350
|
+
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
|
351
|
+
*/
|
352
|
+
|
353
|
+
optgroup {
|
354
|
+
font-weight: bold;
|
355
|
+
}
|
356
|
+
|
357
|
+
/* Tables
|
358
|
+
========================================================================== */
|
359
|
+
|
360
|
+
/**
|
361
|
+
* Remove most spacing between table cells.
|
362
|
+
*/
|
363
|
+
|
364
|
+
table {
|
365
|
+
border-collapse: collapse;
|
366
|
+
border-spacing: 0;
|
367
|
+
}
|
368
|
+
|
369
|
+
td,
|
370
|
+
th {
|
371
|
+
padding: 0;
|
372
|
+
}
|
373
|
+
|
374
|
+
*,
|
375
|
+
*:before,
|
376
|
+
*:after {
|
377
|
+
box-sizing: border-box;
|
378
|
+
|
379
|
+
@if($global-font-smoothing) {
|
380
|
+
-webkit-font-smoothing: antialiased;
|
381
|
+
-moz-osx-font-smoothing: grayscale;
|
382
|
+
}
|
383
|
+
}
|
384
|
+
|
385
|
+
html,
|
386
|
+
body {
|
387
|
+
@extend %font-family-secondary;
|
388
|
+
margin: 0;
|
389
|
+
padding: 0;
|
390
|
+
width: 100%;
|
391
|
+
min-height: 100%;
|
392
|
+
}
|
393
|
+
|
394
|
+
// Foundation MediaQuery Binder
|
395
|
+
// This is used to pass the media query sizes from CSS to JS
|
396
|
+
|
397
|
+
.foundation-mq {
|
398
|
+
font-family: '#{-zf-bp-serialize($breakpoints)}';
|
399
|
+
}
|
400
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
2
|
+
// Global Variables & Styles
|
3
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
4
|
+
|
5
|
+
// Layout & Grid
|
6
|
+
$global-width: 1200px !default;
|
7
|
+
$global-left: left;
|
8
|
+
$global-right: right;
|
9
|
+
|
10
|
+
$breakpoints: (
|
11
|
+
small: 0,
|
12
|
+
medium: 640px,
|
13
|
+
large: 1024px,
|
14
|
+
xlarge: 1200px,
|
15
|
+
xxlarge: 1440px,
|
16
|
+
) !default;
|
17
|
+
|
18
|
+
$breakpoint-classes: (small medium large) !default;
|
19
|
+
|
20
|
+
$grid-row-width: $global-width;
|
21
|
+
$grid-column-count: 12 !default;
|
22
|
+
$grid-column-gutter: (
|
23
|
+
small: 20px,
|
24
|
+
medium: 30px,
|
25
|
+
) !default;
|
26
|
+
|
27
|
+
$grid-column-align-edge: true;
|
28
|
+
$block-grid-max: 8;
|
29
|
+
|
30
|
+
// Base Colour Palette
|
31
|
+
$color-palette: (
|
32
|
+
primary: #549eff,
|
33
|
+
secondary: #977fda,
|
34
|
+
developer: #58d794,
|
35
|
+
success: #2bc78a,
|
36
|
+
warning: #ffae00,
|
37
|
+
danger: #b74a48,
|
38
|
+
information: #34495e,
|
39
|
+
alert: #b74a48,
|
40
|
+
beta: #a57cec
|
41
|
+
) !default;
|
42
|
+
|
43
|
+
$color-primary: map-get($color-palette, primary);
|
44
|
+
$color-secondary: map-get($color-palette, secondary);
|
45
|
+
$color-developer: map-get($color-palette, developer);
|
46
|
+
$color-success: map-get($color-palette, success);
|
47
|
+
$color-warning: map-get($color-palette, warning);
|
48
|
+
$color-danger: map-get($color-palette, danger);
|
49
|
+
$color-information: map-get($color-palette, information);
|
50
|
+
$color-beta: map-get($color-palette, beta);
|
51
|
+
|
52
|
+
// Neutrals Colour Palette
|
53
|
+
$color-neutrals: (
|
54
|
+
white: #ffffff,
|
55
|
+
black: #2b303b,
|
56
|
+
slate: #414859,
|
57
|
+
silver: #8690a6,
|
58
|
+
smoke: #d3dce7,
|
59
|
+
snow: #f4f8fb
|
60
|
+
) !default;
|
61
|
+
|
62
|
+
$color-white: map-get($color-neutrals, white);
|
63
|
+
$color-black: map-get($color-neutrals, black);
|
64
|
+
$color-slate: map-get($color-neutrals, slate);
|
65
|
+
$color-silver: map-get($color-neutrals, silver);
|
66
|
+
$color-smoke: map-get($color-neutrals, smoke);
|
67
|
+
$color-snow: map-get($color-neutrals, snow);
|
68
|
+
// Legacy
|
69
|
+
$color-off-white: $color-snow;
|
70
|
+
$color-grey-one: $color-silver;
|
71
|
+
|
72
|
+
|
73
|
+
// Typography
|
74
|
+
$global-font-size: 100% !default;
|
75
|
+
$global-font-smoothing: false !default;
|
76
|
+
|
77
|
+
$font-family-primary: 'pusher-realtime-text', Helmet, Freesans, sans-serif !default;
|
78
|
+
$font-family-secondary: 'proxima-nova', Helmet, Freesans, sans-serif !default;
|
79
|
+
$font-family-monospace: Menlo, Consolas, Monaco, 'Andale Mono', monospace !default;
|
80
|
+
|
81
|
+
$syntax-highlighting-style: 'light' !default;
|
82
|
+
|
83
|
+
|
84
|
+
%font-family-primary {
|
85
|
+
font-family: $font-family-primary;
|
86
|
+
}
|
87
|
+
|
88
|
+
%font-family-secondary {
|
89
|
+
font-family: $font-family-secondary;
|
90
|
+
}
|
91
|
+
|
92
|
+
$cdn-font-url: "https://d3ulslzrwa6w0a.cloudfront.net";
|
93
|
+
|
94
|
+
// Misc
|
95
|
+
$border-radius: 0px !default;
|
96
|
+
$button-namespace: 'btn' !default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
2
|
+
//
|
3
|
+
// PUSHER CHAMELEON
|
4
|
+
// =-=-=-=-=-=-=-=-=
|
5
|
+
// The base layer of front-end Pusher assets
|
6
|
+
// Based on Foundation for Sites by ZURB
|
7
|
+
//
|
8
|
+
// - - - - - - - - - - - - - - - - - - - - - - - - -
|
9
|
+
|
10
|
+
// Utilities
|
11
|
+
@import 'util/util';
|
12
|
+
|
13
|
+
// Globals
|
14
|
+
@import 'global';
|
15
|
+
|
16
|
+
// Base
|
17
|
+
@import 'base';
|
18
|
+
@import 'typography/typography';
|
19
|
+
@import 'grid/grid';
|
20
|
+
@import 'forms/forms';
|
21
|
+
|
22
|
+
@import 'components/code_box';
|
23
|
+
@import 'components/signpost';
|
24
|
+
@import 'components/statistic';
|
25
|
+
@import 'components/flex_aligners';
|
26
|
+
@import 'components/visibility';
|
27
|
+
@import 'components/spacers';
|
28
|
+
@import 'components/alert';
|
29
|
+
@import 'components/tooltip';
|
30
|
+
@import 'components/label';
|