/**
 * @file   : Ptty.css
 * @ver    : 0.1
 * @Author : Patxi Pierce
 * @url    : http://code.patxipierce.com/jquery-plugin/ptty/
 * @desc   : Ptty (Pachanka's teletype). A terminal emulator plugin for jQuery. 
 *           Based on wterm.js by Venkatakrishnan Ganesh.
 * @license: Copyright 2014 Patxi Pierce <mail@patxipierce.com>
 *           This work is free. You can redistribute it and/or modify it under the
 *           terms of the Do What The Fuck You Want To Public License, Version 2,
 *           as published by Sam Hocevar. See the COPYING file for more details.
 **/

/* Basic Ptty CSS */
.cmd_terminal {
    background-color: #aaa;
    color: #fff;
    font-size: 12px;
    font-family: "Menlo Regular","Lucida Console",Monaco,monospace,"Courier New",Fixed;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}
.cmd_terminal div { 
    clear: both;
    padding: 0 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 18px;
}
.cmd_terminal div:first {
    margin-bottom: 1em;
}
.cmd_terminal .cmd_terminal_content {
    margin: 10px 0 0 0;
}
.cmd_terminal .cmd_terminal_prompt {
    position: relative;
    overflow: hidden;
    padding: 0 24px 15px;
}
.cmd_terminal .cmd_terminal_ps, .cmd_terminal .cmd_terminal_sub { 
    float: left;
    clear: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
}

.cmd_terminal form { 
    float: left; 
    margin: 0px; 
    width: 75%; 
}
.cmd_terminal input { 
    background: transparent; 
    border: 0; 
    width: 100%; 
    font-size: 12px;
    outline: none;
    font-family: "Menlo Regular","Lucida Console",Monaco,monospace,"Courier New",Fixed;
}

.cmd_terminal .upl_container {
    position: relative;
    top: 0;
}
.cmd_terminal .upl_container.hide {
    position: absolute;
    top: -5000px;
}
.cmd_terminal input[type=file] {
    width: 220px;
}
.cmd_terminal input[type=password] {
    display: none;
}

/* Lists */
.cmd_terminal ul { white-space: normal; }
.cmd_terminal ul li { list-style: none; }
.cmd_terminal ul.ve-li{ display: inherit; }
.cmd_terminal ul.ho-li li{ display: inline; }
.cmd_terminal ul.sq-li li{
    min-width: 120px;
    min-height: 20px;
    display: -moz-inline-stack;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    margin: 2px;
    zoom: 1;
    *display: inline;
    _height: 20px;
}

/* boring theme */
.cmd_terminal_theme_boring,
.cmd_terminal_theme_boring input{ background-color: #000000; color: #ddd; letter-spacing: 1px; }
.cmd_terminal_theme_boring .cmd_terminal_active { font-weight: bold; }
.cmd_terminal_theme_boring .cmd_terminal_ps span::after { content: "SparkSQL>"; }
.cmd_terminal_theme_boring .cmd_terminal_sub span::after { content: "\0000a0>"; }

/* Loading */
.cmd_terminal_loading,
.cmd_terminal_progress {
    position: fixed;
    display: none;
    padding: 0 35px;
}
.cmd_terminal_loading span{
    display: block;
    font-size: 8em;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
    margin: auto;
    position: relative;
    top: 40%;
    opacity: 0.4;
}

.cmd_terminal_loading span{
    -webkit-animation: spin 4s linear infinite;
    -moz-animation: spin 4s linear infinite;
    -ms-animation: spin 4s linear infinite;
    -o-animation: spin 4s linear infinite;
    animation: spin 4s linear infinite;
}
.cmd_terminal_loading span::after { content: "⚙" }
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@-ms-keyframes spin { 100% { -ms-transform: rotate(360deg); } }
@-o-keyframes spin { 100% { -o-transform: rotate(360deg); } }
@keyframes spin { 100% { transform:rotate(360deg); } }