-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working scale section without settings
- Loading branch information
1 parent
078fd1e
commit 492dd0a
Showing
5 changed files
with
61 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
/** | ||
* The following styles get applied inside the editor only. | ||
* | ||
* Replace them with your own styles or remove the file completely. | ||
*/ | ||
|
||
.wp-block-create-block-spearfishing-stuff { | ||
border: 1px solid #f00; | ||
} | ||
.wp-block-spearfishing-stuff-scale-section { | ||
border: 1px solid #fff; | ||
} |
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,12 +1,30 @@ | ||
/** | ||
* The following styles get applied both on the front of your site | ||
* and in the editor. | ||
* | ||
* Replace them with your own styles or remove the file completely. | ||
*/ | ||
.wp-block-spearfishing-stuff-scale-section { | ||
display: grid; | ||
place-content: center; | ||
background-color: white; | ||
background-image: url(../../assets/fish-background.svg); | ||
background-size: 5%; | ||
height: 500px; | ||
width: 1000px; | ||
animation: pan 100s linear infinite; | ||
will-change: background-position; | ||
border: none; | ||
|
||
.wp-scale-section-content { | ||
background-color: white; | ||
text-align: center; | ||
|
||
.wp-block-create-block-spearfishing-stuff { | ||
background-color: #21759b; | ||
color: #fff; | ||
padding: 2px; | ||
h2 { | ||
margin: 40px 100px; | ||
} | ||
} | ||
} | ||
|
||
@keyframes pan { | ||
0% { | ||
background-position: 0% 0%; | ||
} | ||
100% { | ||
background-position: 100% 0%; | ||
} | ||
} |