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

Live preview cursor states #139

Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
vendor
.DS_Store
.DS_Store
.vscode
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ $main-color-light: var(--nfd-onboarding-white);
margin-top: 16px;
background: $main-color-light;
border: 0.5px solid $white-offset;
cursor: not-allowed;
width: clamp(15rem, 25vw, 35rem);
box-shadow: 0px 2px 8px 2px rgba(204, 204, 204, 0.175295);
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ $main-color-light-rgb: var(--nfd-onboarding-white-rgb);
height: 100%;
display: flex;
position: absolute;
cursor: not-allowed;
align-items: center;
flex-direction: column;
background-color: $main-color-grey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ const SelectableCardWithInfo = ( {
};

return (
<div
className={ `${ className }` }
>
<div className={ `${ className }__live-preview-container` }>
<div className={ `${ className }` }>
<div
className={ `${ className }__live-preview-container` }
onClick={ () => handleCheck( ! selected ) }
>
<LivePreview
styling={ styling }
blockGrammer={ blockGrammer }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,14 @@ $main-border-main: var(--nfd-onboarding-primary-alt);
align-items: center;
border: 1px solid #e3dfdf;

&:hover {
cursor: pointer;
}

.live-preview {

&__container {

&-custom {
width: 100%;
overflow: hidden;
Expand All @@ -36,4 +41,3 @@ $main-border-main: var(--nfd-onboarding-primary-alt);
}
}


111 changes: 57 additions & 54 deletions src/OnboardingSPA/pages/Steps/DesignColors/stylesheet.scss
Original file line number Diff line number Diff line change
@@ -1,55 +1,58 @@


.theme-colors-preview {
flex: 1;
margin: 16px;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;

&__title-bar {
width: 70%;
height: 15px;
display: flex;
align-items: center;
background-color: #ccc;
justify-content: space-between;
border: 1px solid transparent;

&__browser {
display: flex;
align-items: center;
justify-content: center;

&__dot {
background-color: #989ea7;
width: 8px;
margin: 3px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
}
}

&__live-preview-container {
width: 70%;
min-height: 90vh;
overflow: hidden;
position: relative;
align-items: center;
border: 1px solid #e3dfdf;
margin-bottom: 30px;

.live-preview {

&__container {

&-custom {
width: 100%;
}
}
}
}
}
flex: 1;
margin: 16px;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;

&__title-bar {
width: 70%;
height: 15px;
display: flex;
align-items: center;
background-color: #ccc;
justify-content: space-between;
border: 1px solid transparent;

&__browser {
display: flex;
align-items: center;
justify-content: center;

&__dot {
background-color: #989ea7;
width: 8px;
margin: 3px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
}
}

&__live-preview-container {
width: 70%;
min-height: 90vh;
overflow: hidden;
position: relative;
align-items: center;
border: 1px solid #e3dfdf;
margin-bottom: 30px;


&:hover {
cursor: not-allowed;
}

.live-preview {

&__container {

&-custom {
width: 100%;
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
background-color: #ccc;
justify-content: space-between;
border: 1px solid transparent;
margin-top: 20px;
margin-top: 20px;

&__browser {
display: flex;
Expand All @@ -93,6 +93,11 @@
border: 1px solid #e3dfdf;
margin-bottom: 30px;


&:hover {
cursor: not-allowed;
}

.live-preview {

&__container {
Expand All @@ -103,4 +108,4 @@
}
}
}
}
}
Loading