ORIENT/modules/backend/widgets/table/assets/css/table.css

346 lines
8.3 KiB
CSS
Raw Normal View History

2014-12-02 06:31:11 +00:00
/*
* General control styling
*/
.control-table .table-container {
border: 1px solid #e0e0e0;
2014-12-02 06:31:11 +00:00
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
overflow: hidden;
2014-12-16 06:49:33 +00:00
margin-bottom: 15px;
2014-12-02 06:31:11 +00:00
}
.control-table .table-container:last-child {
margin-bottom: 0;
}
.control-table.active .table-container {
border-color: #808c8d;
}
.control-table table {
2014-12-02 06:31:11 +00:00
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
.control-table table td,
.control-table table th {
2014-12-02 06:31:11 +00:00
padding: 0;
font-size: 13px;
color: #555555;
}
.control-table table [data-view-container] {
2014-12-02 06:31:11 +00:00
padding: 5px 10px;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2014-12-03 05:46:54 +00:00
min-height: 28px;
2014-12-02 06:31:11 +00:00
}
.control-table table.headers:after {
2014-12-02 06:31:11 +00:00
content: ' ';
display: block;
position: absolute;
left: 1px;
right: 1px;
margin-top: -1px;
border-bottom: 1px solid #e0e0e0;
2014-12-02 06:31:11 +00:00
}
.control-table table.headers th {
2014-12-02 06:31:11 +00:00
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;
}
.control-table table.headers th [data-view-container] {
padding-bottom: 6px;
}
.control-table table.headers th:last-child {
2014-12-02 06:31:11 +00:00
border-right: none;
}
.control-table.active table.headers:after {
border-bottom-color: #808c8d;
}
.control-table table.data td {
2014-12-02 06:31:11 +00:00
border: 1px solid #ecf0f1;
}
.control-table table.data td .content-container {
2014-12-02 06:31:11 +00:00
position: relative;
padding: 1px;
}
.control-table table.data td.active {
border-color: #5fb6f5 !important;
2014-12-02 06:31:11 +00:00
}
.control-table table.data td.active .content-container {
2014-12-02 06:31:11 +00:00
padding: 0;
2014-12-03 05:46:54 +00:00
border: 1px solid #5fb6f5;
2014-12-02 06:31:11 +00:00
}
.control-table table.data td.active .content-container:before,
.control-table table.data td.active .content-container:after {
2014-12-02 06:31:11 +00:00
content: ' ';
2014-12-03 05:46:54 +00:00
background: #5fb6f5;
2014-12-02 06:31:11 +00:00
position: absolute;
left: -2px;
top: -2px;
}
.control-table table.data td.active .content-container:before {
2014-12-02 06:31:11 +00:00
width: 1px;
bottom: -2px;
}
.control-table table.data td.active .content-container:after {
2014-12-02 06:31:11 +00:00
right: -2px;
height: 1px;
}
.control-table table.data tr {
2014-12-02 06:31:11 +00:00
background-color: white;
}
.control-table table.data tr:nth-child(2n) {
2014-12-02 06:31:11 +00:00
background-color: #fbfbfb;
}
.control-table table.data tr:first-child td {
border-top: none;
}
.control-table table.data tr:last-child td {
2014-12-02 06:31:11 +00:00
border-bottom: none;
}
.control-table table.data td:first-child {
2014-12-02 06:31:11 +00:00
border-left: none;
}
.control-table table.data td:last-child {
2014-12-02 06:31:11 +00:00
border-right: none;
}
.control-table .control-scrollbar > div {
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
overflow: hidden;
}
.control-table .control-scrollbar table.data tr:last-child td {
border-bottom: 1px solid #ecf0f1;
}
.control-table .toolbar {
2014-12-15 06:34:37 +00:00
background: white;
border-bottom: 1px solid #e0e0e0;
2014-12-15 06:34:37 +00:00
}
.control-table .toolbar a {
2014-12-15 06:34:37 +00:00
color: #323e50;
padding: 10px;
opacity: 0.5;
filter: alpha(opacity=50);
}
.control-table .toolbar a:hover {
2014-12-15 06:34:37 +00:00
opacity: 1;
filter: alpha(opacity=100);
}
.control-table .toolbar a:before {
2014-12-15 06:34:37 +00:00
display: inline-block;
content: ' ';
width: 16px;
height: 16px;
margin-right: 8px;
position: relative;
top: 3px;
background: transparent url(../images/table-icons.gif) no-repeat;
background-position: 0 0;
background-size: 32px auto;
}
.control-table .toolbar a.add-table-row-above:before {
2014-12-15 06:34:37 +00:00
background-position: 0 -56px;
}
.control-table .toolbar a.delete-table-row:before {
2014-12-15 06:34:37 +00:00
background-position: 0 -113px;
}
.control-table.active .toolbar {
border-bottom-color: #808c8d;
}
.control-table .pagination ul {
2014-12-16 06:49:33 +00:00
padding: 0;
margin-bottom: 15px;
}
.control-table .pagination ul li {
2014-12-16 06:49:33 +00:00
list-style: none;
padding: 4px 6px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
display: inline-block;
margin-right: 5px;
font-size: 12px;
background: #ecf0f1;
line-height: 100%;
}
.control-table .pagination ul li a {
2014-12-16 06:49:33 +00:00
text-decoration: none;
color: #95a5a6;
}
.control-table .pagination ul li.active {
2014-12-16 06:49:33 +00:00
background: #5fb6f5;
}
.control-table .pagination ul li.active a {
2014-12-16 06:49:33 +00:00
color: #ffffff;
}
2014-12-15 06:34:37 +00:00
@media only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-devicepixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {
.control-table .toolbar a:before {
2014-12-15 06:34:37 +00:00
background-position: 0px -9px;
background-size: 16px auto;
}
.control-table .toolbar a.add-table-row-above:before {
2014-12-15 06:34:37 +00:00
background-position: 0 -39px;
}
.control-table .toolbar a.delete-table-row:before {
2014-12-15 06:34:37 +00:00
background-position: 0 -66px;
}
}
2014-12-02 06:31:11 +00:00
/*
* String editor
*/
.control-table td[data-column-type=string] input[type=text] {
2014-12-02 06:31:11 +00:00
width: 100%;
height: 100%;
display: block;
outline: none;
border: none;
padding: 5px 10px;
}
2014-12-03 05:46:54 +00:00
/*
* Checkbox editor
*/
.control-table td[data-column-type=checkbox] div[data-checkbox-element] {
2014-12-03 05:46:54 +00:00
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;
}
.control-table td[data-column-type=checkbox] div[data-checkbox-element]:hover {
2014-12-03 05:46:54 +00:00
border-color: #808080;
color: #4d4d4d;
}
.control-table td[data-column-type=checkbox] div[data-checkbox-element].checked {
2014-12-03 05:46:54 +00:00
border-width: 2px;
}
.control-table td[data-column-type=checkbox] div[data-checkbox-element].checked:before {
2014-12-03 05:46:54 +00:00
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;
}
.control-table td[data-column-type=checkbox] div[data-checkbox-element]:focus {
2014-12-03 05:46:54 +00:00
border-color: #5fb6f5;
outline: none;
}
2014-12-04 06:48:16 +00:00
/*
* Dropdown editor
*/
.control-table td[data-column-type=dropdown] {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.control-table td[data-column-type=dropdown] [data-view-container] {
2014-12-04 06:48:16 +00:00
padding-right: 20px;
position: relative;
cursor: pointer;
}
.control-table td[data-column-type=dropdown] [data-view-container]:after {
2014-12-04 06:48:16 +00:00
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;
}
.control-table td[data-column-type=dropdown] [data-view-container]:hover:after {
2014-12-04 06:48:16 +00:00
color: #0181b9;
}
.control-table td[data-column-type=dropdown] [data-dropdown-open=true] {
background: white;
}
.control-table td[data-column-type=dropdown] [data-dropdown-open=true] [data-view-container]:after {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
*margin-right: .3em;
content: "\f106";
}
.control-table td[data-column-type=dropdown] .content-container {
outline: none;
}
html.cssanimations .control-table td[data-column-type=dropdown] [data-view-container].loading:after {
background-image: url(../../../../assets/images/loading-indicator-transparent.svg);
background-size: 15px 15px;
background-position: 50% 50%;
position: absolute;
width: 15px;
height: 15px;
top: 6px;
right: 5px;
content: ' ';
-webkit-animation: spin 1s linear infinite;
animation: spin 1s linear infinite;
}
.table-control-dropdown-list {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
position: absolute;
background: white;
border: 1px solid #808c8d;
border-top: none;
padding-top: 1px;
overflow: hidden;
z-index: 1000;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
.table-control-dropdown-list ul {
border-top: 1px solid #ecf0f1;
padding: 0;
margin: 0;
max-height: 200px;
overflow: auto;
}
.table-control-dropdown-list li {
list-style: none;
font-size: 13px;
color: #555555;
padding: 5px 10px;
cursor: pointer;
outline: none;
}
.table-control-dropdown-list li:hover,
.table-control-dropdown-list li:focus,
.table-control-dropdown-list li.selected {
background: #5fb6f5;
color: white;
}