/* 问题列表页 */
.question-list {
    padding: 12px 10px;
    word-wrap: break-word;
    border-bottom: 1px solid #EEE;
}

.question-list .info {
    width: 55px;
    float: left;
}

.question-list .info > span {
    display: block;
    padding: 0 4px;
    height: 22px;
    line-height: 22px;
    font-size: 14px;
    color: #FFF;
    overflow: hidden;
}

.question-list .info .num {
    padding-left: 5px;
}

.question-list .info .comment {
    background-color: #d9534f;
}

.question-list .info .commented {
    background-color: #5cb85c;
}

.question-list .info .like {
    background-color: #f3f3f3;
    color: #999;
}

.question-list .summary {
    margin-left: 75px;
}

.question-list .summary h5 {
    font-size: 15px;
    margin-top: 3px;
    margin-bottom: 4px;
}

.question-list .summary .meta {
    margin-right: 7px;
}

/* 问题详细页 */
.question, .answer, .answer-form {
    margin-top: 20px;
    padding-top: 20px;
}

.question, .answer {
    position: relative;
}

.answer {
    border-top: 1px solid #DDD;
}

.question-title h3 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #EEE;
}

.question-cell {
    float: left;
    width: 44px;
    text-align: center;
}

.question-like, .question-hate, .question-fav {
    display: block;
    color: #777;
}

.question-like, .question-hate {
    background-color: #f3f3f3;
    padding: 6px 6px 5px;
    border: 1px solid #DDD;
    border-bottom: 1px solid #CCC;
    cursor: pointer;
    font-size: 12px;
    text-align: right;
    line-height: 1;
    text-shadow: 0 1px 0 white;
    -webkit-box-shadow: inset 0 1px 0 white, 0 1px 2px #e3e3e3;
    -moz-box-shadow: inset 0 1px 0 white, 0 1px 2px #e3e3e3;
    box-shadow: inset 0 1px 0 white, 0 1px 2px #e3e3e3;
}

.question-like:hover, .question-hate:hover, .question-fav:hover, .question-like:focus, .question-hate:focus, .question-fav:focus {
    text-decoration: none;
}

.question-like:hover, .question-hate:hover, .question-fav:hover, .question-like.active, .question-hate.active, .question-fav.active {
    border-color: #CCC;
    color: #428bca;
}

.question-like > .num, .question-hate > .num {
    display: block;
    margin-bottom: 6px;
    border-bottom: 1px solid #DDD;
    padding: 0 0 7px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.question-hate, .question-author {
    margin-top: 5px;
}

.question-fav {
    margin-top: 20px;
    margin-bottom: 10px;
}

.question-fav > span {
    font-size: 24px;
    width: 100%;
}

.question-content {
    margin-left: 64px;
    margin-bottom: 55px;
}
.question-post img, #wmd-preview img {
    max-width: 100%;
}

.question-author {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 150px;
    color: #999;
}

.question-author p {
    margin-bottom: 0;
}

.question-author .avatar-sm {
    float: left;
    margin-top: 4px;
    margin-right: 10px;
}

.question-author h5 {
    margin-top: 0;
    margin-bottom: 2px;
}

@media only screen and (max-width: 767px) {
    .question-cell {
        float: right;
        margin-right: 10px;
    }

    .question-author {
        position: inherit;
    }

    .question-content {
        margin: 0;
    }
}

/* Markdown 编辑器样式 */
#wmd-button-bar {
    width: 100%;
}

#wmd-input {
    border-radius: 2px;
    resize: vertical;
}

#wmd-preview {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px dashed #ccc;
}

.wmd-button-row {
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    margin-top: 10px;
    padding: 0px;
    height: 20px;
}

.wmd-spacer {
    width: 1px;
    height: 20px;
    margin-left: 14px;

    position: absolute;
    background-color: Silver;
    display: inline-block;
    list-style: none;
}

.wmd-button {
    width: 20px;
    height: 20px;
    padding-left: 2px;
    padding-right: 3px;
    position: absolute;
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

.wmd-button > span {
    background-image: url(../images/wmd-buttons.png);
    background-repeat: no-repeat;
    background-position: 0px 0px;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.wmd-spacer1 {
    left: 50px;
}

.wmd-spacer2 {
    left: 175px;
}

.wmd-spacer3 {
    left: 300px;
}

.wmd-prompt-background {
    background-color: Black;
}

.wmd-prompt-dialog {
    border: 1px solid #999999;
    background-color: #F5F5F5;
}

.wmd-prompt-dialog > div {
    font-size: 0.8em;
    font-family: arial, helvetica, sans-serif;
}

.wmd-prompt-dialog > form > input[type="text"] {
    border: 1px solid #999999;
    color: black;
}

.wmd-prompt-dialog > form > input[type="button"] {
    border: 1px solid #888888;
    font-family: trebuchet MS, helvetica, sans-serif;
    font-size: 0.8em;
    font-weight: bold;
}