Skip to content

Commit

Permalink
Consistent styling of applications for a site and a project #3523
Browse files Browse the repository at this point in the history
  • Loading branch information
alansemenov committed Apr 4, 2024
1 parent 4c2d7ec commit be243b4
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 36 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"copy-webpack-plugin": "^12.0.2",
"css-loader": "^6.10.0",
"cssnano": "^6.1.2",
"enonic-admin-artifacts": "^1.9.0",
"enonic-admin-artifacts": "^1.10.0",
"error-logger-webpack-plugin": "^1.1.1",
"eslint": "^8.57.0",
"glob": "^10.3.12",
Expand Down
13 changes: 0 additions & 13 deletions src/main/resources/assets/admin/common/icons/icons.less
Original file line number Diff line number Diff line change
Expand Up @@ -602,16 +602,3 @@
content: "\e9c9";
}
}

.icon-alert() {
&::before {
content: "!";
display: block;
background-color: @admin-red;
color: @admin-white;
width: 16px;
height: 16px;
border-radius: 10px;
font-size: 14px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ export class Application
return this.state === Application.STATE_STARTED;
}

isStopped(): boolean {
return this.state === Application.STATE_STOPPED;
}

hasChildren(): boolean {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
.@{_COMMON_PREFIX}wrapper {
display: flex;
align-items: center;
justify-content: center;
height: @size;
width: @size;
margin-right: @icon-names-gap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,26 @@
&:not(.placeholder) {
height: auto;

&.invalid,
&.uninstalled {
.@{_COMMON_PREFIX}wrapper {
margin-right: 10px;
}

&.invalid {
.highlight-option(@admin-input-red);
margin-bottom: 5px;
}

&.stopped,
&.uninstalled {
.@{_COMMON_PREFIX}wrapper {
.icon-alert();

&:before {
position: relative;
top: auto;
left: auto;
}

.font-icon-default {
display: none;
}
Expand All @@ -39,14 +49,6 @@
display: none;
}
}

&.stopped {
opacity: 0.5;

a.edit {
display: none;
}
}
}
}

Expand All @@ -66,7 +68,3 @@
}
}
}

.wizard-panel .wizard-steps-panel .wizard-step-form .application-configurator .form-view {
margin: 10px 0 0 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
color: @admin-button-blue1;
}

margin-right: 12px;
margin-right: 5px;
flex-basis: 24px;
flex-grow: 0;
flex-shrink: 0;
Expand Down

0 comments on commit be243b4

Please sign in to comment.