mirror of
https://github.com/kevinpapst/kimai2.git
synced 2024-12-22 12:18:29 +00:00
9bd5965ecd
* increase padding in wizard * fix theme chooser in wizard * improve dynamic export columns in PDFs * added label for total column * bump theme bundle * improve avatar list spacing * be more flexible parsing times - fixes #4031
46 lines
1.2 KiB
SCSS
46 lines
1.2 KiB
SCSS
|
|
$avatar-base-size: 30;
|
|
|
|
.initials {
|
|
font-weight: bold;
|
|
font-size: ceil(calc($avatar-base-size / 2 - 2))+px;
|
|
}
|
|
|
|
$avatarSizes: "xs" .75, "sm" 1.25, "md" 1.5, "lg" 2;
|
|
|
|
@each $avatarSizeName, $avatarBaseSize in $avatarSizes {
|
|
.avatar-#{$avatarSizeName} {
|
|
width: ceil(calc($avatar-base-size * $avatarBaseSize))+px;
|
|
height: ceil(calc($avatar-base-size * $avatarBaseSize))+px;
|
|
|
|
.initials {
|
|
font-size: ceil(calc($avatar-base-size * $avatarBaseSize / 2 - 2))+px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.widget-user-image {
|
|
border-radius: 50%;
|
|
border: 3px solid #fff;
|
|
.avatar {
|
|
width: ceil(calc($avatar-base-size * 2.75))+px;
|
|
height: ceil(calc($avatar-base-size * 2.75))+px;
|
|
.initials {
|
|
font-size: ceil(calc($avatar-base-size * 2.75 / 2 - 2))+px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Detail tables like my teams (Dashboard) or */
|
|
table.dataTable.table > tbody > tr > td {
|
|
&.avatars {
|
|
.avatar {
|
|
margin: 1px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* decreases the margin between avatars, see https://github.com/tabler/tabler/issues/1567 */
|
|
.avatar-list-stacked .avatar {
|
|
margin-right: calc(var(--tblr-avatar-size)*-.2)!important;
|
|
} |