Skip to content

Commit

Permalink
Add Stylelint to OpenEMR (openemr#3426) (openemr#3436)
Browse files Browse the repository at this point in the history
  • Loading branch information
tywrenn authored May 2, 2020
1 parent a65b2e3 commit d6afe5b
Show file tree
Hide file tree
Showing 125 changed files with 13,520 additions and 11,010 deletions.
10 changes: 10 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
vendor/**/*.css
vendor/**/*.scss
node_modules/**/*.css
node_modules/**/*.scss
interface/modules/zend_modules/public/css/**/*.css
public/assets/**/*.css
public/themes/**/*.css
public/themes/**/*.scss
public/assets/**/*.scss
interface/themes/themeBuilder.css
18 changes: 18 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": ["stylelint-order", "stylelint-scss"],
"extends": "stylelint-config-standard",
"extends": "stylelint-config-sass-guidelines",
"rules": {
"selector-no-qualifying-type": [true, {
"ignore": ["attribute", "class", "id"]
}],
"string-quotes": null,
"selector-class-pattern": null,
"selector-max-id": null,
"selector-max-compound-selectors": null,
"at-rule-no-unknown": null,
"declaration-empty-line-before": null,
"at-rule-empty-line-before": null,
"scss/at-mixin-pattern": null
}
}
63 changes: 31 additions & 32 deletions contrib/forms/example2/style.css
Original file line number Diff line number Diff line change
@@ -1,74 +1,73 @@
/* This CSS is used ONLY by the form defined in this same folder
/* This CSS is used ONLY by the form defined in this same folder
* customize it as you see fit for your specific form
*/
*/

h1 {
font-size: 120%;
font-weight: bold;
font-size: 120%;
font-weight: bold;
}

#form_container {
border: 1px solid black;
background-color: #ffffcc;
width: 750px;
padding: 10px;
margin: 10px 0px 10px 0px;
background-color: #ffc;
border: 1px solid var(--black);
margin: 10px 0;
padding: 10px;
width: 750px;
}

#general {
padding: 10px;
padding: 10px;
}

#history {
padding: 10px;
border-top: 1px solid black;
border-top: 1px solid var(--black);
padding: 10px;
}

#bottom {
padding: 10px;
border-top: 1px solid black;
border-top: 1px solid var(--black);
padding: 10px;
}

.formtext {
font-family: courier;
font-size: 90%;
font-family: courier;
font-size: 90%;
}

.link {
font-size: 80%;
font-size: 80%;
}

.link_submit {
font-size: 120%;
font-size: 120%;
}

.title {
font-size: 150%;
font-weight: bold;
font-size: 150%;
font-weight: bold;
}

.bold {
font-size: 110%;
font-weight: bold;
.font-weight-bold {
font-size: 110%;
}

#print_form_container {
border: 1px solid black;
background-color: #ffffcc;
padding: 10px;
margin: 10px 0px 10px 0px;
background-color: #ffc;
border: 1px solid var(--black);
margin: 10px 0;
padding: 10px;
}

#print_general {
padding: 10px;
padding: 10px;
}

#print_history {
padding: 10px;
border-top: 1px solid black;
border-top: 1px solid var(--black);
padding: 10px;
}

#print_bottom {
padding: 10px;
border-top: 1px solid black;
border-top: 1px solid var(--black);
padding: 10px;
}
Loading

0 comments on commit d6afe5b

Please sign in to comment.