Skip to content
Snippets Groups Projects
blubber.scss 12.1 KiB
Newer Older
.blubber_panel {
    display: flex;
    align-items: stretch;
    height: calc(100vh - 174px);
    transition: opacity 100ms, filter 100ms;
    &.waiting {
        filter: blur(1px);
        opacity: 0.5;
    }
    .context_info {
        .followunfollow {
            &.loading {
                pointer-events: none;
            }
            > .follow {
                display: none;
            }
            &.unfollowed {
                text-decoration: line-through;
            }
            &.unfollowed > .follow {
                display: inline-block;
            }
            &.unfollowed > .unfollow {
                display: none;
            }
        }
    }
}

.blubber_thread {
    border: 1px solid var(--content-color-40);

    width: 100%;
    max-width: 100%;

    margin-right: 12px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    position: relative;

    [v-if],
    [v-for],
    [v-show] {
        display: none;
    }

    .scrollable_area {
        max-height: calc(100vh - 240px);
        overflow: auto;
    }

    &.dragover {
        background-color: var(--yellow-40);
        .writer > textarea {
            background-color: var(--yellow-40);
        }
        ol.comments > li.mine > .content::after,
        ol.comments > li.theirs > .content::after {
            background-color: var(--yellow-40);
        border-bottom: 1px solid var(--content-color-40);
        text-align: center;
    }
    .writer {
        border-top: 1px solid var(--content-color-40);
    }


    ol.comments {
        list-style-type: none;
        margin: 0px;
        padding: 0px;
    }

    .writer {
        background-color: var(--white);
        background-image: linear-gradient(to left, var(--content-color-60), var(--content-color-60));
        background-size: 0% 100%;
        background-repeat: no-repeat;
        padding: 5px;

        display: flex;
        justify-content: space-around;
        align-items: center;

        transition: all 0.5s ease-out;

            border: 1px solid var(--content-color-40);
            background-color: var(--white);
            width: calc(100% - 140px);
            height: 34px;
            resize: none;
            padding: 5px;
            max-height: 40vh;
            overflow: auto !important;
        }
        .send {
            display: none;
            cursor: pointer;
        }
        label {
            cursor: pointer;
        }
        &.filled {
            .send {
                display: block;
            }
            label {
                display: none;
            }
        }
    }

    .thread_posting {
        border-bottom: 1px solid var(--content-color-40);
        background-color: var(--white);
            background-color: var(--content-color-20);
            border-bottom: 1px solid var(--content-color-40);
            color: var(--dark-gray-color-60);
            font-size: 0.8em;
            padding: 7px 5px 5px 75px;
            position: relative;
            a {
                color: var(--dark-gray-color-60);
            }
            time {
                float: right;
                margin-left: 0.5em;
            }
            .avatar {
                position: absolute;
                left: 10px;
                top: 10px;

                height: 40px;
                width: 40px;
                background-repeat: no-repeat;
                background-position: center center;
                background-size: 100% auto;
            }
        }


        .content {
            padding: 10px 10px 10px 75px;
            img {
                max-width: 100%;
                max-height: 95vh;
            }
        }
    }

    .empty_blubber_background {
        @include empty-placeholder-image('blubber');
        background-color: mix($dark-gray-color-5, rgba(255, 255, 255, 0), 70%);
        > :first-child {
            position: relative;
        }
    }
}

#blubber_stream_container {
    display: flex;
    align-items: stretch;
    width: calc(100% - 270px);
    @media screen and (max-width: $major-breakpoint-medium) {
        width: 100%;
    }
    @media screen and (min-width: $major-breakpoint-large) {
        max-width: calc(#{$major-breakpoint-large} - 100px);
    }
}



.blubber_sideinfo {
    width: 270px;
    max-width: 270px;

    margin-left: 5px;
    border: 1px solid var(--content-color-40);
    box-sizing: border-box;

    max-height: calc(100vh - 140px);
    overflow: auto;

    .indented {
        padding: 10px;
    }
    .new_section {
        border-top: 1px solid var(--content-color-40);
    }

    .members {
        margin-bottom: 10px;
        li {
            padding-top: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--content-color-40);
            &:first-child {
                border-top: 1px solid var(--content-color-40);
            }
        }
        &.topless li:first-child {
            padding-top: 0px;
            border-top: none;
        }
        &.bottomless li {
            border-bottom: none;
            padding-bottom: 0px;
        }
    }

    .headline {
        display: flex;
        margin-bottom: 10px;
        &:last-child {
            margin-bottom: 0px;
        }
        .side {
            display: flex;
            flex-direction: column;
            justify-content: center;
            .icons {
                margin-top: 5px;
            }
        }

        .avatar {
            min-width: 50px;
            min-height: 50px;
            max-width: 50px;
            max-height: 50px;
            display: block;
            background-size: 100% 100%;
            background-position: center;
            margin-right: 10px;
        }
    }

    .context_info {
        border-bottom: 1px solid var(--content-color-40);

        .blubber_course_info {

        }
        .blubber_private_info {
            .icon {
                text-align: center;
            }

            .avatar {
                min-width: 50px;
                min-height: 50px;
                max-width: 50px;
                max-height: 50px;
                display: block;
                background-size: 100% 100%;
                background-position: center;
                margin-right: 10px;
            }
        }
    }

}

.lowprio_info {
}

.studip-dialog {
    .blubber_panel {
        height: inherit;
    }
    #blubber_stream_container {
        width: 100%;
    }
    .blubber_thread {
        width: 100%;
        max-width: 100%;
    }
}

#blubber-index {
    @media screen and (max-width: $major-breakpoint-small) {
        #page-title-container,
        #navigation-level-2 {
            display: none;
        }
    }
}


.blubber_threads_widget {
    .sidebar-widget-header {
        .actions {
            float: right;
        }
    }

    .sidebar-widget-content {
        padding: 0px;
        max-height: calc(100vh - 359px);
        overflow: auto;

        .scrollable_area.scrolled::before {
            content: '';
            width: 100%;
            max-width: 540px;
            height: 20px;
            display: block;
            position: absolute;
            background: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0));
            z-index: 10;
        }

        .scrollable_area.scrolled ol li.active {
            &::before {
                display: none;
            }
            &::after {
                display: none;
            }
        }

        ol {
            list-style-type: none;
            padding-left: 0px;

            li {
                border-bottom: thin solid var(--content-color-40);

                height: 50px;
                max-height: 50px;
                overflow: hidden;
                padding: 10px;
                cursor: pointer;
                font-weight: bold;
                &:last-child {
                    border-bottom: none;
                }

                &.unseen {
                    border-left: 3px solid var(--active-color);
                    padding-left: 7px;
                }

                &[v-if],
                &[v-for],
                &[v-show] {
                    display: none;
                }

                &.more {
                    display: flex;
                    justify-content: center;
                }

                &.active {
                    background-color: var(--yellow-40);

                    &::before {
                        content: '';
                        position: absolute;
                        height: 0px;
                        width: 0px;
                        border-top: 35px transparent solid;
                        border-bottom: 35px transparent solid;
                        border-left: 10px var(--content-color-40) solid;
                        margin-top: -10px;
                    }
                    &::after {
                        content: '';
                        position: absolute;
                        height: 0px;
                        width: 0px;
                        border-top: 35px transparent solid;
                        border-bottom: 35px transparent solid;
                        border-left: 10px var(--yellow-40) solid;
                        margin-top: -70px;
                    }
                }

                a {
                    display: flex;
                    .avatar {
                        min-width: 50px;
                        max-width: 50px;
                        min-height: 50px;
                        max-height: 50px;
                        margin-right: 10px;
                        background-repeat: no-repeat;
                        background-size: 50px 50px;
                        background-position: center center;
                    }
                    .info {
                        display: flex;
                        flex-direction: column;
                        height: 60px;
                        max-height: 60px;
                        overflow: hidden;
                        .name {
                            max-height: 40px;
                            overflow: hidden;
                        }
                        time {
                            font-size: 0.8em;
                            font-weight: normal;
                        }
                    }

                }
            }
        }
    }
}

.center {
    display: flex;
    justify-content: center;
}


.blubber-edit-icons {
    margin-top: 10px;

    > * {
        margin: 10px;
    }
}


.blubber_composer_select_container {
    input, select, .container {
        width: 90%;
        display: inline-block;
    }
}
.float_right {
    float: right;
}

ol.tagcloud {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    > li {
        display: inline-block;
        margin-right: 10px;
        &.size10 {
            font-size: 1.6em;
        }
        &.size9 {
            font-size: 1.5em;
        }
        &.size8 {
            font-size: 1.4em;
        }
        &.size7 {
            font-size: 1.3em;
        }
        &.size6 {
            font-size: 1.2em;
        }
        &.size5 {
            font-size: 1.1em;
        }
        &.size4 {
            font-size: 1em;
        }
        &.size3 {
            font-size: 0.9em;
        }
        &.size2 {
            font-size: 0.8em;
        }
        &.size1 {
            font-size: 0.7em;
        }
    }
}

@keyframes blubber-scaling {
    from {
        opacity: 0.8;
        transform: scale(0.8,0.8);
    }
    to {
        opacity: 1;
        transform: scale(1,1);
    }
}

//Animationen des Widgets:
.blubberthreadwidget-list-move, .blubberthreadwidget-list-enter-active, .blubberthreadwidget-list-leave-active {
    transition: transform 0.5s;
}
.blubberthreadwidget-list-enter, .blubberthreadwidget-list-leave-to {
    transform: translateY(-70px);
}

.responsive-display {
    .blubber_thread {
        margin-right: 0;
    }
}