.html-history-dialog-container {
    margin-left: 10px;
    margin-right: 10px;
    width: calc(100% - 20px);
}
.html-history-dialog {
    position: relative;
    .history-view-top-bar {
        display: flex;
        align-items: center;
        padding: 8px 12px;
        background-color: #f7f7f7;
        border-bottom: 1px solid #ddd;

        >div {
            flex-grow: 6;
            &.toggle-view-btns {
                flex-grow: 1;
                padding-right: 10px;
                width: 220px;
            }
            &:last-child {
                flex-grow: 1;
                text-align: right;
                width: 180px;
                .fa {
                    margin-right: 10px;
                }
            }
        }
    }
    .history-view-inner {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-top: 0;
        overflow: auto;
        .embedded-history-dialog-placeholder {
            color: #444;
            padding: 32px;
            text-align: center;
            font-size: 20px;
            border : 1px solid #999;
            border-radius: 4px;
            margin: 8px 0;
            background-image: linear-gradient(45deg, #d1d1d1 25%, #999 25%, #999 50%, #d1d1d1 50%, #d1d1d1 75%, #999 75%, #999);
            background-size: 50px 50px;
            text-shadow:
                    -2px -2px 0 #d1d1d1,
                    2px -2px 0 #d1d1d1,
                    -2px 2px 0 #d1d1d1,
                    2px 2px 0 #d1d1d1,
                    -3px 0px 0 #d1d1d1,
                    3px 0px 0 #d1d1d1,
                    0px -3px 0 #d1d1d1,
                    0px 3px 0 #d1d1d1,
        }
        .history-comparison-split {
            position: relative;
        }
    }
    .history-container {
        --border-color: #ddd;
        margin-left: 240px;
        overflow: hidden;
        .o_notebook_content {
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-top: 0;
        }
        .nav {
            padding-left: 24px;
        }
        removed {
            display: inline;
            background-color: #f1afaf;
            text-decoration: line-through;
            opacity: 0.5;
        }
        added {
            display: inline;
            background-color: #c8f1af;
        }
        p {
            margin-bottom: 0.6rem;
        }
    }
    .revision-list {
        overflow: auto;
        width: 230px;
        position: absolute;
        top:0;
        left: 0;
        .btn {
            --Avatar-size: 24px;
            display: block;
            text-align: left;
            width: 200px;
            margin-bottom: 8px;
            position: relative;
            padding-left: 18px;
            margin-left: 12px;
            color: #555;
            border-radius: 6px;
            .o_avatar  {
                position: absolute;
                right: 6px;
                top: 3px;
                opacity: 0.5;
            }
            &:hover {
                background-color: rgba($primary, .20);
            }
            &:after {
                content: ' ';
                position: absolute;
                left : -1px;
                top: -16px;
                border-left: 2px solid;
                border-color: $secondary;
                height: 24px;
            }
            &:before {
                font-family: 'FontAwesome';
                content: '\f068';
                position: absolute;
                left : -12px;
                top: 4px;
                font-size: 12px;
                text-align: center;
                border-radius: 12px;
                width: 24px;
                height: 24px;
                line-height: 24px;
                background-color: $secondary;
                z-index: 10;
            }
            &.targeted {
                color: lighten($primary, 20%);
                &:before {
                    color: white;
                    content: '\f00c';
                    background-color: lighten($primary, 20%);
                }
                &:after {
                    border-color: lighten($primary, 20%);
                }
            }
            &.selected {
                color: $primary;
                &:before {
                    color: white;
                    content: '\f0da';
                    background-color: $primary;
                }
                &:after {
                    border-color: $primary;
                }
                .o_avatar {
                    opacity: 1;
                }
            }
            &:first-child:after {
                content: none !important;
            }

        }
    }
}
