File size: 2,222 Bytes
863e033 f4c2362 134505f f4c2362 134505f f4c2362 134505f f4c2362 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
body {
padding: 2rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
}
h1 {
font-size: 16px;
margin-top: 0;
}
p {
color: rgb(107, 114, 128);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
}
.card {
max-width: 620px;
margin: 0 auto;
padding: 16px;
border: 1px solid lightgray;
border-radius: 16px;
}
.card p:last-child {
margin-bottom: 0;
}
.commit-timeline {
display: flex;
flex-direction: row;
}
/* Container for the vertical line and nodes */
.commit-tree {
position: absolute;
height: 42.5rem; /* Full viewport height */
width: calc(100% - 600px);
bottom: 80px;
animation: fade-in ease 1s;
}
@media (width <= 1300px) {
.commit-tree {
visibility: hidden;
opacity: 0;
}
}
/* Vertical line using pseudo-element */
.commit-tree::before {
content: '';
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 4px;
background: linear-gradient(rgb(17 24 39 / var(--tw-bg-opacity, 1)) 0%, #e5e7eb 50%, #e5e7eb 100%);
}
.light .commit-tree::before {
background: linear-gradient(#e5e7eb 0%, #e5e7eb 50%, #616877 100%);
}
/* Commit node styling */
.commit-node {
position: absolute;
right: 0;
transform: translateX(4px);
width: 12px;
height: 12px;
background-color: #e5e7eb;
border-radius: 50%;
cursor: pointer;
z-index: 1;
display: flex;
flex-direction: row;
}
.light .commit-node{
background-color: #616877;
}
.outer_svg {
}
/* Tooltip styling */
.tooltip {
width: 350px;
text-align: center;
border-radius: 6px;
padding: 8px;
position: absolute;
z-index: 2;
left: 120%; /* Position to the right of the node */
top: 50%;
transform: translateY(-50%);
white-space: nowrap;
font-size: 14px;
transition: all 0.3s;
}
.tooltip:hover {
width: 500px;
}
.tooltip .title {
height: 2.6rem;
transition: all 0.3s;
}
.tooltip:hover .title {
height: 4.25rem;
}
.tooltip .desc {
visibility: hidden;
transition: all 0.3s;
opacity: 0;
}
.tooltip:hover .desc {
visibility: visible;
opacity: 1;
}
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
|