Skip to content

Commit

Permalink
style(ui): Fix stylelint errors
Browse files Browse the repository at this point in the history
* manually fix scss style errors
* update package.json targets `lint:styles` and `lint:styles:fix`
* update .stylelintrc.json to defaultSeverity 'warning'
  • Loading branch information
gpazuch committed Dec 19, 2023
1 parent 1bd9805 commit 5295c41
Show file tree
Hide file tree
Showing 14 changed files with 124 additions and 125 deletions.
1 change: 1 addition & 0 deletions ui/.stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"defaultSeverity": "warning",
"rules": {
"color-hex-case": "lower",
"color-no-invalid-hex": true,
Expand Down
4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"test:coverage": "rimraf coverage && npm run test -- --code-coverage",
"lint": "ng lint",
"lint:fix": "tslint --fix -c ./tslint.json 'src/**/*{.ts,.tsx}'",
"lint:styles": "stylelint ./src/**/*.scss",
"lint:styles:fix": "stylelint ./src/**/*.scss --fix",
"lint:styles": "npx stylelint './src/**/*.{css,scss}'",
"lint:styles:fix": "npx stylelint './src/**/*.{css,scss}' --fix",
"lint:ci": "npm run lint && npm run lint:styles",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "ng e2e",
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/auth/pages/register/register.component.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@import '../login/login.component';

.accept-group-display{
.accept-group-display {
display: inline-flex;
margin-top: 0.5rem;
align-items: stretch;
.label {
margin-top: 0.9rem;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,12 @@ header {
background-color: transparent;
border: none;
outline: none;
font-family: Open Sans,sans-serif;
font-size: .875rem;
font-family: Open Sans, sans-serif;
font-size: 0.875rem;
font-weight: 700;
line-height: 1rem;
text-transform: uppercase;
color: #969fb9;
border: none;
border-bottom: solid 2px transparent;
&:hover {
color: #5aa1ff;
Expand Down
6 changes: 3 additions & 3 deletions ui/src/app/pages/fleet/agents/key/agent.key.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nb-card {
border: 0 transparent;
color: #969fb9;
position: relative;
top: -0.10rem;
top: -0.1rem;
right: -0.15rem;
outline: none;
max-height: 28px !important;
Expand Down Expand Up @@ -104,13 +104,13 @@ a {
fill: #3089fc !important;
}
.command-card {
margin: 1.5rem 0 !important;
margin: 1.5rem 0 !important;
background-color: #1c2339 !important;
padding: 0 !important;
border: transparent;
nb-card-header {
border: none !important;
border-radius: 0px !important;
border-radius: 0 !important;
}
nb-card-body {
margin: 0 !important;
Expand Down
8 changes: 4 additions & 4 deletions ui/src/app/pages/fleet/agents/list/agent.list.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ input[type=checkbox] {
margin-left: 10px;
}
.selected-buttons {
width: 270px;
display: flex;
align-self: flex-end;
gap: 5px;
width: 270px;
display: flex;
align-self: flex-end;
gap: 5px;
}
.agent-reset {
color: #fff !important;
Expand Down
172 changes: 86 additions & 86 deletions ui/src/app/pages/fleet/agents/reset/agent.reset.component.scss
Original file line number Diff line number Diff line change
@@ -1,97 +1,97 @@
nb-card {
max-width: 38rem !important;
padding: 0 !important;

nb-card-header {
background: #232940 !important;
color: #969fb9 !important;
}

nb-card-body {
margin: 2rem 3rem !important;
padding: 0 !important;

p {
color: #969fb9 !important;
margin-bottom: 1rem !important;
font-weight: 500 !important;
font-size: 14px !important;
line-height: 24px !important;
}

.ns1-red {
color: #df316f !important;
}
}

nb-card-footer {
text-align: center !important;
padding: 1.5rem !important;
}
max-width: 38rem !important;
padding: 0 !important;

nb-card-header {
background: #232940 !important;
color: #969fb9 !important;
}

// ORB
::ng-deep {
.orb-close-dialog {
background-color: #23294000 !important;
border-radius: 4px !important;
display: contents !important;
float: right !important;
nb-card-body {
margin: 2rem 3rem !important;
padding: 0 !important;

> span {
float: right;
font-size: 1.5rem !important;
color: #3089fc !important;
font-weight: 900 !important;
}
p {
color: #969fb9 !important;
margin-bottom: 1rem !important;
font-weight: 500 !important;
font-size: 14px !important;
line-height: 24px !important;
}

.orb-sink-delete-warning-button:not(.btn-disabled) {
background-color: #3089fc !important;
color: #ffffff !important;
.ns1-red {
color: #df316f !important;
}
}
.ns1red {
color: #df316f !important;
}
.element-list {
max-height: 225px;
overflow-y: auto;
margin-left: 20px;
}
.span-accent {
font-size: 13px;
font-weight: 600;
float: right;
}
.item-row {
display: flex;
align-items: center;
border-radius: 6px;
width: 300px;
padding-left: 3px;
font-size: 13px;
font-weight: 600;
}
.item-row:hover {
background-color: #1e263d;
}
.col-8 {
flex: 1;
padding-left: 0;

nb-card-footer {
text-align: center !important;
padding: 1.5rem !important;
}
.col-3 {
flex: 1;
padding-right: 0;
}

// ORB
::ng-deep {
.orb-close-dialog {
background-color: #23294000 !important;
border-radius: 4px !important;
display: contents !important;
float: right !important;

> span {
float: right;
font-size: 1.5rem !important;
color: #3089fc !important;
font-weight: 900 !important;
}
}
.overflow-ellipsis {
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
max-width: 350px !important;

.orb-sink-delete-warning-button:not(.btn-disabled) {
background-color: #3089fc !important;
color: #ffffff !important;
}
.agent-info {
display: flex;
justify-content: center;
align-items: center;
}
}
.ns1red {
color: #df316f !important;
}
.element-list {
max-height: 225px;
overflow-y: auto;
margin-left: 20px;
}
.span-accent {
font-size: 13px;
font-weight: 600;
float: right;
}
.item-row {
display: flex;
align-items: center;
border-radius: 6px;
width: 300px;
padding-left: 3px;
font-size: 13px;
font-weight: 600;
}
.item-row:hover {
background-color: #1e263d;
}
.col-8 {
flex: 1;
padding-left: 0;
}
.col-3 {
flex: 1;
padding-right: 0;
}
.overflow-ellipsis {
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
max-width: 350px !important;
}
.agent-info {
display: flex;
justify-content: center;
align-items: center;
}
7 changes: 3 additions & 4 deletions ui/src/app/pages/fleet/agents/view/agent.view.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -228,19 +228,18 @@ nb-card {
font-weight: 400;
margin-top: 23px;
line-height: 1.25rem;
}
}
.tab-button {
padding: 16px 32px;
background-color: transparent;
border: none;
outline: none;
font-family: Open Sans,sans-serif;
font-size: .875rem;
font-family: Open Sans, sans-serif;
font-size: 0.875rem;
font-weight: 700;
line-height: 1rem;
text-transform: uppercase;
color: #969fb9;
border: none;
border-bottom: solid 2px transparent;
&:hover {
color: #5aa1ff;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ nb-card {

nb-card-body {
overflow: hidden !important;
margin: 2rem 3rem 0 3rem !important;
margin: 2rem 3rem 0 !important;
padding: 0 !important;
}
}
Expand Down Expand Up @@ -43,7 +43,7 @@ nb-card {
}
}
.group-edit-button {
padding: 8px 24px 8px 24px;
padding: 8px 24px;
border-radius: 16px;
border: none;
background-color: #3089fc;
Expand Down
4 changes: 2 additions & 2 deletions ui/src/app/pages/sinks/details/sink.details.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nb-card {

nb-card-body {
overflow: hidden !important;
margin: 2rem 3rem 0 3rem !important;
margin: 2rem 3rem 0 !important;
padding: 0 !important;
}
}
Expand Down Expand Up @@ -113,7 +113,7 @@ p {
font-size: 14px;
}
.sink-edit-button {
padding: 8px 24px 8px 24px;
padding: 8px 24px;
border-radius: 16px;
border: none;
background-color: #3089fc;
Expand Down
Loading

0 comments on commit 5295c41

Please sign in to comment.