mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-27 14:04:35 +00:00
283 lines
5.0 KiB
CSS
283 lines
5.0 KiB
CSS
.timeline-container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
float: none;
|
|
border-radius: 0;
|
|
position: relative;
|
|
width: 100%;
|
|
padding: 0 8px;
|
|
}
|
|
|
|
.timeline {
|
|
background-color: transparent;
|
|
}
|
|
|
|
|
|
.timeline-header {
|
|
width: 100%;
|
|
/* background-color: var(--tp-surface-container); */
|
|
text-align: center;
|
|
/* padding: 16px; */
|
|
display: block;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
/* margin-bottom: 8px; */
|
|
box-sizing: border-box;
|
|
border-radius: var(--shape-lg);
|
|
/* box-shadow: var(--elevation-1); */
|
|
color: var(--tp-on-surface);
|
|
}
|
|
|
|
.timeline-header button {
|
|
float: unset;
|
|
background: var(--tp-primary);
|
|
color: var(--tp-on-primary);
|
|
border-radius: var(--shape-sm);
|
|
padding: 8px 20px;
|
|
font-weight: 500;
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.timeline-header button:hover {
|
|
background: var(--tp-on-primary-container);
|
|
}
|
|
|
|
.timeline-banner img {
|
|
width: 100%;
|
|
border-radius: var(--shape-lg);
|
|
}
|
|
|
|
.timeline-description {
|
|
font-weight: normal;
|
|
color: var(--tp-on-surface-variant);
|
|
}
|
|
|
|
.tab {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
list-style: none;
|
|
margin: 0 0 16px 0;
|
|
padding: 0;
|
|
border-bottom: 1px solid var(--tp-outline-variant);
|
|
position: sticky;
|
|
top: 56px;
|
|
background-color: var(--bg_color);
|
|
z-index: 10;
|
|
}
|
|
|
|
.tab-item {
|
|
flex: 1 1 0;
|
|
text-align: center;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.tab-item a {
|
|
color: var(--tp-on-surface-variant);
|
|
display: block;
|
|
padding: 8px 12px;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.tab-item a:hover {
|
|
text-decoration: none;
|
|
color: var(--tp-on-surface);
|
|
}
|
|
|
|
.tab-item a.active {
|
|
border-bottom-color: var(--tp-primary);
|
|
color: var(--tp-on-surface);
|
|
}
|
|
|
|
.tab-item.active a {
|
|
border-bottom-color: var(--tp-accent-blue);
|
|
color: var(--tp-on-surface);
|
|
}
|
|
|
|
.tab-item.wide {
|
|
flex-grow: 1.2;
|
|
flex-basis: 50px;
|
|
}
|
|
|
|
.timeline-footer {
|
|
background-color: var(--tp-surface-container-low);
|
|
padding: 8px 0;
|
|
border-radius: var(--shape-lg);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.timeline-protected {
|
|
text-align: center;
|
|
background-color: var(--tp-surface-container);
|
|
border-radius: var(--shape-lg);
|
|
padding: 24px 16px;
|
|
box-shadow: var(--elevation-1);
|
|
}
|
|
|
|
.timeline-protected p {
|
|
margin: 8px 0;
|
|
color: var(--tp-on-surface-variant);
|
|
}
|
|
|
|
.timeline-protected h2 {
|
|
color: var(--tp-primary);
|
|
font-size: 22px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.timeline-none {
|
|
color: var(--tp-primary);
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
padding: 24px 16px;
|
|
/* box-shadow: var(--elevation-1); */
|
|
}
|
|
|
|
.timeline-end {
|
|
background-color: var(--tp-surface-container);
|
|
color: var(--tp-on-surface-variant);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
padding: 12px;
|
|
border-radius: var(--shape-lg);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.show-more {
|
|
background-color: transparent;
|
|
text-align: center;
|
|
padding: 12px 0;
|
|
display: block !important;
|
|
}
|
|
|
|
.show-more a {
|
|
background-color: transparent;
|
|
display: inline-block;
|
|
height: auto;
|
|
padding: 8px 24px;
|
|
line-height: 1.5;
|
|
color: var(--tp-primary);
|
|
font-weight: 500;
|
|
border-radius: var(--shape-sm);
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.show-more a:hover {
|
|
background-color: var(--bg_hover);
|
|
text-decoration: none;
|
|
border-radius: 30px;
|
|
}
|
|
|
|
.top-ref {
|
|
background-color: var(--tp-surface);
|
|
border-top: none !important;
|
|
}
|
|
|
|
.top-ref .icon-down {
|
|
font-size: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
color: var(--tp-primary);
|
|
padding: 8px;
|
|
border-radius: var(--shape-sm);
|
|
width: fit-content;
|
|
margin: 0 auto;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.top-ref .icon-down:hover {
|
|
color: var(--tp-on-primary-container);
|
|
background-color: var(--bg_hover);
|
|
}
|
|
|
|
.top-ref .icon-down::before {
|
|
transform: rotate(180deg) translateY(-1px);
|
|
}
|
|
|
|
.timeline {
|
|
animation: timeline-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
@keyframes timeline-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.timeline-item {
|
|
overflow-wrap: break-word;
|
|
border-left-width: 0;
|
|
min-width: 0;
|
|
padding: 8px;
|
|
display: flex;
|
|
position: relative;
|
|
transition: background-color 0.15s ease;
|
|
animation: item-slide-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
}
|
|
|
|
|
|
|
|
.timeline-item:active {
|
|
background-color: var(--tp-surface-container-highest);
|
|
}
|
|
|
|
@keyframes item-slide-up {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
|
|
@media (max-width: 600px) {
|
|
.timeline-container {
|
|
padding: 0;
|
|
}
|
|
|
|
.timeline-item {
|
|
padding: 10px;
|
|
}
|
|
|
|
.timeline-item:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.timeline-header,
|
|
.timeline-footer,
|
|
.timeline-protected,
|
|
.timeline-none,
|
|
.timeline-end {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.tab {
|
|
margin-left: -8px;
|
|
margin-right: -8px;
|
|
}
|
|
}
|
|
|
|
/* Reduced motion preference */
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.timeline,
|
|
.timeline-item {
|
|
animation: none !important;
|
|
}
|
|
}
|