From 08134834bfb540979c07a01c3eb557880210fea6 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 18 Nov 2014 18:08:48 +0100 Subject: [PATCH 1/2] [fix] purge li elements --- build/cssplot.base.css | 24 ++++++++++++------------ build/cssplot.full.css | 24 ++++++++++++------------ src/modules/base.less | 8 ++++---- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/build/cssplot.base.css b/build/cssplot.base.css index fa16d7a..273f0e6 100644 --- a/build/cssplot.base.css +++ b/build/cssplot.base.css @@ -7,7 +7,7 @@ padding: 0; margin: 0; } -.plot-container li { +.plot-container > * > * { list-style: none; border: 1px solid #ffffff; } @@ -28,24 +28,24 @@ margin: 0; min-height: 100px; } -.column-chart.stacked li { +.column-chart.stacked > * > * { height: 100%; -webkit-transform: scaleY(-1); - -moz-transform: scaleY(-1); - -o-transform: scaleY(-1); - -ms-transform: scaleY(-1); - transform: scaleY(-1); + -moz-transform: scaleY(-1); + -o-transform: scaleY(-1); + -ms-transform: scaleY(-1); + transform: scaleY(-1); } .column-chart.stacked .group-by-number [data-cp-size] { -webkit-transform: scaleY(-1); - -moz-transform: scaleY(-1); - -o-transform: scaleY(-1); - -ms-transform: scaleY(-1); - transform: scaleY(-1); + -moz-transform: scaleY(-1); + -o-transform: scaleY(-1); + -ms-transform: scaleY(-1); + transform: scaleY(-1); } .column-chart .chart-column, .column-chart [data-cp-size], -.column-chart.stacked li { +.column-chart.stacked > * > * { -webkit-flex-grow: 1; flex-grow: 1; -webkit-align-self: flex-end; @@ -72,7 +72,7 @@ .bar-chart [data-cp-size] { min-height: 8px; } -.bar-chart.stacked li { +.bar-chart.stacked > * > * { display: flex; } .bar-chart.stacked .group-by-number [data-cp-size] { diff --git a/build/cssplot.full.css b/build/cssplot.full.css index 5445b48..511bed9 100644 --- a/build/cssplot.full.css +++ b/build/cssplot.full.css @@ -7,7 +7,7 @@ padding: 0; margin: 0; } -.plot-container li { +.plot-container > * > * { list-style: none; border: 1px solid #ffffff; } @@ -28,24 +28,24 @@ margin: 0; min-height: 100px; } -.column-chart.stacked li { +.column-chart.stacked > * > * { height: 100%; -webkit-transform: scaleY(-1); - -moz-transform: scaleY(-1); - -o-transform: scaleY(-1); - -ms-transform: scaleY(-1); - transform: scaleY(-1); + -moz-transform: scaleY(-1); + -o-transform: scaleY(-1); + -ms-transform: scaleY(-1); + transform: scaleY(-1); } .column-chart.stacked .group-by-number [data-cp-size] { -webkit-transform: scaleY(-1); - -moz-transform: scaleY(-1); - -o-transform: scaleY(-1); - -ms-transform: scaleY(-1); - transform: scaleY(-1); + -moz-transform: scaleY(-1); + -o-transform: scaleY(-1); + -ms-transform: scaleY(-1); + transform: scaleY(-1); } .column-chart .chart-column, .column-chart [data-cp-size], -.column-chart.stacked li { +.column-chart.stacked > * > * { -webkit-flex-grow: 1; flex-grow: 1; -webkit-align-self: flex-end; @@ -72,7 +72,7 @@ .bar-chart [data-cp-size] { min-height: 8px; } -.bar-chart.stacked li { +.bar-chart.stacked > * > * { display: flex; } .bar-chart.stacked .group-by-number [data-cp-size] { diff --git a/src/modules/base.less b/src/modules/base.less index 3c96d8a..d1e9f14 100644 --- a/src/modules/base.less +++ b/src/modules/base.less @@ -6,7 +6,7 @@ margin: 0; } -.plot-container li { +.plot-container > * > * { list-style: none; border: 1px solid #ffffff; } @@ -26,7 +26,7 @@ min-height: 100px; } -.column-chart.stacked li { +.column-chart.stacked > * > * { height: 100%; -webkit-transform: scaleY(-1); -moz-transform: scaleY(-1); @@ -45,7 +45,7 @@ .column-chart .chart-column, .column-chart [data-cp-size], -.column-chart.stacked li { +.column-chart.stacked > * > * { -webkit-flex-grow: 1; flex-grow: 1; -webkit-align-self: flex-end; @@ -77,7 +77,7 @@ min-height: 8px; } -.bar-chart.stacked li { +.bar-chart.stacked > * > * { display: flex; } From 7ba1be4779cd76b4a25e6588bb0798ba920f07f4 Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 18 Nov 2014 18:16:28 +0100 Subject: [PATCH 2/2] [fix] bar border --- build/cssplot.base.css | 4 ++++ build/cssplot.full.css | 4 ++++ src/modules/base.less | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/build/cssplot.base.css b/build/cssplot.base.css index 273f0e6..c91d1ed 100644 --- a/build/cssplot.base.css +++ b/build/cssplot.base.css @@ -7,6 +7,10 @@ padding: 0; margin: 0; } +.column-chart .chart-column, +.bar-chart .chart-row, +.column-chart [data-cp-size], +.bar-chart [data-cp-size], .plot-container > * > * { list-style: none; border: 1px solid #ffffff; diff --git a/build/cssplot.full.css b/build/cssplot.full.css index 511bed9..5f347fa 100644 --- a/build/cssplot.full.css +++ b/build/cssplot.full.css @@ -7,6 +7,10 @@ padding: 0; margin: 0; } +.column-chart .chart-column, +.bar-chart .chart-row, +.column-chart [data-cp-size], +.bar-chart [data-cp-size], .plot-container > * > * { list-style: none; border: 1px solid #ffffff; diff --git a/src/modules/base.less b/src/modules/base.less index d1e9f14..fa3538b 100644 --- a/src/modules/base.less +++ b/src/modules/base.less @@ -6,6 +6,10 @@ margin: 0; } +.column-chart .chart-column, +.bar-chart .chart-row, +.column-chart [data-cp-size], +.bar-chart [data-cp-size], .plot-container > * > * { list-style: none; border: 1px solid #ffffff;