bug(ui): colors of the accessRights should be different

there was only one color for the accessRights: the open access color.
now every type has his own color.
This commit is contained in:
Christoph Ladurner
2021-01-07 22:46:17 +01:00
parent 2543ee9cbf
commit ccfde55f45
3 changed files with 24 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ const Footer = ({subjects, createdDate, accessRight}) => {
)}
</div>
<div className="right floated column">
<span className="access-right">
<span className={`ui access-right ${accessRight.category}`}>
<i className={`icon ${accessRight.icon}`}></i>
{accessRight.type}
</span>

View File

@@ -26,3 +26,20 @@
.identifiers {
display: inline;
}
.ui.access-right {
color: #FFFFFF;
&.open {
color: @accessRightOpen;
}
&.restricted {
color: @accessRightRestricted;
}
&.embargoed {
color: @accessRightEmbargoed;
}
&.closed {
color: @accessRightClosed;
}
}

View File

@@ -14,4 +14,9 @@
//@import "../invenio_app_rdm/variables.less";
//@navbar_background_image: unset;
//@navbar_background_color: #ffffff;
//@navbar_background_color: #ffffff;
@accessRightOpen: #e9711c;
@accessRightRestricted: #fbbd08;
@accessRightEmbargoed: #db2828;
@accessRightClosed: #db2828;