Skip to content

Commit

Permalink
Add editor settings and clean up code (#789)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored May 9, 2024
1 parent 1d26f6d commit 44c4010
Show file tree
Hide file tree
Showing 106 changed files with 1,655 additions and 1,640 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# https://EditorConfig.org

root = true

[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
indent_style = space
indent_size = 2
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
matrix:
operating-system: ['ubuntu-latest']
php-versions: ['7.2', '7.3', '7.4', '8.0', '8.1']

steps:
- name: Checkout Git repository
uses: actions/checkout@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/minify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ name: Auto Minify JS and CSS Files
on:
workflow_dispatch:
push:
paths:
paths:
- 'assets/**/*.js'
- 'assets/**/*.css'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Auto Minify
uses: alexmigf/auto-minify@exclude-dirs
with:
Expand All @@ -25,4 +25,4 @@ jobs:
- name: Auto committing minified files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Generate minified JS and CSS files"
commit_message: "Generate minified JS and CSS files"
4 changes: 2 additions & 2 deletions .github/workflows/release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |
# reformat .distignore: remove all empty lines, leading slashes and prefix with the folder
sed "/^[[:space:]]*$/d;s#^/##;s#^#${{ env.plugin_slug }}/#" ${{ env.plugin_slug }}/.distignore > .zipignore
# create zip file
zip -rq ${{ env.zip_file_name }} ${{ env.plugin_slug }} [email protected]
Expand All @@ -43,4 +43,4 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
files: ${{ env.zip_file_name }}
gzip: false
allow_override: true
allow_override: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ This repository is not suitable for support. Please don't use our issue tracker
* The [PDF Invoices & Packing Slips for WooCommerce support forum](http://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips) on WordPress.org.
* [WP Overnight Premium support](https://wpovernight.com/contact/) for customers who have purchased themes or plugins.

Support requests in issues on this repository will be closed on sight.
Support requests in issues on this repository will be closed on sight.
2 changes: 1 addition & 1 deletion assets/css/debug-tools.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
#document_custom_redirect_page,
#document_custom_redirect_page + .description {
display: none;
}
}
2 changes: 1 addition & 1 deletion assets/css/order-styles-buttons-wc38.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
width: 26px;
height: 26px;
padding: 3px 2px;
}
}
2 changes: 1 addition & 1 deletion assets/css/order-styles-buttons-wc39.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

.type-shop_order .column-wc_actions a.button.wpo_wcpdf img {
margin-top: 3px;
}
}
8 changes: 4 additions & 4 deletions assets/css/order-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@

/* Edit buttons Invoice, Proforma and Credit */
.wcpdf-data-fields h4 .dashicons:first-of-type {
margin-left:20px !important;
margin-left:20px !important;
}

.wcpdf-data-fields .wpo-wcpdf-edit-date-number,
Expand All @@ -168,9 +168,9 @@

.wcpdf-data-fields h4 .wcpdf-regenerate-spin {
opacity: 1;
-webkit-animation: spin 1.6s linear infinite; /* Safari */
animation: spin 1.6s linear infinite;
pointer-events: none;
-webkit-animation: spin 1.6s linear infinite; /* Safari */
animation: spin 1.6s linear infinite;
pointer-events: none;
}

/* Safari */
Expand Down
23 changes: 11 additions & 12 deletions assets/css/settings-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ img.wpo-helper {
margin-bottom: 0.5em;
}

.wcpdf-extensions > li:before {
.wcpdf-extensions > li:before {
content: "";
border-color: transparent transparent transparent #111;
border-style: solid;
Expand Down Expand Up @@ -265,7 +265,7 @@ table.wcpdf_documents_settings_list td.title {
}

.wcpdf_document_settings_sections p:hover,
.wcpdf_document_settings_sections p:hover > .arrow-down {
.wcpdf_document_settings_sections p:hover > .arrow-down {
color: #222;
}

Expand Down Expand Up @@ -649,17 +649,17 @@ body.woocommerce_page_wpo_wcpdf_options_page {
width: 100%;
height: 100%;
z-index: 10;
border: 0px solid white;
border: 0px solid white;
animation: border-pulse 4s infinite;

}

@keyframes border-pulse {
0% {
0% {
border-color: rgba(255, 255, 255, 0);
border-width: 8px;
}
50% {
50% {
border-color: rgba(255, 255, 255, 1);
border-width: 0;
}
Expand Down Expand Up @@ -746,7 +746,7 @@ body.woocommerce_page_wpo_wcpdf_options_page {
}

.preview-document .preview-data p:hover,
.preview-document .preview-data p:hover > .arrow-down {
.preview-document .preview-data p:hover > .arrow-down {
color: #222;
}

Expand Down Expand Up @@ -860,10 +860,10 @@ body.woocommerce_page_wpo_wcpdf_options_page {
}

#wpo-wcpdf-preview-wrapper .gutter-arrow {
width: 0;
height: 0;
width: 0;
height: 0;
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
border-bottom: 3px solid transparent;
display: block;
}

Expand All @@ -877,11 +877,11 @@ body.woocommerce_page_wpo_wcpdf_options_page {
}

#wpo-wcpdf-preview-wrapper .slider:hover > .arrow-left {
border-right: 7px solid #222;
border-right: 7px solid #222;
}

#wpo-wcpdf-preview-wrapper .slider:hover > .arrow-right {
border-left: 7px solid #222;
border-left: 7px solid #222;
}

#wpo-wcpdf-preview-wrapper .slider.slide-left:after {
Expand Down Expand Up @@ -1224,4 +1224,3 @@ div.upgrade-table-description a,
display: none;
}
}

34 changes: 15 additions & 19 deletions assets/css/setup-wizard.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,17 @@ body.wpo-wcpdf-setup form {
}

.wpo-progress-bar {
counter-reset: section;
counter-reset: section;
}

.wpo-progress-marker::before {
counter-increment: section;
content: counter(section);
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #999;
counter-increment: section;
content: counter(section);
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
color: #999;
}

li.active .wpo-progress-marker::before {
Expand Down Expand Up @@ -197,8 +197,8 @@ li.completed .wpo-progress-marker::before {
box-sizing: border-box;
}

.wpo-setup-card .wpo-button-next,
.wpo-setup-card .wpo-button-previous,
.wpo-setup-card .wpo-button-next,
.wpo-setup-card .wpo-button-previous,
.wpo-setup-card .wpo-skip-step,
.wpo-setup-card .wpo-setup-input span.button {
padding: 0.5em 1.2em;
Expand All @@ -224,7 +224,7 @@ li.completed .wpo-progress-marker::before {
color: #1c6c8b;
}

.wpo-setup-card .wpo-button-next:hover,
.wpo-setup-card .wpo-button-next:hover,
.wpo-setup-card .wpo-button-previous:hover,
.wpo-setup-input span.button:hover {
background-color: #239bb9;
Expand All @@ -233,15 +233,15 @@ li.completed .wpo-progress-marker::before {
border-color: #239bb9;
}

.wpo-setup-card .wpo-button-next:focus,
.wpo-setup-card .wpo-button-next:focus,
.wpo-setup-card .wpo-button-previous:focus,
.wpo-setup-input span.button:focus {
background-color: #239bb9;
color: #fff!important;
border-color: #239bb9;
}

.wpo-setup-card .wpo-button-next,
.wpo-setup-card .wpo-button-next,
.wpo-setup-card .wpo-skip-step {
float: right;
margin-left: 10px;
Expand Down Expand Up @@ -416,8 +416,8 @@ li.completed .wpo-progress-marker::before {
padding: 15px 25px;
}

.wpo-setup-card .wpo-button-next,
.wpo-setup-card .wpo-button-previous,
.wpo-setup-card .wpo-button-next,
.wpo-setup-card .wpo-button-previous,
.wpo-setup-card .wpo-skip-step {
padding: 0.5em 0.8em;
}
Expand All @@ -430,7 +430,3 @@ li.completed .wpo-progress-marker::before {

#confetti { display: none }
}




2 changes: 1 addition & 1 deletion assets/images/checkmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 44c4010

Please sign in to comment.