/*!
 * Stitches - HTML5 Sprite Generator
 * http://draeton.github.com/stitches
 *
 * Palette Module
 *
 * Copyright 2013 Matthew Cobbs
 * Licensed under the MIT license.
 */

.stitches-palette {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 480px;
    background-color: #fafafa;
    background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2));
    background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: -o-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0);
    *zoom: 1;
    border: 1px solid #d4d4d4;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
}

.stitches-palette.fade.in {
    display: block;
    opacity: 1;
}

.stitches-palette-header {
    padding: 0 15px;
    border-bottom: 1px solid #eee;
}

.stitches-palette-body {
    padding: 9px 15px;
}

.stitches-palette-body form {
    margin: 0;
}

.stitches-palette-body .form-horizontal .control-group {
    margin-bottom: 10px;
}

.stitches-palette-body .form-horizontal .control-group:last-child {
    margin-bottom: 0;
}

.stitches-palette-body .form-horizontal .control-label {
    width: 120px;
    font-size: 12px;
}

.stitches-palette-body .form-horizontal .controls {
    margin-left: 140px;
}

@media (max-width: 480px) {
    .stitches-palette-body .form-horizontal .control-label {
        width: auto;
    }

    .stitches-palette-body .form-horizontal .controls {
        margin-left: 0;
    }

    .stitches-palette-body img {
        max-width: 150px;
    }
}

.stitches-palette-footer {
    padding: 0 15px;
    border-top: 1px solid #ddd;
}

.stitches-palette-footer .btn-toolbar {
    float: right;
}

/** downloads */

.stitches-downloads {
    width: 600px;
}

.stitches-downloads .stitches-palette-body {
    max-height: 250px;
    overflow: auto;
}

.stitches-downloads textarea {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.stitches-downloads .stitches-example i {
    float: left;
    margin: 6px;
}

/** responsive */

@media (max-width: 767px) {
    .stitches-palette {
        top: 0;
        right: 0;
        width: 100%;
        border-left: 0;
        border-right: 0;
    }
}