Adding table

This commit is contained in:
Fabian
2019-09-17 22:43:36 +02:00
parent d687d260d5
commit c37137805e
8 changed files with 60 additions and 12 deletions

View File

@ -49,4 +49,5 @@ $button-color: #CCCCCC !default;
@import "./theme/_input.scss";
@import "./theme/_list.scss";
@import "./theme/_header.scss";
@import "./theme/_card.scss";
@import "./theme/_card.scss";
@import "./theme/table.scss";

View File

@ -34,4 +34,5 @@ $on-error: var(--on-error) !default;
@import "./base/_list.scss";
@import "./base/_header.scss";
@import "./base/_card.scss";
@import "./base/_grid.scss";
@import "./base/_grid.scss";
@import "./base/table.scss";

View File

@ -11,11 +11,4 @@
li:nth-child(n+2) {
border-top: 1px solid rgb(128, 128, 128);
}
}
// .list-clickable {
// // li:hover {
// // background: darken-brighten-color($background, 5%);
// // }
// }
}

16
src/base/_table.scss Normal file
View File

@ -0,0 +1,16 @@
.table {
border-collapse: collapse;
width: 100%;
th,
td {
text-align: left;
padding: 8px;
}
tr:first-child {
background-color: $primary;
color: var(--on-primary);
}
}

5
src/theme/_table.scss Normal file
View File

@ -0,0 +1,5 @@
.table {
tr:nth-child(odd):not(:first-child) {
background: darken-brighten-color($background, 10%)
}
}