ustyle 1.7.0 → 1.8.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 +4 -4
- data/Gruntfile.js +5 -4
- data/config/autoprefixer.yml +3 -3
- data/dist/ustyle-content.css +1 -1
- data/dist/ustyle-icons.css +1 -1
- data/dist/ustyle-latest.css +1 -1
- data/dist/ustyle.json +1 -1
- data/lib/ustyle/version.rb +1 -1
- data/package.json +3 -3
- data/styleguide/content/pattern-library/index.tpl +4 -4
- data/styleguide/partials/_footer.tpl +3 -3
- data/tasks/publish.rake +0 -3
- data/ustyle.gemspec +0 -1
- data/vendor/assets/stylesheets/ustyle/components/_tabs.scss +13 -7
- data/vendor/assets/stylesheets/ustyle/forms/_input.scss +4 -2
- data/vendor/assets/stylesheets/ustyle/forms/_reset.scss +0 -1
- data/vendor/assets/stylesheets/ustyle/forms/_select.scss +7 -1
- data/vendor/assets/stylesheets/ustyle/mixins/_media-query.scss +13 -2
- metadata +2 -16
data/lib/ustyle/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "ustyle",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.8.0",
|
4
4
|
"description": "A living styleguide and pattern library by uSwitch.",
|
5
5
|
"keywords": [
|
6
6
|
"css",
|
@@ -36,7 +36,7 @@
|
|
36
36
|
},
|
37
37
|
"devDependencies": {
|
38
38
|
"async": "^0.9.0",
|
39
|
-
"autoprefixer
|
39
|
+
"autoprefixer": "^6.5.0",
|
40
40
|
"bluebird": "^2.9.7",
|
41
41
|
"browser-sync": "^1.8.2",
|
42
42
|
"cheerio": "^0.20.0",
|
@@ -53,7 +53,7 @@
|
|
53
53
|
"grunt-env": "^0.4.2",
|
54
54
|
"grunt-jscs": "~2.0.0",
|
55
55
|
"grunt-newer": "^1.1.0",
|
56
|
-
"grunt-postcss": "^0.
|
56
|
+
"grunt-postcss": "^0.8.0",
|
57
57
|
"grunt-sassdoc": "^2.0.0",
|
58
58
|
"grunt-scss-lint": "~0.3.4",
|
59
59
|
"grunt-shell": "^1.1.1",
|
@@ -53,7 +53,7 @@ name: Introduction
|
|
53
53
|
</div>
|
54
54
|
<div class="us-content-group mobile-bordered">
|
55
55
|
<h2>Browser support</h2>
|
56
|
-
<p>We use <a href="https://github.com/postcss/autoprefixer">Autoprefixer + Browserlist</a> to decide what vendor prefixes to apply to our <code>Sass</code> files. We have a slightly wider browser support than the default (<a href="https://github.com/ai/browserslist#browserslist-">here</a>). Currently we support all the way to
|
56
|
+
<p>We use <a href="https://github.com/postcss/autoprefixer">Autoprefixer + Browserlist</a> to decide what vendor prefixes to apply to our <code>Sass</code> files. We have a slightly wider browser support than the default (<a href="https://github.com/ai/browserslist#browserslist-">here</a>). Currently we support all the way to IE9.</p>
|
57
57
|
<p>Below is what we support. Each line is the minimum version or % use based on CanIUse metrics</p>
|
58
58
|
<table class="pure-table pure-table-bordered">
|
59
59
|
<thead>
|
@@ -69,15 +69,15 @@ name: Introduction
|
|
69
69
|
</tr>
|
70
70
|
<tr>
|
71
71
|
<td>Firefox</td>
|
72
|
-
<td>
|
72
|
+
<td>ESR</td>
|
73
73
|
</tr>
|
74
74
|
<tr>
|
75
75
|
<td>Opera</td>
|
76
|
-
<td>
|
76
|
+
<td>18</td>
|
77
77
|
</tr>
|
78
78
|
<tr>
|
79
79
|
<td>Internet Explorer</td>
|
80
|
-
<td>
|
80
|
+
<td>9</td>
|
81
81
|
</tr>
|
82
82
|
<tr>
|
83
83
|
<td>Global usage</td>
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="container sidebar--push">
|
2
|
-
<p class="copyright">Copyright uSwitch Limited
|
2
|
+
<p class="copyright">Copyright uSwitch Limited 2016. <a href="https://github.com/{{project.repository}}">Github</a></p>
|
3
3
|
</div>
|
4
|
-
|
5
|
-
|
4
|
+
<script type="text/javascript" src='https://www.gstatic.com/charts/loader.js'>
|
5
|
+
</script>
|
6
6
|
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
|
7
7
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
8
8
|
<script src="/js/app.js"></script>
|
data/tasks/publish.rake
CHANGED
data/ustyle.gemspec
CHANGED
@@ -29,6 +29,5 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency "rake"
|
30
30
|
spec.add_development_dependency "aws-sdk", "~> 2.0"
|
31
31
|
spec.add_development_dependency "rb-fsevent"
|
32
|
-
spec.add_development_dependency "botoenv"
|
33
32
|
spec.add_development_dependency "scss-lint", "0.35.0"
|
34
33
|
end
|
@@ -79,8 +79,10 @@ $tab-active-color: $tab-border-color;
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
|
82
|
-
|
83
|
-
|
82
|
+
@if $media-query-legacy-support {
|
83
|
+
.js.ie8 & {
|
84
|
+
display: block;
|
85
|
+
}
|
84
86
|
}
|
85
87
|
}
|
86
88
|
|
@@ -206,8 +208,10 @@ $tab-active-color: $tab-border-color;
|
|
206
208
|
}
|
207
209
|
}
|
208
210
|
|
209
|
-
|
210
|
-
|
211
|
+
@if $media-query-legacy-support {
|
212
|
+
.js.ie8 & {
|
213
|
+
display: none;
|
214
|
+
}
|
211
215
|
}
|
212
216
|
|
213
217
|
.us-tabs-nav-mainlink {
|
@@ -256,9 +260,11 @@ $tab-active-color: $tab-border-color;
|
|
256
260
|
}
|
257
261
|
}
|
258
262
|
|
259
|
-
|
260
|
-
|
261
|
-
|
263
|
+
@if $media-query-legacy-support {
|
264
|
+
.ie8.js & {
|
265
|
+
display: none;
|
266
|
+
max-height: none;
|
267
|
+
}
|
262
268
|
}
|
263
269
|
|
264
270
|
.us-tab.active & {
|
@@ -58,6 +58,7 @@ $select-hover-color: $c-form-element-border-hover !default;
|
|
58
58
|
@-moz-document url-prefix() {
|
59
59
|
text-indent: .01px;
|
60
60
|
text-overflow: "";
|
61
|
+
-moz-appearance: none;
|
61
62
|
}
|
62
63
|
|
63
64
|
&:focus {
|
@@ -71,7 +72,12 @@ $select-hover-color: $c-form-element-border-hover !default;
|
|
71
72
|
display: none;
|
72
73
|
}
|
73
74
|
|
74
|
-
|
75
|
+
@if $media-query-legacy-support {
|
76
|
+
.ie8 & {
|
77
|
+
padding: $form-element-base-padding;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
75
81
|
.ie9 & {
|
76
82
|
padding: $form-element-base-padding;
|
77
83
|
}
|
@@ -7,6 +7,17 @@
|
|
7
7
|
//// @group media-queries
|
8
8
|
////
|
9
9
|
|
10
|
+
// ----------
|
11
|
+
// Legacy support
|
12
|
+
// ----------
|
13
|
+
|
14
|
+
/// IE8 is no longer supported, but on an opt-in basis for applications.
|
15
|
+
/// Set this to `true` if you do want .ie8 classes to be spat out for media queries
|
16
|
+
///
|
17
|
+
/// @type Bool
|
18
|
+
|
19
|
+
$media-query-legacy-support: false !default;
|
20
|
+
|
10
21
|
/// Breakpoint for extra large desktops
|
11
22
|
///
|
12
23
|
/// @type Number (unit)
|
@@ -107,12 +118,12 @@ $devices: ();
|
|
107
118
|
@media screen and (#{unquote("#{nth($listed-device, 2)}-width:") nth($listed-device, 3)}) {
|
108
119
|
@content;
|
109
120
|
}
|
110
|
-
@if $ie-fallback {
|
121
|
+
@if $ie-fallback and $media-query-legacy-support {
|
111
122
|
.ie8 & {
|
112
123
|
@content;
|
113
124
|
}
|
114
125
|
}
|
115
|
-
@if $ie-fallback-
|
126
|
+
@if $ie-fallback and $media-query-legacy-support {
|
116
127
|
.ie8 {
|
117
128
|
@content;
|
118
129
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ustyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uSwitch Limited
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2016-10-
|
16
|
+
date: 2016-10-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: sass
|
@@ -127,20 +127,6 @@ dependencies:
|
|
127
127
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
|
-
- !ruby/object:Gem::Dependency
|
131
|
-
name: botoenv
|
132
|
-
requirement: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: '0'
|
137
|
-
type: :development
|
138
|
-
prerelease: false
|
139
|
-
version_requirements: !ruby/object:Gem::Requirement
|
140
|
-
requirements:
|
141
|
-
- - ">="
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '0'
|
144
130
|
- !ruby/object:Gem::Dependency
|
145
131
|
name: scss-lint
|
146
132
|
requirement: !ruby/object:Gem::Requirement
|