Skip to content

Commit

Permalink
created exceptions bof black and white
Browse files Browse the repository at this point in the history
  • Loading branch information
MaggieCabrera committed Apr 23, 2021
1 parent f89b509 commit 965f0ed
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
20 changes: 20 additions & 0 deletions quadrat/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions quadrat/child-experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@
"color": {
"gradients": [ ],
"palette": [
{
"slug": "black",
"color": "#000000",
"name": "Black"
},
{
"slug": "white",
"color": "#ffffff",
"name": "White"
},
{
"slug": "pink",
"color": "#FFD1D1",
Expand Down
10 changes: 10 additions & 0 deletions quadrat/experimental-theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@
"color": {
"gradients": [],
"palette": [
{
"slug": "black",
"color": "#000000",
"name": "Black"
},
{
"slug": "white",
"color": "#ffffff",
"name": "White"
},
{
"slug": "pink",
"color": "#FFD1D1",
Expand Down
19 changes: 19 additions & 0 deletions quadrat/sass/blocks/_cover.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,23 @@
right: 0;
z-index: 0 !important; //this avoids weird interactions on the editor
}
&.has-white-background-color,
&.has-black-background-color {
&.wp-block-cover.has-background-dim:not(.has-background-gradient)::before {
opacity: 0;
}
&:after {
mix-blend-mode: normal;
mask-image: url(rotated.svg);
mask-repeat: no-repeat;
mask-size: contain;
mask-position: center;
}
}
&.has-white-background-color:after {
background: black;
}
&.has-black-background-color:after {
background: white;
}
}

0 comments on commit 965f0ed

Please sign in to comment.