/* Styles for deb.utopia-repository.org */

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');

body {
    margin: 1vh 5vw;
    font-family: sans-serif;
}

/* Indented code blocks */
pre {
    background: linear-gradient(to bottom right, #DFDFDF, #F6F6F6);
    background-color: #EEEEEE;
    padding: 10px;
    border: 2px solid;
    border-radius: 10px;
    margin: 0;
    overflow: auto;
}

h1, h2 {
    font-family: 'PT Sans', sans-serif;
}

h2 {
    color: #115;
    border-bottom: 1px solid #888;
}

table, th, td {
    border: 1px solid black;
}

tr:target {
    background-color: #ffc;
}

td, th {
    text-align: center;
    padding: 3px;
}

td:first-child {
    text-align: left;
}

td > ul {
    text-align: initial;
}

.flex-container {
    display: inline-flex;
    flex-wrap: wrap;
    flex-basis: content;
    column-gap: 10px;
}

.flex-container > div {
    max-width: 800px;
}

/* misc, decorative */

.disclaimer {
    font-variant: small-caps;
    margin: 0;
    font-size: x-large;
}

.disclaimer, .error {
    font-weight: bold;
    color: maroon;
}

.small {
    font-size: small;
}

.expand {
    display: block;
    width: 100%;
    padding-top: 1px;
}

/* Sorted tables decoration from http://www.kryogenix.org/code/browser/sorttable */

table.sortable th:not(.sorttable_sorted):not(.sorttable_sorted_reverse):not(.sorttable_nosort):after {
    content: " \25B4\25BE"
}
table.sortable thead {
    cursor: default;
}

table .shortcol {
    max-width: 960px;
    width: 40%;
}
table .widecol {
    min-width: 100px;
    max-width: 960px;
    width: 60%;
}

#legend-table {
    align-self: flex-start;
}

#component_selector {
    display: inline-block;
}

img.logo {
    height: 1.5em;
    vertical-align: bottom;
    border-radius: 0.3em;
    margin-right: 0.1em;
}

.tooltip {
    border-bottom: 1px dotted #000;
    cursor: pointer;
}

/* Dependency decoration in scripts */

.dependency {
    font-weight: bold;
}

.deptype-depends, .deptype-build-depends {
    color: #c42b37
}

.deptype-recommends, .deptype-build-depends-indep {
    color: #2356a8
}

.deptype-suggests {
    color: #44ba32
}

.deptype-enhances {
    color: #baa207
}

.deptype-provides {
    color: #9006ba
}

/* Table cells */

.tablecell-yes {
    background-color: #A7F2A5
}

.tablecell-no {
    background-color: #f9c0bf
}

.tablecell-na {
    background-color: #F0F0F0
}

.tablecell-planned {
    background-color: #92E8DF
}

.tablecell-partial, .tablecell-limited {
    background-color: #EDE8A4
}

.tablecell-special {
    background-color: #DCB1FC
}

.tablecell-no-padding {
    padding: initial;
}
