patternfly-sass 3.9.0 → 3.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.eot +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.svg +1 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.ttf +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.woff +0 -0
- data/assets/javascripts/patternfly.js +18 -19
- data/assets/javascripts/patternfly.min.js +2 -2
- data/assets/stylesheets/patternfly/_blank-slate.scss +4 -4
- data/assets/stylesheets/patternfly/_bootstrap-treeview.scss +20 -0
- data/assets/stylesheets/patternfly/_card-view.scss +2 -2
- data/assets/stylesheets/patternfly/_cards.scss +2 -4
- data/assets/stylesheets/patternfly/_charts.scss +1 -1
- data/assets/stylesheets/patternfly/_datatables.scss +1 -3
- data/assets/stylesheets/patternfly/_fonts.scss +30 -30
- data/assets/stylesheets/patternfly/_footer.scss +1 -1
- data/assets/stylesheets/patternfly/_forms.scss +1 -1
- data/assets/stylesheets/patternfly/_icons.scss +10 -7
- data/assets/stylesheets/patternfly/_infotip.scss +0 -4
- data/assets/stylesheets/patternfly/_layouts.scss +36 -11
- data/assets/stylesheets/patternfly/_list-group.scss +0 -16
- data/assets/stylesheets/patternfly/_list-view.scss +8 -13
- data/assets/stylesheets/patternfly/_login.scss +1 -1
- data/assets/stylesheets/patternfly/_mixin_overrides.scss +8 -6
- data/assets/stylesheets/patternfly/_mixins.scss +9 -7
- data/assets/stylesheets/patternfly/_nav-vertical-alt.scss +3 -3
- data/assets/stylesheets/patternfly/_navbar-alt.scss +4 -2
- data/assets/stylesheets/patternfly/_navbar-vertical.scss +2 -2
- data/assets/stylesheets/patternfly/_notifications-drawer.scss +1 -1
- data/assets/stylesheets/patternfly/_pager.scss +0 -4
- data/assets/stylesheets/patternfly/_progress-bars.scss +0 -7
- data/assets/stylesheets/patternfly/_search.scss +1 -2
- data/assets/stylesheets/patternfly/_sidebar.scss +1 -1
- data/assets/stylesheets/patternfly/_spinner.scss +1 -8
- data/assets/stylesheets/patternfly/_tables.scss +2 -2
- data/assets/stylesheets/patternfly/_time-picker.scss +1 -1
- data/assets/stylesheets/patternfly/_toast.scss +1 -1
- data/assets/stylesheets/patternfly/_toolbar.scss +30 -72
- data/assets/stylesheets/patternfly/_tooltip.scss +1 -1
- data/assets/stylesheets/patternfly/_variables.scss +9 -5
- data/assets/stylesheets/patternfly/_vertical-nav.scss +431 -269
- data/assets/stylesheets/patternfly/_wizard.scss +9 -11
- data/assets/stylesheets/patternfly/lib/bootstrap-touchspin.scss +1 -1
- data/bower.json +2 -2
- data/lib/patternfly-sass/version.rb +2 -2
- data/spec/html/about-modal.html +0 -1
- data/spec/html/accordions.html +0 -1
- data/spec/html/alerts.html +0 -1
- data/spec/html/area-charts.html +0 -1
- data/spec/html/badges.html +0 -1
- data/spec/html/bar-charts.html +0 -1
- data/spec/html/blank-slate.html +0 -1
- data/spec/html/bootstrap-combobox.html +0 -1
- data/spec/html/bootstrap-datepicker.html +0 -1
- data/spec/html/bootstrap-select.html +0 -1
- data/spec/html/bootstrap-switch.html +0 -2
- data/spec/html/bootstrap-touchspin.html +0 -1
- data/spec/html/bootstrap-treeview.html +157 -25
- data/spec/html/breadcrumbs.html +0 -1
- data/spec/html/buttons.html +0 -1
- data/spec/html/card-view-card-variations.html +10 -11
- data/spec/html/card-view-multi-select.html +97 -91
- data/spec/html/card-view-single-select.html +97 -91
- data/spec/html/code.html +0 -1
- data/spec/html/datatables-columns.html +0 -1
- data/spec/html/datatables.html +0 -1
- data/spec/html/dist/css/patternfly-additions.css +555 -383
- data/spec/html/dist/css/patternfly-additions.css.map +1 -1
- data/spec/html/dist/css/patternfly-additions.min.css +2 -3
- data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
- data/spec/html/dist/css/patternfly.css +27 -164
- data/spec/html/dist/css/patternfly.css.map +1 -1
- data/spec/html/dist/css/patternfly.min.css +3 -4
- data/spec/html/dist/css/patternfly.min.css.map +1 -1
- data/spec/html/donut-charts.html +0 -1
- data/spec/html/dropdowns.html +2 -3
- data/spec/html/forms.html +2 -3
- data/spec/html/icons.html +4 -1
- data/spec/html/index.html +3 -1
- data/spec/html/infotip.html +0 -1
- data/spec/html/labels.html +0 -1
- data/spec/html/line-charts.html +0 -1
- data/spec/html/list-group.html +0 -1
- data/spec/html/list-view-rows.html +2 -3
- data/spec/html/list-view.html +117 -104
- data/spec/html/modals.html +0 -1
- data/spec/html/navbar.html +0 -1
- data/spec/html/notification-drawer-horizontal-nav.html +84 -56
- data/spec/html/notification-drawer-vertical-nav.html +92 -58
- data/spec/html/pagination.html +0 -1
- data/spec/html/panels.html +0 -1
- data/spec/html/pie-charts.html +0 -1
- data/spec/html/popovers.html +0 -1
- data/spec/html/progress-bars.html +0 -1
- data/spec/html/search.html +10 -11
- data/spec/html/spinner.html +0 -1
- data/spec/html/tables.html +0 -1
- data/spec/html/tabs.html +0 -1
- data/spec/html/time-picker.html +0 -1
- data/spec/html/toast.html +0 -1
- data/spec/html/toolbar.html +98 -93
- data/spec/html/tooltip.html +0 -1
- data/spec/html/typography.html +0 -1
- data/spec/html/utilization-bar-charts.html +0 -1
- data/spec/html/vertical-navigation-primary-only.html +8 -2
- data/spec/html/vertical-navigation-with-badges.html +1128 -0
- data/spec/html/vertical-navigation-with-secondary.html +8 -2
- data/spec/html/vertical-navigation-with-tertiary-no-icons.html +9 -3
- data/spec/html/vertical-navigation-with-tertiary-pins.html +8 -2
- data/spec/html/wizard.html +1 -1
- data/tasks/converter.rb +22 -1
- metadata +4 -2
@@ -110,6 +110,7 @@
|
|
110
110
|
nav-pf-vertical-with-sub-menus hide-nav-pf
|
111
111
|
|
112
112
|
|
113
|
+
|
113
114
|
">
|
114
115
|
<ul class="list-group">
|
115
116
|
<li class="list-group-item">
|
@@ -122,6 +123,7 @@
|
|
122
123
|
<a>
|
123
124
|
<span class="fa fa-shield" data-toggle="tooltip" title="Dolor"></span>
|
124
125
|
<span class="list-group-item-value">Dolor</span>
|
126
|
+
|
125
127
|
</a>
|
126
128
|
</li>
|
127
129
|
<li class="list-group-item active secondary-nav-item-pf" data-target="#ipsum-secondary">
|
@@ -219,8 +221,12 @@
|
|
219
221
|
</li>
|
220
222
|
</ul>
|
221
223
|
</div>
|
222
|
-
<div class="container-fluid container-cards-pf container-pf-nav-pf-vertical
|
223
|
-
|
224
|
+
<div class="container-fluid container-cards-pf container-pf-nav-pf-vertical
|
225
|
+
|
226
|
+
|
227
|
+
">
|
228
|
+
|
229
|
+
<div class="row row-cards-pf">
|
224
230
|
<!-- Important: if you need to nest additional .row within a .row.row-cards-pf, do *not* use .row-cards-pf on the nested .row -->
|
225
231
|
<div class="col-xs-12 col-sm-6 col-md-3">
|
226
232
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
@@ -110,7 +110,8 @@
|
|
110
110
|
nav-pf-vertical-with-sub-menus hide-nav-pf
|
111
111
|
|
112
112
|
|
113
|
-
hidden-icons-pf
|
113
|
+
hidden-icons-pf
|
114
|
+
">
|
114
115
|
<ul class="list-group">
|
115
116
|
<li class="list-group-item">
|
116
117
|
<a>
|
@@ -122,6 +123,7 @@
|
|
122
123
|
<a>
|
123
124
|
<span class="fa fa-shield" data-toggle="tooltip" title="Dolor"></span>
|
124
125
|
<span class="list-group-item-value">Dolor</span>
|
126
|
+
|
125
127
|
</a>
|
126
128
|
</li>
|
127
129
|
<li class="list-group-item active secondary-nav-item-pf" data-target="#ipsum-secondary">
|
@@ -393,8 +395,12 @@
|
|
393
395
|
</li>
|
394
396
|
</ul>
|
395
397
|
</div>
|
396
|
-
<div class="container-fluid container-cards-pf container-pf-nav-pf-vertical
|
397
|
-
|
398
|
+
<div class="container-fluid container-cards-pf container-pf-nav-pf-vertical
|
399
|
+
|
400
|
+
|
401
|
+
hidden-icons-pf">
|
402
|
+
|
403
|
+
<div class="row row-cards-pf">
|
398
404
|
<!-- Important: if you need to nest additional .row within a .row.row-cards-pf, do *not* use .row-cards-pf on the nested .row -->
|
399
405
|
<div class="col-xs-12 col-sm-6 col-md-3">
|
400
406
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
@@ -110,6 +110,7 @@
|
|
110
110
|
nav-pf-vertical-with-sub-menus hide-nav-pf
|
111
111
|
|
112
112
|
nav-pf-vertical-collapsible-menus
|
113
|
+
|
113
114
|
">
|
114
115
|
<ul class="list-group">
|
115
116
|
<li class="list-group-item">
|
@@ -122,6 +123,7 @@
|
|
122
123
|
<a>
|
123
124
|
<span class="fa fa-shield" data-toggle="tooltip" title="Dolor"></span>
|
124
125
|
<span class="list-group-item-value">Dolor</span>
|
126
|
+
|
125
127
|
</a>
|
126
128
|
</li>
|
127
129
|
<li class="list-group-item active secondary-nav-item-pf" data-target="#ipsum-secondary">
|
@@ -393,8 +395,12 @@
|
|
393
395
|
</li>
|
394
396
|
</ul>
|
395
397
|
</div>
|
396
|
-
<div class="container-fluid container-cards-pf container-pf-nav-pf-vertical
|
397
|
-
|
398
|
+
<div class="container-fluid container-cards-pf container-pf-nav-pf-vertical
|
399
|
+
|
400
|
+
|
401
|
+
">
|
402
|
+
|
403
|
+
<div class="row row-cards-pf">
|
398
404
|
<!-- Important: if you need to nest additional .row within a .row.row-cards-pf, do *not* use .row-cards-pf on the nested .row -->
|
399
405
|
<div class="col-xs-12 col-sm-6 col-md-3">
|
400
406
|
<div class="card-pf card-pf-accented card-pf-aggregate-status">
|
data/spec/html/wizard.html
CHANGED
@@ -29,7 +29,6 @@
|
|
29
29
|
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
|
30
30
|
<script src="../../dist/js/patternfly.min.js"></script>
|
31
31
|
</head>
|
32
|
-
</div>
|
33
32
|
|
34
33
|
<body>
|
35
34
|
<div class="container">
|
@@ -163,6 +162,7 @@
|
|
163
162
|
<span class="wizard-pf-substep-title">Settings</span>
|
164
163
|
</a>
|
165
164
|
</li>
|
165
|
+
</ul>
|
166
166
|
</div><!-- /.wizard-pf-sidebar -->
|
167
167
|
|
168
168
|
<div class="wizard-pf-main">
|
data/tasks/converter.rb
CHANGED
@@ -20,7 +20,8 @@ class Converter
|
|
20
20
|
:replace_escaping,
|
21
21
|
:convert_less_ampersand,
|
22
22
|
:deinterpolate_vararg_mixins,
|
23
|
-
:replace_calculation_semantics
|
23
|
+
:replace_calculation_semantics,
|
24
|
+
:escape_variables_in_calc
|
24
25
|
]
|
25
26
|
TOP = <<-VAR.gsub(/^\s*/, '')
|
26
27
|
// PatternFly SASS
|
@@ -57,6 +58,18 @@ class Converter
|
|
57
58
|
super(file, mixins)
|
58
59
|
end
|
59
60
|
|
61
|
+
def replace_vars(less)
|
62
|
+
less = less.dup
|
63
|
+
# skip header comment
|
64
|
+
less =~ %r(\A/\*(.*?)\*/)m
|
65
|
+
from = $~ ? $~.to_s.length : 0
|
66
|
+
less[from..-1] = less[from..-1].
|
67
|
+
gsub(/(?!@mixin|@media|@page|@supports|@keyframes|@font-face|@-\w)@/, '$').
|
68
|
+
# variables that would be ignored by gsub above: e.g. @page-header-border-color
|
69
|
+
gsub(/@(page[\w-]+)/, '$\1')
|
70
|
+
less
|
71
|
+
end
|
72
|
+
|
60
73
|
def remove_button_variant(file)
|
61
74
|
replace_rules(file, /.button-variant(.*?)/) { |_, _| "" }
|
62
75
|
end
|
@@ -66,6 +79,14 @@ class Converter
|
|
66
79
|
file.gsub(/calc\(\~\'([^\']+)\'\)/, 'calc(\1)').gsub(/calc\(\~\"([^\"]+)\"\)/, 'calc(\1)')
|
67
80
|
end
|
68
81
|
|
82
|
+
def escape_variables_in_calc(file)
|
83
|
+
file.scan(/calc\(.*\$.*\)/).uniq.each do |calc|
|
84
|
+
dest = calc.gsub(/(\$[a-zA-Z0-9_\-]+)/, '#{\1}')
|
85
|
+
file.gsub!(calc, dest)
|
86
|
+
end
|
87
|
+
file
|
88
|
+
end
|
89
|
+
|
69
90
|
# Override
|
70
91
|
def replace_file_imports(less, target_path='')
|
71
92
|
less.gsub!(
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patternfly-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dávid Halász
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|
@@ -432,6 +432,7 @@ files:
|
|
432
432
|
- spec/html/typography.html
|
433
433
|
- spec/html/utilization-bar-charts.html
|
434
434
|
- spec/html/vertical-navigation-primary-only.html
|
435
|
+
- spec/html/vertical-navigation-with-badges.html
|
435
436
|
- spec/html/vertical-navigation-with-secondary.html
|
436
437
|
- spec/html/vertical-navigation-with-tertiary-no-icons.html
|
437
438
|
- spec/html/vertical-navigation-with-tertiary-pins.html
|
@@ -538,6 +539,7 @@ test_files:
|
|
538
539
|
- spec/html/typography.html
|
539
540
|
- spec/html/utilization-bar-charts.html
|
540
541
|
- spec/html/vertical-navigation-primary-only.html
|
542
|
+
- spec/html/vertical-navigation-with-badges.html
|
541
543
|
- spec/html/vertical-navigation-with-secondary.html
|
542
544
|
- spec/html/vertical-navigation-with-tertiary-no-icons.html
|
543
545
|
- spec/html/vertical-navigation-with-tertiary-pins.html
|