@import (reference) "~src/assets/openaire-theme/less/color.less";
@import (optional) "~src/assets/extend-theme/less/color.less";

.setType(@color) {
  border-bottom: 4px solid if(@color = none, none, fade(@color, 30%));

  & .type {
    color: @color;
  }
}

.uk-card {
  &.funder {
    .setType(@funder-color);
  }

  &.ri {
    .setType(@ri-color);
  }

  &.organization {
    .setType(@organization-color);
  }

  &.country {
    .setType(@country-color);
  }

  &.datasource {
    .setType(@datasource-color);
  }
}
