feat: update build

This commit is contained in:
Shivam Mishra 2020-07-28 15:47:32 +05:30
parent 63e0a0bdf4
commit 89fc842330
6 changed files with 34 additions and 4475 deletions

File diff suppressed because one or more lines are too long

1
dist/frappe-charts.cjs.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/frappe-charts.esm.js.map vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,25 +1,35 @@
:root {
--fr-label-color: #313b44;
--fr-axis-line-color: #E2E6E9;
--fr-stroke-width: 2px;
--fr-dataset-circle-stroke: #FFFFFF;
--fr-dataset-circle-stroke-width: var(--fr-stroke-width);
--fr-tooltip-title: var(--fr-label-color);
--fr-tooltip-label: var(--fr-label-color);
--fr-tooltip-value: #192734;
--fr-tooltip-bg: #FFFFFF; }
.chart-container { .chart-container {
position: relative; position: relative;
/* for absolutely positioned tooltip */ /* for absolutely positioned tooltip */
/* https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ */
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; } font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; }
.chart-container .axis, .chart-container .chart-label { .chart-container .axis, .chart-container .chart-label {
fill: #313B44; } fill: var(--fr-label-color); }
.chart-container .axis line, .chart-container .chart-label line { .chart-container .axis line, .chart-container .chart-label line {
stroke: #E2E6E9; } stroke: var(--fr-axis-line-color); }
.chart-container .dataset-units circle { .chart-container .dataset-units circle {
stroke: #fff; stroke: var(--fr-dataset-circle-stroke);
stroke-width: 2; } stroke-width: var(--fr-dataset-circle-stroke-width); }
.chart-container .dataset-units path { .chart-container .dataset-units path {
fill: none; fill: none;
stroke-opacity: 1; stroke-opacity: 1;
stroke-width: 2px; } stroke-width: var(--fr-stroke-width); }
.chart-container .dataset-path { .chart-container .dataset-path {
stroke-width: 2px; } stroke-width: var(--fr-stroke-width); }
.chart-container .path-group path { .chart-container .path-group path {
fill: none; fill: none;
stroke-opacity: 1; stroke-opacity: 1;
stroke-width: 2px; } stroke-width: var(--fr-stroke-width); }
.chart-container line.dashed { .chart-container line.dashed {
stroke-dasharray: 5, 3; } stroke-dasharray: 5, 3; }
.chart-container .axis-line .specific-value { .chart-container .axis-line .specific-value {
@ -28,9 +38,11 @@
text-anchor: end; } text-anchor: end; }
.chart-container .axis-line .x-line { .chart-container .axis-line .x-line {
text-anchor: middle; } text-anchor: middle; }
.chart-container .legend-dataset-text { .chart-container .legend-dataset-label {
fill: #6c7680; fill: var(--fr-tooltip-label);
font-weight: 600; } font-weight: 600; }
.chart-container .legend-dataset-value {
fill: var(--fr-tooltip-value); }
.graph-svg-tip { .graph-svg-tip {
position: absolute; position: absolute;
@ -38,7 +50,7 @@
padding: 10px; padding: 10px;
font-size: 12px; font-size: 12px;
text-align: center; text-align: center;
background: #FFFFFF; background: var(--fr-tooltip-bg);
box-shadow: 0px 1px 4px rgba(17, 43, 66, 0.1), 0px 2px 6px rgba(17, 43, 66, 0.08), 0px 40px 30px -30px rgba(17, 43, 66, 0.1); box-shadow: 0px 1px 4px rgba(17, 43, 66, 0.1), 0px 2px 6px rgba(17, 43, 66, 0.08), 0px 40px 30px -30px rgba(17, 43, 66, 0.1);
border-radius: 6px; } border-radius: 6px; }
.graph-svg-tip ul { .graph-svg-tip ul {
@ -55,7 +67,7 @@
height: 12px; height: 12px;
width: 12px; width: 12px;
border-radius: 2px; border-radius: 2px;
background: white; background: var(--fr-tooltip-bg);
transform: rotate(45deg); transform: rotate(45deg);
margin-top: -7px; margin-top: -7px;
margin-left: -6px; } margin-left: -6px; }
@ -67,7 +79,7 @@
display: block; display: block;
padding: 16px; padding: 16px;
margin: 0; margin: 0;
color: #313B44; color: var(--fr-tooltip-title);
font-weight: 600; font-weight: 600;
line-height: 1; line-height: 1;
pointer-events: none; pointer-events: none;
@ -96,9 +108,9 @@
margin-top: 4px; margin-top: 4px;
font-size: 11px; font-size: 11px;
max-width: 100px; max-width: 100px;
color: #313B44; color: var(--fr-tooltip-label);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; } white-space: nowrap; }
.graph-svg-tip.comparison li .tooltip-value { .graph-svg-tip.comparison li .tooltip-value {
color: #192734; } color: var(--fr-tooltip-value); }

File diff suppressed because one or more lines are too long

1
dist/frappe-charts.umd.js.map vendored Normal file

File diff suppressed because one or more lines are too long