@import "../bootstrap/scss/functions";
@import "variables";
@import "mixins";
@import "font-awesome";
@import "bootstrap";
@import "components";
@import "adjustments";
@import "utilities";

html {
    position: relative;
    min-height: 100%;
    scroll-padding-top: 150px; // so scrolled-to elements are not hidden by navbar.
}

body {
    overflow-y: scroll !important;
    background-image: url("../images/triangles_gray.svg");
    background-size: cover;
    background-attachment: fixed;

    &.mb-footer {
        margin-bottom: 60px; // keep space for footer
    }
}

.max-content-height {
    height: calc(100vh - 75px);
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: $footer-height;
    background: $darker-gray;
    line-height: 1.2;
    color: $light-gray;

    a {
        white-space: nowrap;
    }

    .navbar-nav .nav-link.nav-link-multiline {
        line-height: 1.2;
    }
}

.brand-image {
    height: $brand-height;
}

.color-bar {
    height: 0.2rem;
    display: flex;
}

.participants-warning {
    opacity: 0.3;
    font-weight: normal;
}

.archive-info {
    font-weight: normal;
}

.deactivate {
    opacity: 0.4;
}

.textanswer-link {
    color: $black;
}
.textanswer-original {
    color: $medium-gray;
}

.grade-course-table tr {
    height: 57px;
}

.sortable-ghost {
    background: $lighter-gray;
}

.table-striped tbody tr.sortable-ghost {
    background: $light-gray;
}

.sortable .movable {
    width: 10px;
}

.sortable .movable span.movable-icon {
    font-size: 16px;
    top: 8px;
    cursor: move;
}

.break-word {
    li, a {
        word-wrap: break-word;
    }
}

.card-body .mb-3:last-of-type {
    margin-bottom: 0;
}

td.icon {
    padding: 0 !important;
    text-align: center;
    min-width: 20px;
}

.card-header .nav-pills {
    .nav-link {
        padding: 0.1rem 0.5rem;
    }
}

/* Results index page */
// make the line always break between semester and year (e.g., "WT<break>17/18" and "ST<break>18")
.semester-short-name {
    word-spacing: 30000px;
}

.reset-button {
    color: $dark-gray;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.15s ease-in-out;

    &:hover {
        color: $darker-gray;
    }

    &:active {
        color: $black;
    }
}

.result-filter-list {
    max-height: 170px;
    overflow-y: auto;
    padding-left: 4px;
}

.space-normal {
    white-space: normal;
}

@media print {
    @import "print";
}
