Skip to content

Commit

Permalink
css: Avoid Icinga Web variables in list styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Sep 8, 2023
1 parent 20105f9 commit fca48e3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
2 changes: 1 addition & 1 deletion asset/css/list/item-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

> .empty-state {
.rounded-corners();
background-color: @gray-lighter;
background-color: @empty-state-bg-in-lists;
}
}

Expand Down
8 changes: 4 additions & 4 deletions asset/css/list/item-table.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ ul.item-table {
div.item-table {
> .empty-state {
.rounded-corners();
background-color: @gray-lighter;
background-color: @empty-state-bg-in-lists;
}
}

.table-row {
color: @text-color-light;
color: @default-text-color-light;

.title {
.subject {
color: @text-color;
color: @default-text-color;
}

a {
font-weight: bold;

&:hover {
color: @icinga-blue;
color: @list-item-title-hover-color;
text-decoration: none;
}
}
Expand Down
12 changes: 6 additions & 6 deletions asset/css/list/list-item.less
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Style

.list-item {
color: @text-color-light;
color: @default-text-color-light;

&:not(:first-child) > .main {
border-top: 1px solid @gray-light;
border-top: 1px solid @list-item-separation-bg;
}

&:not(:first-child) .visual {
Expand All @@ -17,21 +17,21 @@
}

a {
color: @text-color;
color: @default-text-color;
}
}

.title {
.subject {
color: @text-color;
color: @default-text-color;
}

a {
color: @text-color;
color: @default-text-color;
font-weight: bold;

&:hover {
color: @icinga-blue;
color: @list-item-title-hover-color;
text-decoration: none;
}
}
Expand Down
8 changes: 8 additions & 0 deletions asset/css/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@
@schedule-element-fields-disabled-selected-bg: @base-gray-light;
@schedule-element-keyboard-note-bg: @base-gray-light;

@empty-state-bg-in-lists: @base-gray-lighter;
@list-item-title-hover-color: @base-primary-color;
@list-item-separation-bg: @base-gray-light;

@iplWebLightRules: {
:root {
--base-gray: #819398;
Expand Down Expand Up @@ -199,5 +203,9 @@
--schedule-element-fields-disabled-bg: var(--base-gray-lighter);
--schedule-element-fields-disabled-selected-bg: var(--base-gray-light);
--schedule-element-keyboard-note-bg: var(--base-gray-light);

--empty-state-bg-in-lists: var(--base-gray-lighter);
--list-item-title-hover-color: var(--base-primary-color);
--list-item-separation-bg: var(--base-gray-light);
}
};

0 comments on commit fca48e3

Please sign in to comment.