2022-09-29 11:09:37 +02:00
|
|
|
@import (reference) "~src/assets/openaire-theme/less/color.less";
|
2022-12-07 15:56:16 +01:00
|
|
|
@import (reference) "~src/assets/openaire-theme/less/_import-variables.less";
|
2022-09-29 11:09:37 +02:00
|
|
|
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@color, @position: left) {
|
|
|
|
border-@{position}: 4px solid fade(@color, 30%);
|
2022-09-29 11:09:37 +02:00
|
|
|
|
|
|
|
& .type {
|
|
|
|
color: @color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-07 15:56:16 +01:00
|
|
|
@media(min-width: @breakpoint-medium) {
|
|
|
|
.uk-card {
|
2023-06-08 10:05:48 +02:00
|
|
|
&.funder:not(.noColor) {
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@funder-color);
|
|
|
|
}
|
|
|
|
|
2023-06-08 10:05:48 +02:00
|
|
|
&.ri:not(.noColor) {
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@ri-color);
|
|
|
|
}
|
2022-09-29 11:09:37 +02:00
|
|
|
|
2023-06-08 10:05:48 +02:00
|
|
|
&.organization:not(.noColor) {
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@organization-color);
|
|
|
|
}
|
2022-09-29 11:09:37 +02:00
|
|
|
}
|
2022-12-07 15:56:16 +01:00
|
|
|
}
|
2022-09-29 11:09:37 +02:00
|
|
|
|
2022-12-07 15:56:16 +01:00
|
|
|
@media(max-width: @breakpoint-small-max) {
|
|
|
|
.uk-card {
|
2023-06-08 10:05:48 +02:00
|
|
|
&.funder:not(.noColor) {
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@funder-color, bottom);
|
|
|
|
}
|
|
|
|
|
2023-06-08 10:05:48 +02:00
|
|
|
&.ri:not(.noColor) {
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@ri-color, bottom);
|
|
|
|
}
|
|
|
|
|
2023-06-08 10:05:48 +02:00
|
|
|
&.organization:not(.noColor) {
|
2022-12-07 15:56:16 +01:00
|
|
|
.setType(@organization-color, bottom);
|
|
|
|
}
|
2022-09-29 11:09:37 +02:00
|
|
|
}
|
2022-12-07 15:56:16 +01:00
|
|
|
}
|