@import "../../styles/_variables";
@import "../../styles/_mixins";

.react-tabs__tab-panel {
	display: none;
	flex-direction: column;
	flex-grow: 1;
	overflow: hidden;

	> pre[class*="language-"] {
		margin: 0;
		height: 100%;

		:root[data-theme="dark"] & {
			background-color: #282c34 !important;
		}

		@media (prefers-color-scheme: dark) {
			:root[data-theme="auto"] & {
				background-color: #282c34 !important;
			}
		}
	}

	@media only screen and (max-width: var(--mobile-breakpoint)) {
		overflow: auto;
	}

	> iframe {
		height: 100%;
	}
}

.empty-panel {
	display: flex;
	width: 100%;
	height: 100%;
	background-color: var(--sl-color-bg);
	justify-content: center;
	align-items: center;
}
.formatter-version {
	font-family: var(--code-font);
	text-decoration: unset;
	color: unset;
	&:hover {
		text-decoration: underline;
	}
}
.react-tabs__tab-list {
	display: flex;
	flex-direction: row;
	flex-grow: 0;
	flex-shrink: 0;
	height: auto;
	line-height: 35px;
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	font-size: 14px;
	background-color: var(--sl-color-bg-nav);
	padding: 0;
	list-style: none;

	li {
		padding: 0 10px;
		border-right: 1px solid var(--sl-border);
		flex-shrink: 0;

		&:hover {
			cursor: pointer;
			background-color: rgba(0, 0, 0, 0.1);
		}
	}
}

.react-tabs__tab--selected {
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.1);
}

.react-tabs__tab-panel--selected {
	display: flex;
}
