Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";

.my-jetpack-screen {

Expand All @@ -16,11 +16,11 @@
:global(.jp-admin-page-header) {
padding-inline: 0.5rem;

@include gb.break-medium {
@include mixins.break-medium {
padding-inline: 2rem;
}

@include gb.break-large {
@include mixins.break-large {
padding-inline: 1.5rem;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@use "sass:list";
@use "sass:string";
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/breakpoints";
@use "@wordpress/base-styles/colors";
@use "@wordpress/base-styles/variables";

// The Jetpack brand icon palette.
$feature-icon-background: #003010;
Expand Down Expand Up @@ -145,7 +147,7 @@ $band-ground: #f8f8f8;

// Connect is wider than a switch, so on phones it moves under the text
// rather than squeezing it.
@media (max-width: #{gb.$break-small - 1px}) {
@media (max-width: #{breakpoints.$break-small - 1px}) {

.feature-item--connect {
flex-wrap: wrap;
Expand Down Expand Up @@ -933,10 +935,10 @@ $band-props: (

// Styled as core's Tooltip, which cannot anchor to a sidebar item.
.menu-pointer :global(.components-popover__content) {
background: gb.$gray-900;
border-radius: gb.$radius-small;
background: colors.$gray-900;
border-radius: variables.$radius-small;
box-shadow: none;
color: gb.$white;
color: colors.$white;
font-size: 12px;
line-height: 1.4;
padding-block: 4px;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/breakpoints";
@use "../styles.module.scss" as parent;

.description {
Expand Down Expand Up @@ -26,7 +26,7 @@
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;

@media (max-width: gb.$break-medium ) {
@media (max-width: breakpoints.$break-medium ) {
grid-template-columns: 1fr;
}
}
Expand Down Expand Up @@ -62,7 +62,7 @@
// with the cards above. (The previous `padding-inline: 0` relied on the
// wrapper's padding, which no longer applies now the footer renders outside
// `.my-jetpack-tab-panel-inner`.)
@media ( max-width: gb.$break-medium ) {
@media ( max-width: breakpoints.$break-medium ) {
padding-inline: 1.5rem;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "../styles.module.scss" as parent;

.products {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/breakpoints";
@use "@wordpress/base-styles/mixins";
@use "@wordpress/base-styles/variables";

.tab-panel {

Expand All @@ -18,7 +20,7 @@
padding-block-start: 2.5rem;
padding-inline: 3rem;

@media (max-width: gb.$break-medium ) {
@media (max-width: breakpoints.$break-medium ) {
padding-inline: 1.5rem;
}

Expand All @@ -29,7 +31,7 @@

h2 {

@include gb.heading-2x-large;
@include mixins.heading-2x-large;
margin-top: 0;
margin-bottom: 0.5rem;
}
Expand Down Expand Up @@ -90,7 +92,7 @@
}

// The shared `.jp-admin-page-tabs` strip: a 48px row plus its divider.
$pinned-tabs-block-size: calc(#{gb.$grid-unit-60} + var(--wpds-border-width-xs));
$pinned-tabs-block-size: calc(#{variables.$grid-unit-60} + var(--wpds-border-width-xs));

.my-jetpack-tab-panel--pinned-tabs {
--my-jetpack-pinned-tabs-block-size: #{$pinned-tabs-block-size};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";
@use "@wordpress/base-styles/variables";

$tour-footer-spacing: 16px;

Expand All @@ -20,16 +21,16 @@ $tour-footer-spacing: 16px;
}

.myjetpack-onboarding-welcome-tour__heading {
margin: gb.$grid-unit-20 0 8px 0;
padding: 0 gb.$grid-unit-20;
margin: variables.$grid-unit-20 0 8px 0;
padding: 0 variables.$grid-unit-20;

@include gb.heading-x-large;
@include mixins.heading-x-large;
}

.myjetpack-onboarding-welcome-tour__text {
line-height: 1.4;
margin: 0 0 gb.$grid-unit-30 0;
padding: 0 gb.$grid-unit-20;
margin: 0 0 variables.$grid-unit-30 0;
padding: 0 variables.$grid-unit-20;
min-height: 74px; // avoid layout shift when the text is short
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/breakpoints";

.tabs {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--wpds-dimension-gap-sm);

@media (max-width: gb.$break-small) {
@media (max-width: breakpoints.$break-small) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";

.chart-loader {
padding: 10px calc(var(--spacing-base) * 3) 0;
Expand Down Expand Up @@ -50,13 +50,13 @@
.empty-state-card-heading {
color: var(--wpds-color-foreground-content-neutral);

@include gb.heading-large;
@include mixins.heading-large;
margin-bottom: 8px;
}

.empty-state-card-info {
color: var(--wpds-color-foreground-content-neutral-weak);

@include gb.body-medium;
@include mixins.body-medium;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/breakpoints";

$sans-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen-Sans", "Ubuntu", "Cantarell", "Helvetica Neue", sans-serif;

Expand Down Expand Up @@ -71,7 +71,7 @@ $min-card-width: 155px;
display: none;
}

@media (max-width: gb.$break-medium) {
@media (max-width: breakpoints.$break-medium) {
flex-direction: column;
gap: 8px;
}
Expand All @@ -87,7 +87,7 @@ $min-card-width: 155px;
margin-bottom: 0;
transition: all 0.15s ease-in-out;

@media (max-width: gb.$break-medium) {
@media (max-width: breakpoints.$break-medium) {
width: 100%;
flex: 1 1 100%;
max-width: initial;
Expand All @@ -97,12 +97,12 @@ $min-card-width: 155px;
padding: var(--spacing-base) calc(var(--spacing-base) * 2);
}

@media (min-width: gb.$break-medium) {
@media (min-width: breakpoints.$break-medium) {
flex: 1 1 45%;
width: 45%;
}

@media (min-width: gb.$break-xlarge) {
@media (min-width: breakpoints.$break-xlarge) {
flex: 1 1 $min-card-width;
max-width: 25%;
}
Expand Down Expand Up @@ -132,7 +132,7 @@ $min-card-width: 155px;
gap: 4px;
margin-bottom: 8px;

@media (max-width: gb.$break-medium) {
@media (max-width: breakpoints.$break-medium) {
margin-bottom: 0;
}
}
Expand Down Expand Up @@ -163,7 +163,7 @@ $min-card-width: 155px;

.stats-card-content {

@media (max-width: gb.$break-medium) {
@media (max-width: breakpoints.$break-medium) {
display: flex;
flex-direction: row;
justify-content: space-between;
Expand All @@ -184,7 +184,7 @@ $min-card-width: 155px;
color: var(--jp-gray-20);
fill: var(--jp-gray-20);

@media (max-width: gb.$break-medium) {
@media (max-width: breakpoints.$break-medium) {
display: flex;
align-items: center;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@automattic/jetpack-base-styles/gutenberg-base-styles" as gb;
@use "@wordpress/base-styles/mixins";
@use "@automattic/jetpack-base-styles/root-variables";

.jetpack-onboarding-testimonial {
Expand Down Expand Up @@ -70,7 +70,7 @@
"Helvetica Neue",
sans-serif;

@include gb.break-xlarge {
@include mixins.break-xlarge {
padding-inline: 3rem;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: changed
Comment: Import @wordpress/base-styles modules directly instead of through the jetpack-base-styles wrapper. No change to the built CSS.


Loading