/**
 * Copyright (c) 2013, Jan-Christoph Borchardt http://jancborchardt.net
 * This file is licensed under the Affero General Public License version 3 or later.
 * See the COPYING file.
 */

#app-navigation {
    padding-bottom: 0; /* no settings bar, so no padding needed */
}

#app-navigation #note-add span {
    display: none;
    font-weight: bold;
    padding-left: 2px;
}

#app-navigation #note-add:hover span,
#app-navigation #note-add:focus span {
    display: inline;
}

#app-navigation .utils button {
    margin: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    display: none;
    height: 32px;
    width: 32px;
}

/* override snap.js animation causing loading icon to fly into app-content */
#app-content.loading {
    transition: none !important;
    -webkit-transition: none !important;
}

/* only display the delete button when the feed is active */
#app-navigation .utils .delete-button {
    display: none;
}

#app-navigation .active > .utils .icon-delete {
    display: block;
}

.tooltip {
    text-shadow: none;
    text-transform: none;
}

#app-content-container {
    height: 100%;
}

/* special styling to make editor subtle and fit the window */
#app-content pre {
    display: block;
    min-height: 100%;
    width: 100%;
    margin: 0 0 -50px;
    padding: 30px 20px 90px 30px;
    font-size: 18px;
    line-height: 30px;
    background: none;
    resize: none;
    -moz-box-sizing: border-box; box-sizing: border-box;
    font-family: inherit;
}

#app-content .note-meta {
    padding: 0 90px 30px;
    opacity: .2;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

#app-content .saving {
    background: url('../img/loading.gif') no-repeat right 15px top 15px / 24px !important;
    /* Overrides the snap.js animation making the loading icon to fly in app-content. */
    transition: none !important;
    -webkit-transition: none !important;
}

/* markdown styling */

.mdedit .hr {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: .5em 0;
}
.mdedit .hr-marker {
    background-color: white;
}
.mdedit .hr-marker:last-child {
    padding-right: 10px;
}
.mdedit .hr:before {
    position: absolute;
    content: "";
    top: 50%;
    width: 100%;
    z-index: -1;
    border-top: 1px solid rgba(120, 120, 120, 0.5);
}

@media only screen and (min-width: 769px) { /* desktop */
    #app-content .mdedit {
        padding-left: 90px;
        display: inline-block;
    }
    .mdedit > div > .token > .heading-hash,
    .mdedit > div > .token > .li > .list-item,
    .mdedit > div > .token > .quote-marker {
        width: 90px;
        margin-left: -90px;
        display: inline-block;
        text-align: right;
        white-space: pre;
    }
}
