﻿/*
    SDLib.CMS.css
    ===========================================================================================
    -  01/10/2018 | v.1.0.0 | Initial
    -  15/10/2022 | v.2.0.0 | JTree update => Icon on each node
    -  17/10/2022 | v.2.1.0 | JTree update => Text overflow style on node
*/

.jview-tree-group {
    padding-top: 4px;
    padding-right: 4px;
    padding-bottom: 4px;
    font-weight: bold;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jview-tree-node {
    padding: 4px;
    display: inline-block;
    font-weight: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

span.jview-tree-group:nth-child(2):hover {
    text-decoration: underline;
    cursor: pointer;
}

span.jview-tree-node:nth-child(2):hover {
    text-decoration: underline;
    cursor: pointer;
}

.jview-tree-node-enabled {
    /* #EMPTY */    
}

.jview-tree-node-disabled {
    color: red;
}

.jview-tree-node-active {
    color: darkcyan;
    text-decoration: underline;
}

.jview-tree-node-added {
    text-decoration: dashed;
    background-color: lightcyan;
    color: darkcyan;
}

.jview-tree-node-updated {
    text-decoration: dashed;
    background-color: lightblue;
    color: darkblue;
}

.jview-tree-node-deleted {
    text-decoration: line-through;
}

/************************************************/
.h1, .h2, .h3, h1, h2, h3 {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.well {
    padding: 8px;
    margin-bottom: auto;
}

.cms-element {
    cursor: pointer;
}

    .cms-element:last-child:hover {
        border: 2px dashed #ccc;
    }

.cms-element-node {
    cursor: cell;
}

    .cms-element-node:last-child:hover {
        border: 1px dashed #ccc;
    }

.cms-element-design {
    border: 2px dashed #99cfb7;
}

    .cms-element-design:hover {
        border: 2px dashed #ccc;
    }

/************************************************/
.CMS-SiteElementContentLong {
    min-height: 60px;
    max-height: 60px;
    overflow: auto;
    font-size: 12px;
}

/************************************************/
.errmsg {
    font-size: 0.9em;
}

.draggable {
    cursor: grab;
}

/************************************************/
.hide-me {
    opacity: 0.0;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.show-me {
    opacity: 1.0;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

/************************************************/

.cms-editable {
    cursor: default;
}

.cms-editable:hover {
    cursor: default;
}

.cms-editable-icon {
    padding: 4px;
    font-size: 16px;
    text-align: center;
}
    .cms-editable-icon:hover {
        cursor: pointer;
    }

/************************************************/
/* Animation à l'affichage                      */
/************************************************/
.animate {
    animation: opac 0.8s
}

@keyframes opac {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}
