/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

    This file contains rules for
    CARDS WITH LISTS
    that implement the UU design system specifically for Sitevision

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */


/********************************

  RSS List as cards

********************************/

.sv-channel {
    max-width: 100%;
}

.sv-channel-item {
    margin-bottom: unset;
    padding: 0.75rem 1.25rem;
}

.sv-channel-item a,
.sv-channel-item a.uu-text {
    color: var(--color-text);
}

.sv-channel-item+.sv-channel-item {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

.sv-channel-item time {
    color: var(--color-text-muted);
    font-size: var(--font-size-small);
}

.sv-archive-portlet+.card-body .uu-text a {
    color: var(--color-text);
}


/***************************

  WEBB-431 style the archive portlet to be consistent with own modules

***************************/

.sv-archive-portlet.fix-archive-style>ul>li:hover {
    background-color: var(--color-grey-light);
    cursor: pointer;
}

.sv-archive-portlet.fix-archive-style a,
.sv-archive-portlet.fix-archive-style a:hover {
    color: var(--color-text);
}

.sv-button-portlet.fix-archive-style a::after {
    background-size: 1.3rem;
    content: " ";
    display: inline-block;
    height: 1.3rem;
    margin-right: 0.5rem;
    vertical-align: bottom;
    width: 1.3rem;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyNS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAyNCAyNCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjQgMjQ7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOm5vbmU7fQ0KCS5zdDF7ZmlsbDojRkZGRkZGO30NCjwvc3R5bGU+DQo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMCwwaDI0djI0SDBWMHoiLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xMiw0bC0xLjQsMS40bDUuNiw1LjZINHYyaDEyLjJsLTUuNiw1LjZMMTIsMjBsOC04TDEyLDR6Ii8+DQo8L3N2Zz4NCg==);
}

.sv-button-portlet.fix-archive-style a:not(:hover)::after {
    filter: invert(1);
}

.sv-button-portlet.fix-archive-style {
    border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* Color of text-muted in lists when hovering should be darker since the background is then grey */
.list-group-item-action:hover .text-muted {
    color: var(--color-text-muted-hover) !important;
}

/* Module Student departments and faculties needs padding for each list item */
.sv-se-uu-uit-webb-webapp-student-departments .list-group-item-action {
    padding: var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);
}