/*
 * This file is part of Cockpit.
 *
 * Copyright (C) 2016 Red Hat, Inc.
 *
 * Cockpit is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * Cockpit is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
 */

@import "../lib/page.css";

.setroubleshoot-log {
    font-family: monospace;
}

.setroubleshoot-progress-spinner {
    display: inline-block;
}

.setroubleshoot-progress-message {
    vertical-align: top;
}

.curtains-relative {
    height: 100%;
    width: 100%;
}

/* warning icon for critical (level "red") setroubleshoot alerts */
.listing-ct-item .fa-exclamation-triangle {
    color: #c00;
    vertical-align: middle;
    font-size: 150%;
}

/* make sure the other columns don't spread out too much
 * the warning icon might not even be present at all
 */
.listing-ct-item > th {
    width: 100%;
}

/* remove padding from warning icon column */
.listing-ct-item :nth-child(2) {
    padding: 0;
}

/* if we have an error at the top of the page, give it some space */
.alert-ct-top {
    margin: 1rem 0;
}

.list-group-item .alert {
    margin-top: 10px;
}

.selinux-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.selinux-state {
    display: flex;
    align-items: center;
    margin: 0 0 1rem;
}

.selinux-state .onoff-ct {
    vertical-align: text-bottom;
}

.selinux-state .status {
    font-size: var(--pf-global--FontSize--xs);
    margin-left: 0.5rem;
}

.selinux-state > h2 {
    margin: 0 1.5rem 0 0;
}

.selinux-policy-ct > .note {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.selinux-policy-ct .pficon-info {
    padding-right: 0.5rem;
}

.listing-ct-body .list-group {
    margin-bottom: 0px;
    border-top: none;
}

.listing-ct-body .list-group-item {
    padding-left: 0px;
    padding-right: 0px;
}

.listing-ct-body .list-group-item:first-child {
    padding-top: 0px;
}

.listing-ct-body .list-group-item:last-child {
    padding-bottom: 0px;
    border-bottom: none;
}
