openaire-library/searchPages/searchUtils/portal-search-result.compon...

43 lines
825 B
Plaintext
Raw Normal View History

@import (reference) "~src/assets/openaire-theme/less/color.less";
@import (reference) "~src/assets/openaire-theme/less/_import-variables.less";
.setType(@color, @position: left) {
border-@{position}: 4px solid fade(@color, 30%);
& .type {
color: @color;
}
}
@media(min-width: @breakpoint-medium) {
.uk-card {
&.funder:not(.noColor) {
.setType(@funder-color);
}
&.ri:not(.noColor) {
.setType(@ri-color);
}
&.organization:not(.noColor) {
.setType(@organization-color);
}
}
}
@media(max-width: @breakpoint-small-max) {
.uk-card {
&.funder:not(.noColor) {
.setType(@funder-color, bottom);
}
&.ri:not(.noColor) {
.setType(@ri-color, bottom);
}
&.organization:not(.noColor) {
.setType(@organization-color, bottom);
}
}
}