patternfly-sass 3.3.5 → 3.3.6.pre.alpha

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,20 +43,33 @@
43
43
  These examples are included for development testing purposes. For official documentation, see <a href="https://www.patternfly.org" class="alert-link">https://www.patternfly.org</a>, <a href="http://getbootstrap.com" class="alert-link">http://getbootstrap.com</a>, and <a href="http://c3js.org/">http://c3js.org/</a>
44
44
  </div>
45
45
  <hr>
46
+ <style>
47
+ .example-pie-chart, .example-pie-chart-right-legend, .example-pie-chart-bottom-legend {
48
+ width: 440px;
49
+ }
50
+
51
+ .example-pie-chart {
52
+ margin-left: 10px;
53
+ }
54
+
55
+ .example-pie-chart-right-legend {
56
+ margin-left: 27px;
57
+ }
58
+
59
+ .example-pie-chart-bottom-legend {
60
+ margin-left: -50px;
61
+ }
62
+
63
+ .example-pie-chart-mini {
64
+ margin-left: 23px;
65
+ }
66
+ </style>
46
67
  <div>
47
68
  <h2>Donut Chart - Relationship to a Whole</h2>
48
- <div style="width: 700px;">
49
- <div class="row">
50
- <div class="col-xs-12 col-sm-12 col-md-4">
51
- <div id="donut-chart-no-legend"></div>
52
- </div>
53
- <div class="col-xs-12 col-sm-12 col-md-4">
54
- <div id="donut-chart-right-legend"></div>
55
- </div>
56
- <div class="col-xs-12 col-sm-12 col-md-4">
57
- <div id="donut-chart-bottom-legend"></div>
58
- </div>
59
- </div>
69
+ <div>
70
+ <div id="donut-chart-no-legend" class="example-pie-chart"></div>
71
+ <div id="donut-chart-right-legend" class="example-pie-chart-right-legend"></div>
72
+ <div id="donut-chart-bottom-legend" class="example-pie-chart-bottom-legend"></div>
60
73
  <script>
61
74
  var c3ChartDefaults = $().c3ChartDefaults();
62
75
 
@@ -83,6 +96,10 @@
83
96
  var pieChartConfig = c3ChartDefaults.getDefaultPieConfig();
84
97
  pieChartConfig.bindto = '#donut-chart-no-legend';
85
98
  pieChartConfig.data = pieData;
99
+ pieChartConfig.size = {
100
+ width: 200,
101
+ height: 171
102
+ };
86
103
  var pieChartNoLegend = c3.generate(pieChartConfig);
87
104
 
88
105
  // Right Legend
@@ -117,8 +134,8 @@
117
134
  </div>
118
135
  <h2>Pie Chart - Small</h2>
119
136
  <div>
120
- <div id="smallDonutChart" class="pie-chart-pf"></div>
121
- <div style="text-align: center; width: 160px;">Animals</div>
137
+ <div id="smallDonutChart" class="pie-chart-pf example-pie-chart-mini"></div>
138
+ <div style="text-align: center; width: 220px;">Animals</div>
122
139
  <script>
123
140
  var pieData = {
124
141
  type : 'pie',
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.3.5
4
+ version: 3.3.6.pre.alpha
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-04-29 00:00:00.000000000 Z
12
+ date: 2016-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -427,9 +427,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
427
427
  version: '0'
428
428
  required_rubygems_version: !ruby/object:Gem::Requirement
429
429
  requirements:
430
- - - ">="
430
+ - - ">"
431
431
  - !ruby/object:Gem::Version
432
- version: '0'
432
+ version: 1.3.1
433
433
  requirements: []
434
434
  rubyforge_project:
435
435
  rubygems_version: 2.5.1