/*
 * gitphp.css
 *
 * GitPHP layout functional stylesheet
 *
 * @author Christopher Han <xiphux@gmail.com>
 * @copyright Copyright (c) 2006-2011 Christopher Han
 * @package GitPHP
 */

/*
 * Base styles
 */
.monospace {
	font-family: monospace;
}

:root {
	/* Added files */
	--git-status-a-color: #008c00;
	--git-status-a-visited-color: #829f82;

	/* Deleted files */
	--git-status-d-color: #a50000;
	--git-status-d-visited-color: #ca9999;

	/* Modified files */
	--git-status-m-color: #3a75bd;
	--git-status-m-visited-color: #91bef5;

	/* Renamed files */
	--git-status-r-color: #a400cf;
	--git-status-r-visited-color: #c991f5;
}


td.code * {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
}

/*
 * Full log view
 */
div.log_body {
	padding: 8px 8px 8px 150px;
}
span.age {
	position: relative;
	float: left;
	width: 142px;
}
div.log_link {
	margin: -5px 0px;
	padding: 0px 8px;
	position: relative;
	float: left;
	width: 136px;
}


/*
 * Diff display
 */
.pre {
	white-space: pre;
}

/*
 * Badges
 */
a.rss_logo {
	float: right;
}

img.logo {
	float: right;
}


/*
 * Language selector
 */
div.lang_select {
	width: 300px;
	float: right;
	text-align: right;
	padding-right: 10px;
}

div.user_block {
	float: right;
	padding-right: 10px;
}

/*
 * Blob/blame display
 */
table.code td.num {
	white-space: pre;
}

table.code td.codeline {
	white-space: pre;
}

table.code td.author, table.code td.date {
	white-space: nowrap;
}
td.code {
    tab-size: 4;
}

/*
 * Blob view
 */
td#blameData {
	white-space: nowrap;
	line-height: 22px !important;
}

/*
 * File search view
 */
span.matchline {
	white-space: pre;
}

/*
 * side-by-side-diff diff
 */
table.diffTable {
	border-spacing:0px;
	width: 100%;
	white-space: pre-wrap;
}

table.diffTable td {
	width: 50%;
}

/*
 * side-by-side commitdiff
 */
div.commitDiffSBS div.SBSTOC .showAll
{
	display: none;
}


/*
 * Geshi styles
 * These are generated by Geshi, don't change them
 */
#blobData .de1, #blobData .de2 {
	font: normal normal 1em/1.2em monospace;
	margin: 0;
	padding: 0;
	background: none;
	vertical-align: top;
}

#blobData {
	font-family: monospace;
    width: 100%;
}

#blobData li, #blobData .li1 {
	font-weight: normal;
	vertical-align: top;
}

/* Gitosis */
#gitosisuser textarea {
    width: 715px;
    height: 125px;
}

#gitosisuser input.text, #gitosisrepository input.text {
    width: 200px;
}

#gitosisaccess table td {
    vertical-align: middle;
}

/* Form errors */
#gitosisuser ul li, #gitosisrepository ul li {
    color: #f00000;
}

p.too_large_diff {
    text-align: center;
    padding-top: 86px;
    padding-bottom: 90px;
}

p.too_large_diff img {
    display: none;
}

div.suppressed {
    background-color: #f9f9f9;
}

.hidden {
    display: none !important;
}

.highlight {
    background-color: #FFFF99;
}

.ticket, .bold {
	font-weight: bold;
}

.ticket-label {
	color: gray;
}

.file_filter {
	user-select: none;
}

.file_filter .spacer {
	margin: 0 5px;
}

.file_filter .hint {
	color: silver;
	display: block;
	clear: both;
}

.file_filter .extension, .file_filter .status, .file_filter .folder {
	padding: 5px 10px;
	cursor: pointer;
	border-radius: 5px;
	margin: 0 5px 5px 0;
	color: white;
	float: left;
	background: #c0c0c0;
	text-transform: uppercase;
	font-size: 12px;
}
.file_filter .extension.selected {
	background-color: #0089d2;
}
.file_filter .status.selected {
	background-color: #FF8201;
}
.file_filter .folder.selected {
	background-color: darkseagreen;
}

.ext-hidden, .st-hidden, .fldr-hidden {
	display: none !important;
}

/* Comment mode toggler */
.page_body.only-comments .line:not(.commented) {
    display: none;
}
.page_body.only-comments .diffBlob.lines-visible .line {
    display: block;
}

/* Clear fix for lines in code */
.clearfix:after {
    content: " ";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.line:last-child::after {
	display: none;
}

.is-loading {
	position: relative;
}

.is-loading::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	z-index: 100;
}

.is-loading::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -10px;
	margin-top: -10px;
	width: 20px;
	height: 20px;
	background: url('/images/favicon.png') 50% 50% no-repeat;
	animation: sk-cubemove 2s infinite ease-in-out;
	z-index: 200;
	border-radius: 5px;
	background-size: cover;
}

@keyframes sk-cubemove {
	25% {
	  transform: translateX(42px) rotate(-90deg) scale(0.5);
	}
	50% {
	  transform: translateX(42px) translateY(42px) rotate(-179deg);
	}
	50.1% {
	  transform: translateX(42px) translateY(42px) rotate(-180deg);
	}
	75% {
	  transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
	}
	100% {
	  transform: rotate(-360deg);
	}
}

.switcher {
    position: relative;
    display: inline-block;
    vertical-align: top;
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    padding: 10px;
    line-height: 20px;
}

.switcher:hover {
	background: #fafafa;
}

.switcher span {
    vertical-align: middle;
}

.switcher .switch {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    width: 35px;
    height: 20px;
    border-radius: 10px;
    background: #cdd7de;
    vertical-align: middle;
    transition: background .2s;
}

.switcher .switch::before {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    content: '';
    border-radius: 50%;
    background: #fff;
    transform: translate3d(0, 0, 0);
    transition: transform .2s;
}

.switcher .switch::after {
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    content: '';
    cursor: pointer;
}

.switcher.checked .switch {
    background: #000;
}

.switcher.checked .switch::before {
    transform: translate3d(15px, 0, 0);
}

sup {
    font-size: smaller;
    font-style: italic;
}

.git-admin-table {
    padding: 0 50px;
    width: 100%;
    border-spacing: 0;
}

.git-admin-table .text-input, .git-table .text-input {
    min-width: 400px;
}

.diff-file-list .file-name a {
	display: block;
}

.diff-file-list .file-name a.is-visited {
	color: grey;
}

.diff-file-list .file-name a.is-active {
	background: #f0f0f0;
	color: black;
}

.diff-file-list span {
	font-weight: bold;
}

.diff-file-list .status-d span {
	color: var(--git-status-d-color);
}

.diff-file-list .status-r span {
	color: var(--git-status-r-color);
}

.diff-file-list .status-a span {
	color: var(--git-status-a-color);
}

.diff-file-list .status-m span {
	color: var(--git-status-m-color);
}
