mirror of https://github.com/ghostfolio/ghostfolio
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.
83 lines
1.6 KiB
83 lines
1.6 KiB
@mixin gf-table($darkTheme: false) {
|
|
background: transparent !important;
|
|
|
|
.mat-footer-row,
|
|
.mat-row {
|
|
.mat-cell,
|
|
.mat-footer-cell {
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.mat-mdc-footer-row {
|
|
.mat-mdc-footer-cell {
|
|
border-top: 1px solid
|
|
rgba(
|
|
var(--palette-foreground-divider),
|
|
var(--palette-foreground-divider-alpha)
|
|
);
|
|
}
|
|
}
|
|
|
|
.mat-mdc-row {
|
|
&:nth-child(even) {
|
|
background-color: rgba(var(--palette-foreground-base), 0.02);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgba(var(--palette-foreground-base), 0.05) !important;
|
|
}
|
|
|
|
.mat-mdc-cell {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.mat-row {
|
|
&:nth-child(even) {
|
|
background-color: rgba(var(--palette-foreground-base), 0.02);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgba(var(--palette-foreground-base), 0.05);
|
|
}
|
|
}
|
|
|
|
@if $darkTheme {
|
|
.mat-mdc-footer-row {
|
|
.mat-mdc-footer-cell {
|
|
border-top-color: rgba(
|
|
var(--palette-foreground-divider-dark),
|
|
var(--palette-foreground-divider-dark-alpha)
|
|
);
|
|
}
|
|
}
|
|
|
|
.mat-mdc-row {
|
|
&:nth-child(even) {
|
|
background-color: rgba(var(--palette-foreground-base-dark), 0.02);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgba(
|
|
var(--palette-foreground-base-dark),
|
|
0.05
|
|
) !important;
|
|
}
|
|
|
|
.mat-mdc-cell {
|
|
background: none;
|
|
}
|
|
}
|
|
|
|
.mat-row {
|
|
&:nth-child(even) {
|
|
background-color: rgba(var(--palette-foreground-base-dark), 0.02);
|
|
}
|
|
|
|
&:hover {
|
|
background-color: rgba(var(--palette-foreground-base-dark), 0.05);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|