Add Choose Update Source feature
Some checks failed
ci/woodpecker/push/woodpecker Pipeline is pending
ci/woodpecker/tag/woodpecker Pipeline is pending
Plugin Asset Update / Push assets to WordPress.org (push) Has been cancelled
Build Release / Build and Create Release (push) Has been cancelled
Build Release / Deploy to WordPress.org (push) Has been cancelled

This commit is contained in:
2025-04-13 13:13:32 +01:00
parent fda33746e5
commit 3ebcaccf98
7 changed files with 413 additions and 3 deletions

View File

@ -0,0 +1,86 @@
/**
* Update Source Selector Styles
*/
#fpden-update-source-modal {
display: none;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
#fpden-update-source-modal h2 {
margin-top: 0;
margin-bottom: 15px;
font-size: 1.3em;
font-weight: 600;
}
#fpden-update-source-modal p {
margin-bottom: 20px;
}
#fpden-update-source-form label {
display: block;
margin-bottom: 10px;
padding: 8px;
border-radius: 4px;
cursor: pointer;
}
#fpden-update-source-form label:hover {
background-color: #f0f0f1;
}
#fpden-update-source-form input[type="radio"] {
margin-right: 8px;
}
.fpden-source-description {
display: block;
margin-left: 24px;
font-size: 0.9em;
color: #666;
margin-top: 3px;
}
.fpden-submit-container {
margin-top: 20px;
text-align: right;
}
.fpden-submit-container button {
margin-left: 10px;
}
.fpden-update-source-toggle {
color: #2271b1;
}
.fpden-update-source-toggle:hover {
color: #135e96;
}
/* Source badges */
.fpden-source-badge {
display: inline-block;
padding: 2px 6px;
border-radius: 3px;
font-size: 0.8em;
margin-left: 5px;
color: white;
font-weight: normal;
}
.fpden-source-badge.wordpress {
background-color: #0073aa;
}
.fpden-source-badge.github {
background-color: #24292e;
}
.fpden-source-badge.gitea {
background-color: #609926;
}
.fpden-source-badge.auto {
background-color: #666;
}