Theming for responsive table

pull/1047/head
Cagatay Civici 2021-02-25 12:59:03 +03:00
parent 48ae20bef1
commit 7aece338f2
35 changed files with 111 additions and 2 deletions

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(100, 181, 246, 0.16); background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(129, 199, 132, 0.16); background: rgba(129, 199, 132, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(255, 213, 79, 0.16); background: rgba(255, 213, 79, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(186, 104, 200, 0.16); background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #8dd0ff; background: #8dd0ff;
color: #151515; color: #151515;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #c298d8; background: #c298d8;
color: #151515; color: #151515;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #007bff; background: #007bff;
color: #ffffff; color: #ffffff;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #883cae; background: #883cae;
color: #ffffff; color: #ffffff;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #edebe9; background: #edebe9;
color: #323130; color: #323130;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #FFE082; background: #FFE082;
color: #212529; color: #212529;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #81D4FA; background: #81D4FA;
color: #212529; color: #212529;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #C5E1A5; background: #C5E1A5;
color: #212529; color: #212529;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #F48FB1; background: #F48FB1;
color: #212529; color: #212529;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(206, 147, 216, 0.16); background: rgba(206, 147, 216, 0.16);
color: #CE93D8; color: #CE93D8;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(159, 168, 218, 0.16); background: rgba(159, 168, 218, 0.16);
color: #9FA8DA; color: #9FA8DA;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(103, 58, 183, 0.12); background: rgba(103, 58, 183, 0.12);
color: #673AB7; color: #673AB7;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(63, 81, 181, 0.12); background: rgba(63, 81, 181, 0.12);
color: #3F51B5; color: #3F51B5;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(103, 58, 183, 0.16); background: rgba(103, 58, 183, 0.16);
color: #673AB7; color: #673AB7;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(63, 81, 181, 0.16); background: rgba(63, 81, 181, 0.16);
color: #3F51B5; color: #3F51B5;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(103, 58, 183, 0.12); background: rgba(103, 58, 183, 0.12);
color: #673AB7; color: #673AB7;

View File

@ -2151,6 +2151,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 500;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(63, 81, 181, 0.12); background: rgba(63, 81, 181, 0.12);
color: #3F51B5; color: #3F51B5;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #e02365; background: #e02365;
color: #ffffff; color: #ffffff;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #007ad9; background: #007ad9;
color: #ffffff; color: #ffffff;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #41b883; background: #41b883;
color: #ffffff; color: #ffffff;

View File

@ -2139,6 +2139,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #007ad9; background: #007ad9;
color: #ffffff; color: #ffffff;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 700;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #AFD3C8; background: #AFD3C8;
color: #385048; color: #385048;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #E3F2FD; background: #E3F2FD;
color: #495057; color: #495057;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #E8F5E9; background: #E8F5E9;
color: #495057; color: #495057;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #FFF3E0; background: #FFF3E0;
color: #495057; color: #495057;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: #F3E5F5; background: #F3E5F5;
color: #495057; color: #495057;

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(100, 181, 246, 0.16); background: rgba(100, 181, 246, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(129, 199, 132, 0.16); background: rgba(129, 199, 132, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(255, 213, 79, 0.16); background: rgba(255, 213, 79, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -2127,6 +2127,9 @@
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem; margin-right: 0.5rem;
} }
.p-datatable .p-datatable-tbody > tr > td > .p-column-title {
font-weight: 600;
}
.p-datatable .p-datatable-tbody > tr.p-highlight { .p-datatable .p-datatable-tbody > tr.p-highlight {
background: rgba(186, 104, 200, 0.16); background: rgba(186, 104, 200, 0.16);
color: rgba(255, 255, 255, 0.87); color: rgba(255, 255, 255, 0.87);

View File

@ -1580,8 +1580,12 @@ export default {
display: none !important; display: none !important;
} }
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr { .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td {
border-bottom: 1px solid var(--surface-d); display: flex;
width: 100%;
align-items: center;
justify-content: space-between;
border-width: 0 none;
} }
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td { .p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td {
@ -1589,6 +1593,9 @@ export default {
width: 100%; width: 100%;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
}
.p-datatable[${this.attributeSelector}] .p-datatable-tbody > tr > td:not(:last-child) {
border: 0 none; border: 0 none;
} }