@miyax/ganttjs
Version:
An open source gantt chart for the web
63 lines (52 loc) • 991 B
CSS
/**
create root variables
*/
:root {
--gjs-row-cell-width: 3rem;
}
.gjs__container {
outline: 1px solid #ccc5;
display: grid;
overflow-x: auto;
row-gap: .1rem;
}
.gjs__row-cell {
display: flex;
justify-content: center;
align-items: center;
outline: 1px solid #ccc5;
min-width: var(--gjs-row-cell-width);
}
.gjs__row-cell > span {
box-sizing: border-box;
padding: 0.5rem 0;
width: 100%;
height: 100%;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
text-align: center;
}
.gjs__cell-header {
box-sizing: border-box;
border-right: 1px solid #ccc5;
}
.gjs__cell-month {
background-color: #f5f5f5;
}
.gjs__row-cell--day {
background: transparent;
}
.gjs__cell-today {
background: rgba(241, 230, 180, 0.5);
}
.gjs__cell-weekend {
background-color: #ecebeb;
}
.gjs__cell-task {
background: transparent;
}
.gjs__cell-task > span {
border-radius: 5px;
z-index: 1;
}