-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3019 from woocommerce/PCP-4026-implement-the-save…
…-button-logic Implement the "Save" button logic (4026)
- Loading branch information
Showing
135 changed files
with
2,274 additions
and
2,223 deletions.
There are no files selected for viewing
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
71 changes: 71 additions & 0 deletions
71
modules/ppcp-settings/resources/css/components/reusable-components/_elements.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/** | ||
* General styling for reusable components in the "Elements" folder. | ||
*/ | ||
|
||
.ppcp--header { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 6px; | ||
|
||
&:not(:last-child) { | ||
padding-bottom: var(--block-header-gap, 6px); | ||
} | ||
} | ||
|
||
.ppcp--title { | ||
@include font(11, 22, 600); | ||
color: var(--color-text-title); | ||
display: block; | ||
text-transform: uppercase; | ||
|
||
&.ppcp--no-caps { | ||
@include font(14, 16, 600); | ||
text-transform: none; | ||
} | ||
|
||
&.ppcp--big { | ||
@include font(16, 20, 600); | ||
} | ||
|
||
.ppcp-r-title-badge { | ||
text-transform: none; | ||
margin-left: 6px; | ||
} | ||
} | ||
|
||
.ppcp--title-extra { | ||
@include font(13, 20, 400); | ||
color: var(--color-text-teriary); | ||
text-transform: none; | ||
margin-left: 5px; | ||
} | ||
|
||
.ppcp--title-wrapper { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
.ppcp--description { | ||
@include font(13, 20, 400); | ||
margin: 0; | ||
color: var(--color-text-description); | ||
|
||
&:not(:last-child) { | ||
padding-bottom: 1em; | ||
} | ||
|
||
a { | ||
color: var(--color-blueberry); | ||
} | ||
|
||
strong { | ||
color: var(--color-gray-800); | ||
} | ||
} | ||
|
||
.ppcp--action { | ||
& + .ppcp--action { | ||
margin-top: var(--block-action-gap, 16px); | ||
} | ||
} |
39 changes: 25 additions & 14 deletions
39
modules/ppcp-settings/resources/css/components/reusable-components/_hstack.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
.components-flex { | ||
display: flex; | ||
-webkit-box-align: stretch; | ||
align-items: stretch; | ||
flex-direction: column; | ||
-webkit-box-pack: center; | ||
justify-content: center; | ||
.ppcp-r-app { | ||
.components-flex { | ||
display: flex; | ||
-webkit-box-align: stretch; | ||
align-items: stretch; | ||
-webkit-box-pack: center; | ||
|
||
.components-h-stack { | ||
flex-direction: row; | ||
justify-content: flex-start; | ||
gap: 32px; | ||
.components-h-stack { | ||
flex-direction: row; | ||
justify-content: flex-start; | ||
gap: 32px; | ||
} | ||
|
||
.components-v-stack { | ||
flex-direction: column; | ||
justify-content: center; | ||
} | ||
|
||
// Fix layout for checkboxes inside a flex-stack. | ||
.components-checkbox-control > .components-base-control__field > .components-flex { | ||
flex-direction: row; | ||
gap: 12px; | ||
} | ||
} | ||
|
||
// Fix layout for checkboxes inside a flex-stack. | ||
.components-checkbox-control >.components-base-control__field > .components-flex { | ||
.ppcp--horizontal { | ||
flex-direction: row; | ||
gap: 12px; | ||
align-items: center; | ||
justify-content: space-between; | ||
} | ||
} |
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.