blob: f5b191da316ddaecff4376d30de5f4f503589b4e [file] [edit]
// Copyright (C) 2026 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
@function log-level-color($color, $mix) {
@return color-mix(in srgb, $color, var(--pf-color-text) $mix);
}
.pf-journald-logs-panel {
font-size: 11px;
font-family: var(--pf-font-monospace);
&__row {
&--emergency {
color: log-level-color(hsl(291, 100%, 50%), 20%);
}
&--alert {
color: log-level-color(hsl(291, 100%, 50%), 20%);
}
&--critical {
color: log-level-color(hsl(291, 100%, 50%), 20%);
}
&--error {
color: log-level-color(hsl(0, 86%, 60%), 20%);
}
&--warning {
color: log-level-color(hsl(38, 100%, 58%), 20%);
}
&--notice {
color: log-level-color(hsl(95, 52%, 45%), 30%);
}
&--info {
color: log-level-color(hsl(217, 100%, 60%), 30%);
}
&--debug {
color: log-level-color(hsl(0, 0%, 60%), 30%);
}
&--highlighted {
background: var(--pf-color-highlight);
}
}
}