@import "../../less/variables.less";

.header {
    margin-bottom: 30px;

    @media (min-width: 481px) {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid @color-border;
    }

    @media (min-width: 787px) {
        padding-bottom: 16px;
        display: flex;
    }
}

.title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    word-break: keep-all;
    a {
        color: @color-text-title;
        text-decoration: none;
        &:hover {
            color: @color-text-light;
            border-bottom: 1px dashed @color-text-light;
        }
    }
}

.readOnlyRating {
    @media (max-width: 768px) {
        margin-top: 16px;
    }
}

.titleForm {
    flex: 1;
    input {
        width: 15em;
    }
}

.toolbar {
    @media (max-width: 768px) {
        margin-top: 10px;
    }
}

@toolbar-button-spacing: 20px;

.toolbarButton {
    vertical-align: middle;
    white-space: nowrap;
    text-decoration: none;
    font-size: 13px;
    color: @color-text-dark;

    @media (max-width: 768px) {
        line-height: 36px;
    }
}

.ratingForm {
    composes: toolbarButton;
    margin-right: @toolbar-button-spacing;

    display: inline-flex;
}

.editTitleButton {
    composes: toolbarButton;
    margin-right: @toolbar-button-spacing;
}

.deleteButton {
    composes: toolbarButton;
    margin-right: @toolbar-button-spacing;

    color: @color-danger;
}

.categoryForm {
    composes: toolbarButton;

    position: relative;
    label {
        color: @color-text-light;
    }
    select {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        border: 0;
        cursor: pointer;
    }
}

////

.postComposerContainer {
    padding-bottom: 20px;
}

.posts {
}

.post {
    padding-bottom: 16px;
    line-height: 1.8;
    font-size: 14px;

    &.noComment {
        .postMeta {
            display: inline;
        }
    }

    .postProgress {
        font-weight: bold;
        margin-right: 8px;
        display: inline;
    }
    .postComment {
        display: inline;
    }
    .postMeta {
        font-size: 12px;
    }
    .postTime {
        color: @color-text-light;
        text-decoration: none;
        &:hover {
            text-decoration: underline;
        }
    }
    .deletePostButton {
        margin-left: 8px;
        color: @color-danger;
        text-decoration: none;
        cursor: pointer;
        &:hover {
            text-decoration: underline;
        }
    }
}

.spoilerMark {
    color: @color-text-light;
    margin-right: 8px;
}
