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.
64 lines
1.2 KiB
64 lines
1.2 KiB
@mixin gf-table($darkTheme: false) {
|
|
background: transparent !important;
|
|
|
|
.mat-footer-row,
|
|
.mat-row {
|
|
.mat-cell,
|
|
.mat-footer-cell {
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.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-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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|