-
Notifications
You must be signed in to change notification settings - Fork 206
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
Enhance: dokan plugin header logo banner icon enhancement #2513
Merged
shohag121
merged 8 commits into
develop
from
enhance/dokan-plugin-header-logo-banner-icon-enhancement
Jan 28, 2025
Merged
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2578f56
update: remove upgrade banner & version tag badge design
osmansufy a170b6b
update: icon css update
osmansufy b3c800e
update: box-shadow change in menu icon dropdown
osmansufy a1185a4
update: shadow of dropdown
osmansufy c49795e
update: bg coulor
osmansufy a32bc6a
update: base 64 encoded string for dokan icon
osmansufy d93c676
update: remove list-style-type
osmansufy 7eefdbf
update: pro version tag css
osmansufy 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
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 |
---|---|---|
|
@@ -36,37 +36,38 @@ | |
margin-right: 24px; | ||
flex: 1; | ||
.version-tag { | ||
|
||
border-radius: 20px; | ||
font-size: 1rem; | ||
line-height: 20px; | ||
font-weight: 400; | ||
padding: 0.5rem 1rem; | ||
max-height: 2rem; | ||
font-size: 12px; | ||
line-height: 16px; | ||
font-weight: 500; | ||
height: 30px; | ||
box-sizing: border-box; | ||
&.lite { | ||
background: #FF9B5366; | ||
color: #7B4E2E; | ||
display: flex; | ||
align-items: center; | ||
padding: 0 12px; | ||
} | ||
|
||
&.pro { | ||
background: #D8D8FE; | ||
color: @dokan-color; | ||
color: #7047EB; | ||
display: flex; | ||
align-items: center; | ||
gap: 8px; | ||
text-transform: capitalize; | ||
font-weight: 450; | ||
padding: 6px; | ||
padding-right: 12px; | ||
gap: 6px; | ||
& .version-tag-pro-badge{ | ||
background: @dokan-color; | ||
background: #7047EB; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Maintain color consistency with variables The background color is hardcoded, which should use the same variable as the text color for consistency. The spacing and size adjustments look good. - background: #7047EB;
+ background: @dokan-pro-color; // Use the same variable as text color Also applies to: 68-70 |
||
color: white; | ||
border-radius: 28px; | ||
display: inline-flex; | ||
align-items: center; | ||
padding: 3px 9px; | ||
font-size: 16px; | ||
margin: -10px 0 -10px -10px; | ||
padding: 3px 8px; | ||
font-size: 12px; | ||
gap: 3px; | ||
} | ||
} | ||
} | ||
|
@@ -148,7 +149,7 @@ | |
.dropdown { | ||
opacity: 1; | ||
visibility: visible; | ||
top: 42px; | ||
top: 50px; | ||
} | ||
} | ||
|
||
|
@@ -162,7 +163,7 @@ | |
padding: 20px; | ||
border-radius: 3px; | ||
border: 1px solid #e2e2e2; | ||
box-shadow: 0 6px 12px rgb(129 129 129 / 6%); | ||
box-shadow: 0 8px 10px #ccc; | ||
min-width: 255px; | ||
max-width: 255px; | ||
opacity: 0; | ||
|
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 |
---|---|---|
|
@@ -364,3 +364,11 @@ | |
} | ||
} | ||
} | ||
|
||
|
||
|
||
// wp dokan logo styles | ||
|
||
#adminmenu #toplevel_page_dokan .wp-menu-image.svg { | ||
background-size: 17px; | ||
} |
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
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
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.
🛠️ Refactor suggestion
Use LESS variable for color value
The color value is hardcoded, which reduces maintainability. Consider using the existing
@dokan-color
variable or defining a new semantic variable for consistent theming.Also applies to: 59-61