-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
65 additions
and
62 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
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
44 changes: 44 additions & 0 deletions
44
packages/edit-site/src/components/global-styles/variations/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.edit-site-global-styles-variations_item { | ||
box-sizing: border-box; | ||
// To round the outline in Windows 10 high contrast mode. | ||
border-radius: $radius-block-ui; | ||
cursor: pointer; | ||
|
||
.edit-site-global-styles-variations_item-preview { | ||
padding: $border-width * 2; | ||
border-radius: $radius-block-ui; | ||
box-shadow: 0 0 0 $border-width $gray-200; | ||
// Shown in Windows 10 high contrast mode. | ||
outline: 1px solid transparent; | ||
|
||
.edit-site-global-styles-color-variations & { | ||
padding: $grid-unit-10; | ||
} | ||
} | ||
|
||
&.is-active .edit-site-global-styles-variations_item-preview { | ||
box-shadow: 0 0 0 $border-width $gray-900; | ||
// Shown in Windows 10 high contrast mode. | ||
outline-width: 3px; | ||
} | ||
|
||
&:hover .edit-site-global-styles-variations_item-preview { | ||
box-shadow: 0 0 0 $border-width var(--wp-admin-theme-color); | ||
} | ||
|
||
&:focus .edit-site-global-styles-variations_item-preview { | ||
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color); | ||
} | ||
|
||
&:focus-visible { | ||
// Shown in Windows 10 high contrast mode. | ||
outline: 3px solid transparent; | ||
outline-offset: 0; | ||
} | ||
} | ||
|
||
.edit-site-global-styles-variations__type-preview { | ||
font-size: 22px; | ||
line-height: 44px; | ||
text-align: center; | ||
} |
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