-
Notifications
You must be signed in to change notification settings - Fork 0
Use pre-processed images everywhere #151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 hidden or 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,25 @@ | ||
| .pp-gf-content .pp-gf-inner .gform_confirmation_message i::before { | ||
| content: ""; | ||
| width: 70px; | ||
| height: 70px; | ||
| display: block; | ||
| background-image: url({{ (resources.Get "img/icons/theme/confirmation-icon.svg" | fingerprint).RelPermalink }}); | ||
| background-repeat: no-repeat; | ||
| background-size: contain; | ||
| } | ||
|
|
||
| .jt-reviews-box .pp-reviews-wrapper .pp-swiper-button:hover span::before { | ||
| background-image: url({{ (resources.Get "img/icons/theme/hover-arrow-icon-hover.svg" | fingerprint).RelPermalink }}); | ||
| } | ||
|
|
||
| .cs-testimonial .cs-testimonial-wrapper::before { | ||
| content: ""; | ||
| display: block; | ||
| width: 60px; | ||
| height: 60px; | ||
| background-image: url({{ (resources.Get "img/testimonial-quote.png" | fingerprint).RelPermalink }}); | ||
| background-size: contain; | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| } | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
🛠️ Refactor suggestion
The suggested changes to use SVG and improve responsiveness have not been fully implemented.
testimonial-quote.svgdoes not exist in theassets/img/directory.themes/beaver/assets/css/586-dynamic.cssstill referencestestimonial-quote.png.🔗 Analysis chain
Consider using SVG and improving responsiveness for the testimonial quote icon.
While the use of dynamic URL with fingerprinting is good, there are a few areas for improvement:
Here's a suggested improvement:
.cs-testimonial .cs-testimonial-wrapper::before { content: ""; display: block; - width: 60px; - height: 60px; - background-image: url({{ (resources.Get "img/testimonial-quote.png" | fingerprint).RelPermalink }}); + width: 10%; /* Use percentage for responsiveness */ + padding-bottom: 10%; /* Maintain aspect ratio */ + background-image: url({{ (resources.Get "img/testimonial-quote.svg" | fingerprint).RelPermalink }}); /* Use SVG instead of PNG */ background-size: contain; position: absolute; top: 0; left: 0; }This change aligns with the PR objective of using pre-processed images (SVG) and improves the responsiveness of the design.
To ensure we're not missing any PNG files that should be converted to SVG, let's run the following check:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 1283
Script:
Length of output: 528
🧰 Tools
🪛 Biome