/* * General control styling */ .table-control { /* TODO: this should be applied only when the control is active */ } .table-control .table-container { border: 1px solid #808c8d; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; overflow: hidden; } .table-control table { width: 100%; border-collapse: collapse; table-layout: fixed; } .table-control table td, .table-control table th { padding: 0; font-size: 13px; color: #555555; } .table-control table [data-view-container] { padding: 5px 10px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 28px; } .table-control table.headers:after { content: ' '; display: block; position: absolute; left: 1px; right: 1px; border-bottom: 1px solid #bdc3c7; } .table-control table.headers th { padding: 7px 10px; font-size: 13px; text-transform: uppercase; font-weight: 600; color: #333333; background: white; border-right: 1px solid #ecf0f1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .table-control table.headers th:last-child { border-right: none; } .table-control table.data td { border: 1px solid #ecf0f1; } .table-control table.data td .content-container { position: relative; padding: 1px; } .table-control table.data td.active { border-color: #5fb6f5; } .table-control table.data td.active .content-container { padding: 0; border: 1px solid #5fb6f5; } .table-control table.data td.active .content-container:before, .table-control table.data td.active .content-container:after { content: ' '; background: #5fb6f5; position: absolute; left: -2px; top: -2px; } .table-control table.data td.active .content-container:before { width: 1px; bottom: -2px; } .table-control table.data td.active .content-container:after { right: -2px; height: 1px; } .table-control table.data tr { background-color: white; } .table-control table.data tr:nth-child(2n) { background-color: #fbfbfb; } .table-control table.data tr:last-child td { border-bottom: none; } .table-control table.data td:first-child { border-left: none; } .table-control table.data td:last-child { border-right: none; } /* * String editor */ .table-control td[data-column-type=string] input[type=text] { width: 100%; height: 100%; display: block; outline: none; border: none; padding: 5px 10px; } /* * Checkbox editor */ .table-control td[data-column-type=checkbox] div[data-checkbox-element] { width: 16px; height: 16px; border-radius: 2px; background-color: #FFFFFF; border: 1px solid #999999; margin: 5px 5px 5px 10px; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .table-control td[data-column-type=checkbox] div[data-checkbox-element]:hover { border-color: #808080; color: #4d4d4d; } .table-control td[data-column-type=checkbox] div[data-checkbox-element].checked { border-width: 2px; } .table-control td[data-column-type=checkbox] div[data-checkbox-element].checked:before { font-family: FontAwesome; font-weight: normal; font-style: normal; text-decoration: inherit; -webkit-font-smoothing: antialiased; *margin-right: .3em; content: "\f00c"; font-size: 10px; position: relative; left: 1px; top: -4px; } .table-control td[data-column-type=checkbox] div[data-checkbox-element]:focus { border-color: #5fb6f5; outline: none; } /* * Dropdown editor */ .table-control td[data-column-type=dropdown] [data-view-container] { padding-right: 20px; position: relative; cursor: pointer; } .table-control td[data-column-type=dropdown] [data-view-container]:after { font-family: FontAwesome; font-weight: normal; font-style: normal; text-decoration: inherit; -webkit-font-smoothing: antialiased; *margin-right: .3em; content: "\f107"; font-size: 13px; line-height: 100%; color: #95a5a6; position: absolute; top: 8px; right: 10px; } .table-control td[data-column-type=dropdown] [data-view-container]:hover:after { color: #0181b9; } .table-control td[data-column-type=dropdown] [data-view-container] select { display: none; }