UNPKG

react-best-heatmap

Version:

Build and customize an heatmap for exactly what you need.

79 lines (66 loc) 1.17 kB
* { box-sizing: border-box; } /* HeatMap */ .rbh-container { display: flex; flex-direction: column; flex-wrap: wrap; align-items: center; padding: 20px 0; max-width: 100%; overflow-x: auto; } .rbh-container::-webkit-scrollbar { width: 5px; height: 7px; } .rbh-container::-webkit-scrollbar-track { background: #ebedf0; } .rbh-container::-webkit-scrollbar-thumb { background: #CCC; } .rbh-wrapper { display: flex; align-items: center; font-size: 10px; } .rbh-week-container { height: 98px; text-transform: capitalize; margin-top: 14px; } .rbh-week-label { display: flex; align-items: center; height: 14px; } .rbh-columns-container { display: flex; margin-left: 7px; padding-top: 16px; position: relative; text-transform: capitalize; } .rbh-column-container { display: flex; flex-direction: column; height: 98px; } .rbh-column-container > span { position: absolute; top: 0; } .rbh-boxes-container { display: flex; flex-direction: column; flex-wrap: wrap; } .rbh-box-container { position: relative; height: 10px; width: 10px; margin: 2px; border: 1px solid rgba(27, 31, 35, 0.06); }