-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a single checkerboard component and fix it (#4844)
* use a single shared checkerboard component to fix it in color field and palette * changelog * use color variables * fix changelog * adds transparency checkerboard to RT color control (#4850) --------- Co-authored-by: Etienne Laurent <[email protected]> Co-authored-by: Stuart Romanek <[email protected]>
- Loading branch information
1 parent
7da11c1
commit 92114c9
Showing
8 changed files
with
45 additions
and
108 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
90 changes: 0 additions & 90 deletions
90
modules/@apostrophecms/color-field/ui/apos/lib/AposColorCheckerboard.vue
This file was deleted.
Oops, something went wrong.
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
20 changes: 20 additions & 0 deletions
20
modules/@apostrophecms/ui/ui/apos/components/AposColorCheckerboard.vue
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,20 @@ | ||
<template> | ||
<div class="apos-color__checkerboard" /> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'AposColorCheckerboard' | ||
}; | ||
</script> | ||
|
||
<style> | ||
.apos-color__checkerboard { | ||
background-image: repeating-conic-gradient( | ||
var(--a-checker-board-gray) 0% 25%, | ||
var(--a-checker-board-white) 0% 50% | ||
); | ||
background-size: 8px 8px; | ||
height: 100%; | ||
} | ||
</style> |
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