// Copyright (c) 2017-2025, CKSource Holding sp. z o.o. All rights reserved.
// For licensing, see LICENSE.md.

.main__content--api {
	.see-source {
		a {
			display: flex;
			align-items: center;
			font-size: 14px;
			white-space: nowrap;

			svg {
				width: 15px;
				height: 20px;
				margin-right: 5px;
				fill: currentColor;
			}
		}
	}

	.collapsing-list .see-source {
		// Hide "See source" link inside API items by default
		display: none;

		// Show link only when list is expanded.
		.toggler--expanded + .collapsing-list__description {
			.see-source {
				display: block;
				float: right;
				margin-left: 50px;
				margin-bottom: 12px;
			}
		}
	}
}
