Skip to content

Commit

Permalink
fix(stylelint): fix errors in library and public folders (openemr#6729)
Browse files Browse the repository at this point in the history
* chore(stylelint): include folders with no errors

* chore(stylelint): create stylelint scripts

* fix(stylelint): fix errors in esign_report.css

* fix(stylelint): fix errors in lato.css

* chore(stylelint): include folders with no errors
  • Loading branch information
raskolnikov-rodion authored Aug 12, 2023
1 parent 0527d8e commit 6c6460b
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/styling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Check CSS Styling
run: |
failTest=false
npx stylelint "**/*.{css,scss}" || failTest=true
npm run stylelint || failTest=true
if $failTest; then
exit 1
fi
Expand Down
7 changes: 0 additions & 7 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,5 @@ swagger/**/*.scss

# To be fixed and removed from this list
gacl/**/*.css
gacl/**/*.scss
interface/**/*.css
interface/**/*.scss
library/**/*.css
library/**/*.scss
portal/**/*.css
portal/**/*.scss
public/**/*.css
public/**/*.scss
6 changes: 2 additions & 4 deletions library/ESign/css/esign_report.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
**/

.esign-signature-log-container {
display: table;
display: table;
}

.esign-signature-log-table {
font-size: small;
margin-top: 10px;
width: 100%;

}

.esign-log-row.header {
Expand Down Expand Up @@ -65,7 +64,7 @@
}

.span9 {
width: 100%;
width: 100%;
}

.esign-log-element {
Expand All @@ -76,4 +75,3 @@
.esign-log-element span {
padding: 4px;
}

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"lint:js": "eslint '**/*.js' --quiet",
"lint:js-fix": "npm run lint:js -- --fix",
"test:js": "jest",
"test:js-coverage": "jest --coverage"
"test:js-coverage": "jest --coverage",
"stylelint": "npx stylelint '**/*.{css,scss}'",
"stylelint-fix": "npm run stylelint -- --fix"
},
"keywords": [
"openemr"
Expand Down
112 changes: 64 additions & 48 deletions public/fonts/lato/lato.css
Original file line number Diff line number Diff line change
@@ -1,191 +1,207 @@
@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: bold;
src: url('Lato-Bold.eot');
src: url('Lato-Bold.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Bold.eot?#iefix') format('embedded-opentype'),
url('Lato-Bold.woff2') format('woff2'),
url('Lato-Bold.woff') format('woff'),
url('Lato-Bold.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: bold;
src: url('Lato-BoldItalic.eot');
src: url('Lato-BoldItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-BoldItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-BoldItalic.woff2') format('woff2'),
url('Lato-BoldItalic.woff') format('woff'),
url('Lato-BoldItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: 100;
src: url('Lato-Hairline.eot');
src: url('Lato-Hairline.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Hairline.eot?#iefix') format('embedded-opentype'),
url('Lato-Hairline.woff2') format('woff2'),
url('Lato-Hairline.woff') format('woff'),
url('Lato-Hairline.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: 100;
src: url('Lato-HairlineItalic.eot');
src: url('Lato-HairlineItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-HairlineItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-HairlineItalic.woff2') format('woff2'),
url('Lato-HairlineItalic.woff') format('woff'),
url('Lato-HairlineItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: 800;
src: url('Lato-Heavy.eot');
src: url('Lato-Heavy.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Heavy.eot?#iefix') format('embedded-opentype'),
url('Lato-Heavy.woff2') format('woff2'),
url('Lato-Heavy.woff') format('woff'),
url('Lato-Heavy.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: 800;
src: url('Lato-HeavyItalic.eot');
src: url('Lato-HeavyItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-HeavyItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-HeavyItalic.woff2') format('woff2'),
url('Lato-HeavyItalic.woff') format('woff'),
url('Lato-HeavyItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: normal;
src: url('Lato-Italic.eot');
src: url('Lato-Italic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Italic.eot?#iefix') format('embedded-opentype'),
url('Lato-Italic.woff2') format('woff2'),
url('Lato-Italic.woff') format('woff'),
url('Lato-Italic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: 300;
src: url('Lato-Light.eot');
src: url('Lato-Light.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Light.eot?#iefix') format('embedded-opentype'),
url('Lato-Light.woff2') format('woff2'),
url('Lato-Light.woff') format('woff'),
url('Lato-Light.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: 300;
src: url('Lato-LightItalic.eot');
src: url('Lato-LightItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-LightItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-LightItalic.woff2') format('woff2'),
url('Lato-LightItalic.woff') format('woff'),
url('Lato-LightItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: 500;
src: url('Lato-Medium.eot');
src: url('Lato-Medium.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Medium.eot?#iefix') format('embedded-opentype'),
url('Lato-Medium.woff2') format('woff2'),
url('Lato-Medium.woff') format('woff'),
url('Lato-Medium.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: 500;
src: url('Lato-MediumItalic.eot');
src: url('Lato-MediumItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-MediumItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-MediumItalic.woff2') format('woff2'),
url('Lato-MediumItalic.woff') format('woff'),
url('Lato-MediumItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: normal;
src: url('Lato-Regular.eot');
src: url('Lato-Regular.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Regular.eot?#iefix') format('embedded-opentype'),
url('Lato-Regular.woff2') format('woff2'),
url('Lato-Regular.woff') format('woff'),
url('Lato-Regular.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: 600;
src: url('Lato-Semibold.eot');
src: url('Lato-Semibold.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Semibold.eot?#iefix') format('embedded-opentype'),
url('Lato-Semibold.woff2') format('woff2'),
url('Lato-Semibold.woff') format('woff'),
url('Lato-Semibold.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: 600;
src: url('Lato-SemiboldItalic.eot');
src: url('Lato-SemiboldItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-SemiboldItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-SemiboldItalic.woff2') format('woff2'),
url('Lato-SemiboldItalic.woff') format('woff'),
url('Lato-SemiboldItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: normal;
font-weight: 200;
src: url('Lato-Thin.eot');
src: url('Lato-Thin.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-Thin.eot?#iefix') format('embedded-opentype'),
url('Lato-Thin.woff2') format('woff2'),
url('Lato-Thin.woff') format('woff'),
url('Lato-Thin.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

@font-face {
font-family: 'lato';
font-family: lato;
font-style: italic;
font-weight: 200;
src: url('Lato-ThinItalic.eot');
src: url('Lato-ThinItalic.eot?#iefix') format('embedded-opentype'),
src:
url('Lato-ThinItalic.eot?#iefix') format('embedded-opentype'),
url('Lato-ThinItalic.woff2') format('woff2'),
url('Lato-ThinItalic.woff') format('woff'),
url('Lato-ThinItalic.ttf') format('truetype');
text-rendering: optimizeLegibility;
text-rendering: optimizelegibility;
}

0 comments on commit 6c6460b

Please sign in to comment.