-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(corrections): update style of modal in the editor (#3766)
- Loading branch information
1 parent
88a36f9
commit 0aee542
Showing
2 changed files
with
121 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,44 @@ | ||
/* Corrections Modal */ | ||
@use "~@wordpress/base-styles/colors" as wp-colors; | ||
|
||
.correction { | ||
&-panel { | ||
border-left: 1px solid wp-colors.$gray-200; | ||
border-right: 1px solid wp-colors.$gray-200; | ||
} | ||
|
||
&-item { | ||
display: flex; | ||
gap: var(--newspack-ui-spacer-2); | ||
border-bottom: 1px solid #e5e5e5; | ||
padding: 10px 0; | ||
&-item + &-item { | ||
border-top: 1px solid wp-colors.$gray-300; | ||
padding-top: 16px; | ||
margin-top: 16px; | ||
} | ||
|
||
&-select-type { | ||
min-width: 110px; | ||
&-date-popover { | ||
.components-popover__content { | ||
padding: 16px; | ||
} | ||
} | ||
|
||
&-textarea { | ||
&-date-button { | ||
width: 100%; | ||
} | ||
|
||
&-date-popover { | ||
> * { | ||
padding: 10px; | ||
&.is-secondary.has-icon { | ||
box-shadow: inset 0 0 0 1px var(--wp-components-color-gray-600, wp-colors.$gray-600); | ||
color: currentcolor; | ||
justify-content: space-between; | ||
} | ||
} | ||
|
||
&-delete, | ||
&-add { | ||
margin-top: auto; | ||
margin-bottom: auto; | ||
&-actions { | ||
display: flex; | ||
flex-direction: row-reverse; | ||
gap: 8px; | ||
margin: 24px 0 0; | ||
} | ||
} | ||
|
||
&-save, | ||
&-cancel { | ||
margin-top: var(--newspack-ui-spacer-2); | ||
margin-left: var(--newspack-ui-spacer-2); | ||
.newspack-corrections-panel { | ||
.components-button.is-secondary { | ||
justify-content: center; | ||
width: 100%; | ||
} | ||
} |