Skip to content

Commit

Permalink
Merge pull request #993 from yaacov/css-lint
Browse files Browse the repository at this point in the history
🤖 css indentation linting
  • Loading branch information
yaacov authored Mar 15, 2024
2 parents 71883b6 + ecef970 commit 3dae65b
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 64 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-plugin/stylelintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ extends:
- stylelint-config-standard
- stylelint-config-prettier
rules:
indentation:
- 2
# Disallow color names and hex colors as these don't work well with dark mode.
# Use PF global variables instead:
# https://patternfly-react-main.surge.sh/developer-resources/global-css-variables#global-css-variables
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.forklift-page-headings-alerts {
padding-left: 0;
padding-left: 0;
}

.forklift-page-section {
border-top: 1px solid var(--pf-global--BorderColor--100);
border-top: 1px solid var(--pf-global--BorderColor--100);
}

.forklift-title {
Expand All @@ -15,7 +15,7 @@
}

.forklift-welcome-text {
padding-bottom: var(--pf-global--spacer--sm);
padding-bottom: var(--pf-global--spacer--sm);
}

.forklift-welcome__flex-icon {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.forklift-page-headings-alerts {
padding-left: 0;
padding-left: 0;
}

.forklift-page-section {
border-top: 1px solid var(--pf-global--BorderColor--100);
border-top: 1px solid var(--pf-global--BorderColor--100);
}

.forklift-title {
Expand All @@ -15,7 +15,7 @@
}

.forklift-welcome-text {
padding-bottom: var(--pf-global--spacer--sm);
padding-bottom: var(--pf-global--spacer--sm);
}

.forklift-welcome__flex-icon {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
}

.forklift-page-section--info {
border-bottom: 0;
padding-bottom: 0;
border-bottom: 0;
padding-bottom: 0;
}

.forklift-page-section--details {
border-top: 0;
border-top: 0;
}

.forklift-page-plan-networks-button {
Expand All @@ -30,50 +30,50 @@ border-top: 0;
}

.forklift-page-plan-field-error-validation {
color: var(--pf-c-form__helper-text--m-error--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
color: var(--pf-c-form__helper-text--m-error--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-plan-field-warning-validation {
color: var(--pf-c-form__helper-text--m-warning--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
color: var(--pf-c-form__helper-text--m-warning--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-plan-field-success-validation {
color: var(--pf-c-form__helper-text--m-success--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
color: var(--pf-c-form__helper-text--m-success--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-network-map__details-tab--update-button {
margin-bottom: var(--pf-global--spacer--md);
margin-bottom: var(--pf-global--spacer--md);
}

.forklift-overview__controller-card__status-icon {
padding-right: var(--pf-global--spacer--sm);
padding-right: var(--pf-global--spacer--sm);
}

.forklift-table__status-cell-progress {
padding-right: var(--pf-global--spacer--xl);;
padding-right: var(--pf-global--spacer--xl);;
}

.forklift-table__status-cell-progress div {
grid-gap: var(--pf-global--spacer--xs);
grid-gap: var(--pf-global--spacer--xs);
}

.forklift-page-section--details-status {
width: 50%;
width: 50%;
}


.forklift-page-section--details-start-button {
padding-bottom: var(--pf-global--spacer--lg);
padding-bottom: var(--pf-global--spacer--lg);
}

.forklift-page-plan-mapping-list {
max-width: 55rem;
max-width: 55rem;
}

.forklift-page-plan-mapping {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.forklift-alert--margin-top {
margin-top: var(--pf-global--spacer--md);
margin-top: var(--pf-global--spacer--md);
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.forklift-certificate-upload-margin {
margin-top: 0.5rem;
margin-top: 0.5rem;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.forklift-page-headings-alerts {
padding-left: 0;
padding-top: 0;
padding-left: 0;
padding-top: 0;
}

.forklift-page-section {
border-top: 1px solid var(--pf-global--BorderColor--100);
border-top: 1px solid var(--pf-global--BorderColor--100);
}

.forklift-page-section--info {
Expand All @@ -17,32 +17,32 @@
}

.forklift-page-provider-networks-button {
padding-bottom: var(--pf-global--spacer--lg);
padding-bottom: var(--pf-global--spacer--lg);
}

.forklift-page-provider-vm_concern-button {
padding: var(--pf-global--spacer--xs);
padding: var(--pf-global--spacer--xs);
}

.forklift-page-provider-field-error-validation {
color: var(--pf-c-form__helper-text--m-error--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-provider-field-warning-validation {
color: var(--pf-c-form__helper-text--m-warning--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-provider-field-success-validation {
color: var(--pf-c-form__helper-text--m-success--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-provider-field-default-validation {
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}
color: var(--pf-c-form__helper-text--m-error--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-provider-field-warning-validation {
color: var(--pf-c-form__helper-text--m-warning--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-provider-field-success-validation {
color: var(--pf-c-form__helper-text--m-success--Color);
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}

.forklift-page-provider-field-default-validation {
font-size: small;
padding-top: var(--pf-c-form__helper-text--MarginTop);
}
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
.forklift-page-editable-description-item {
display: flex;
display: flex;
}

.forklift-page-editable-description-item-button {
padding-top: 0;
padding-top: 0;
}

.forklift-page-mapping-list {
/* <Form isWidthLimited> */
max-width: 55rem;
/* <Form isWidthLimited> */
max-width: 55rem;
}

.forklift-page-resource-link-in-description-item {
padding-left: 8px;
padding-left: 8px;
}

.forklift--create-vm-migration-plan--alert {
margin-bottom: var(--pf-global--spacer--md);
margin-bottom: var(--pf-global--spacer--md);
}

.forklift--create-vm-migration-plan--section-header {
margin-bottom: 0;
margin-bottom: 0;
}

.forklift--create-vm-migration-plan--form-actions {
margin-top: var(--pf-global--spacer--md);
margin-top: var(--pf-global--spacer--md);
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.forklift-page-headings-alerts {
padding-left: 0;
padding-left: 0;
}

.forklift-page-section {
border-top: 1px solid var(--pf-global--BorderColor--100);
border-top: 1px solid var(--pf-global--BorderColor--100);
}

.forklift-title {
Expand All @@ -15,7 +15,7 @@
}

.forklift-welcome-text {
padding-bottom: var(--pf-global--spacer--sm);
padding-bottom: var(--pf-global--spacer--sm);
}

.forklift-welcome__flex-icon {
Expand Down

0 comments on commit 3dae65b

Please sign in to comment.