client/src/scss/components/_Note.scss
author ymh <ymh.work@gmail.com>
Tue, 29 Mar 2022 11:23:56 +0200
changeset 211 244a90638e80
parent 191 3f71ad81a5a9
permissions -rw-r--r--
Added tag 0.2.3 for changeset 3de92ddba2de

@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';

.note {
    min-width: 95%;
    display: flex;
    position: relative;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    cursor: pointer;
    min-height: ($line-height-base * 4);

    &:before {
        content: "";

        position: absolute;
        top: 0;
        bottom: 0;
        z-index: -1;
        display: block;
        width: 2px;
    }

    &:hover {
        color: darkgray;
        border-bottom-color: black;
    }

    &:hover .delete-icon {
        opacity: 1;
        color: black;
    }

    .start, .finish {
        position: absolute;
        padding-right: 5rem;
        font-size: .72rem;
    }

    .start {
        top: 0;
        left: 0;
    }
    .finish {
        bottom: 0;
        left: 0;
    }

    &-content {
        min-width: 95%;
        font-size: .8rem;

        white-space: pre-wrap;
        overflow-wrap: break-word;
    }
}

.delete-icon {
    font-size: 1.2rem;
    opacity: 0;
}