/*
 * Copyright (C) 2018 Université de Montréal
 * Author Gilles-Philippe Leblanc
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program 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 General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * Css file to customize an organigram based on existing html
 * for Secretariat general.
 *
 * @author Gilles-Philippe Leblanc
 */

@import "udem-organigramme.css";

.org-container {
    --udem-organigramme-title-border-color-sg: #999;
    --udem-organigramme-min-width: 768px;
    h2 {
        font-size: 12px;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
        font-weight: bold;
        border-bottom: 2px solid var(--udem-organigramme-title-border-color-sg);
        text-transform: uppercase;
        margin-top: 0;
        padding-bottom: var(--udem-organigramme-item-padding-size) / 3;
        margin-right: -(var(--udem-organigramme-item-padding-size));
        padding-right: var(--udem-organigramme-item-padding-size);
    }
    a {
        font-size: 10px;
    }
    .org-item {
        padding-bottom: var(--udem-organigramme-item-padding-size) * 1.5;
    }
    #org-assemble,
    #org-conseil,
    #org-cmission {
        margin-left: -5px;
        margin-right: -5px;
    }

    @media (min-width: var(--udem-organigramme-min-width)) {
        h2 {
            font-size: 16px;
            -webkit-hyphens: none;
            -ms-hyphens: none;
            hyphens: none;
            padding-bottom: var(--udem-organigramme-item-padding-size) / 2;
            margin-right: -(var(--udem-organigramme-item-padding-size) * 2);
            padding-right: var(--udem-organigramme-item-padding-size) * 2;
        }
        a {
            font-size: inherit;
        }
        .org-item {
            padding: var(--udem-organigramme-item-padding-size) * 2;
            padding-bottom: var(--udem-organigramme-item-padding-size) * 3;
        }
        #org-assemble,
        #org-conseil,
        #org-cmission {
            margin-left: auto;
            margin-right: auto;
        }
    }
}
