awesome-timeline-react
Version:
awesome timeline for react applications
211 lines (210 loc) • 4.16 kB
CSS
/* src/style.css */
.rows-header-wrapper {
width: 100px;
height: fit-content;
border-right: 1px solid yellow;
background-color: rgb(39, 36, 36);
color: white;
box-sizing: border-box;
.row-header:not(:last-child) {
border-bottom: 1px solid yellow;
}
box-shadow: 4px 0px 20px black;
}
.main-wrapper {
position: relative;
display: flex;
flex-direction: column;
height: 100%;
width: 100%;
}
.body-wrapper {
display: flex;
flex-direction: row;
border-left: 1px solid black;
border-bottom: 1px solid black;
border-right: 1px solid black;
width: 100%;
overflow: auto;
box-sizing: border-box;
}
.day-block {
height: 100%;
text-align: center;
box-sizing: border-box;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 4px;
}
.hour-block {
display: block;
width: 100%;
text-align: center;
padding: 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* src/components/style.css */
.content-wrapper {
position: relative;
display: flex;
flex-direction: column;
width: 100%;
.row-content:not(:last-child) {
border-bottom: 1px solid #e4dcdc;
}
}
.row-header {
display: flex;
justify-content: center;
align-items: center;
width: 100px;
transition: min-height 0.5s ease-in-out;
box-sizing: border-box;
}
.row-content {
position: relative;
width: 100%;
padding-top: 10px;
padding-bottom: 10px;
overflow: hidden;
z-index: 0;
transition: min-height 0.5s ease-in-out;
box-sizing: border-box;
}
.event {
position: absolute;
height: 20px;
border: 1px solid black;
z-index: 1;
transition: top 0.5s ease-in-out;
box-sizing: border-box;
display: flex;
justify-content: space-between;
border-radius: 5px;
box-shadow: inset 0px 0px 5px gray;
}
.event-content {
position: absolute;
margin-inline: 13px;
width: calc(100% - 26px);
height: 100%;
display: flex;
overflow: hidden;
}
.event:hover .event-resize {
opacity: 100%;
}
.event-prompt {
position: absolute;
display: none;
}
.resize-bar {
height: 10px;
border: 1px solid black;
width: 1px;
box-sizing: border-box;
border-radius: 3px;
}
.event-resize {
opacity: 0%;
margin: 4px;
cursor: e-resize;
transition: opacity 0.3s ease-in-out;
flex-shrink: 1;
}
.static-event {
position: absolute;
background-color: #e0e0e0;
z-index: 0;
border: 1px solid transparent;
box-sizing: border-box;
border-radius: 5px;
}
.time-bar {
display: flex;
flex-direction: row;
width: 100%;
height: 50px;
min-height: 50px;
border: 1px solid yellow;
background-color: rgb(39, 36, 36);
color: white;
box-sizing: border-box;
}
.empty-block {
width: 100px;
min-width: 100px;
border-right: 1px solid yellow;
box-sizing: border-box;
}
.time-content {
display: flex;
flex-direction: column;
height: 100%;
}
.day-row {
display: grid;
height: 50%;
width: auto;
border-bottom: 1px solid yellow;
div:not(:last-child) {
border-right: 1px solid yellow;
}
}
.hour-row {
display: grid;
height: 50%;
div:not(:last-child) {
border-right: 1px solid yellow;
box-sizing: border-box;
}
box-shadow: 0px 4px 20px black;
}
.not-clickable {
div {
pointer-events: none;
}
}
.line {
height: 100%;
width: 100%;
border-right: 1px solid #e4dcdc;
box-sizing: border-box;
}
.lines-canvas {
position: absolute;
top: 0;
display: grid;
height: 100%;
width: 100%;
overflow: hidden;
}
.hide-last-line {
div:last-child {
border-right: none;
}
}
.row-hidden {
visibility: hidden;
}
.rt-line {
position: absolute;
height: calc(100% - 24px);
top: 24px;
width: 2px;
box-sizing: border-box;
border-right: dotted 2px red;
}
.rt-arrow {
position: absolute;
top: 0px;
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 26px solid red;
}
/*# sourceMappingURL=index.css.map */