sav-timeline/build/site/css/timeline.css

251 lines
6.6 KiB
CSS
Raw Permalink Normal View History

2024-05-14 05:46:17 +00:00
@import url('https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,200;1,200&family=Roboto:ital,wght@0,700;1,700&display=swap');
:root {
--header-font: "Roboto", "aktiv-grotesk", sans-serif;
--body-font: "Chivo", serif;
--primary-color: #1A1A1A;
--primary-color-shade-0: #CACACA;
--primary-color-shade-0-alpha: #CACACA00;
--secondary-color: #FFDE00;
}
body {
font-family: var(--body-font);
font-weight: 200;
}
h1 {
font-family: var(--header-font);
font-weight: bold;
}
.nt-timeline-title {
font-family: var(--header-font);
font-weight: bold;
}
/* nt-timeline vendoring */
.nt-timeline {
margin-top: 30px;
}
.nt-timeline .nt-timeline-title {
font-size: 1.1rem;
margin-top: 0;
}
.nt-timeline .nt-timeline-sub-title {
margin-top: 0;
}
.nt-timeline .nt-timeline-content {
font-size: 1rem;
border-bottom: 2px dashed #ccc;
padding-bottom: 1.2rem;
}
.nt-timeline.horizontal .nt-timeline-items {
flex-direction: row;
overflow-x: scroll;
}
.nt-timeline.horizontal .nt-timeline-items > div {
min-width: 400px;
margin-right: 50px;
}
.nt-timeline.horizontal.reverse .nt-timeline-items {
flex-direction: row-reverse;
}
.nt-timeline.horizontal.center .nt-timeline-before {
background-image: linear-gradient(rgba(252, 70, 107, 0) 0%, rgb(252, 70, 107) 100%);
background-repeat: no-repeat;
background-size: 100% 2px;
background-position: 0 center;
}
.nt-timeline.horizontal.center .nt-timeline-after {
background-image: linear-gradient(180deg, var(--primary-color-shade-0) 0%, var(--primary-color-shade-0) 100%);
background-repeat: no-repeat;
background-size: 100% 2px;
background-position: 0 center;
}
.nt-timeline.horizontal.center .nt-timeline-items {
background-image: radial-gradient(circle, rgb(63, 94, 251) 0%, rgb(252, 70, 107) 100%);
background-repeat: no-repeat;
background-size: 100% 2px;
background-position: 0 center;
}
.nt-timeline.horizontal .nt-timeline-dot {
left: 50%;
}
.nt-timeline.horizontal .nt-timeline-dot:not(.bigger) {
top: calc(50% - 4px);
}
.nt-timeline.horizontal .nt-timeline-dot.bigger {
top: calc(50% - 15px);
}
.nt-timeline.vertical .nt-timeline-items {
flex-direction: column;
}
.nt-timeline.vertical.reverse .nt-timeline-items {
flex-direction: column-reverse;
}
.nt-timeline.vertical.center .nt-timeline-before {
background: linear-gradient(rgba(252, 70, 107, 0) 0%, rgb(252, 70, 107) 100%) no-repeat center/2px 100%;
}
.nt-timeline.vertical.center .nt-timeline-after {
background: linear-gradient(rgb(252, 70, 107) 0%, rgba(252, 70, 107, 0) 100%) no-repeat center/2px 100%;
}
.nt-timeline.vertical.center .nt-timeline-items {
background: radial-gradient(circle, rgb(63, 94, 251) 0%, rgb(252, 70, 107) 100%) no-repeat center/2px 100%;
}
.nt-timeline.vertical.center .nt-timeline-dot {
left: calc(50% - 10px);
}
.nt-timeline.vertical.center .nt-timeline-dot:not(.bigger) {
top: 10px;
}
.nt-timeline.vertical.center .nt-timeline-dot.bigger {
left: calc(50% - 20px);
}
.nt-timeline.vertical.left {
padding-left: 100px;
}
.nt-timeline.vertical.left .nt-timeline-item {
padding-left: 70px;
}
.nt-timeline.vertical.left .nt-timeline-sub-title {
left: -100px;
width: 100px;
text-align: right;
}
.nt-timeline.vertical.left .nt-timeline-before {
background: linear-gradient(var(--primary-color-shade-0-alpha) 0%, var(--primary-color-shade-0) 100%) no-repeat 30px/2px 100%;
}
.nt-timeline.vertical.left .nt-timeline-after {
background: linear-gradient(var(--primary-color-shade-0) 0%, var(--primary-color-shade-0-alpha) 100%) no-repeat 30px/2px 100%;
}
.nt-timeline.vertical.left .nt-timeline-items {
background: radial-gradient(circle, var(--primary-color) 0%, var(--primary-color-shade-0) 100%) no-repeat 30px/2px 100%;
}
.nt-timeline.vertical.left .nt-timeline-dot {
left: 24px;
top: 5px;
}
.nt-timeline.vertical.left .nt-timeline-dot.bigger {
top: 0px;
left: 10px;
}
.nt-timeline.vertical.right {
padding-right: 100px;
}
.nt-timeline.vertical.right .nt-timeline-sub-title {
right: -100px;
text-align: left;
width: 100px;
}
.nt-timeline.vertical.right .nt-timeline-item {
padding-right: 70px;
}
.nt-timeline.vertical.right .nt-timeline-before {
background: linear-gradient(rgba(252, 70, 107, 0) 0%, rgb(252, 70, 107) 100%) no-repeat calc(100% - 30px)/2px 100%;
}
.nt-timeline.vertical.right .nt-timeline-after {
background: linear-gradient(rgb(252, 70, 107) 0%, rgba(252, 70, 107, 0) 100%) no-repeat calc(100% - 30px)/2px 100%;
}
.nt-timeline.vertical.right .nt-timeline-items {
background: radial-gradient(circle, rgb(63, 94, 251) 0%, rgb(252, 70, 107) 100%) no-repeat calc(100% - 30px)/2px 100%;
}
.nt-timeline.vertical.right .nt-timeline-dot {
right: 21px;
top: 8px;
}
.nt-timeline.vertical.right .nt-timeline-dot.bigger {
top: 10px;
right: 10px;
}
.nt-timeline-items {
display: flex;
position: relative;
}
.nt-timeline-items > div {
min-height: 100px;
padding-top: 2px;
padding-bottom: 20px;
}
.nt-timeline-before {
content: "";
height: 15px;
}
.nt-timeline-after {
content: "";
height: 60px;
margin-bottom: 20px;
}
.nt-timeline-sub-title {
position: absolute;
width: 50%;
top: 4px;
font-size: 18px;
color: var(--nt-color-50);
}
[data-md-color-scheme=slate] .nt-timeline-sub-title {
color: var(--nt-color-51);
}
.nt-timeline-item {
position: relative;
}
.nt-timeline.vertical.center:not(.alternate) .nt-timeline-item {
padding-left: calc(50% + 40px);
}
.nt-timeline.vertical.center:not(.alternate) .nt-timeline-item .nt-timeline-sub-title {
left: 0;
padding-right: 40px;
text-align: right;
}
.nt-timeline.vertical.center.alternate .nt-timeline-item:nth-child(odd) {
padding-left: calc(50% + 40px);
}
.nt-timeline.vertical.center.alternate .nt-timeline-item:nth-child(odd) .nt-timeline-sub-title {
left: 0;
padding-right: 40px;
text-align: right;
}
.nt-timeline.vertical.center.alternate .nt-timeline-item:nth-child(even) {
text-align: right;
padding-right: calc(50% + 40px);
}
.nt-timeline.vertical.center.alternate .nt-timeline-item:nth-child(even) .nt-timeline-sub-title {
right: 0;
padding-left: 40px;
text-align: left;
}
.nt-timeline-dot {
position: relative;
width: 10px;
height: 10px;
border-radius: 100%;
background-color: var(--secondary-color);
position: absolute;
top: 0px;
z-index: 2;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
border: 3px solid var(--primary-color);
}
.nt-timeline-dot:not(.bigger) .icon {
font-size: 10px;
}
.nt-timeline-dot.bigger {
width: 40px;
height: 40px;
padding: 3px;
}
.nt-timeline-dot .icon {
color: white;
}