-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @automattic/onboarding package to standardize stylesheets & reuse…
… components. (#44077) * Added @automattic/onboarding. * Refactor calypso's typography.scss to @automattic/typography package. Renamed sass folder to styles. Added variables file. * Updated gutenboarding to use @automattic/onboarding package. * Updated @automattic/domain-picker to use @automattic/onboarding package. * Updated @automattic/plans-grid to use @automattic/onboarding package. * Updated magic-login, wp-login & signup to use mixins from @automattic/onboarding package. * Update plans grid typography import path. * Updated wpcom-block-editor-nux plugin to import fonts & mixins from @automattic/typography & @automattic/onboarding. * Added yarn.lock file. * Updated site-launch plugin typography import path. * Move ActionButtons, BackButton, NextButton & SkipButton to @automattic/onboarding. * Move onboarding-z-index() @automattic/onboarding. * Added missing dependencies for action buttons. * Maybe this will fix the failing build. * Add missing @automattic/typography dependency. * Add @automattic/typography to FSE.
- Loading branch information
Showing
58 changed files
with
508 additions
and
502 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.../full-site-editing/full-site-editing-plugin/editor-plans-grid/src/plans-modal/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...full-site-editing/full-site-editing-plugin/editor-site-launch/src/launch-step/styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 2 additions & 16 deletions
18
apps/full-site-editing/full-site-editing-plugin/wpcom-block-editor-nux/src/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,164 +1 @@ | ||
@import './variables.scss'; | ||
@import 'assets/stylesheets/gutenberg-base-styles'; | ||
|
||
@mixin onboarding-font-recoleta { | ||
font-family: Recoleta, Georgia, 'Times New Roman', Times, serif; | ||
font-weight: 400; | ||
letter-spacing: -0.4px; | ||
} | ||
|
||
@mixin onboarding-heading-text { | ||
@include onboarding-font-recoleta; | ||
font-size: 42px; | ||
line-height: 57px; | ||
} | ||
|
||
@mixin onboarding-heading-text-tablet { | ||
@include onboarding-font-recoleta; | ||
font-size: 36px; | ||
line-height: 40px; | ||
} | ||
|
||
@mixin onboarding-heading-text-mobile { | ||
@include onboarding-font-recoleta; | ||
font-size: 32px; | ||
line-height: 40px; | ||
} | ||
|
||
@mixin onboarding-large-text { | ||
font-size: 16px; | ||
line-height: 24px; | ||
} | ||
|
||
@mixin onboarding-medium-text { | ||
font-size: $font-body-small; | ||
line-height: 17px; | ||
} | ||
|
||
@mixin onboarding-small-text { | ||
font-size: $font-body-extra-small; | ||
line-height: 14px; | ||
} | ||
|
||
@mixin onboarding-x-small-text { | ||
font-size: $font-body-extra-small; | ||
line-height: 13px; | ||
} | ||
|
||
@mixin onboarding-block-margin { | ||
margin: 0 $gutenboarding-block-margin-mobile; | ||
|
||
@include break-small { | ||
margin: 0 $gutenboarding-block-margin-small; | ||
} | ||
|
||
@include break-medium { | ||
margin: 0 $gutenboarding-block-margin-medium; | ||
} | ||
} | ||
|
||
@mixin onboarding-heading-padding { | ||
margin: $gutenboarding-heading-padding-mobile; | ||
|
||
@include break-mobile { | ||
margin: $gutenboarding-heading-padding-desktop; | ||
} | ||
} | ||
|
||
/* (1920x1080) Full HD Display */ | ||
@mixin onboarding-break-gigantic() { | ||
@media ( min-width: 1920px ) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin onboarding-break-mobile-tall() { | ||
@media ( min-height: 750px ) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin onboarding-modal-overlay { | ||
// Absolute positioning allows the modal | ||
// to reuse the <body> element's scrollbar. | ||
position: absolute; | ||
|
||
// This positions the domain picker modal | ||
// right below the gutenboarding header, | ||
// keeping the header clickable. | ||
top: $gutenboarding-header-height; | ||
left: 0; | ||
|
||
// Using min-height lets the overlay cover | ||
// the entire viewport ensuring nothing behind | ||
// it can be seen. | ||
// | ||
// When the domain picker's content is taller | ||
// than the viewport height, it will expand taller | ||
// than the provided min-height, triggering | ||
// the appearance of the <body> element's scrollbar. | ||
min-height: calc( 100vh - #{$gutenboarding-header-height} ); | ||
width: 100%; | ||
|
||
background: var( --studio-white ); | ||
} | ||
|
||
@mixin onboarding-block-edge2edge-container { | ||
width: calc( 100% + #{$gutenboarding-block-margin-mobile * 2} ); | ||
margin-left: #{$gutenboarding-block-margin-mobile * -1}; | ||
margin-right: #{$gutenboarding-block-margin-mobile * -1}; | ||
|
||
@include break-small { | ||
width: calc( 100% + #{$gutenboarding-block-margin-small * 2} ); | ||
margin-left: #{$gutenboarding-block-margin-small * -1}; | ||
margin-right: #{$gutenboarding-block-margin-small * -1}; | ||
} | ||
|
||
@include break-medium { | ||
width: calc( 100% + #{$gutenboarding-block-margin-medium * 2} ); | ||
margin-left: #{$gutenboarding-block-margin-medium * -1}; | ||
margin-right: #{$gutenboarding-block-margin-medium * -1}; | ||
} | ||
} | ||
|
||
@mixin onboarding-block-edge2edge-content { | ||
border-left: $gutenboarding-block-margin-mobile solid transparent; | ||
border-right: $gutenboarding-block-margin-mobile solid transparent; | ||
|
||
@include break-small { | ||
border-left: $gutenboarding-block-margin-small solid transparent; | ||
border-right: $gutenboarding-block-margin-small solid transparent; | ||
} | ||
|
||
@include break-medium { | ||
border-left: $gutenboarding-block-margin-medium solid transparent; | ||
border-right: $gutenboarding-block-margin-medium solid transparent; | ||
} | ||
} | ||
|
||
@mixin onboarding-block-edge2edge-columns { | ||
&:first-child { | ||
border-left: $gutenboarding-block-margin-mobile solid transparent; | ||
} | ||
&:last-child { | ||
border-right: $gutenboarding-block-margin-mobile solid transparent; | ||
} | ||
|
||
@include break-small { | ||
&:first-child { | ||
border-left: $gutenboarding-block-margin-small solid transparent; | ||
} | ||
&:last-child { | ||
border-right: $gutenboarding-block-margin-small solid transparent; | ||
} | ||
} | ||
|
||
@include break-medium { | ||
&:first-child { | ||
border-left: $gutenboarding-block-margin-medium solid transparent; | ||
} | ||
&:last-child { | ||
border-right: $gutenboarding-block-margin-medium solid transparent; | ||
} | ||
} | ||
} | ||
@import '~@automattic/onboarding/styles/mixins'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.