Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(VTimeline): alignment consistency #20876

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions packages/vuetify/src/components/VTimeline/VTimeline.sass
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,25 @@
&:not(.v-timeline--side-start) > .v-timeline-item:nth-child(2n+1):not(.v-timeline-item--side-start)
.v-timeline-item__body
grid-row: 3
align-self: flex-start
padding-block-start: $timeline-item-padding

.v-timeline-item__opposite
grid-row: 1
padding-block-end: $timeline-item-padding
align-self: flex-end
padding-block-end: $timeline-item-padding

.v-timeline--side-start > .v-timeline-item,
&:not(.v-timeline--side-end) > .v-timeline-item--side-start,
&:not(.v-timeline--side-end) > .v-timeline-item:nth-child(2n):not(.v-timeline-item--side-end)
.v-timeline-item__body
grid-row: 1
padding-block-end: $timeline-item-padding
align-self: flex-end
padding-block-end: $timeline-item-padding

.v-timeline-item__opposite
grid-row: 3
align-self: flex-start
padding-block-start: $timeline-item-padding

@include vertical(true)
Expand All @@ -62,17 +64,20 @@
&:not(.v-timeline--side-end) > .v-timeline-item:nth-child(2n):not(.v-timeline-item--side-end)
.v-timeline-item__body
grid-column: 1
justify-self: flex-end
padding-inline-end: $timeline-item-padding

.v-timeline-item__opposite
grid-column: 3
justify-self: flex-start
padding-inline-start: $timeline-item-padding

.v-timeline--side-end > .v-timeline-item,
&:not(.v-timeline--side-start) > .v-timeline-item--side-end,
&:not(.v-timeline--side-start) > .v-timeline-item:nth-child(2n+1):not(.v-timeline-item--side-start)
.v-timeline-item__body
grid-column: 3
justify-self: flex-start
padding-inline-start: $timeline-item-padding

.v-timeline-item__opposite
Expand Down Expand Up @@ -268,20 +273,22 @@
@include horizontal(true)
.v-timeline-item__body
grid-row: 3
align-self: flex-start
padding-block-end: initial
padding-block-start: $timeline-item-padding

.v-timeline-item__opposite
grid-row: 1
align-self: flex-end
padding-block-end: $timeline-item-padding
padding-block-start: initial

@include vertical(true)
.v-timeline-item__body
grid-column: 3
justify-self: flex-start
padding-inline-start: $timeline-item-padding
padding-inline-end: initial
justify-self: flex-start

.v-timeline-item__opposite
grid-column: 1
Expand All @@ -294,11 +301,13 @@
@include horizontal(true)
.v-timeline-item__body
grid-row: 1
align-self: flex-end
padding-block-end: $timeline-item-padding
padding-block-start: initial

.v-timeline-item__opposite
grid-row: 3
align-self: flex-start
padding-block-end: initial
padding-block-start: $timeline-item-padding

Expand All @@ -310,8 +319,8 @@

.v-timeline-item__opposite
grid-column: 3
padding-inline-start: $timeline-item-padding
justify-self: flex-start
padding-inline-start: $timeline-item-padding

// Fill dot
.v-timeline-divider--fill-dot
Expand Down