1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00
appwrite/public/styles/tabels.less

171 lines
2.8 KiB
Plaintext
Raw Normal View History

2019-05-09 18:54:39 +12:00
table {
width: ~"calc(100% + 60px)";
border-collapse: collapse;
margin: -30px;
border-radius: 10px;
overflow: hidden;
position: relative;
table-layout: fixed;
2020-04-30 04:56:34 +12:00
&.y-scroll {
overflow-y: auto;
}
2019-05-09 18:54:39 +12:00
thead {
box-shadow: 0 0 2px rgba(0,0,0,.25);
2020-02-11 06:04:57 +13:00
border-bottom: solid 1px var(--config-color-fade-super);
2019-08-24 07:07:17 +12:00
font-size: 14px;
2019-05-09 18:54:39 +12:00
2020-05-14 09:11:35 +12:00
// th {
// position: sticky;
// top: -30px;
// z-index: 3;
// }
2019-05-09 18:54:39 +12:00
}
&.small {
2019-08-24 07:07:17 +12:00
font-size: 14px;
2019-05-09 18:54:39 +12:00
}
&.open-end {
tbody tr:last-child {
border-bottom: none;
font-weight: bold;
background: #f7fbf7;
}
}
&.full {
tbody td, tbody th {
vertical-align: top;
white-space: normal;
overflow: auto;
line-height: 24px;
padding-top: 20px;
padding-bottom: 20px;
height: auto;
}
}
.avatar {
width: 30px;
height: 30px;
}
tr {
2020-02-11 06:04:57 +13:00
border-bottom: solid 1px var(--config-color-fade-super);
2019-05-09 18:54:39 +12:00
&:last-child {
border-bottom: none;
}
}
tr:nth-child(even) {
2020-02-25 01:56:57 +13:00
background: var(--config-color-background-fade-super);
2019-05-09 18:54:39 +12:00
}
2020-04-29 20:36:55 +12:00
tr.selected {
background: var(--config-note-background);
td, td span {
font-weight: 500;
}
}
2019-05-09 18:54:39 +12:00
th {
text-align: @config-start;
font-weight: normal;
i {
2020-02-11 06:04:57 +13:00
color: var(--config-color-fade);
2019-05-09 18:54:39 +12:00
font-size: 10px;
display: inline-block;
vertical-align: top;
line-height: 16px;
padding: 0 3px;
}
}
td, th {
height: 65px;
padding: 0 15px;
line-height: 50px;
&:first-child {
.func-padding-start(30px);
}
&:last-child {
.func-padding-end(30px);
}
}
td, th {
//text-overflow: ellipsis;
overflow: hidden;
text-overflow: ellipsis;
2019-05-09 18:54:39 +12:00
white-space: nowrap;
}
&.vertical {
@media @phones, @tablets {
2020-02-11 06:04:57 +13:00
border-top: solid 1px var(--config-color-fade-super);
2019-05-09 18:54:39 +12:00
display: block;
overflow: hidden;
padding-top: 12px;
2019-08-14 16:57:27 +12:00
.hide {
display: none;
}
2019-05-09 18:54:39 +12:00
thead, tbody, tr, td, th {
width:100%;
display: block;
}
tr, th {
padding-top: 12px;
padding-bottom: 12px;
&:first-child {
padding-top: 0;
}
}
td, th {
2019-08-28 11:02:19 +12:00
padding: 5px 20px!important;
2019-05-09 18:54:39 +12:00
text-overflow: ellipsis;
white-space: normal;
2019-08-14 16:57:27 +12:00
height: 40px;
line-height: 40px;
2020-02-28 20:37:09 +13:00
width: ~"calc(100% - 40px)";
2019-05-09 18:54:39 +12:00
&:first-child, &:last-child {
padding: 0 10px;
}
&:last-child {
padding-bottom: 0;
}
p {
display: inline-block;
width: ~"calc(100% - 40px)";
}
}
2020-02-21 09:44:35 +13:00
td:not([data-title=""]) {
&:before {
content: attr(data-title);
margin-right: 4px;
font-weight: 400;
}
2019-05-09 18:54:39 +12:00
}
thead {
display: none;
}
}
}
}