<commit_before>/*
 *  This file is part of Wirecloud.
 *  Copyright (C) 2014-2015  CoNWeT Lab., Universidad Politécnica de Madrid
 *
 *  Wirecloud is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  License, or (at your option) any later version.
 *
 *  Wirecloud 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 Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with Wirecloud.  If not, see <http://www.gnu.org/licenses/>.
 */


@import 'variables';

@mixin alert-variant($color, $background, $border) {
    color: $color;
    background: $background;
    border-color: $border;

    a,
    .alert-link {
        color: darken($color, 5%);
    }

    blockquote {
        border-left-color: $color;
    }
}

.alert {
    position: relative;
    padding: $alert-padding;
    margin-bottom: $line-height-base;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    box-sizing: border-box;
    @include alert-variant($state-warning-text, $state-warning-bg, $state-warning-border);

    h4:first-child {
        margin-top: 0;
        color: inherit;
    }

    .close {
        position: relative;
        top: -2px;
        right: -21px;
        line-height: $line-height-base;
    }

    a,
    .alert-link {
        font-weight: 700;
    }

    &::after {
        content: '';
        display: block;
        clear: both;
    }
}

.alert-success {
    @include alert-variant($state-success-text, $state-success-bg, $state-success-border);
}

.alert-danger,
.alert-error {
    @include alert-variant($state-danger-text, $state-danger-bg, $state-danger-border);
}

.alert-info {
    @include alert-variant($state-info-text, $state-info-bg, $state-info-border);
}

.alert-block {
    padding-top: 14px;
    padding-bottom: 14px;
}

.alert > p,
.alert > ul {
    margin-bottom: 0;
}

.alert > p + p {
    margin-top: 5px;
}

.alert > .icon-remove {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 20px;
    opacity: 0.2;
    line-height: 20px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.alert > .icon-remove:hover, .alert > .icon-remove:focus {
    opacity: 0.4;
}

// ============================================================================
// STYLED-ALERT - BASIC ALERT MESSAGE
// ============================================================================

.se-alert-heading {
    box-sizing: border-box;
    margin-bottom: ($line-height-base / 2);
    font-family: $headings-font-family;
    font-weight: $headings-font-weight;<commit_msg>Fix paragraph a unordered list style inside alerts<commit_after>/*
 *  This file is part of Wirecloud.
 *  Copyright (C) 2014-2015  CoNWeT Lab., Universidad Politécnica de Madrid
 *
 *  Wirecloud is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  License, or (at your option) any later version.
 *
 *  Wirecloud 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 Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with Wirecloud.  If not, see <http://www.gnu.org/licenses/>.
 */


@import 'variables';

@mixin alert-variant($color, $background, $border) {
    color: $color;
    background: $background;
    border-color: $border;

    a,
    .alert-link {
        color: darken($color, 5%);
    }

    blockquote {
        border-left-color: $color;
    }
}

.alert {
    position: relative;
    padding: $alert-padding;
    margin-bottom: $line-height-base;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    box-sizing: border-box;
    @include alert-variant($state-warning-text, $state-warning-bg, $state-warning-border);

    h4:first-child {
        margin-top: 0;
        color: inherit;
    }

    .close {
        position: relative;
        top: -2px;
        right: -21px;
        line-height: $line-height-base;
    }

    a,
    .alert-link {
        font-weight: 700;
    }

    &::after {
        content: '';
        display: block;
        clear: both;
    }
}

.alert-success {
    @include alert-variant($state-success-text, $state-success-bg, $state-success-border);
}

.alert-danger,
.alert-error {
    @include alert-variant($state-danger-text, $state-danger-bg, $state-danger-border);
}

.alert-info {
    @include alert-variant($state-info-text, $state-info-bg, $state-info-border);
}

.alert-block {
    padding-top: 14px;
    padding-bottom: 14px;
}

.alert > p:last-child,
.alert > ul:last-child {
    margin-bottom: 0;
}

.alert > p + p {
    margin-top: 5px;
}

.alert > .icon-remove {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 20px;
    opacity: 0.2;
    line-height: 20px;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.alert > .icon-remove:hover, .alert > .icon-remove:focus {
    opacity: 0.4;
}

// ============================================================================
// STYLED-ALERT - BASIC ALERT MESSAGE
// ============================================================================

.se-alert-heading {
    box-sizing: border-box;
    margin-bottom: ($line-height-base / 2);
    font-family: $headings-font-family;
    font-weight: $headings-font-weight;
{'fraction_non_alphanumeric': 0.18049540966568509, 'fraction_numerical': 0.018361337259657023, 'mean_word_length': 2.7444876783398184, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3524191', 'n_tokens_mistral': 1992, 'n_tokens_neox': 1851, 'n_words': 500}