﻿.editor-container {
    /*padding: 10px 20px 25px;*/
    margin-bottom: 10px;
    background-color: #eeeeee;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.btn-toolbar {
    padding: 0 10px;
    font-size: 0;
    /*margin-top: 10px;*/
    padding-top: 10px;
    margin-bottom: 10px;
}

#editor { /* 編輯框 */
    height: 400px;
    background-color: white;
    border-collapse: separate;
    border: 1px solid rgb(204, 204, 204);
    padding: 4px;
    box-sizing: content-box;
    -webkit-box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px 0px inset;
    box-shadow: rgba(0, 0, 0, 0.0745098) 0px 1px 1px 0px inset;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
    border-top-left-radius: 3px;
    overflow: scroll;
    outline: none;
    position: relative;
    resize: vertical;
    font-size: 16px;
}

btn.dropdown {
    height: 34px;
    width: 42px;
}

#editor span {
    height: 24px;
    /*width: 24px;*/
    /*display: inline-block;*/
}

.btn-toolbar .btn {
    /* 工具列按鍵 */
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-toolbar .btn-info {
    /* 工具列按鍵，重寫一遍提高優先度 */
    color: #fff;
    background-color: #5bc0de;
    border-color: #46b8da;
}

.flex {
    display: flex;
}

.btn-right {
    position: absolute;
    right: 0;
    margin-right: 60px;
    width: 240px;
}

.dropdown_menu_btn {
    width: 65px;
    height: 47px;
}

.btn-group.show .dropdown_menu_list {
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

    .btn-group.show .dropdown_menu_list li:hover {
        background-color: #d4d4d4;
    }

    .btn-group.show .dropdown_menu_list li a {
        display: block;
    }

    .btn-group.show .dropdown_menu_list.show {
        width: 150px;
    }



/*------------------------------------------------------------------------ 以上編輯器、以下模板 ------------------------------------------------------------------------*/



#editor {
    word-wrap: break-word;
}

    #editor .editor_table td {
        outline: 1px #808080 dotted;
    }

        #editor .editor_table td img {
            width: 100%;
        }

    #editor .editor_table .td1, #editor .editor_table .td2, #editor .editor_table .td3 {
        vertical-align: top;
    }

    #editor .editor_table.table_1_100 {
        width: 100%;
    }

        #editor .editor_table.table_1_100 td {
            width: 100%;
        }

    #editor .editor_table.table_1_1 {
        width: 100%;
    }

        #editor .editor_table.table_1_1 td:first-child {
            width: 50%;
        }

        #editor .editor_table.table_1_1 td:last-child {
            width: 50%;
        }

    #editor .editor_table.table_1_2 {
        width: 100%;
    }

        #editor .editor_table.table_1_2 td:first-child {
            width: 33%;
        }

        #editor .editor_table.table_1_2 td:last-child {
            width: 66%;
        }

    #editor .editor_table.table_2_1 {
        width: 100%;
    }

        #editor .editor_table.table_2_1 td:first-child {
            width: 66%;
        }

        #editor .editor_table.table_2_1 td:last-child {
            width: 33%;
        }

    #editor .editor_table.table_1_1_1 {
        width: 100%;
    }

        #editor .editor_table.table_1_1_1 td {
            width: 33%;
        }

    #editor .editor_table.table_2_3 {
        width: 100%;
    }

        #editor .editor_table.table_2_3 td:first-child {
            width: 40%;
        }

        #editor .editor_table.table_2_3 td:last-child {
            width: 60%;
        }

    #editor .editor_table.table_3_2 {
        width: 100%;
    }

        #editor .editor_table.table_3_2 td:first-child {
            width: 60%;
        }

        #editor .editor_table.table_3_2 td:last-child {
            width: 40%;
        }

#editor .editor_table.table_1_1 td:first-child, #editor  .editor_table.table_1_2 td:first-child, #editor  .editor_table.table_2_1 td:first-child, #editor  .editor_table.table_2_3 td:first-child, #editor  .editor_table.table_3_2 td:first-child {
    padding-right: 8px;
}

#editor .editor_table.table_1_1 td:last-child, #editor  .editor_table.table_1_2 td:last-child, #editor  .editor_table.table_2_1 td:last-child, #editor  .editor_table.table_2_3 td:last-child, #editor  .editor_table.table_3_2 td:last-child {
    padding-left: 8px;
}

#editor .editor_table.table_1_1_1 td:first-child {
    padding-right: 10px;
}

#editor .editor_table.table_1_1_1 td:nth-child(2) {
    padding-left: 6px;
    padding-right: 6px;
}

#editor .editor_table.table_1_1_1 td:last-child {
    padding-left: 10px;
}

.News_content .editor_table td img {
    width: 100%;
}

.News_content .editor_table .td1, .News_content .editor_table .td2, .News_content .editor_table .td3 {
    vertical-align: top;
}

.News_content .editor_table.table_1_100 {
    width: 100%;
}

    .News_content .editor_table.table_1_100 td {
        width: 100%;
    }

.News_content .editor_table.table_1_1 {
    width: 100%;
}

    .News_content .editor_table.table_1_1 td:first-child {
        width: 50%;
    }

    .News_content .editor_table.table_1_1 td:last-child {
        width: 50%;
    }

.News_content .editor_table.table_1_2 {
    width: 100%;
}

    .News_content .editor_table.table_1_2 td:first-child {
        width: 33%;
    }

    .News_content .editor_table.table_1_2 td:last-child {
        width: 66%;
    }

.News_content .editor_table.table_2_1 {
    width: 100%;
}

    .News_content .editor_table.table_2_1 td:first-child {
        width: 66%;
    }

    .News_content .editor_table.table_2_1 td:last-child {
        width: 33%;
    }

.News_content .editor_table.table_1_1_1 {
    width: 100%;
}

    .News_content .editor_table.table_1_1_1 td {
        width: 33%;
    }

.News_content .editor_table.table_2_3 {
    width: 100%;
}

    .News_content .editor_table.table_2_3 td:first-child {
        width: 40%;
    }

    .News_content .editor_table.table_2_3 td:last-child {
        width: 60%;
    }

.News_content .editor_table.table_3_2 {
    width: 100%;
}

    .News_content .editor_table.table_3_2 td:first-child {
        width: 60%;
    }

    .News_content .editor_table.table_3_2 td:last-child {
        width: 40%;
    }

.News_content .editor_table.table_1_1 td:first-child, .News_content .editor_table.table_1_2 td:first-child, .News_content .editor_table.table_2_1 td:first-child, .News_content .editor_table.table_2_3 td:first-child, .News_content .editor_table.table_3_2 td:first-child {
    padding-right: 8px;
}

.News_content .editor_table.table_1_1 td:last-child, .News_content .editor_table.table_1_2 td:last-child, .News_content .editor_table.table_2_1 td:last-child, .News_content .editor_table.table_2_3 td:last-child, .News_content .editor_table.table_3_2 td:last-child {
    padding-left: 8px;
}

.News_content .editor_table.table_1_1_1 td:first-child {
    padding-right: 10px;
}

.News_content .editor_table.table_1_1_1 td:nth-child(2) {
    padding-left: 6px;
    padding-right: 6px;
}

.News_content .editor_table.table_1_1_1 td:last-child {
    padding-left: 10px;
}

@media screen and (max-width: 1200px) {
    .editor-container {
        width: 100%;
    }

    #editor {
        width: calc(100% - 10px);
    }

        #editor .editor_table {
            width: 100%;
        }
}

@media screen and (max-width: 991px) {
   
}

@media screen and (max-width: 550px) {
    #editor .editor_table tr {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        /*-webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;*/
    }

    /*#editor .editor_table.table_1_1 td, #editor .editor_table.table_1_2 td, #editor .editor_table.table_2_1 td, #editor .editor_table.table_2_3 td, #editor .editor_table.table_3_2 td, #editor .editor_table.table_1_1_1 td {
        width: 100%;
    }

        #editor .editor_table.table_1_1 td:first-child, #editor .editor_table.table_1_2 td:first-child, #editor .editor_table.table_2_1 td:first-child, #editor .editor_table.table_2_3 td:first-child, #editor .editor_table.table_3_2 td:first-child, #editor .editor_table.table_1_1_1 td:first-child {
            width: 100%;
        }

        #editor .editor_table.table_1_1 td:last-child, #editor .editor_table.table_1_2 td:last-child, #editor .editor_table.table_2_1 td:last-child, #editor .editor_table.table_2_3 td:last-child, #editor .editor_table.table_3_2 td:last-child, #editor .editor_table.table_1_1_1 td:last-child {
            width: 100%;
        }*/

    .News_content .editor_table tr {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        /*-webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;*/
    }

    /*----1_1_1間距8px----*/

    #editor .editor_table.table_1_1_1 td:first-child, .News_content .editor_table.table_1_1_1 td:first-child {
        padding-right: 5px;
    }

    #editor .editor_table.table_1_1_1 td:nth-child(2), .News_content .editor_table.table_1_1_1 td:nth-child(2) {
        padding-left: 3px;
        padding-right: 3px;
    }

    #editor .editor_table.table_1_1_1 td:last-child, .News_content .editor_table.table_1_1_1 td:last-child {
        padding-left: 5px;
    }
}


/*------------------------------------------------------------------------ 以上編輯器、以下模板 ------------------------------------------------------------------------*/



.News_content p {
    margin-bottom: 0;
}

/*預設思源黑體且16px*/
#editor, .News_content {
    font-family: 'Noto Sans TC', sans-serif;
    font-size:16px;
}


/*-----內文和編輯器一樣-----*/
.post-content ul {
    padding-left: 40px
}

    .post-content ul li {
        list-style: disc;
        list-style-type: disc;
    }

#editor ul {
    padding-left: 40px;
    display: flex;
    flex-direction: column;
}

    #editor ul li {
        list-style: disc;
        list-style-type: disc;
    }
