Updated variables in brackets.less.

Updated variables in brackets.less.

/*
 * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 *
 */

/*
 * This file first imports all of the shared LESS/CSS, and then defines
 * version-specific layout (e.g. layout for the App shell, or layout for
 * the In-Browser version on Firefox).
 *
 * Going forward, we may have different versions of this file for different
 * Versions (e.g. App, In-Browser, etc.)
 *
 * Anything that is general/reusable should be pushed up into a LESS file
 * in the "styles" directory. See "brackets_shared.less" for the organization
 *
 * Date: @DATE
 */

/* IMPORTANT: importing brackets_shared should be the first step in this file
 * This is so that imported CSS files (NOT LESS files) end up in the
 * right place
 */
@import "brackets_shared.less";

/* Overall layout */

html, body {
    color: @bc-text;
    height: 100%;
    overflow: hidden;

    /* Turn off selection for UI elements */
    .user-select(none);

    /* And make sure we get a pointer cursor even over text */
    cursor: default;

    /* Turn off subpixel antialiasing on Mac since it flickers during animations. */
    -webkit-font-smoothing: antialiased;

    /* This is a hack to avoid flicker when animations (like inline editors) that use the GPU complete.
       It seems that we have to put it here rather than on the animated element in order to prevent the
       entire window from flashing.
       See: http://stackoverflow.com/questions/3461441/prevent-flicker-on-webkit-transition-of-webkit-transform
    */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.resizing-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: @z-index-brackets-panel-resizer;

    &.horz-resizing {
        cursor: col-resize;
    }

    &.vert-resizing {
        cursor: row-resize;
    }
}

a, img {
    -webkit-user-drag: none;
}

.main-view {
    background: @bc-menu-bg; // to keep the theme background consistent
    height: 100%;

    .sidebar {
        height: 100%;
        .vbox;
        width: @sidebar-width;  // changed dynamically via Resizer
        position: absolute;
        left: 0;
        top: 0;
    }

    .content {
        height: 100%;
        position: absolute;
        padding: 0;
        top: 0;
        left: @sidebar-width;  // changed dynamically via Resizer
        right: @main-toolbar-width;
    }
}

#titlebar, .modal-bar {
    border-bottom: 1px solid @bc-panel-border;
    box-shadow: 0 1px 3px @bc-shadow-small;

    // Make sure the bottom box-shadow goes above the editor (position: relative needed to start a new stacking group)
    position: relative;
    z-index: @z-index-brackets-toolbar;
}

.busyCursor {
    cursor: wait !important;
}

#status-bar {
    position: relative;
    background: @bc-bg-status-bar;
    border-top: 1px solid @bc-panel-border;
    box-sizing: border-box;
    color: @bc-text;
    font-family: @sansFontFamily;
    font-size: 11px;
    line-height: 25px;
    height: 26px;
    overflow: hidden;
}

#status-info {
    color: @bc-text;
    left: 10px;
    position: absolute;
    white-space: nowrap;

    div {
        display: inline;
    }
}

#status-file {
    color: @bc-text-quiet;
}

#status-indicators {
    background: @bc-bg-status-bar;
    color: @bc-text;
    position: absolute;
    right: 0;
    text-align: right;
    white-space: nowrap;

    > div {
        &:not(.spinner) {
            border-left: 1px solid @bc-panel-border;
        }
        float: right;
        padding: 0 10px;
    }
    .spinner {  // spinner is tiny & usually invisible; reduce margin so gap is less glaring
        margin: 6px 10px;
        padding: 0;
    }

    #status-language {
        border-right: 1px solid @bc-panel-border;
        padding: 0px;
        margin: 0px;
    }

    /* dropdown button styling */
    .btn-status-bar {
        border: 0;
        background-color: inherit;
        color: inherit;
        font: inherit;
        height: inherit;
        line-height: inherit;
        margin: 0;
        padding: 0 20px 0 10px;
        vertical-align: top;
        width: auto;
        cursor: pointer;
        border-radius: 0;
        box-shadow: none;
        text-shadow: none;

        &:focus {
            outline: 0;
        }
        &[disabled] {
            cursor: inherit;
            background: none;
            text-decoration: none;
        }
    }

}

#status-indent > * {
    display: inline-block;
}

#status-indent > *.hidden {
    display: none;
}

#indent-type, #indent-width-label {
    cursor: pointer;
    margin-right: 3px;
}

#indent-type:hover, #indent-width-label:hover {
    text-decoration: underline;
}

#indent-width-input {
    font-size: 11px;
    font-weight: @font-weight-semibold;
    height: 13px;
    line-height: 1;
    vertical-align: middle;
    color: @bc-text;
    margin: 0;
    padding: 0 3px 2px;
    position: relative;
    left: 0;
    top: -1px;
    width: 6px;
    transition: 0.1s linear all;
}

#indent-width-input:focus {

}

#indent-width-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#status-overwrite {
    transition: background-color 3s;
    background-color: rgba(255, 255, 255, 0);
    color: @bc-text;
    cursor: pointer;
}

#status-overwrite.flash {
    transition: background-color 1s;
    background-color: rgb(120, 178, 242);
}

#editor-holder {
    position: relative;

    /* Placeholder shown when there is no editor open */
    #not-editor {
        height: 100%;
        .vbox;
        .box-pack(center);
        .box-align(center);
        background: @bc-menu-bg url('images/no_content_bg.svg') no-repeat center 45%;
    }

    /* Image Preview */
    #image-holder {
        overflow: hidden;
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
        text-align: center;
        display: none;
        #img-centering {
            display: inline-block;
            vertical-align: middle;
            margin-top: -50px; /* Offset as vertical align takes image metadata into account */
            max-width: 90%;
            max-height: 90%;
        }
        #img-data {
            font-weight: @font-weight-semibold;
        }
    }

    #image-holder:before {
        content: '';
        display: inline-block;
        height: 100%;
        margin-right: -0.25em; /* Adjusts for spacing */
        vertical-align: middle;
    }

    #img-preview {
        background: url(images/preview_bg.png);
        box-shadow: 0 1px 3px @bc-shadow;
        max-height: 90%;
    }

    #img-header {
        display: block;
        width: 100%;
        height: 38px;
        margin-bottom: 15px;
    }

    #img-data,
    #img-path {
        text-align: left;
        .user-select(text);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    #img-data::selection,
    #img-path::selection {
        background: @selection-color-focused;
    }

    #img {
        position: relative;
    }

    .img-guide,
    #img-tip,
    #img-scale {
        pointer-events: none;
    }

    #img-scale {
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
        width: 40px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.8);
        color: @bc-text-alt;
        border-radius: 3px;
        box-shadow: 0 1px 3px @bc-shadow;
    }

    #img-tip {
        display: block;
        position: absolute;
        text-align: left;
        white-space: nowrap;
        padding: 6px 9px;
        color: @bc-text-alt;
        background-color: rgba(0, 0, 0, 0.8);
        font-size: 11px;
        font-family: SourceCodePro;
        line-height: 13px;
        border-radius: 3px;
        box-shadow: 0 1px 3px @bc-shadow;
    }

    #x-value,
    #y-value {
        text-align: right;
    }

    .tip-container {
        border: 0;
    }

    #horiz-guide {
        background-image: url("images/horizontal-dash.svg");
        background-repeat: repeat-x;
        width: 8px;
        height: 1px;
    }

    #vert-guide {
        background-image: url("images/vertical-dash.svg");
        background-repeat: repeat-y;
        width: 1px;
        height: 8px;
    }

    #horiz-guide,
    #vert-guide {
        position: absolute;
        display: block;
    }
}

.vert-resizer {
    position: absolute;
    height: 6px;
    width: 100%;
    z-index: @z-index-brackets-panel-resizer;
    opacity: 0;
    cursor: row-resize;
}

.horz-resizer {
    position: absolute;
    height: 100%;
    width: 6px;
    z-index: @z-index-brackets-panel-resizer;
    opacity: 0;
    cursor: col-resize;
}

.bottom-panel {
    background-color: @bc-panel-bg;
    display: none;
    height: 200px;
    border-top: 1px solid @bc-panel-border;

    .check-all {
        margin: 7px 15px 7px 7px;
    }

    .toolbar {
        background-color: @bc-panel-bg-promoted;
        border-bottom: @tc-gray-panel-top-bar-shadow;
        height: auto;
        padding-top: (@base-padding / 2);
        padding-bottom: (@base-padding / 2);
        z-index: @z-index-brackets-results-panel;
        box-shadow: inset 0 1px 0 @bc-highlight, 0 -1px 3px @bc-shadow-small;
        .title {
            color: @bc-text;
            font-size: @label-font-size;
            font-weight: @font-weight-semibold;
        }
        .close {
            position: absolute;
            right: 10px;

            // vertically centers close button
            top: 50%;
            margin-top: -10px;
        }
    }

    .table-container {
        height: 170px;
        overflow: auto;

        .highlight {
            background: @bc-panel-bg-text-highlight;
            border-radius: 2px;
        }

        tr.selected td {
            background-color: @bc-panel-bg-selected;
            color: @bc-text-thin;
        }
    }
}

.bottom-panel-table {
    td {
        font-size: 12px;
        padding-left: 15px;
        padding-right: 0;
        vertical-align: baseline;
    }

    .file-section > .checkbox-column {
        width: 15px;
    }

    .line-number {
        color: @bc-text-thin-quiet;
        font-family: SourceCodePro;
        font-size: 11px;
        padding: 4px 0 0 15px;
        text-align: right;
        white-space: nowrap;
        width: 5px;
    }

    .dialog-filename {
        font-size: 13px;
        font-weight: @font-weight-semibold;
    }

    .dialog-path {
        font-size: 11px;
        font-weight: normal;
    }

    .line-text {
        width: 100%;
    }
}

#update-notification {
    .sprite-icon(0, 0, 24px, 24px, "images/updateSprites.svg");
}

#toolbar-go-live {
    // background-position is 0 0 for 24x24 icons
    // Default icon is for the 'disconnected' state
    // The 'connecting failed' (.warning) state also maps here
    .sprite-icon(0, 0, 24px, 24px, "images/live_development_sprites.svg");
    // 'Connected' state
    &.success {
        .sprite-swap(0, 24px);
    }
    // 'Connection in progress' state
    &.info {
        .sprite-swap(0, 48px);
    }
    // 'Out-of-sync' state
    &.out-of-sync {
        .sprite-swap(0, 72px);
    }
    // 'sync-error'
    &.sync-error {
        .sprite-swap(0, 96px);
    }
}

#toolbar-extension-manager {
    .sprite-icon(0, 0, 24px, 24px, "images/extension-manager-sprite.svg");
    &.updatesAvailable {
        .sprite-icon(0, 24px, 24px, 24px, "images/extension-manager-sprite.svg");
    }
}

/* Project panel */

#working-set-header {
    position: relative;
    height: 19px;
    padding: 10px 0 9px 12px;
    background: @bc-sidebar-bg;
    color: @project-panel-text-2;
    text-shadow: 0 -1px 0 @bc-shadow-large;
    overflow: hidden;
}

#working-set-option-btn {
    position: absolute;
    right: 4px;
    top: 7px;
    padding: 4px 6px;
    .sprite-icon(0, 0, 13px, 13px, "images/topcoat-settings-13.svg");
    background-position: center;
    opacity: 0.8;
}

#working-set-option-btn:hover {
    opacity: 1;
}

#sidebar {
    position: relative;
    white-space: nowrap;
}

#sidebar-resizer {
    position: absolute;
    width: 6px;
    height: 100%;
    z-index: @z-index-brackets-sidebar-resizer;
    opacity: 0;
    cursor: col-resize;
}

#project-files-header {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0 9px 12px;
    font-size: 13px;
    color: @project-panel-text-2;
    overflow: hidden;
}

#open-files-container {
    .box-flex(0);
    background: @bc-sidebar-bg;
    padding: 0px;
    max-height: 200px; // TODO (Issue #276): it would be nicer to have this be 50%, but that doesn't seem to work

    ul {
        list-style-type: none;
        margin: 0;
        padding-bottom: 23px;
    }

    li {
        position: relative; // so that children can be positioned absolute
        line-height: 18px;
        padding: 0 0 0 8px;
        min-height: 18px;
        vertical-align: baseline;

        &.selected a {
            color: @open-working-file-name-highlight;
        }

        &.selected .extension {
            color: @open-working-file-ext-highlight;
        }
    }

    a {
        color: @bc-text-alt;

        font-size: 13px;
        text-decoration: none;

        display: block;
        height: 16px;
        line-height: 15px;
        margin-left: 18px;
        padding: 3px (@sidebar-triangle-size * 2) 3px 0;

        cursor: default;

        .directory {
            font-size: 11px;
        }
    }

    .extension, .directory {
        color: @project-panel-text-2;
    }
}

.sidebar-selection {
    background: @bc-sidebar-selection;
    border-top: 1px solid @bc-shadow-small;
    border-bottom: 1px solid @bc-highlight;
    height: 22px;
    position: absolute;
}

.sidebar-selection-triangle {
    background: @bc-sidebar-selection;
    border-top: 1px solid @bc-shadow-small;
    border-bottom: 1px solid @bc-highlight;
    height: 22px;
    width: 9px; /* quiet scrollbar width */
    height: 22px;
    position: fixed;

    z-index: @z-index-brackets-selection-triangle; /* scroller-shadow appears above this triangle */
}

.sidebar-selection-triangle.triangle-visible:before {
    content: "";

    border-top: @sidebar-triangle-size solid transparent;
    border-bottom: (@sidebar-triangle-size - 1) solid transparent;
    border-left: @sidebar-triangle-size solid @bc-sidebar-selection;

    display: block;
    position: absolute;
    top: -1px;
    right: -9px;
    width: 0;
    height: 0;

    .scale-x(0.8, right, top);
}

//Initially start with the open files hidden, they will get show as files are added
#open-files-container {
    display:none;
}

#project-files-container {
    .box-flex(1);

    .jstree-brackets li > a {
        padding-right: (@sidebar-triangle-size * 2);
    }

    ul {
        padding-left: 8px;
    }

    > ul {
        padding-bottom: 24px;
    }
}

.scroller-shadow {
    background-size: 100%;
    background-repeat: no-repeat;
    height: 5px;
    position: fixed;
    z-index: @z-index-brackets-scroller-shadow;

    &.top {
        #gradient > .vertical(rgba(0,0,0,0.1), rgba(0,0,0,0));
        background-position: 0 -5px;
        background-color: transparent; /* override background-color: @endColor from #gradient.vertical */
    }

    &.bottom {
        #gradient > .vertical(rgba(0,0,0,0), rgba(0,0,0,0.1));
        background-position: 0 5px;
        background-color: transparent; /* override background-color: @endColor from #gradient.vertical */
    }
}

@jstree-sprite-size: 18px;  // this is hardcoded in jsTree's JS code

/** Classes for icons from jsTreeSprites.svg
*/
.jstree-sprite {
    background-image: @jstree-sprite;
    background-repeat: no-repeat;
    background-color: transparent;
    vertical-align: middle;
    width: @jstree-sprite-size;
    height: @jstree-sprite-size;
}

/** Overriding jsTreeTheme.less
*/
.jstree-brackets .jstree-no-dots .jstree-open > ins {
    background-position: 7px -8px;
    -webkit-transform: translateZ(0) rotate(90deg);
    -webkit-transition: -webkit-transform 190ms cubic-bezier(.01, .91, 0, .99);
    -webkit-filter: drop-shadow(1px 0 1px @bc-shadow);
}

.jstree-brackets .jstree-no-dots .jstree-closed > ins {
    background-position: 7px -8px;
    -webkit-transform: translateZ(0); /* Need this to make sure that the svg isn't blurry on retina. */
    -webkit-transition: -webkit-transform 90ms cubic-bezier(.01, .91, 0, .99);
    -webkit-filter: drop-shadow(1px 0 1px @bc-shadow);
}

/** Unicode Icon container
*/
.unicode-icon-container {
    display: inline-block;
    width: 16px;
    height: 16px;
    font-size: 20px;
    line-height: 15px;
    text-align: center;
}

.file-status-icon {
    margin: 0 0 0 8px;
    position: absolute;
    left: 0;
    top: 0;

    &.dirty:before,
    &.can-close:before {
        .unicode-icon-container;
        color: rgba(255, 255, 255, 0.5);
    }

    &.dirty:before {
        content: "\2022";
        line-height: 1em;
    }

    &.can-close:before {
        content: "\00D7";
        line-height: 1.1em;
    }

    &.can-close:hover:before {
        color: rgba(255, 255, 255, 0.7);
    }

    &.can-close:active:before {
        color: rgba(255, 255, 255, 0.3);
    }
}

/* Styles for inline editors */

.inline-text-editor {
    line-height: 0px;
}

.inline-widget {
    position: relative;
    overflow: hidden;

    background-color: @bc-bg-inline-widget;
    min-width: 250px;
    cursor: default;

    &.animating {
        // Make the animation use the GPU--especially important for retina.
        -webkit-transform: translateZ(0);
        transform: translateZ(0);

        transition: height 250ms cubic-bezier(0, 1.02, 0.6, 1);
    }

    .CodeMirror {
        /* remove CodeMirror default height: 300px */
        height: auto;
    }

    .inline-text-editor {
        white-space: nowrap;
    }

    .inline-editor-header {
        display: inline-block;
        padding: 9px 10px 1px 40px;

        .filename {
            vertical-align: middle;
            font-family: @sansFontFamily;
            font-size: 13px;
            color: @bc-text-thin;

            // Filename header is clickable (it's an <a> tag, so we get underscore on hover by
            // default; but the hand cursor is shut off by Bootstrap's reset stylesheet)
            cursor: pointer;

            .dirty-indicator {
                .unicode-icon-container;
                color: @bc-text-quiet;
                overflow: hidden;
                position: relative;
                top: 1px;
            }

            .line-number {
                color: @accent-comment;
            }
        }
    }

    .shadow {
        display: block;
        height: 4px;
        width: 100%;
        position: absolute;
        content: " ";
        left: 0;
        z-index: @z-index-brackets-inline-editor-shadow;
    }

    .shadow.top {
        top: 0px;
        background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    }

    .shadow.bottom {
        bottom: 0px;
        background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
    }

    .CodeMirror-scroll {
        background-color: transparent !important;

        .CodeMirror-linenumbers {
            background-color: @bc-bg-inline-widget;
        }
    }

    .close {
        position: absolute;
        left: 15px;
        top: 10px;
        margin-right: 30px;
    }

}

/* CSSInlineEditor rule list */
.related-container {
    @top-margin: 12px;

    float: right;
    position: relative;
    min-height: 100%;
    font-family: @sansFontFamily;
    width: 250px;
    max-width: 50%;
    overflow: hidden;
    background: @bc-panel-bg;

    // Without this, the "New Rule" button shows on top of the rule list if you resize
    // the window narrow enough. No idea why, since there's no z-index on the button, and
    // the other items in the header go behind the rule list.
    z-index: 1;

    .selection {
        width: 100%;
        background: @bc-panel-bg-selected;
        position: absolute;
        border-top: 1px solid @bc-shadow-small;
        border-bottom: 1px solid @bc-highlight;
        top: @top-margin;

        &.animate {
            transition: top 0.1s ease-out;
        }
    }

    /*
     * CSS triangle hack with anti-alias workarounds:
     * (a) Use selection-background-color instead of transparent.
     * (b) Use transform scaleX and origin to adjust width.
     */
    .selection:before {
        content: " ";
        position: absolute;
        width: 0;
        height: 0;
        border-top: @inline-triangle-size solid transparent;
        border-bottom: @inline-triangle-size solid transparent;
        border-left: @inline-triangle-size solid @bc-bg-inline-widget;
        margin-top: -@inline-triangle-size;
        top: 50%;
        .scale-x(0.9, left, top);
    }

    .related {
        font-size: 12px;
        position: absolute;
        top: 0;
        left: 1px;
        width: 100%;

        ul {
            margin: 0;
            padding: @top-margin 0px;
            list-style: none;
        }

        li {
            color: @bc-text-emphasized;
            margin: 0;
            overflow: hidden;
            padding: 2px 0px 2px 15px;
            text-overflow: ellipsis;
            white-space: nowrap;

            .related-file {
                color: @bc-text-thin-quiet;
            }
        }

        .selected {
            color: @bc-text-thin;
            transition: color 0.1s ease-out .15s;
        }
    }
}

.inline-editor-message {
    color: @bc-text-thin-quiet;
    font-family: @sansFontFamily;
    font-size: 12px;
    line-height: 17px;
    height: 20px;
    padding: 10px 0 40px 50px;
}

/* This text is used to force the code editor's font to be loaded early on if it's a
   web font. This is necessary in order for the editor's horizontal measurement of text
   to work properly.

   In the future, when we allow the user to switch fonts, we'll need to make sure to
   update the font for this text item whenever the user switches. We'll also need to
   wait to initiate a re-measure in CodeMirror until the new font is loaded (if they
   choose a web font). This library allows for checking if a web font is loaded:

     http://code.google.com/apis/webfonts/docs/webfont_loader.html
*/
.dummy-text {
    position: fixed;
    top: -10000px;
    .code-font();
}

.platform-mac .dummy-text {
    .code-font-mac();
}

/* Find in Files results panel - temporary UI, to be replaced with a richer search feature later */

.search-results .title {
    .sane-box-model;
    padding-right: 20px;
    width: 100%;
    line-height: 25px;

    .flex-box;
    .contracting-col {
        .flex-item(0);
        min-width: 1px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fixed-col {
        .flex-item(0, 0);
    }
    .pagination-col {
        .flex-item(0, 0);
        min-width: 100px;
        word-spacing: 0;
    }
    .pagination-col > span:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    .pagination-col > span:active {
        background-color: @bc-shadow;
    }
    .replace-col {
        .flex-item(1, 0);
        min-width: 120px;
        padding: 0 15px;
    }
    .first-page,
    .prev-page,
    .next-page,
    .last-page {
        .jstree-sprite;
        width: 18px;
        display: inline-block;
        margin: 0;
        background-position: 7px 6px;
        vertical-align: text-top;
        border-radius: 3px;
    }
    .first-page {
        background-position: 6px -78px;
        margin-left: 10px;
    }
    .prev-page {
        background-position: 6px -22px;
        margin-right: 5px;
    }
    .next-page {
        margin-left: 5px;
    }
    .last-page {
        background-position: 6px -50px;
    }
    .disabled,
    .disabled:hover,
    .disabled:active {
        background-color: transparent;
        opacity: 0.3;
    }
}

.search-results .disclosure-triangle,
#problems-panel .disclosure-triangle {
    .jstree-sprite;
    display: inline-block;
    &.expanded {
        // Unfortunately, the way jsTree sprites are aligned within their 18px boxes doesn't look good in
        // other contexts, so we need some tweaks here instead of straight multiples of @jstree-sprite-size
        background-position: 7px 5px;
        -webkit-transform: translateZ(0) rotate(90deg);
    }
    &.collapsed {
        background-position: 7px 5px;
    }
}

/* Modal bar for Find/Quick Open */

.modal-bar {
    display: block;
    text-align: left;

    font-family: @sansFontFamily;
    font-size: 14px;
    color: @bc-text;
    background: @bc-panel-bg;
    overflow: visible;  // needed for .error popup
    padding: 5px 4px 4px 14px;

    -webkit-transform: translate(0, 0); // Prefix still required.
    transition: -webkit-transform 66ms cubic-bezier(0, 0.62, 0.04, 0.99);
    z-index: @z-index-brackets-modalbar;

    body.in-browser &,
    body:not(.has-appshell-menus) & {
        // Separator line between us and the HTML menu/titlebar above
        border-top: 1px solid @bc-panel-border;
    }

    &.popout {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }

    &.offscreen {
        -webkit-transform: translate(0, -100%);
        transform: translate(0, -100%);
        transition: -webkit-transform 266ms cubic-bezier(0, 0.56, 0, 1);
        transition: transform 266ms cubic-bezier(0, 0.56, 0, 1);
    }

    input {
        font-family: @sansFontFamily;
        outline: none;
        width: 20em;
        margin: 5px 5px 0;
        position: relative;
        top: -3px;
        &.no-results {
            border: 1px solid  @bc-btn-border-error;
            box-shadow: inset 0 1px 0 @bc-shadow-small, 0 0 0 1px @bc-btn-border-error-glow;
        }
    }

    #find-what, #replace-with {
        width: 295px;
    }

    .search-input-container {
        position: relative;
        display: inline;

        .error {  // "popup" that hangs below search field
            position: absolute;
            left: 5px;
            top: 24px;
            min-width: 291px + 2px;  // to align with search field above it
            z-index: 1; // to appear above any controls that wrap below

            background-color: @bc-error;
            color: @bc-text-alt;
            font-size: 12px;
            padding: 3px 8px;
            border-radius: 0 0 3px 3px;
            box-shadow: 0 1px 3px @bc-shadow-small;
        }

        #find-what {
            padding-right: 62px;  // room for #find-counter overlay
            width: 295px - (62px - 6px);  // maintain width, accounting for differing padding
        }
        #find-counter {
            position: absolute;
            color: @bc-text-thin-quiet;
            top: 1px;
            right: 2px;
            font-size: 12px;
        }
    }

    .find-input-group {
        display: inline-block;
    }
    #find-group, #replace-group {
        display: inline-block;
        white-space: nowrap;
    }
    #replace-group.has-scope {
        // If scope controls are showing, force the replace controls to a second line.
        display: block;
    }

    .scope-group {
        display: inline-block;
        margin-left: 10px;
    }

    .message, .no-results-message {
        display: inline-block;
    }

    #find-case-sensitive, #find-regexp {
        padding: 1px 5px;
    }
    .button-icon {  // icons must be nested inside button so we can apply padding w/o tiling icon
        .sprite-icon(0, 0, 24px, 24px, @button-icon);
        background-repeat: no-repeat;
    }
    #find-regexp.active .button-icon {
        .sprite-swap(0, 24px);
    }
    #find-case-sensitive .button-icon {
        .sprite-swap(0, 48px);
    }
    #find-case-sensitive.active .button-icon {
        .sprite-swap(0, 72px);
    }
    #find-regexp.active, #find-case-sensitive.active {
        background-color: @bc-bg-highlight;
    }

    .navigator {  // next/prev buttons
        display: inline-block;
    }
    button {
        margin: 2px 1px 3px;
    }
    #find-prev {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        margin-left: 5px;
    }

    // Make button pairs snug
    #find-prev, #replace-yes, #find-case-sensitive {
        border-right: none;
        margin-right: 0;
    }
    #find-next, #replace-all, #find-regexp {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        margin-left: 0;
    }
    #replace-all.solo {
        border-left: none;
        margin-left: 0px;
    }

    // Make find field snug with options buttons
    //    & replace snug with replace commands
    #find-what, #replace-with {
        margin-right: 0px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    #find-case-sensitive, #replace-yes {
        border-left: none;
        margin-left: 0px;
        border-radius: 0;
    }
}

// File exclusion filter (used only in Find in Files search bar, for now)
.filter-trash-icon {
    position: absolute;
    left: 7px;
    width: 16px;
    height: 16px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 15px;
    text-align: center;
    visibility: hidden;
}

.filter-trash-icon:hover {
    color: rgba(0, 0, 0, 1);
}

.filter-edit-icon {
    float: right;
    width: 13px;
    height: 13px;
    background-image: url("images/edit-icon.svg");
    background-repeat: no-repeat;
    opacity: 0.5;
    visibility: hidden;
    position: relative;
    top: 2px;
    right: -4px;
}

.filter-edit-icon:hover {
    opacity: 1;
}

li:hover .filter-trash-icon,
li:hover .filter-edit-icon {
    visibility: visible;
}

.recent-filter-name {
    margin-left: 12px;
}

.recent-filter-patterns {
    color: @bc-text-thin-quiet;
    padding-right: 52px;
}

button.file-filter-picker {
    margin-left: 10px;
}

// File exclusion filter editor dialog
input.exclusions-name {
    display: block;
    width: 100%;
    height: 30px;
    box-sizing: border-box; // needed for width: 100% since it has padding
    margin-top: 12px;
    margin-bottom: 0;
}
textarea.exclusions-editor {
    display: block;
    width: 100%;
    height: 120px;
    box-sizing: border-box; // needed for width: 100% since it has padding
    margin-top: 5px;
    margin-bottom: 0;
    .code-font();
}
.exclusions-filecount {
    margin: 12px 0 -14px 0;
    padding: 4px 8px;
    background-color: @bc-bg-highlight;
    border-radius: @bc-border-radius;
}

// Find/Replace result highlighting
.CodeMirror-searching {
    background-color: @cm-match-highlight;
    box-shadow: 0 1px 3px @bc-shadow-small;
    color: @match-text !important;
    &.searching-current-match {
        background-color: @cm-current-match-highlight;
    }
    &.searching-first {  // first in a contiguous run of highlights
        border-top-left-radius: @bc-border-radius-small;
        border-bottom-left-radius: @bc-border-radius-small;
    }
    &.searching-last {  // last in a contiguous run of highlights
        border-top-right-radius: @bc-border-radius-small;
        border-bottom-right-radius: @bc-border-radius-small;
    }
}
#find-counter {
    font-weight: @font-weight-semibold;
    padding: 0 5px;
}

.tickmark-track {
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    width: 12px;
    z-index: @z-index-cm-max;
    pointer-events: none;

    .tickmark {
        position: absolute;
        width: 12px;
        height: 1px;
        background-color: #eddd23;
        border-top: 1px solid #e0d123;
        border-bottom: 1px solid #d4c620;
        opacity: 0.85;  // allow thumb to show through
    }
}

/* Quick Open search bar & dropdown */

.find-dialog-label {
    background: @bc-input-bg;
    color: @bc-text-quiet;
    position: absolute;
    right: 15px;
    text-align: right;
    top: 12px;
    z-index: 9999;
}

.smart_autocomplete_container {
    // the borders show up even if the container is empty, must set height to zero using JS.
    background-color: @bc-panel-bg;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 10px @bc-shadow;
    opacity: 0;

    // Need this for border-radius because there are no borders
    overflow: hidden;

    .animation (autocomplete, 90ms, cubic-bezier(.01, .91, 0, .99), 190ms, 1);
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;

    // so that border won't show when height is 0.
    box-sizing: border-box;

    // using this to fix the spacing that breaks item seperators and had to use !important to override inline css
    width: 434px !important;

    /* smart auto complete doesn't correctly position the container
     * so these specific padding and margin values are necessary*/
    padding: 0px;
    margin: 9px 0 0;

    .quick-open-path {
        color: @bc-text-thin-quiet;
        font-size: 11px;
        letter-spacing: 0.04em;
        line-height: 11px;
    }

    li {
        color: @bc-text-emphasized;
        line-height: 15px;
        list-style: none;
        cursor: default;
        padding: 6px 10px;

        &:nth-child(odd) {
            background-color: @bc-panel-bg-alt;
        }

        &:hover {
            background-color: @bc-panel-bg-hover;
        }

        &.smart_autocomplete_highlight {
            background-color: @bc-bg-highlight;
            color: @bc-menu-text;
        }
    }
}

@-webkit-keyframes autocomplete {
    0%   { opacity: 0.6; -webkit-transform: translate3d(0, 0, 0) scale(0.6); }
    100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes autocomplete {
    0%   { opacity: 0.6; transform: translate3d(0, 0, 0) scale(0.6); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.quicksearch-pathmatch,
.quicksearch-namematch {
    font-weight: @font-weight-semibold;
}

.quicksearch-pathmatch {
    color:  @bc-text;
}

/* Spinner */

.spinner {
    display: inline-block;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border-left: 3px solid #78B2F2;
    border-right: 3px solid #78B2F2;
    overflow: hidden;
    position: relative;
    visibility: hidden;

    &:before,
    &:after {
        border-left: 3px solid #78B2F2;
        border-right: 3px solid #78B2F2;
        box-sizing: border-box;
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        left: 0;
    }
    &:before {
        top: 0;
    }
    &:after {
        bottom: 0;
    }

    &.spin {
        -webkit-animation: spinner-rotateplane 1.2s infinite ease-in-out;
        animation: spinner-rotateplane 1.2s infinite ease-in-out;
        visibility: visible;
    }

    &.large {
        width: 36px;
        height: 36px;
        border-left: 9px solid #78B2F2;
        border-right: 9px solid #78B2F2;

        &:before,
        &:after {
            border-left: 7px solid #78B2F2;
            border-right: 7px solid #78B2F2;
            height: 9px;
        }
    }

    &.inline {
        margin-left: 8px;
        position: relative;
        top: 3px;
    }
}

@-webkit-keyframes spinner-rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg)  rotateX(180deg) }
}
@keyframes spinner-rotateplane {
    0% { -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg); transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50% { -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
    100% { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

/* Problems panel & CodeInspection status bar indicator */

#status-indicators #status-inspection {
    border: none;
    cursor: default;
    width: 13px;
}

.inspection-disabled {
    background: url(images/topcoat-inactive-15.svg) 9px 5px no-repeat;
}

.inspection-errors {
    background: url(images/topcoat-warning-15.svg) 9px 5px no-repeat;
}

.inspection-errors:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.inspection-errors:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.inspection-valid {
    background: url(images/topcoat-okay-15.svg) 9px 5px no-repeat;
}

#problems-panel {
    .user-select(text);  // allow selecting error messages for easy web searching
    .line {
        text-align: right;  // make line number line up with editor line numbers
    }

    .line-text {
        white-space: nowrap;
        width: auto;
    }

    .line-snippet {
        white-space: nowrap;
        width: 100%;
        padding-left: 10px;
    }

    .inspector-section > td {
        padding-left: 5px;
    }
}

/* Line up label text and input text */
label input {
    position: relative;
    top: -2px;
}

/* Live Preview */

// CodeMirror uses inline styles for active line number, so must use !important here to override
.live-preview-sync-error .CodeMirror-linenumber {
    background-color: @live-preview-sync-error-background !important;
    color: @live-preview-sync-error-color !important;
}

/* Quick Edit, Quick Docs */
.popover-message {
    position: absolute;
    top: 0;
    left: 0;
    z-index: @z-index-brackets-inline-editor-error;
    opacity: 1.0;

    -webkit-transform: scale(0);
    transform: scale(0);

    .text {
        padding: 5px 10px;
        background-color: @bc-error;
        border-radius: 3px;
        color: @bc-text-alt;
        box-shadow: 0 3px 9px @bc-shadow;
        white-space: nowrap;
    }
    .arrowAbove {
        height: 0;
        width: 0;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent @bc-error transparent;
        border-style: solid;
    }
    .arrowBelow {
        height: 0;
        width: 0;
        border-width: 10px 10px 0 10px;
        border-color: @bc-error transparent transparent transparent;
        border-style: solid;
    }
    &.animateOpen {
        -webkit-transition: -webkit-transform 125ms;
        transition: transform 125ms;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    &.animateClose {
        // Make the animation use the GPU--especially important for retina.
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-transition: opacity 500ms 5s ease-in, -webkit-transform 500ms 5s;
        transition: opacity 500ms 5s ease-in, transform 500ms 5s;
        opacity: 0.0;
    }
    &.open {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.emphasized {
    font-weight: 900;
    font-size: 1.01em;
}

/* Extension Manager */
#install-drop-zone {
    background-color: transparent;
    box-shadow: initial;
    font-weight: normal;
    border-style: dashed;
    position: relative;
}

#install-drop-zone-mask {
    position: absolute;
    top: -1px;
    left: -1px;

    padding: 1px;
    width: 100%;
    height: 100%;
    display: none;

    cursor: copy;
}

#install-drop-zone.drop #install-drop-zone-mask {
    display: block;
}

#install-drop-zone.drop {
    background: @bc-primary-btn-bg;
    box-shadow: initial;
    font-weight: normal;
    border: 1px solid @bc-primary-btn-bg;
    color: @bc-text-alt;
    text-shadow: none;
}

.install-drag-message {
    display: none;
}

.install-drop-message {
    display: none;
}

.install-validating-message {
    display: none;
}

#install-drop-zone.drag .install-drag-message {
    display: inline;
}

#install-drop-zone.drop .install-drop-message {
    display: inline;
}

#install-drop-zone.validating .install-validating-message {
    display: inline;
}

.theme-settings td {
    padding: 2px;
}

.theme-settings .modal-body {
    min-height: 300px;
    max-height: 300px;
}

.theme-settings .label {
    padding: 4px !important;
}

/*
 * Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 * DEALINGS IN THE SOFTWARE.
 *
 */

/*
 * This file first imports all of the shared LESS/CSS, and then defines
 * version-specific layout (e.g. layout for the App shell, or layout for
 * the In-Browser version on Firefox).
 *
 * Going forward, we may have different versions of this file for different
 * Versions (e.g. App, In-Browser, etc.)
 *
 * Anything that is general/reusable should be pushed up into a LESS file
 * in the "styles" directory. See "brackets_shared.less" for the organization
 *
 * Date: @DATE
 */

/* IMPORTANT: importing brackets_shared should be the first step in this file
 * This is so that imported CSS files (NOT LESS files) end up in the
 * right place
 */
@import "brackets_shared.less";

/* Overall layout */

html, body {
    height: 100%;
    overflow: hidden;

    /* Turn off selection for UI elements */
    .user-select(none);

    /* And make sure we get a pointer cursor even over text */
    cursor: default;

    /* Turn off subpixel antialiasing on Mac since it flickers during animations. */
    -webkit-font-smoothing: antialiased;

    /* This is a hack to avoid flicker when animations (like inline editors) that use the GPU complete.
       It seems that we have to put it here rather than on the animated element in order to prevent the
       entire window from flashing.
       See: http://stackoverflow.com/questions/3461441/prevent-flicker-on-webkit-transition-of-webkit-transform
    */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.resizing-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: @z-index-brackets-panel-resizer;

    &.horz-resizing {
        cursor: col-resize;
    }

    &.vert-resizing {
        cursor: row-resize;
    }
}

a, img {
    -webkit-user-drag: none;
}

.main-view {
    background: @background-color-3; // to keep the theme background consistent
    height: 100%;

    .sidebar {
        height: 100%;
        .vbox;
        width: @sidebar-width;  // changed dynamically via Resizer
        position: absolute;
        left: 0;
        top: 0;
    }

    .content {
        height: 100%;
        position: absolute;
        padding: 0;
        top: 0;
        left: @sidebar-width;  // changed dynamically via Resizer
        right: @main-toolbar-width;
    }
}

#titlebar, .modal-bar {
    border-bottom: 1px solid @tc-gray-panel-border;
    box-shadow: @tc-small-shadow-bottom;

    // Make sure the bottom box-shadow goes above the editor (position: relative needed to start a new stacking group)
    position: relative;
    z-index: @z-index-brackets-toolbar;
}

.busyCursor {
    cursor: wait !important;
}

#status-bar {
    position: relative;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    color: @tc-text;
    font-family: @sansFontFamily;
    font-size: 11px;
    line-height: 25px;
    height: 26px;
    overflow: hidden;
}

#status-info {
    color: @tc-text;
    left: 10px;
    position: absolute;
    white-space: nowrap;

    div {
        display: inline;
    }
}

#status-file {
    color: #999;
}

#status-indicators {
    background: #fff;
    color: @tc-text;
    position: absolute;
    right: 0;
    text-align: right;
    white-space: nowrap;

    > div {
        &:not(.spinner) {
            border-left: 1px solid rgba(0, 0, 0, 0.1);
        }
        float: right;
        padding: 0 10px;
    }
    .spinner {  // spinner is tiny & usually invisible; reduce margin so gap is less glaring
        margin: 6px 10px;
        padding: 0;
    }

    #status-language {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        padding: 0px;
        margin: 0px;
    }

    /* dropdown button styling */
    .btn-status-bar {
        border: 0;
        background-color: inherit;
        color: inherit;
        font: inherit;
        height: inherit;
        line-height: inherit;
        margin: 0;
        padding: 0 20px 0 10px;
        vertical-align: top;
        width: auto;
        cursor: pointer;
        border-radius: 0;
        box-shadow: none;
        text-shadow: none;

        &:focus {
            outline: 0;
        }
        &[disabled] {
            cursor: inherit;
            background: none;
            text-decoration: none;
        }
    }

}

#status-indent > * {
    display: inline-block;
}

#status-indent > *.hidden {
    display: none;
}

#indent-type, #indent-width-label {
    cursor: pointer;
    margin-right: 3px;
}

#indent-type:hover, #indent-width-label:hover {
    text-decoration: underline;
}

#indent-width-input {
    font-size: 11px;
    font-weight: @font-weight-semibold;
    height: 13px;
    line-height: 1;
    vertical-align: middle;
    color: @tc-text;
    margin: 0;
    padding: 0 3px 2px;
    position: relative;
    left: 0;
    top: -1px;
    width: 6px;
    transition: 0.1s linear all;
}

#indent-width-input:focus {

}

#indent-width-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#status-overwrite {
    transition: background-color 3s;
    background-color: rgba(120, 178, 242, 0);
    cursor: pointer;
}

#status-overwrite.flash {
    transition: background-color 1s;
    background-color: rgb(120, 178, 242);
}

#editor-holder {
    position: relative;

    /* Placeholder shown when there is no editor open */
    #not-editor {
        height: 100%;
        .vbox;
        .box-pack(center);
        .box-align(center);
        background: @background-color-3 url('images/no_content_bg.svg') no-repeat center 45%;
    }

    /* Image Preview */
    #image-holder {
        overflow: hidden;
        position: absolute;
        top: 0px;
        right: 0px;
        bottom: 0px;
        left: 0px;
        text-align: center;
        display: none;
        #img-centering {
            display: inline-block;
            vertical-align: middle;
            margin-top: -50px; /* Offset as vertical align takes image metadata into account */
            max-width: 90%;
            max-height: 90%;
        }
        #img-data {
            font-weight: @font-weight-semibold;
        }
    }

    #image-holder:before {
        content: '';
        display: inline-block;
        height: 100%;
        margin-right: -0.25em; /* Adjusts for spacing */
        vertical-align: middle;
    }

    #img-preview {
        background: url(images/preview_bg.png);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.36);
        max-height: 90%;
    }

    #img-header {
        display: block;
        width: 100%;
        height: 38px;
        margin-bottom: 15px;
    }

    #img-data,
    #img-path {
        text-align: left;
        .user-select(text);
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    #img-data::selection,
    #img-path::selection {
        background: @selection-color-focused;
    }

    #img {
        position: relative;
    }

    .img-guide,
    #img-tip,
    #img-scale {
        pointer-events: none;
    }

    #img-scale {
        display: block;
        position: absolute;
        top: 5px;
        left: 5px;
        width: 40px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.8);
        color: #fff;
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    #img-tip {
        display: block;
        position: absolute;
        text-align: left;
        white-space: nowrap;
        padding: 6px 9px;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.8);
        font-size: 11px;
        font-family: SourceCodePro;
        line-height: 13px;
        border-radius: 3px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24);
    }

    #x-value,
    #y-value {
        text-align: right;
    }

    .tip-container {
        border: 0;
    }

    #horiz-guide {
        background-image: url("images/horizontal-dash.svg");
        background-repeat: repeat-x;
        width: 8px;
        height: 1px;
    }

    #vert-guide {
        background-image: url("images/vertical-dash.svg");
        background-repeat: repeat-y;
        width: 1px;
        height: 8px;
    }

    #horiz-guide,
    #vert-guide {
        position: absolute;
        display: block;
    }
}

.vert-resizer {
    position: absolute;
    height: 6px;
    width: 100%;
    z-index: @z-index-brackets-panel-resizer;
    opacity: 0;
    cursor: row-resize;
}

.horz-resizer {
    position: absolute;
    height: 100%;
    width: 6px;
    z-index: @z-index-brackets-panel-resizer;
    opacity: 0;
    cursor: col-resize;
}

.bottom-panel {
    background-color: @tc-gray-panel;
    display: none;
    height: 200px;
    border-top-style: solid;
    border-width: 1px;
    border-color: @tc-gray-panel-border;

    .check-all {
        margin: 7px 15px 7px 7px;
    }

    .toolbar {
        background-color: @tc-gray-panel-top-bar;
        border-bottom: @tc-gray-panel-top-bar-shadow;
        height: auto;
        padding-top: (@base-padding / 2);
        padding-bottom: (@base-padding / 2);
        z-index: @z-index-brackets-results-panel;
        box-shadow: @tc-gray-panel-bevel, @tc-small-shadow-top;
        .title {
            color: @tc-text;
            font-size: @label-font-size;
            font-weight: @font-weight-semibold;
        }
        .close {
            position: absolute;
            right: 10px;

            // vertically centers close button
            top: 50%;
            margin-top: -10px;
        }
    }

    .table-container {
        height: 170px;
        overflow: auto;

        .highlight {
            background: @bc-white;
            border-radius: 2px;
        }

        tr.selected td {
            background-color: @tc-selected-row;
            color: @bc-black;
        }
    }
}

.bottom-panel-table {
    td {
        font-size: 12px;
        padding-left: 15px;
        padding-right: 0;
        vertical-align: baseline;
    }

    .file-section > .checkbox-column {
        width: 15px;
    }

    .line-number {
        color: @tc-light-weight-quiet-text;
        font-family: SourceCodePro;
        font-size: 11px;
        padding: 4px 0 0 15px;
        text-align: right;
        white-space: nowrap;
        width: 5px;
    }

    .dialog-filename {
        font-size: 13px;
        font-weight: @font-weight-semibold;
    }

    .dialog-path {
        font-size: 11px;
        font-weight: normal;
    }

    .line-text {
        width: 100%;
    }
}

#update-notification {
    .sprite-icon(0, 0, 24px, 24px, "images/updateSprites.svg");
}

#toolbar-go-live {
    // background-position is 0 0 for 24x24 icons
    // Default icon is for the 'disconnected' state
    // The 'connecting failed' (.warning) state also maps here
    .sprite-icon(0, 0, 24px, 24px, "images/live_development_sprites.svg");
    // 'Connected' state
    &.success {
        .sprite-swap(0, 24px);
    }
    // 'Connection in progress' state
    &.info {
        .sprite-swap(0, 48px);
    }
    // 'Out-of-sync' state
    &.out-of-sync {
        .sprite-swap(0, 72px);
    }
    // 'sync-error'
    &.sync-error {
        .sprite-swap(0, 96px);
    }
}

#toolbar-extension-manager {
    .sprite-icon(0, 0, 24px, 24px, "images/extension-manager-sprite.svg");
    &.updatesAvailable {
        .sprite-icon(0, 24px, 24px, 24px, "images/extension-manager-sprite.svg");
    }
}

/* Project panel */

#working-set-header {
    position: relative;
    height: 19px;
    padding: 10px 0 9px 12px;
    background: #3C3F41;
    color: @project-panel-text-2;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#working-set-option-btn {
    position: absolute;
    right: 4px;
    top: 7px;
    padding: 4px 6px;
    .sprite-icon(0, 0, 13px, 13px, "images/topcoat-settings-13.svg");
    background-position:center;
    opacity: 0.8;
}

#working-set-option-btn:hover {
    opacity: 1;
}

#sidebar {
    position: relative;
    white-space: nowrap;
}

#sidebar-resizer {
    position: absolute;
    width: 6px;
    height: 100%;
    z-index: @z-index-brackets-sidebar-resizer;
    opacity: 0;
    cursor: col-resize;
}

#project-files-header {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0 9px 12px;
    font-size: 13px;
    color: @project-panel-text-2;
    overflow: hidden;
}

#open-files-container {
    .box-flex(0);
    background: #3C3F41;
    padding: 0px;
    max-height: 200px; // TODO (Issue #276): it would be nicer to have this be 50%, but that doesn't seem to work

    ul {
        list-style-type: none;
        margin: 0;
        padding-bottom: 23px;
    }

    li {
        position: relative; // so that children can be positioned absolute
        line-height: 18px;
        padding: 0 0 0 8px;
        min-height: 18px;
        vertical-align: baseline;

        &.selected a {
            color: @open-working-file-name-highlight;
        }

        &.selected .extension {
            color: @open-working-file-ext-highlight;
        }
    }

    a {
        color: #fff;

        font-size: 13px;
        text-decoration: none;

        display: block;
        height: 16px;
        line-height: 15px;
        margin-left: 18px;
        padding: 3px (@sidebar-triangle-size * 2) 3px 0;

        cursor: default;

        .directory {
            font-size: 11px;
        }
    }

    .extension, .directory {
        color: @project-panel-text-2;
    }
}

.sidebar-selection {
    background: @tc-sidebar-selection;
    border-top: 1px solid @tc-sidebar-selection-shadow;
    border-bottom: 1px solid @tc-sidebar-selection-highlight;
    height: 22px;
    position: absolute;
}

.sidebar-selection-triangle {
    background: @tc-sidebar-selection;
    border-top: 1px solid @tc-sidebar-selection-shadow;
    border-bottom: 1px solid @tc-sidebar-selection-highlight;
    width: 9px; /* quiet scrollbar width */
    height: 22px;
    position: fixed;

    z-index: @z-index-brackets-selection-triangle; /* scroller-shadow appears above this triangle */
}

.sidebar-selection-triangle.triangle-visible:before {
    content: "";

    border-top: @sidebar-triangle-size solid transparent;
    border-bottom: (@sidebar-triangle-size - 1) solid transparent;
    border-left: @sidebar-triangle-size solid @tc-sidebar-selection;

    display: block;
    position: absolute;
    top: -1px;
    right: -9px;
    width: 0;
    height: 0;

    .scale-x(0.8, right, top);
}

//Initially start with the open files hidden, they will get show as files are added
#open-files-container {
    display:none;
}

#project-files-container {
    .box-flex(1);

    .jstree-brackets li > a {
        padding-right: (@sidebar-triangle-size * 2);
    }

    ul {
        padding-left: 8px;
    }

    > ul {
        padding-bottom: 24px;
    }
}

.scroller-shadow {
    background-size: 100%;
    background-repeat: no-repeat;
    height: 5px;
    position: fixed;
    z-index: @z-index-brackets-scroller-shadow;

    &.top {
        #gradient > .vertical(rgba(0,0,0,0.1), rgba(0,0,0,0));
        background-position: 0 -5px;
        background-color: transparent; /* override background-color: @endColor from #gradient.vertical */
    }

    &.bottom {
        #gradient > .vertical(rgba(0,0,0,0), rgba(0,0,0,0.1));
        background-position: 0 5px;
        background-color: transparent; /* override background-color: @endColor from #gradient.vertical */
    }
}

@jstree-sprite-size: 18px;  // this is hardcoded in jsTree's JS code

/** Classes for icons from jsTreeSprites.svg
*/
.jstree-sprite {
    background-image: url("images/jsTreeSprites.svg");
    background-repeat: no-repeat;
    background-color: transparent;
    vertical-align: middle;
    width: @jstree-sprite-size;
    height: @jstree-sprite-size;
}

/** Overriding jsTreeTheme.less
*/
.jstree-brackets .jstree-no-dots .jstree-open > ins {
    background-position: 7px -8px;
    -webkit-transform: translateZ(0) rotate(90deg);
    -webkit-transition: -webkit-transform 190ms cubic-bezier(.01, .91, 0, .99);
    -webkit-filter: drop-shadow(1px 0 1px rgba(0, 0, 0, 0.36));
}

.jstree-brackets .jstree-no-dots .jstree-closed > ins {
    background-position: 7px -8px;
    -webkit-transform: translateZ(0); /* Need this to make sure that the svg isn't blurry on retina. */
    -webkit-transition: -webkit-transform 90ms cubic-bezier(.01, .91, 0, .99);
    -webkit-filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.36));
}

/** Unicode Icon container
*/
.unicode-icon-container {
    display: inline-block;
    width: 16px;
    height: 16px;
    font-size: 20px;
    line-height: 15px;
    text-align: center;
}

.file-status-icon {
    margin: 0 0 0 8px;
    position: absolute;
    left: 0;
    top: 0;

    &.dirty:before,
    &.can-close:before {
        .unicode-icon-container;
        color: rgba(255, 255, 255, 0.5);
    }

    &.dirty:before {
        content: "\2022";
        line-height: 1em;
    }

    &.can-close:before {
        content: "\00D7";
        line-height: 1.1em;
    }

    &.can-close:hover:before {
        color: rgba(255, 255, 255, 0.7);
    }

    &.can-close:active:before {
        color: rgba(255, 255, 255, 0.3);
    }
}

/* Styles for inline editors */

.inline-text-editor {
    line-height: 0px;
}

.inline-widget {
    position: relative;
    overflow: hidden;

    background-color: @tc-lighter-gray;
    min-width: 250px;
    cursor: default;

    &.animating {
        // Make the animation use the GPU--especially important for retina.
        -webkit-transform: translateZ(0);
        transform: translateZ(0);

        transition: height 250ms cubic-bezier(0, 1.02, 0.6, 1);
    }

    .CodeMirror {
        /* remove CodeMirror default height: 300px */
        height: auto;
    }

    .inline-text-editor {
        white-space: nowrap;
    }

    .inline-editor-header {
        display: inline-block;
        padding: 9px 10px 1px 40px;

        .filename {
            vertical-align: middle;
            font-family: @sansFontFamily;
            font-size: 13px;
            color: @bc-black;

            // Filename header is clickable (it's an <a> tag, so we get underscore on hover by
            // default; but the hand cursor is shut off by Bootstrap's reset stylesheet)
            cursor: pointer;

            .dirty-indicator {
                .unicode-icon-container;
                color: @tc-quiet-text;
                overflow: hidden;
                position: relative;
                top: 1px;
            }

            .line-number {
                color: @inline-color-2;
            }
        }
    }

    .shadow {
        display: block;
        height: 4px;
        width: 100%;
        position: absolute;
        content: " ";
        left: 0;
        z-index: @z-index-brackets-inline-editor-shadow;
    }

    .shadow.top {
        top: 0px;
        background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    }

    .shadow.bottom {
        bottom: 0px;
        background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
    }

    .CodeMirror-scroll {
        background-color: transparent !important;

        .CodeMirror-linenumbers {
            background-color: @tc-lighter-gray;
        }
    }

    .close {
        position: absolute;
        left: 15px;
        top: 10px;
        margin-right: 30px;
    }

}

/* CSSInlineEditor rule list */
.related-container {
    @top-margin: 12px;

    float: right;
    position: relative;
    min-height: 100%;
    font-family: @sansFontFamily;
    width: 250px;
    max-width: 50%;
    overflow: hidden;
    background: @inline-background-color-2;

    // Without this, the "New Rule" button shows on top of the rule list if you resize
    // the window narrow enough. No idea why, since there's no z-index on the button, and
    // the other items in the header go behind the rule list.
    z-index: 1;

    .selection {
        width: 100%;
        background: #d0d5d5;
        position: absolute;
        border-top: 1px solid darken(@inline-background-color-3, @bc-color-step-size);
        border-bottom: 1px solid lighten(@inline-background-color-3, @bc-color-step-size);
        top: @top-margin;

        &.animate {
            transition: top 0.1s ease-out;
        }
    }

    /*
     * CSS triangle hack with anti-alias workarounds:
     * (a) Use selection-background-color instead of transparent.
     * (b) Use transform scaleX and origin to adjust width.
     */
    .selection:before {
        content: " ";
        position: absolute;
        width: 0;
        height: 0;
        border-top: @inline-triangle-size solid transparent;
        border-bottom: @inline-triangle-size solid transparent;
        border-left: @inline-triangle-size solid @inline-background-color-1;
        margin-top: -@inline-triangle-size;
        top: 50%;
        .scale-x(0.9, left, top);
    }

    .related {
        font-size: 12px;
        position: absolute;
        top: 0;
        left: 1px;
        width: 100%;

        ul {
            margin: 0;
            padding: @top-margin 0px;
            list-style: none;
        }

        li {
            color: @tc-emphasized-text;
            margin: 0;
            overflow: hidden;
            padding: 2px 0px 2px 15px;
            text-overflow: ellipsis;
            white-space: nowrap;

            .related-file {
                color: @tc-input-placeholder-text;
            }
        }

        .selected {
            color: @tc-light-weight-text;
            transition: color 0.1s ease-out .15s;
        }
    }
}

.inline-editor-message {
    color: @tc-input-placeholder-text;
    font-family: @sansFontFamily;
    font-size: 12px;
    line-height: 17px;
    height: 20px;
    padding: 10px 0 40px 50px;
}

/* This text is used to force the code editor's font to be loaded early on if it's a
   web font. This is necessary in order for the editor's horizontal measurement of text
   to work properly.

   In the future, when we allow the user to switch fonts, we'll need to make sure to
   update the font for this text item whenever the user switches. We'll also need to
   wait to initiate a re-measure in CodeMirror until the new font is loaded (if they
   choose a web font). This library allows for checking if a web font is loaded:

     http://code.google.com/apis/webfonts/docs/webfont_loader.html
*/
.dummy-text {
    position: fixed;
    top: -10000px;
    .code-font();
}

.platform-mac .dummy-text {
    .code-font-mac();
}

/* Find in Files results panel - temporary UI, to be replaced with a richer search feature later */

.search-results .title {
    .sane-box-model;
    padding-right: 20px;
    width: 100%;
    line-height: 25px;

    .flex-box;
    .contracting-col {
        .flex-item(0);
        min-width: 1px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .fixed-col {
        .flex-item(0, 0);
    }
    .pagination-col {
        .flex-item(0, 0);
        min-width: 100px;
        word-spacing: 0;
    }
    .pagination-col > span:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
    .pagination-col > span:active {
        background-color: rgba(0, 0, 0, 0.12);
    }
    .replace-col {
        .flex-item(1, 0);
        min-width: 120px;
        padding: 0 15px;
    }
    .first-page,
    .prev-page,
    .next-page,
    .last-page {
        .jstree-sprite;
        width: 18px;
        display: inline-block;
        margin: 0;
        background-position: 7px 6px;
        vertical-align: text-top;
        border-radius: 3px;
    }
    .first-page {
        background-position: 6px -78px;
        margin-left: 10px;
    }
    .prev-page {
        background-position: 6px -22px;
        margin-right: 5px;
    }
    .next-page {
        margin-left: 5px;
    }
    .last-page {
        background-position: 6px -50px;
    }
    .disabled,
    .disabled:hover,
    .disabled:active {
        background-color: transparent;
        opacity: 0.3;
    }
}

.search-results .disclosure-triangle,
#problems-panel .disclosure-triangle {
    .jstree-sprite;
    display: inline-block;
    &.expanded {
        // Unfortunately, the way jsTree sprites are aligned within their 18px boxes doesn't look good in
        // other contexts, so we need some tweaks here instead of straight multiples of @jstree-sprite-size
        background-position: 7px 5px;
        -webkit-transform: translateZ(0) rotate(90deg);
    }
    &.collapsed {
        background-position: 7px 5px;
    }
}

/* Modal bar for Find/Quick Open */

.modal-bar {
    display: block;
    text-align: left;

    font-family: @sansFontFamily;
    font-size: 14px;
    color: @tc-text;
    background: @tc-gray-panel;
    overflow: visible;  // needed for .error popup
    padding: 5px 4px 4px 14px;

    -webkit-transform: translate(0, 0); // Prefix still required.
    transition: -webkit-transform 66ms cubic-bezier(0, 0.62, 0.04, 0.99);
    z-index: @z-index-brackets-modalbar;

    body.in-browser &,
    body:not(.has-appshell-menus) & {
        // Separator line between us and the HTML menu/titlebar above
        border-top: 1px solid darken(@background-color-3, @bc-color-step-size);
    }

    &.popout {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }

    &.offscreen {
        -webkit-transform: translate(0, -100%);
        transform: translate(0, -100%);
        transition: -webkit-transform 266ms cubic-bezier(0, 0.56, 0, 1);
        transition: transform 266ms cubic-bezier(0, 0.56, 0, 1);
    }

    input {
        font-family: @sansFontFamily;
        outline: none;
        width: 20em;
        margin: 5px 5px 0;
        position: relative;
        top: -3px;
        &.no-results {
            border: 1px solid @tc-gray-component-error-border;
            box-shadow: @tc-input-inner-shadow, @tc-input-error-glow;
        }
    }

    #find-what, #replace-with {
        width: 295px;
    }

    .search-input-container {
        position: relative;
        display: inline;

        .error {  // "popup" that hangs below search field
            position: absolute;
            left: 5px;
            top: 24px;
            min-width: 291px + 2px;  // to align with search field above it
            z-index: 1; // to appear above any controls that wrap below

            background-color: @bc-error;
            color: @bc-white;
            font-size: 12px;
            padding: 3px 8px;
            border-radius: 0 0 3px 3px;
            box-shadow: @tc-small-shadow-bottom;
        }

        #find-what {
            padding-right: 62px;  // room for #find-counter overlay
            width: 295px - (62px - 6px);  // maintain width, accounting for differing padding
        }
        #find-counter {
            position: absolute;
            color: @tc-light-weight-quiet-text;
            top: 1px;
            right: 2px;
            font-size: 12px;
        }
    }

    .find-input-group {
        display: inline-block;
    }
    #find-group, #replace-group {
        display: inline-block;
        white-space: nowrap;
    }
    #replace-group.has-scope {
        // If scope controls are showing, force the replace controls to a second line.
        display: block;
    }

    .scope-group {
        display: inline-block;
        margin-left: 10px;
    }

    .message, .no-results-message {
        display: inline-block;
    }

    #find-case-sensitive, #find-regexp {
        padding: 1px 5px;
    }
    .button-icon {  // icons must be nested inside button so we can apply padding w/o tiling icon
        .sprite-icon(0, 0, 24px, 24px, "images/find-replace-sprites.svg");
        background-repeat: no-repeat;
    }
    #find-regexp.active .button-icon {
        .sprite-swap(0, 24px);
    }
    #find-case-sensitive .button-icon {
        .sprite-swap(0, 48px);
    }
    #find-case-sensitive.active .button-icon {
        .sprite-swap(0, 72px);
    }
    #find-regexp.active, #find-case-sensitive.active {
        background-color: @tc-highlight;
    }

    .navigator {  // next/prev buttons
        display: inline-block;
    }
    button {
        margin: 2px 1px 3px;
    }
    #find-prev {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        margin-left: 5px;
    }

    // Make button pairs snug
    #find-prev, #replace-yes, #find-case-sensitive {
        border-right: none;
        margin-right: 0;
    }
    #find-next, #replace-all, #find-regexp {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        margin-left: 0;
    }
    #replace-all.solo {
        border-left: none;
        margin-left: 0px;
    }

    // Make find field snug with options buttons
    //    & replace snug with replace commands
    #find-what, #replace-with {
        margin-right: 0px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }
    #find-case-sensitive, #replace-yes {
        border-left: none;
        margin-left: 0px;
        border-radius: 0;
    }
}

// File exclusion filter (used only in Find in Files search bar, for now)
.filter-trash-icon {
    position: absolute;
    left: 7px;
    width: 16px;
    height: 16px;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.5);
    line-height: 15px;
    text-align: center;
    visibility: hidden;
}

.filter-trash-icon:hover {
    color: rgba(0, 0, 0, 1);
}

.filter-edit-icon {
    float: right;
    width: 13px;
    height: 13px;
    background-image: url("images/edit-icon.svg");
    background-repeat: no-repeat;
    opacity: 0.5;
    visibility: hidden;
    position: relative;
    top: 2px;
    right: -4px;
}

.filter-edit-icon:hover {
    opacity: 1;
}

li:hover .filter-trash-icon,
li:hover .filter-edit-icon {
    visibility: visible;
}

.recent-filter-name {
    margin-left: 12px;
}

.recent-filter-patterns {
    color: @tc-light-weight-quiet-text;
    padding-right: 52px;
}

button.file-filter-picker {
    margin-left: 10px;
}

// File exclusion filter editor dialog
input.exclusions-name {
    display: block;
    width: 100%;
    height: 30px;
    box-sizing: border-box; // needed for width: 100% since it has padding
    margin-top: 12px;
    margin-bottom: 0;
}
textarea.exclusions-editor {
    display: block;
    width: 100%;
    height: 120px;
    box-sizing: border-box; // needed for width: 100% since it has padding
    margin-top: 5px;
    margin-bottom: 0;
    .code-font();
}
.exclusions-filecount {
    margin: 12px 0 -14px 0;
    padding: 4px 8px;
    background-color: @tc-highlight;
    border-radius: @tc-control-border-radius;
}

// Find/Replace result highlighting
.CodeMirror-searching {
    background-color: @cm-match-highlight;
    box-shadow: @tc-small-shadow-bottom;
    color: @match-text !important;
    &.searching-current-match {
        background-color: @cm-current-match-highlight;
    }
    &.searching-first {  // first in a contiguous run of highlights
        border-top-left-radius: @tc-inline-border-radius;
        border-bottom-left-radius: @tc-inline-border-radius;
    }
    &.searching-last {  // last in a contiguous run of highlights
        border-top-right-radius: @tc-inline-border-radius;
        border-bottom-right-radius: @tc-inline-border-radius;
    }
}
#find-counter {
    font-weight: @font-weight-semibold;
    padding: 0 5px;
}

.tickmark-track {
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    width: 12px;
    z-index: @z-index-cm-max;
    pointer-events: none;

    .tickmark {
        position: absolute;
        width: 12px;
        height: 1px;
        background-color: #eddd23;
        border-top: 1px solid #e0d123;
        border-bottom: 1px solid #d4c620;
        opacity: 0.85;  // allow thumb to show through
    }
}

/* Quick Open search bar & dropdown */

.find-dialog-label {
    background: @bc-white;
    color: @tc-quiet-text;
    position: absolute;
    right: 15px;
    text-align: right;
    top: 12px;
    z-index: 9999;
}

.smart_autocomplete_container {
    // the borders show up even if the container is empty, must set height to zero using JS.
    background-color: @tc-gray-panel;
    border-radius: 0 0 4px 4px;
    box-shadow: @tc-normal-shadow-bottom;
    opacity: 0;

    // Need this for border-radius because there are no borders
    overflow: hidden;

    .animation (autocomplete, 90ms, cubic-bezier(.01, .91, 0, .99), 190ms, 1);
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;

    // so that border won't show when height is 0.
    box-sizing: border-box;

    // using this to fix the spacing that breaks item seperators and had to use !important to override inline css
    width: 434px !important;

    /* smart auto complete doesn't correctly position the container
     * so these specific padding and margin values are necessary*/
    padding: 0px;
    margin: 9px 0 0;

    .quick-open-path {
        color: #666;
        font-size: 11px;
        letter-spacing: 0.04em;
        line-height: 11px;
    }

    li {
        color: #222;
        line-height: 15px;
        list-style: none;
        cursor: default;
        padding: 6px 10px;

        &:nth-child(odd) {
            background-color: @tc-lighter-gray;
        }

        &:hover {
            background-color: @tc-hover-highlight;
        }

        &.smart_autocomplete_highlight {
            background-color: @tc-highlight;
        }
    }
}

@-webkit-keyframes autocomplete {
    0%   { opacity: 0.6; -webkit-transform: translate3d(0, 0, 0) scale(0.6); }
    100% { opacity: 1; -webkit-transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes autocomplete {
    0%   { opacity: 0.6; transform: translate3d(0, 0, 0) scale(0.6); }
    100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

.quicksearch-pathmatch,
.quicksearch-namematch {
    font-weight: @font-weight-semibold;
}

.quicksearch-pathmatch {
    color: #555;
}

/* Spinner */

.spinner {
    display: inline-block;
    box-sizing: border-box;
    width: 14px;
    height: 14px;
    border-left: 3px solid #78B2F2;
    border-right: 3px solid #78B2F2;
    overflow: hidden;
    position: relative;
    visibility: hidden;

    &:before,
    &:after {
        border-left: 3px solid #78B2F2;
        border-right: 3px solid #78B2F2;
        box-sizing: border-box;
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        left: 0;
    }
    &:before {
        top: 0;
    }
    &:after {
        bottom: 0;
    }

    &.spin {
        -webkit-animation: spinner-rotateplane 1.2s infinite ease-in-out;
        animation: spinner-rotateplane 1.2s infinite ease-in-out;
        visibility: visible;
    }

    &.large {
        width: 36px;
        height: 36px;
        border-left: 9px solid #78B2F2;
        border-right: 9px solid #78B2F2;

        &:before,
        &:after {
            border-left: 7px solid #78B2F2;
            border-right: 7px solid #78B2F2;
            height: 9px;
        }
    }

    &.inline {
        margin-left: 8px;
        position: relative;
        top: 3px;
    }
}

@-webkit-keyframes spinner-rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg)  rotateX(180deg) }
}
@keyframes spinner-rotateplane {
    0% { -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg); transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50% { -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
    100% { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

/* Problems panel & CodeInspection status bar indicator */

#status-indicators #status-inspection {
    border: none;
    cursor: default;
    width: 13px;
}

.inspection-disabled {
    background: url(images/topcoat-inactive-15.svg) 9px 5px no-repeat;
}

.inspection-errors {
    background: url(images/topcoat-warning-15.svg) 9px 5px no-repeat;
}

.inspection-errors:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.inspection-errors:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.inspection-valid {
    background: url(images/topcoat-okay-15.svg) 9px 5px no-repeat;
}

#problems-panel {
    .user-select(text);  // allow selecting error messages for easy web searching
    .line {
        text-align: right;  // make line number line up with editor line numbers
    }

    .line-text {
        white-space: nowrap;
        width: auto;
    }

    .line-snippet {
        white-space: nowrap;
        width: 100%;
        padding-left: 10px;
    }

    .inspector-section > td {
        padding-left: 5px;
    }
}

/* Line up label text and input text */
label input {
    position: relative;
    top: -2px;
}

/* Live Preview */

// CodeMirror uses inline styles for active line number, so must use !important here to override
.live-preview-sync-error .CodeMirror-linenumber {
    background-color: @live-preview-sync-error-background !important;
    color: @live-preview-sync-error-color !important;
}

/* Quick Edit, Quick Docs */
.popover-message {
    position: absolute;
    top: 0;
    left: 0;
    z-index: @z-index-brackets-inline-editor-error;
    opacity: 1.0;

    -webkit-transform: scale(0);
    transform: scale(0);

    .text {
        padding: 5px 10px;
        background-color: @bc-error;
        border-radius: 3px;
        color: @bc-white;
        box-shadow: @tc-dropdown-shadow;
        white-space: nowrap;
    }
    .arrowAbove {
        height: 0;
        width: 0;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent @bc-error transparent;
        border-style: solid;
    }
    .arrowBelow {
        height: 0;
        width: 0;
        border-width: 10px 10px 0 10px;
        border-color: @bc-error transparent transparent transparent;
        border-style: solid;
    }
    &.animateOpen {
        -webkit-transition: -webkit-transform 125ms;
        transition: transform 125ms;
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    &.animateClose {
        // Make the animation use the GPU--especially important for retina.
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-transition: opacity 500ms 5s ease-in, -webkit-transform 500ms 5s;
        transition: opacity 500ms 5s ease-in, transform 500ms 5s;
        opacity: 0.0;
    }
    &.open {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

.emphasized {
    font-weight: 900;
    font-size: 1.01em;
}

/* Extension Manager */
#install-drop-zone {
    background-color: transparent;
    box-shadow: initial;
    font-weight: normal;
    border-style: dashed;
    position: relative;
}

#install-drop-zone-mask {
    position: absolute;
    top: -1px;
    left: -1px;

    padding: 1px;
    width: 100%;
    height: 100%;
    display: none;

    cursor: copy;
}

#install-drop-zone.drop #install-drop-zone-mask {
    display: block;
}

#install-drop-zone.drop {
    background: @tc-call-to-action;
    box-shadow: initial;
    font-weight: normal;
    border: 1px solid @tc-call-to-action;
    color: @tc-call-to-action-text;
    text-shadow: none;
}

.install-drag-message {
    display: none;
}

.install-drop-message {
    display: none;
}

.install-validating-message {
    display: none;
}

#install-drop-zone.drag .install-drag-message {
    display: inline;
}

#install-drop-zone.drop .install-drop-message {
    display: inline;
}

#install-drop-zone.validating .install-validating-message {
    display: inline;
}

.theme-settings td {
    padding: 2px;
}

.theme-settings .modal-body {
    min-height: 300px;
    max-height: 300px;
}

.theme-settings .label {
    padding: 4px !important;
}


Style exits list

Style exits list

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/McBits/DungeonR.git/'


Create 03-util-typo-fix.less

Create 03-util-typo-fix.less

.noborder,
iframe { border: 0; }

table {
  table-layout: fixed;
}

/*
 * taken from http://tinytypo.tetue.net/ made by @tetue
 * tuned with the help of http://www.nicolas-hoffmann.net/utilitaires/codes-hexas-ascii-unicode-utf8-caracteres-usuels.php
 *
 * see http://en.wikipedia.org/wiki/International_variation_in_quotation_marks for reference
 */
q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}
:lang(fr) > q {
  quotes: "\00AB\A0" "\A0\00BB" "\201C" "\201D" "\2018" "\2019";
}
:lang(en) > q {
  quotes: "\201C" "\201D" "\2018" "\2019";
}
:lang(es) > q {
  quotes: "\00AB" "\00BB" "\201C" "\201D";
}
:lang(it) > q {
  quotes: "\00AB\A0" "\A0\00BB" "\201C" "\201D";
}
:lang(de) > q {
  quotes: "\201e" "\201c" "\201a" "\2018";
}
q:before {
  content: open-quote;
}
q:after {
  content: close-quote;
}

/* avoid ugly line-height */
sup,
sub {
  vertical-align: 0;
  position: relative;
}
sup {
  bottom: 1ex;
}
sub {
  top: .5ex;
}

/* avoid margin problems */
h1:first-child,.h1:first-child,
h2:first-child,.h2:first-child,
h3:first-child,.h3:first-child,
h4:first-child,.h4:first-child,
h5:first-child,.h5:first-child,
h6:first-child,.h6:first-child {
  margin-top: 0;
}
/* remove bottom margin on last child */
p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
blockquote:last-child,
pre:last-child,
table:last-child {
  margin-bottom: 0;
}

/* avoid margin on nested elements */
li p,
li ul {
  margin-bottom: 0;
  margin-top: 0;
}

/* Thou shalt not pass (Moïse or Gandalf, don't remember) */
& when (@hyphenation_default) {
textarea, table, td, th, code, pre, samp, div, p {
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  hyphens: auto;
}
}
.cut when not (@hyphenation_default) {
  word-wrap: break-word;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  hyphens: auto;
}

/* remove hyphenation if needed */
.nocut {
  word-wrap: normal;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  -o-hyphens: none;
  hyphens: none;
}

code,
pre,
samp {
  white-space: pre-wrap;
}
code {
  line-height: 1;
}
kbd {
  border: solid 1px;
  border-top-left-radius: .5em;
  border-top-right-radius: .5em;
  padding: 0 .25em;
}
table {
  margin-bottom: 1.5em;
}
/* important, abbr are good */
/* only those with a title are shown */
abbr[title] {
  border-bottom: dotted 1px;
  cursor: help;
  /* color inherited from text */
}

/* text aligns */
.alignright  { text-align: right; }
.aligncenter { text-align: center; }
.alignleft   { text-align: left; }

[dir="rtl"] {
  & .alignright when (@rtl_option) {
    /* RTL */
    text-align: left;
  }
  & .alignleft when (@rtl_option) {
    /* RTL */
    text-align: right;
  }
}

error: pathspec 'less/rocssti-en/03-util-typo-fix.less' did not match any file(s) known to git


PRIDE form

PRIDE form

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/bmesuere/uni-test.git/'


fix project logos on mobile

fix project logos on mobile

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/lukesmmr/piracanga.git/'


Delete mixins.less

Delete mixins.less

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Elenkan/Elenkan.github.io.git/'


[POSSIBLE BREAKING CHANGE] reduce menu z-index

There’s no reason for this to have been so high to begin with.
Increasing the z-index of the containing Select, on the consumer app,
will fix any issues that may arise from this change

fatal: unable to access 'https://github.com/paulmillr/react-select.git/': The requested URL returned error: 403


Fixed footer styling for mobile

Fixed footer styling for mobile

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/maroun-baydoun/maroun-baydoun.com.git/'


修改强制换行

修改强制换行

fatal: unable to access 'https://github.com/ziven27/27.lib.less.git/': The requested URL returned error: 403


Added margin to article images.

Added margin to article images.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/hobarrera/www.git/'


Added missed file typeahead.less

Added missed file typeahead.less

.typeahead-wrapper {
  display: block;
  margin: 50px 0;
}

.tt-dropdown-menu {
  background-color: #fff;
  border: 1px solid #000;
}

error: pathspec 'assets/vendor/bootstrap_custom/typeahead.less' did not match any file(s) known to git


@font-size-largest is now @font-size-large + 6

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/dedalozzo/pit-bootstrap.git/'


Use % for input field position instead px.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/gmist/five-studio2.git/'