-
Notifications
You must be signed in to change notification settings - Fork 113
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
Reposition Loading Indicator #970
Changes from 8 commits
25ec3f1
ce6173f
0a39e0b
cc66f39
4e479d1
0ef3a0b
529c866
25bb5d1
dca9dc9
8fdaca2
2819de3
f935bc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,30 @@ | ||
@import '../../styles/variables'; | ||
@import '../../styles/mixins'; | ||
|
||
$total-sidebar-toolbar-width-closed: $sidebar-width-closed + | ||
$global-toolbar-width; | ||
$total-sidebar-toolbar-width-open: $sidebar-width-open + $global-toolbar-width; | ||
|
||
.pipeline-wrapper { | ||
height: 100%; | ||
} | ||
|
||
.pipeline-wrapper__loading { | ||
align-items: center; | ||
display: flex; | ||
flex-direction: column; | ||
height: 100%; | ||
justify-content: center; | ||
position: absolute; | ||
right: 20px; | ||
bottom: 20px; | ||
top: 0; | ||
transform: translateX($total-sidebar-toolbar-width-closed); | ||
transition: transform 0.4s ease, width ease 0.4s; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hey @cvetankanechevska I'm just thinking about whether it needs to transition I'm not sure whether it's possible to just set a fix width and use translate to move it around? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @Huongg, yes we need it to be a smooth reposition when opening/closing the Sidebar |
||
width: calc((100% - #{$total-sidebar-toolbar-width-closed})); | ||
|
||
@media (min-width: $sidebar-width-breakpoint) { | ||
&--sidebar-visible { | ||
transform: translateX($total-sidebar-toolbar-width-open); | ||
width: calc((100% - #{$total-sidebar-toolbar-width-open})); | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: I think we can get away without
total-
here.