/*
 * 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 "/page.css";

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

/* from patternfly .list-view-pf-actions
 * update this when we update patternfly
 */
.setroubleshoot-listing-action {
    float: right;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-top: 20px;
    -ms-flex-order: 2;
    order: 2;
}

.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 */
div.alert-ct-top {
    margin-top: 10px;
}

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

.selinux-policy-ct label {
    font-size: 13px;
}

.selinux-policy-ct .btn-onoff-ct {
    padding-left: 10px;
    padding-right: 10px;
}

/* on-off button styling depends on data-toggle in bootstrap */
.btn-onoff-ct input {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    pointer-events: none;
}

.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;
}
