Skip to content

Commit

Permalink
Prevent scroll on static page design themes
Browse files Browse the repository at this point in the history
  • Loading branch information
lsl committed Feb 3, 2021
1 parent ddeed53 commit 0a32fa9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/landing/gutenboarding/available-designs-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@
"slug": "balan",
"template": "balan",
"theme": "mayland",
"preview": "static",
"fonts": {
"headings": "Rubik",
"base": "Roboto"
Expand All @@ -333,6 +334,7 @@
"slug": "pollard",
"template": "pollard",
"theme": "mayland",
"preview": "static",
"fonts": {
"headings": "Cabin",
"base": "Raleway"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ const DesignSelector: React.FunctionComponent = () => {
'design-selector__image-frame',
isEnabled( 'gutenboarding/landscape-preview' )
? 'design-selector__landscape'
: 'design-selector__portrait'
: 'design-selector__portrait',
design.preview === 'static'
? 'design-selector__static'
: 'design-selector__scrollable'
) }
>
{ isEnabled( 'gutenboarding/mshot-preview' ) ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
transition: all 1s;
}

img:hover {
&.design-selector__scrollable img:hover {
margin-top: -100px;
}
}
Expand Down
1 change: 1 addition & 0 deletions client/landing/gutenboarding/stores/onboard/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Design {
src: string;
template: string;
theme: string;
preview?: string;
title: string;
features: Array< DesignFeatures >;
}

0 comments on commit 0a32fa9

Please sign in to comment.