﻿
/* ===================================================
 * style.table-editor.css
 * ===================================================
 * Contains all styles of the table editor, which can
 * be used to add rows and columns, edit them and
 * delete them.
 * =================================================== */

/* Styles the table editor */
.table-editor {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}
.table-editor td {
    position: relative;
    border: 1px solid gray;
    padding: 0px;
}
.table-editor .management-buttons-left {
    width: 14px;
}
.table-editor .management-buttons-top {
    height: 14px;
}
.table-editor td > input[type='text'] {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
    border-style: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 20px;
}
.table-editor td > input[type='text']:hover {
    background-color: #F5F5F5;
}
.table-editor td > button {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    border-radius: 0 !important;
}
.table-editor td.selected > input[type='text']:hover {
    background-color: #F5F5F5;
}
.table-editor th {
    position: relative;
}
.table-editor .add-column {
    position: absolute;
    bottom: -1px;
    right: -7px;
    opacity: 0.08;
}
.table-editor .add-row {
    position: absolute;
    right: 1px;
    bottom: -9.5px;
    opacity: 0.08;
}
.table-editor .add-column:hover, .table-editor .add-row:hover {
    opacity: 1;
}
.table-editor .remove-column, .table-editor .remove-row {
    opacity: 0;
}
.table-editor th:hover .remove-column, .table-editor th:hover .remove-row {
    opacity: 1;
}

/* Adds the style for a table cell that is a link (makes the link inside the table as big as the cell itself, so that the user is able to click anywhere within the cell to invoke the link) */
a.btn-table {
    display: block;
    width: 100%;
}

.link-editor-popover input[type='text'] {
    margin-bottom: 5px;
}

.link-editor-popover button {
    margin-right: 5px;
}