mirror of
https://github.com/tenrok/vue-ganttastic.git
synced 2026-06-20 18:00:33 +03:00
271 lines
4.4 KiB
SCSS
271 lines
4.4 KiB
SCSS
.g-gantt-chart {
|
|
position: relative;
|
|
overflow: auto;
|
|
-webkit-touch-callout: none;
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
padding-bottom: 34px;
|
|
border: 1px solid #eaeaea;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.g-gantt-chart >>> * {
|
|
font-family: Roboto, Verdana;
|
|
}
|
|
|
|
.g-timeaxis,
|
|
.g-timeaxis-days,
|
|
.g-timeaxis-day,
|
|
.g-timeaxis-day > div {
|
|
display: flex;
|
|
}
|
|
|
|
.g-timeaxis {
|
|
position: sticky;
|
|
top: 0;
|
|
background: white;
|
|
z-index: 4;
|
|
box-shadow: 0px 1px 3px 2px rgba(50, 50, 50, 0.5);
|
|
}
|
|
|
|
.g-timeaxis > .g-timeaxis-empty-space {
|
|
min-height: 100%;
|
|
background: #f5f5f5;
|
|
z-index: 5;
|
|
left: 0;
|
|
position: sticky;
|
|
}
|
|
|
|
.g-timeaxis > .g-timeaxis-days {
|
|
position: relative;
|
|
height: 100%;
|
|
}
|
|
|
|
.g-timeaxis-day {
|
|
height: 100%;
|
|
flex-direction: column;
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
.g-timeaxis-day:nth-child(odd) {
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.g-timeaxis-day > div:nth-child(1) {
|
|
/* day text */
|
|
height: 50%;
|
|
justify-content: space-around;
|
|
font-weight: bold;
|
|
align-items: center;
|
|
}
|
|
|
|
.g-timeaxis-day > div:nth-child(2) {
|
|
/* hours of a day */
|
|
align-items: flex-end;
|
|
height: 50%;
|
|
justify-content: space-between;
|
|
background: #f5f5f5;
|
|
padding-top: 2px;
|
|
color: #212121;
|
|
}
|
|
|
|
.g-timeaxis-hour {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
flex-direction: column;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.g-timeaxis-hour-pin {
|
|
width: 1px;
|
|
height: 8px;
|
|
}
|
|
|
|
.g-timeaxis-marker {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 3px;
|
|
background: black;
|
|
}
|
|
|
|
.g-gantt-rows-container {
|
|
position: relative;
|
|
}
|
|
|
|
.g-grid-container {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.g-grid-line {
|
|
height: 100%;
|
|
border: 1px solid transparent;
|
|
border-left: 1px solid #eaeaea;
|
|
box-sizing: border-box;
|
|
display: inline-block;
|
|
}
|
|
|
|
.g-grid-line-last {
|
|
border-right: 1px solid #eaeaea;
|
|
}
|
|
|
|
.g-grid-line-highlighted {
|
|
background: #dcefff;
|
|
}
|
|
|
|
.g-gantt-row {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 40px;
|
|
transition: background-color 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.g-gantt-row > .g-gantt-row-label {
|
|
display: flex;
|
|
align-items: center;
|
|
background: #e8e8e8;
|
|
color: #424242;
|
|
font-size: 0.9em;
|
|
z-index: 3;
|
|
font-weight: bold;
|
|
left: 0;
|
|
position: sticky;
|
|
padding: 0 10px;
|
|
box-sizing: border-box;
|
|
border-top: 1px solid #eaeaea;
|
|
border-bottom: 1px solid #eaeaea;
|
|
}
|
|
|
|
.g-gantt-row > .g-gantt-row-label > * {
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.g-gantt-row > .g-gantt-row-bars-container {
|
|
position: relative;
|
|
border-top: 1px solid #eaeaea;
|
|
border-bottom: 1px solid #eaeaea;
|
|
flex: 1;
|
|
}
|
|
|
|
.g-gantt-bar {
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: white;
|
|
width: 300px;
|
|
height: 34px;
|
|
border-radius: 15px;
|
|
background: #79869c;
|
|
overflow: hidden;
|
|
cursor: move;
|
|
}
|
|
|
|
.g-gantt-bar-immobile {
|
|
cursor: unset;
|
|
}
|
|
|
|
.g-gantt-bar-label {
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
padding: 0 14px 0 14px; /* 14px is the width of the handle */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.g-gantt-bar-label > * {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.g-gantt-bar > .g-gantt-bar-handle-left,
|
|
.g-gantt-bar > .g-gantt-bar-handle-right {
|
|
position: absolute;
|
|
width: 10px;
|
|
height: 100%;
|
|
background: white;
|
|
opacity: 0.7;
|
|
border-radius: 40px;
|
|
}
|
|
|
|
.g-gantt-bar-handle-left {
|
|
left: 0;
|
|
cursor: w-resize;
|
|
}
|
|
|
|
.g-gantt-bar-handle-right {
|
|
right: 0;
|
|
cursor: e-resize;
|
|
}
|
|
|
|
.g-gantt-bar-label img {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.g-gantt-tooltip {
|
|
position: absolute;
|
|
background: black;
|
|
color: white;
|
|
z-index: 3;
|
|
font-size: 0.7em;
|
|
padding: 3px;
|
|
border-radius: 3px;
|
|
transition: opacity 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.g-gantt-tooltip:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 10%;
|
|
width: 0;
|
|
height: 0;
|
|
border: 10px solid transparent;
|
|
border-bottom-color: black;
|
|
border-top: 0;
|
|
margin-left: -5px;
|
|
margin-top: -5px;
|
|
}
|
|
|
|
.g-gantt-tooltip > .color-indicator {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 100%;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.fade-enter-active {
|
|
animation: fade-in 0.3s;
|
|
}
|
|
|
|
.fade-leave-active {
|
|
animation: fade-in 0.3s reverse;
|
|
}
|
|
|
|
@keyframes fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|