mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Merge pull request #610 from sharetribe/position-sticky-fix
position sticky and h1 margin-top fixes
This commit is contained in:
commit
cccce886c6
2 changed files with 10 additions and 5 deletions
|
|
@ -86,14 +86,19 @@
|
|||
}
|
||||
}
|
||||
|
||||
.avatarDesktop {
|
||||
.avatarWrapperProviderDesktop {
|
||||
display: none;
|
||||
|
||||
@media (--viewportLarge) {
|
||||
display: flex;
|
||||
display: block;
|
||||
margin-top: 119px;
|
||||
}
|
||||
}
|
||||
.avatarDesktop {
|
||||
@media (--viewportLarge) {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.headingOrder {
|
||||
margin: 29px 24px 0 24px;
|
||||
|
|
@ -105,7 +110,7 @@
|
|||
|
||||
@media (--viewportLarge) {
|
||||
max-width: 100%;
|
||||
margin: 177px 0 0 0;
|
||||
margin: 152px 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -166,7 +171,7 @@
|
|||
display: none;
|
||||
|
||||
position: sticky;
|
||||
top: -272px; /* This is a hack to showcase how the component would look when the image isn't sticky */
|
||||
top: -200px; /* This is a hack to showcase how the component would look when the image isn't sticky */
|
||||
width: 409px;
|
||||
background-color: var(--matterColorLight);
|
||||
border: 1px solid var(--matterColorNegative);
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ export class TransactionPanelComponent extends Component {
|
|||
<AvatarMedium user={currentProvider} />
|
||||
</div>
|
||||
{isProvider ? (
|
||||
<div className={css.avatarWrapper}>
|
||||
<div className={css.avatarWrapperProviderDesktop}>
|
||||
<AvatarLarge user={currentCustomer} className={css.avatarDesktop} />
|
||||
</div>
|
||||
) : null}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue