client/src/components/Note.scss
author ymh <ymh.work@gmail.com>
Mon, 08 Oct 2018 18:35:47 +0200
changeset 168 ea92f4fe783d
parent 166 950a2350930f
permissions -rw-r--r--
- move SlateEditor and dependencies to its own folder - remove Immutable - remove redux-persist-immutable - remobe redux-immutable - update libraries - added tests on store manipulations (accessor and reducers)

@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;
}