/**
 * Redmine - project management software
 * Copyright (C) 2006-  Jean-Philippe Lang
 * This code is released under the GNU General Public License.
 */

table.entries a {
    padding-block-start: 2px;
    padding-block-end: 2px;
}

table.revision-info td {
    margin:  0px;
    padding: 0px;
}

div.revision-graph { position: absolute; min-inline-size: 1px; }

div.changeset-changes ul { margin: 0; padding: 0; }
div.changeset-changes ul > ul { margin-inline-start: 18px; padding: 0; }

div.changeset-changes ul:first-child > li {padding-inline-start: 0}
li.change {
    list-style-type:none;
    padding-block: 1px;
    padding-inline-start: 20px;
    margin: 0;
}
li.change.folder.change-A { background-image: url(/folder_open_add.png); }
li.change.folder.change-M { background-image: url(/folder_open_orange.png); }

li.change.change-A svg.icon-svg {
    fill: var(--oc-green-7);
    stroke: var(--oc-white);
}
li.change.change-M svg.icon-svg {
    fill: var(--oc-yellow-7);
    stroke: var(--oc-white);
}
li.change.change-C svg.icon-svg {
    fill: var(--oc-cyan-7);
    stroke: var(--oc-white);
}
li.change.change-R svg.icon-svg {
    fill: var(--oc-grape-7);
    stroke: var(--oc-white);
}
li.change.change-D svg.icon-svg {
    fill: var(--oc-red-7);
    stroke: var(--oc-white);
}

li.change .copied-from { font-style: italic; color: var(--oc-gray-6); font-size: 0.9em; }
li.change .copied-from:before { content: " - "}

#changes-legend { float: inline-end; font-size: 0.75rem; margin: 0; }
#changes-legend li { float: inline-start; background-position: 5px 1px; }
[dir="rtl"] #changes-legend li { background-position: right 5px top 1px; }

table.filecontent { border: 1px solid var(--oc-gray-4);  border-collapse: collapse; inline-size: 98%; background-color: var(--oc-gray-0); }
table.filecontent tbody {font-family:Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size:0.75rem;}
table.filecontent th { border: 1px solid var(--oc-gray-4); background-color: var(--oc-gray-1); }
table.filecontent th.filename { background-color: var(--oc-gray-2); text-align: start; padding: 5px;}
table.filecontent tr.spacing th { text-align:center; }
table.filecontent tr.spacing td { block-size: 0.4em; background: rgba(var(--oc-blue-1-rgb), 0.3);}
table.filecontent th.line-num {
    border: 1px solid var(--oc-gray-4);
    text-align: end;
    inline-size: 2%;
    padding-block: 0;
    padding-inline: 0 3px;
    color: var(--oc-gray-6);
    user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    font-weight:normal;
}
table.filecontent th.line-num a {
    text-decoration: none;
    color: inherit;
}
table.filecontent th.line-num a:after {
    content:  attr(data-txt);
}
table.diffcontent th.line-num:after {
    content:  attr(data-txt);
}
table.filecontent td.line-code {
    padding-block: 0;
    padding-inline: 4px 0;
}
table.filecontent td.line-code pre, table.filecontent td.line-code div {
    margin: 0px;
    white-space: pre-wrap;
    font-family:Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size:0.75rem;
}

table.filecontent tr:target th.line-num { background-color:var(--oc-gray-3); color: var(--oc-gray-6); }
table.filecontent tr:target td.line-code { background-color:var(--oc-blue-0); }

img.filecontent, video.filecontent { max-inline-size: 100%; }

.filecontent.pdf {
    inline-size: 100%;
    max-block-size: 80vh;
    overflow: hidden;
    position: relative;
}

.filecontent.pdf::before {
    content: " ";
    display: block;
    inline-size: 100%;
    padding-block-end: 100%;
}

.filecontent.pdf object,
.filecontent.pdf p {
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
}

.filecontent.pdf object {
    border: none;
    inline-size: 100%;
    block-size: 100%;
}

.previous-filename {
  font-weight: normal;
}

/* 12 different colors for the annonate view */
table.annotate tr.bloc-0 td.line-code {border-inline-start-color: var(--oc-yellow-1);}
table.annotate tr.bloc-1 td.line-code {border-inline-start-color: var(--oc-grape-2);}
table.annotate tr.bloc-2 td.line-code {border-inline-start-color: var(--oc-cyan-1);}
table.annotate tr.bloc-3 td.line-code {border-inline-start-color: var(--oc-orange-2);}
table.annotate tr.bloc-4 td.line-code {border-inline-start-color: var(--oc-lime-2);}
table.annotate tr.bloc-5 td.line-code {border-inline-start-color: var(--oc-indigo-2);}
table.annotate tr.bloc-6 td.line-code {border-inline-start-color: var(--oc-pink-2);}
table.annotate tr.bloc-7 td.line-code {border-inline-start-color: var(--oc-violet-1);}
table.annotate tr.bloc-8 td.line-code {border-inline-start-color: var(--oc-green-2);}
table.annotate tr.bloc-9 td.line-code {border-inline-start-color: var(--oc-violet-3);}
table.annotate tr.bloc-10 td.line-code {border-inline-start-color: var(--oc-red-3);}
table.annotate tr.bloc-11 td.line-code {border-inline-start-color: var(--oc-blue-2);}
table.annotate tr.bloc-change {border-block-start: 1px solid var(--oc-gray-3);} 

table.annotate td.revision {
    padding:0;
    text-align: center;
    inline-size: 2%;
    padding-inline-start: 1em;
    background: inherit;
}

table.annotate td.author {
    padding:0;
    text-align: center;
    white-space: nowrap;
    padding-inline: 1em;
    inline-size: 3%;
    background: inherit;
}

table.annotate td.previous {
    padding: 0;
    text-align: center;
    inline-size: 1%;
    background: inherit;
}

table.annotate td.line-code {
    background-color: var(--oc-gray-0);
    border-inline-start: 6px solid var(--oc-gray-3);
}

.breadcrumbs>.separator::before, .breadcrumbs>.separator::after {
    content: " ";
}
