/*
This file is part of Vodka.

Vodka is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Vodka is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Vodka.  If not, see <https://www.gnu.org/licenses/>.
*/

/*
I wanted the borders to be 1 3 1 3 and 3 1 3 1 depending on horiz or vert
but there is a weird rendering bug where you get a hairline!
That's why the weird "3.2px"
*/


.codelist.exploded {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	/*border: 3px solid var(--unselected-border);*/
	border-width: 1px 4px 1px 4px;
	border-style: solid;
	border-color: var(--unselected-border);
	border-radius: 6px;	
	padding: 5px 2px 5px 0px;
}

.codelist.exploded.selected {
	border-color: var(--selected-border);
}

.codelist.exploded.newselected {
	border-color: var(--selected-border);
}

.codelist.exploded > .nex.exploded {
	margin: 0px 0px 0px 2px;
}


.codelist.exploded.vdir {
	flex-direction: column;
	border-width: 4px 1px 4px 1px;
	padding: 0px 5px 2px 5px;
}

.codelist.exploded.vdir > .nex.exploded {
	margin: 2px 21px 2px 21px;
}

.codespan {
	display: none;
}

.codespan.exploded {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	font-family: "Courier";
	color: var(--info-text);
	font-style: italic;
	font-size: .95em;
	background-color: var(--unselected-border);
	border: 0px;
	padding: 3px 7px 4px 5px;
	border-radius: 0px 6px 6px 0px;
	margin: 0px 0px 0px 0px;
}

.codespan.exploded.editing {
	font-weight: bold;
	background-color: var(--editing-background)
}

.codelist.exploded.vdir > .codespan {
	border-radius: 0px 0px 6px 6px;	
	margin: 0px 0px 2px 0px;
}

.codespan.exploded + .data.exploded {
	margin-left: 5px;
}

.selected > .codespan {
	background-color: var(--selected-border);
}

.newselected > .codespan {
	background-color: var(--selected-border);
}

.innercodespan {
	display: none;
}

.innercodespan.exploded {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	font-family: Courier;
	color: var(--info-text);
	font-style: italic;
	font-size: 15px;
	background-color: var(--unselected-border);
	border: 0px;
	padding: 3px 7px 4px 5px;
	border-radius: 0px 0px 6px 6px;	
	margin: -5px 3px 2px 3px;
}

.codelist.exploded.vdir > .innercodespan {
	border-radius: 0px 6px 6px 0px;
	margin: 0px 2px 0px -5px;
}

.innercodespan.exploded.editing {
	font-weight: bold;
	background-color: var(--editing-background)
}

.selected > .innercodespan {
	background-color: var(--selected-border);
}

.newselected > .innercodespan {
	background-color: var(--selected-border);
}


/* the codespan is italic, and a tag is not */
/* (comment by Claude) */
.codespan .tag {
	font-style: normal;
}
