ten-design-vue
Version:
ten-vue
391 lines (390 loc) • 8.62 kB
CSS
/* dependencies icon,loading,checkbox,button */
/**
* 文字部分
* size 大小,line 行高, color 颜色
*/
/* button */
/* input */
/* transfer */
/* alert */
/* menu */
/* message */
/* modal */
/* badge */
/* tag */
/* progress */
/* popup */
/* tooltip */
/* loading */
/* tabs */
/* check */
/* mention */
/* popup */
/* steps */
/* tabs */
/* modal */
/* form */
/* table */
/* pagination */
/* upload */
/* collapse */
/* anchor */
/* list */
.ten-table table {
width: 100%;
border-bottom: 1px solid #f0f0f0;
border-top: 1px solid #f0f0f0;
border-collapse: collapse;
}
.ten-table table td,
.ten-table table th {
padding: 10px 18px;
line-height: 19px;
text-align: left;
font-weight: 400;
}
.ten-table table td:first-child,
.ten-table table th:first-child {
padding-left: 28px;
}
.ten-table table .ten-table__table-cell--empty-text {
text-align: center;
color: #999;
}
.ten-table table .ten-table__table-cell--invisible {
visibility: hidden;
}
.ten-table table tbody {
background: #fff;
}
.ten-table table tbody tr {
border-top: 1px solid #f0f0f0;
font-size: 12px;
color: #333;
}
.ten-table table .ten-table-td-expand {
padding: 0;
box-shadow: inset 0px 15px 10px -15px #f0f0f0;
background-color: #FBFBFB;
}
.ten-table table .resizable {
position: relative;
}
.ten-table table .resizable .resizable-handle {
border: 1px;
position: absolute;
width: 10px;
top: 0;
bottom: 0;
right: -5px;
cursor: col-resize;
z-index: 1;
}
.ten-table-fixed {
overflow-y: auto;
overflow-x: hidden;
position: relative;
}
.ten-table-fixed table {
table-layout: fixed;
}
.ten-table-fixed-head {
margin-bottom: -20px;
overflow: scroll hidden;
}
.ten-table-fixed-body {
overflow-y: auto;
overflow-x: scroll;
position: relative;
background: #fff;
}
.ten-table-fixed-body table {
border-top: none;
}
.ten-table-fixed-body tr:first-child {
border-top: none;
}
.ten-table-fixed-left {
position: absolute;
left: 0;
top: 0;
z-index: 5;
overflow: hidden;
}
.ten-table-fixed-left .ten-table-fixed-body,
.ten-table-fixed-right .ten-table-fixed-body {
overflow: hidden auto;
}
.ten-table-fixed-left-shadow {
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.1);
}
.ten-table-fixed-right {
position: absolute;
right: 0;
top: 0;
z-index: 5;
overflow: hidden;
}
.ten-table-fixed-right-shadow {
box-shadow: -6px 0 6px -4px rgba(0, 0, 0, 0.15);
}
.ten-table-thead {
background: #fbfbfb;
}
.ten-table-thead th {
font-size: 14px;
color: #333;
padding: 18px 18px;
}
.ten-table-thead th + th {
border-left: 1px solid #f0f0f0;
}
.ten-table-thead-title {
display: block;
}
.ten-table-thead-sorter {
display: table-cell;
vertical-align: middle;
}
.ten-table-thead-sorter-inner {
height: 1em;
margin-left: 12px;
color: #bfbfbf;
line-height: 1em;
text-align: center;
transition: all 0.3s;
position: relative;
}
.ten-table-thead-sorter-up,
.ten-table-thead-sorter-down {
position: absolute;
left: 0;
border-style: solid;
height: 0;
width: 0;
border: solid transparent;
transition: all 0.3s;
}
.ten-table-thead-sorter-up {
border-width: 0 4px 6px;
border-bottom-color: #999;
bottom: 55%;
}
.ten-table-thead-sorter-down {
top: 2px;
border-width: 6px 4px 0;
border-top-color: #999;
top: 55%;
}
.ten-table-thead-sorter--asc .ten-table-thead-sorter-up {
border-bottom-color: #0052d9;
}
.ten-table-thead-sorter--desc .ten-table-thead-sorter-down {
border-top-color: #0052d9;
}
.ten-table-thead-th-sorter {
cursor: pointer;
transition: all 0.3s;
}
.ten-table-thead-th-sorter:hover {
background: #d9d9d9;
}
.ten-table-expand {
vertical-align: middle;
font-size: 14px;
margin-right: 8px;
cursor: pointer;
}
.ten-table-expand i {
color: #666;
}
.ten-table .ten-checkbox {
margin-left: 0;
}
.ten-table a {
font-size: 12px;
color: #0052d9;
letter-spacing: 0.1px;
cursor: pointer;
}
.ten-table_page {
height: 56px;
background: #fbfbfb;
text-align: right;
padding-top: 12px;
padding-right: 24px;
}
.ten-table--vue {
position: relative;
}
.ten-table--vue.ten-table .ten-table__table {
overflow: hidden;
}
.ten-table--vue.ten-table .ten-table__table-head {
overflow-x: hidden;
border-top: 1px solid #f0f0f0;
background: #fbfbfb;
}
.ten-table--vue.ten-table .ten-table__table-body {
overflow-x: scroll;
overflow-y: auto;
border-bottom: 1px solid #f0f0f0;
background: #fff;
}
.ten-table--vue.ten-table .ten-table__table-row--expand {
background: #fbfbfb;
box-shadow: inset 0px 15px 10px -15px #f0f0f0;
}
.ten-table--vue.ten-table .ten-table__table-row--hover,
.ten-table--vue.ten-table .ten-table__table-row--selected {
background: #e8f1ff;
}
.ten-table--vue.ten-table .ten-table__table-cell {
box-sizing: border-box;
padding: 10px 18px;
word-break: break-all;
}
.ten-table--vue.ten-table .ten-table__table-cell--align-left {
text-align: left;
}
.ten-table--vue.ten-table .ten-table__table-cell--align-center {
text-align: center;
}
.ten-table--vue.ten-table .ten-table__table-cell--align-right {
text-align: right;
}
.ten-table--vue.ten-table .ten-table__table-cell .sorter-wrapper {
position: relative;
margin-left: 12px;
}
.ten-table--vue.ten-table .ten-table__table-cell .sorter-asc,
.ten-table--vue.ten-table .ten-table__table-cell .sorter-desc {
position: absolute;
left: 0;
border-style: solid;
height: 0;
width: 0;
border-color: transparent;
transition: all 0.3s;
}
.ten-table--vue.ten-table .ten-table__table-cell .sorter-asc {
border-width: 0 4px 6px;
border-bottom-color: #999;
bottom: 55%;
}
.ten-table--vue.ten-table .ten-table__table-cell .sorter-desc {
top: 2px;
border-width: 6px 4px 0;
border-top-color: #999;
top: 55%;
}
.ten-table--vue.ten-table .ten-table__table-cell--sortable-asc .sorter-asc {
border-bottom-color: #0052d9;
}
.ten-table--vue.ten-table .ten-table__table-cell--sortable-desc .sorter-desc {
border-top-color: #0052d9;
}
.ten-table--vue.ten-table .ten-table__table-cell .expand {
color: #bfbfbf;
}
.ten-table--vue.ten-table .ten-table__table-cell--empty-text {
text-align: center;
color: #999;
}
.ten-table--vue.ten-table .ten-table__table--fixed {
position: absolute;
top: 0;
bottom: 0;
left: 0;
overflow: hidden;
}
.ten-table--vue.ten-table .ten-table__table--fixed .ten-table__table-body {
overflow-x: hidden;
}
.ten-table--vue.ten-table .ten-table__table--fixed-right {
left: auto;
right: 0;
box-shadow: -6px 0 6px -4px rgba(0, 0, 0, 0.15);
}
.ten-table--vue.ten-table .ten-table__table--fixed-right .ten-table__table-head,
.ten-table--vue.ten-table .ten-table__table--fixed-right .ten-table__table-body {
position: absolute;
left: auto;
right: 0;
top: 0;
}
.ten-table--vue.ten-table .ten-table__table--fixed-right.is-scrolling--right {
box-shadow: none;
}
.ten-table--vue.ten-table .ten-table__table--fixed-left {
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.1);
}
.ten-table--vue.ten-table .ten-table__table--fixed-left.is-scrolling--left {
box-shadow: none;
}
.ten-table--vue.ten-table table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
border: none;
}
.ten-table--vue.ten-table table td,
.ten-table--vue.ten-table table th {
padding: 0;
}
.ten-table--vue.ten-table table td.is-center,
.ten-table--vue.ten-table table th.is-center {
text-align: center;
}
.ten-table--vue.ten-table table td.is-left,
.ten-table--vue.ten-table table th.is-left {
text-align: left;
}
.ten-table--vue.ten-table table td.is-right,
.ten-table--vue.ten-table table th.is-right {
text-align: right;
}
.ten-table--vue.ten-table table th {
background: #fbfbfb;
border-bottom: 1px solid #f0f0f0;
font-size: 14px;
color: #333;
}
.ten-table--vue.ten-table table th.sortable {
cursor: pointer;
transition: all 0.3s;
}
.ten-table--vue.ten-table table th.sortable:hover {
background: #d9d9d9;
}
.ten-table--vue.ten-table table th + th {
border-left: 1px solid #f0f0f0;
}
.ten-table--vue.ten-table table tr:first-child {
border-top: none;
}
.ten-table--vue.ten-table table td.first-child,
.ten-table--vue.ten-table table th:first-child {
padding-left: 28px;
}
.ten-table--vue + .ten-pagination {
margin-top: 16px;
text-align: right;
}
/**
* 紧凑版变量覆写
* 如发现需要用到的变量没有定义,先在样式文件中抽出来在 vars.less 中添加该变量
* 变量命名方式 组件名-属性-修饰 如 button-fontsize-small
*/
/* input */
/* check */
/* select */
/* popup */
/* menu */
/* steps */
/* tabs */
/* modal */
/* table */
/* pagination */
/* upload */
/* form */