You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plain-ui/src/scss/components/_table.scss

52 lines
1.0 KiB

3 years ago
/**
*
*
*
*/
@mixin plain-ui__component__table()
3 years ago
{
.table {
width: 100%;
3 years ago
border: 1px solid lighten($plain-ui__primary, 55%);
background: var(--white);
3 years ago
&--striped {
tr {
&:nth-child(even) {
3 years ago
background-color: lighten($plain-ui__primary, 75%);
}
}
}
&--scroll {
overflow-x: auto;
}
td {
3 years ago
color: var(--text);
}
td,
th {
text-align: left;
3 years ago
border-bottom: 1px solid lighten($plain-ui__primary, 55%);
padding: 0.5em 1.25em;
//@include crispy__media-breakpoints('padding', $crispy__table__padding-breakpoints);
}
th {
3 years ago
color: white;
3 years ago
background-color: $plain-ui__primary;
}
tr:hover {
3 years ago
background-color: lighten($plain-ui__primary, 10%);
3 years ago
td {
color: white;
}
}
}
3 years ago
}