UNPKG

highcharts-multicolor-series

Version:

Highcharts plugin that adds new series: multicolor-series, where you can define color for each part of a path, between two points.

267 lines (218 loc) 3.48 kB
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"); :root { --main-color: #157af2; --second-color: #5ba2f6; --light-color: #157af226; } *, *::before, *::after { box-sizing: inherit; } html { box-sizing: border-box; scroll-behavior: smooth; } body { font-family: "Montserrat", sans-serif; margin: 0; padding: 0; } .container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 16px; } header { background-color: #1b1534; color: white; position: relative; background: linear-gradient(91deg, #1b1534 39.41%, #3f1956 99.35%); overflow: hidden; } header .logo { height: 64px; } header .columns { display: flex; align-items: center; justify-content: space-between; padding: 48px 0; gap: 32px; } header .details { max-width: 454px; } header .chart { flex: 1; } header h1 { font-size: 42px; line-height: 48px; font-weight: 500; } header p { font-size: 20px; line-height: 24px; } nav { background-color: var(--second-color); position: sticky; top: 0; z-index: 2; overflow-x: auto; } nav ul { height: 60px; margin: 0; padding: 0; display: flex; list-style: none; } nav ul li a { color: white; height: 100%; text-decoration: none; display: flex; align-items: center; justify-content: center; padding: 1.25rem; } nav ul li a:hover { background-color: var(--main-color); } main.container { padding: 1px 16px 48px 16px; } section { margin: 32px 0; } h2 { padding-top: 60px; margin: -60px 0 8px 0; } h3 { margin: 16px 0 8px 0; } p { margin: 8px 0; } pre { margin: 10px 0 16px 0; } ul { margin: 8px 0; } code { border-radius: 4px; line-height: 18px; } pre { position: relative; } .prerequisites-list li { margin-top: 4px; } pre .hljs-copy { position: absolute; top: 5px; right: 5px; background-color: #282c34; color: white; border-radius: 4px; border: none; display: flex; align-items: center; height: 32px; font-weight: 100; } pre .hljs-copy path { transition: all ease-in-out 0.2s; } pre .hljs-copy:hover path { stroke: var(--second-color); } pre .hljs-copy + code.hljs { padding-right: 72px; } .table-container { overflow-x: auto; } table { border-radius: 4px; color: #abb2bf; background: #282c34; width: 100%; min-width: 710px; overflow: hidden; } table, table th, table td { border: 1px solid white; border-collapse: collapse; } table th, table td { text-align: left; padding: 12px; } table code.hljs { background-color: #6e768166; color: white; } table tbody tr:nth-of-type(odd) { background-color: #373b42; } footer { background-color: #1b1534; color: white; padding: 24px 0; } footer .links { display: flex; align-items: center; justify-content: center; gap: 64px; } footer .links a { text-decoration: none; } footer .logo { height: 48px; } footer .social { display: flex; gap: 16px; } footer .social-link { height: 32px; } footer .social-img { height: 100%; } .hljs-copy { float: right; cursor: pointer; } @media screen and (max-width: 1279px) { .container { padding: 0 2.5rem; } } @media screen and (max-width: 767px) { .container { padding: 0 1.5rem; } footer .links { flex-direction: column; gap: 32px; } } /* Retina */ @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .container { max-width: 1100px; } }